Commit Graph

2645 Commits

Author SHA1 Message Date
eight
1f2d116aae Fix: use meta parser 2018-10-01 23:14:56 +08:00
eight
918e47b1ed Fix: emit update event if no fatal errors 2018-10-01 23:01:21 +08:00
eight
81a7bb9ac9 Add: editorWorker.metalint 2018-10-01 22:56:25 +08:00
eight
f47d57aea8 Change: use editorWorker.metalint 2018-10-01 22:49:16 +08:00
eight
5778d5c858 Change: editor-worker-body -> editor-worker 2018-10-01 22:39:01 +08:00
eight
268e1716b4 Change: switch to worker-util 2018-10-01 22:38:06 +08:00
eight
cc2980b647 Drop: parserlib-loader 2018-10-01 22:30:16 +08:00
eight
08adcb60f2 Merge branch 'master' into dev-usercss-meta 2018-10-01 22:29:39 +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
eight
e4135ce35d Fix: remove unused function 2018-09-28 11:57:34 +08:00
eight
39a6d1909f Fix: prefs doesn't work in FF's private windows. Add web-ext. Drop prefs.readOnlyValues 2018-09-28 00:26:29 +08:00
eight
6909c73c69 Fix: minor 2018-09-26 12:16:33 +08:00
eight
79833d8bba Fix: a better way to draw list? 2018-09-26 11:40:04 +08:00
eight
a849fd6dda Fix: missing placeholders 2018-09-26 11:39:53 +08:00
eight
d5ee31a080 Fix: a better way to draw character list? 2018-09-26 11:37:50 +08:00
eight
7b959af3e3 Update usercss-meta 2018-09-26 11:30:10 +08:00
eight
fefa987c4d Change: sections-equal -> sections-util 2018-09-26 10:37:28 +08:00
eight
2abbf670d8 Fix: check err.code 2018-09-26 10:37:14 +08:00
eight
1fe0586b29 Add: i18n error message 2018-09-26 10:33:02 +08:00
eight
ab0ef239cf Change: move styleCodeEmpty to sections-util, load colorConverter in background worker 2018-09-26 09:34:57 +08:00
eight
d5ade807f0 Fix: display error message 2018-09-26 09:27:30 +08:00
eight
4f5337e51d Fix: remove unused colorconverter 2018-09-26 09:26:55 +08:00
eight
29b8f51292 Fix: vars could be undefined 2018-09-25 23:21:44 +08:00
eight
a7cfeb22e4 Fix: window is undefined 2018-09-25 22:54:40 +08:00
eight
9713c6a3be Fix: throw an error for unparsable color 2018-09-25 21:56:38 +08:00
eight
3c30bc3eb0 Fix: try to get error message 2018-09-25 21:55:55 +08:00
eight
3d32b0428b Fix: vars might be empty 2018-09-25 21:38:40 +08:00
eight
7d75dd8754 Add: meta-parser 2018-09-25 21:18:39 +08:00
eight
a4df641b96 Enhance: set flag in parserlib so we don't need another loader 2018-09-25 21:18:18 +08:00
eight
8028a3529f Include util, worker-util in background 2018-09-25 21:17:40 +08:00
eight
ba5d6cc31a Fix: use spread syntax in loadScript 2018-09-25 21:16:59 +08:00
eight
b853be13f8 Enhance: swith to usercss-meta (in worker) 2018-09-25 21:14:46 +08:00
eight
a3e7915199 Fix: use promise API 2018-09-25 21:11:54 +08:00
eight
5d07a8cd4e Fix: buildMeta now returns a promise 2018-09-25 21:11:09 +08:00
eight
a004bc3c7d Move styleCodeEmpty to util 2018-09-25 21:10:35 +08:00
eight
41ac66a137 Add: background worker 2018-09-25 21:09:40 +08:00
eight
ffb13bf1db Enhance: move moz-parser/meta-parser/usercss compiler to worker 2018-09-25 21:09:04 +08:00
eight
42e97ef153 Fix: display error on install page 2018-09-25 20:45:07 +08:00
eight
64aa9fcf53 Add: background worker 2018-09-25 17:34:54 +08:00
eight
b0e407e98f Add: worker util 2018-09-25 14:52:35 +08:00
eight
7a24547e09 Add: usercss-meta 2018-09-25 00:01:18 +08:00
Rob Garrison
5f60c519ce Alas, poor clamp! I knew it well 2018-09-24 07:02:04 -05:00
Rob Garrison
b0fbdfb6e9 Update number input on blur 2018-09-24 07:02:04 -05:00
Rob Garrison
93dee41c11 Don't re-render input while focused 2018-09-24 07:02:04 -05:00
Rob Garrison
c18671c91c Fix undefined value 2018-09-24 07:02:04 -05:00
Rob Garrison
a0ffdb7645 Update current value in updateRangeCurrentValue 2018-09-24 07:02:04 -05:00
Rob Garrison
ec16a0c1e0 Remove onblur, don't save invalid inputs 2018-09-24 07:02:04 -05:00
Rob Garrison
40f580a0b2 Change stored number value on change 2018-09-24 07:02:04 -05:00
Rob Garrison
5af74a9d80 Remove isNumber function 2018-09-24 07:02:04 -05:00
Rob Garrison
40a3abbee8 Fix isNumber function 2018-09-24 07:02:04 -05:00