Commit Graph

286 Commits

Author SHA1 Message Date
eight
ff6fd8cad3 Fix: default options 2018-10-10 18:02:51 +08:00
eight
c23f315c52 Refactor: use CodeMirror.defineOption 2018-10-10 17:40:07 +08:00
eight
6494985b50 Fix: various 2018-10-10 16:14:51 +08:00
eight
a38558ef78 WIP: make notifyAllTabs a noop 2018-10-08 15:30:39 +08:00
eight
5b3b4e680f Add: navigator-util 2018-10-07 21:20:39 +08:00
eight
b5107b78a5 Add: broadcast messages with reasons 2018-10-07 01:42:43 +08:00
eight
e7ef4948cd Fix: observer is unavailable? 2018-10-06 18:10:58 +08:00
eight
75f2561154 Fix: don't recreate element when style update in popup 2018-10-06 16:38:04 +08:00
eight
3122d28c1a Fix: always use promise in API call 2018-10-06 15:14:05 +08:00
eight
e594b8ccb1 Cache enabled state 2018-10-06 15:11:01 +08:00
eight
095998f07c Change: switch to msg.js 2018-10-06 13:27:58 +08:00
eight
fa3127d988 Change: switch to msg.js 2018-10-06 13:02:45 +08:00
eight
05d582c726 Add: msg.sendBg 2018-10-06 11:43:42 +08:00
eight
171339f710 WIP: drop api.js 2018-10-06 04:39:48 +08:00
eight
3a618aca2a WIP: use deepCopy 2018-10-06 03:19:51 +08:00
eight
bb1cb58024 WIP: msg.js 2018-10-06 03:10:04 +08:00
eight
34497ebe16 WIP: switch to API 2018-10-05 18:47:52 +08:00
eight
f1639cc33e WIP: broadcastMessage 2018-10-05 01:03:40 +08:00
eight
c01f93f62c WIP 2018-10-04 15:57:02 +08:00
eight
6d32ffb76b WIP 2018-10-04 12:46:19 +08:00
eight
0f148eac32 WIP 2018-10-04 03:35:07 +08:00
eight
24b1eea8a4 Merge branch 'master' of https://github.com/openstyles/stylus into dev-exclusions 2018-10-03 15:00:07 +08:00
eight
2fd531e253 Rewrite linter system (#487)
* Add: implement new linter system

* Refactor: pull out editor worker

* Switch to new linter and worker

* Enable eslint cache

* Fix: undefined error

* Windows compatibility

* Fix: refresh linter if the editor.linter changes

* Add: stylelint

* Add: getStylelintRules, getCsslintRules

* Fix: logic to get correct linter

* WIP: linter-report

* Fix: toggle hidden state

* Add: matain the order of lint report for section editor

* Add: unhook event

* Add: gotoLintIssue

* Fix: shouldn't delete rule.init

* Add: linter-help-dialog

* Drop linterConfig

* Add: linter-config-dialog, cacheFn

* Add: use cacheFn

* Drop lint.js

* Add: refresh. Fix report order

* Fix: hide empty table

* Add: updateCount. Fix table caption

* Switch to new linter/worker

* Fix: remove unneeded comment

* Fix: cacheFn -> cacheFirstCall

* Fix: use cacheFirstCall

* Fix: cache metaIndex

* Fix: i < trs.length

* Fix: drop isEmpty

* Fix: expose some simple states to global

* Fix: return object code style

* Fix: use proxy to reflect API

* Fix: eslint-disable-line -> eslint-disable-next-line

* Fix: requestId -> id

* Fix: one-liner

* Fix: one-liner

* Fix: move dom event block to top

* Fix: pending -> pendingResponse

* Fix: onSuccess -> onUpdated

* Fix: optimize row removing when i === 0

* Fix: hook/unhook -> enableForEditor/disableForEditor

* Fix: linter.refresh -> linter.run

* Fix: some shadowing

* Fix: simplify getAnnotations

* Fix: cacheFirstCall -> memoize

* Fix: table.update -> table.updateCaption

* Fix: unneeded reassign

* Fix: callbacks -> listeners

* Fix: don't compose but extend

* Refactor: replace linter modules with linter-defaults and linter-engines

* Fix: implement linter fallbacks

* Fix: linter.onChange -> linter.onLintingUpdated

* Fix: cms -> tables

* Fix: parseMozFormat is not called correctly

* Move csslint-loader to background

* Fix: watch config changes

* Fix: switch to LINTER_DEFAULTS

* Fix: csslint-loader -> parserlib-loader
2018-10-01 09:03:17 -05:00
Rob Garrison
a4d2e3dd9c Remove misleading comment 2018-09-24 07:02:04 -05:00
Rob Garrison
75d2ef2cc1 Fix strict equals 2018-09-24 07:02:04 -05:00
Rob Garrison
7be33a9237 Fix default values 2018-09-24 07:02:04 -05:00
Rob Garrison
d136fdbafa Allow including null in number/range variables 2018-09-24 07:02:04 -05:00
Rob Garrison
7d533d4d4a Fix select default option extraction 2018-09-24 07:02:04 -05:00
Rob Garrison
2a2191049f Don't allow step to be set to zero 2018-09-24 07:02:04 -05:00
Rob Garrison
1881552348 Remove va.range & add min/max/step to va directly 2018-09-24 07:02:04 -05:00
Rob Garrison
a277800868 Fix all the things 2018-09-24 07:02:04 -05:00
Rob Garrison
7cd4380ee4 Ensure range default & value types match 2018-09-24 07:02:04 -05:00
Rob Garrison
ae6e2647a3 Add proper number & range validation 2018-09-24 07:02:04 -05:00
Rob Garrison
f6998de6ec Include units in number & range variable 2018-09-24 07:02:04 -05:00
Rob Garrison
2291197277 UserCSS Number variable now accepts a range 2018-09-24 07:02:04 -05:00
Rob Garrison
d9c748d92f Change range settings to [default, min, max, step] 2018-09-24 07:02:04 -05:00
Rob Garrison
1dc24fac1b Use string slice instead of replace 2018-09-24 07:02:04 -05:00
Rob Garrison
95f9f9c5d4 Rename to defaultValue 2018-09-24 07:02:04 -05:00
Rob Garrison
9b483d993b Add default select option. See #492 2018-09-24 07:02:04 -05:00
Rob Garrison
1632a8f364 Add number & range variables. See #492 2018-09-24 07:02:04 -05:00
tophf
b90f7bfce5 don't autofocus external links like feedback
#495
2018-09-06 20:59:04 +03:00
tophf
4a877ad27b fixup c57fef7b: always set lastFocusedViaClick
#495
2018-09-06 20:42:48 +03:00
tophf
373fe5f510 code cosmetics 2018-09-06 19:08:56 +03:00
tophf
c57fef7b1e suppress focus outline when invoked via mouse
fixes #495
2018-09-06 19:05:10 +03:00
tophf
af77b55eea fixup 2fdfd966
#482
2018-08-27 20:42:51 +03:00
tophf
2fdfd96699 use the new originalDigest in update UI
...when force-updating a locally edited style that turned out to be equal to the remote one

fixes #482
2018-08-27 20:39:36 +03:00
tophf
47c4b8157a expose 'preserve_newlines' in beautifier; dehtmlize
fixes #435
2018-07-23 00:28:11 +03:00
tophf
87da06037f make showCodeMirrorPopup modal
closes #437
2018-07-22 19:37:49 +03:00
Rob Garrison
8a6011de8c Attempt to update icon count 2018-07-22 11:21:45 -05:00
Rob Garrison
bfe54ab4c4 Add tab communication 2018-07-22 11:21:45 -05:00