Commit Graph

546 Commits

Author SHA1 Message Date
eight
bd4a453f45 Merge branch 'dev-usercss-meta' into dev-exclusions 2018-10-11 19:49:37 +08:00
eight
fd5eeb4b81 Add: refresh on view 2018-10-11 19:00:05 +08:00
eight
c7f81662c4 Fix: autoCloseBrackets is true by default 2018-10-11 02:19:14 +08:00
eight
f3a103645d Fix: various 2018-10-11 02:11:14 +08:00
eight
ba64b95575 WIP: kill cachedStyles 2018-10-11 00:54:38 +08:00
eight
7eba890a21 Merge branch 'dev-private-prefs' into dev-exclusions 2018-10-10 23:15:14 +08:00
eight
d2b36a168e Kill hidden globals 2018-10-10 23:05:20 +08:00
eight
22d4767511 Fix: margin for deleted sections 2018-10-10 19:23:34 +08:00
eight
00687983f0 Fix: default value 2018-10-10 18:21:07 +08:00
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
4419c5dc1e Change: kill editors, styleId 2018-10-10 16:32:39 +08:00
eight
6494985b50 Fix: various 2018-10-10 16:14:51 +08:00
eight
37e1f43f75 Fix: minor 2018-10-10 15:04:03 +08:00
eight
d26ce3238e Add: codemirror-factory 2018-10-10 14:49:37 +08:00
eight
15a1f552f6 WIP: kill getSection 2018-10-10 12:08:35 +08:00
eight
ba6159e067 WIP: edit page 2018-10-10 02:43:09 +08:00
eight
fd9ab5d6e5 Fix: switch to editor 2018-10-10 00:41:07 +08:00
eight
06e22d0d18 Change: add sections-editor 2018-10-09 23:38:29 +08:00
eight
30e8662946 Add: preview error 2018-10-08 20:12:39 +08:00
eight
47b2b4fc49 Add: livePreview.show 2018-10-08 18:38:01 +08:00
eight
7b5e7c96d5 Hook up live preview 2018-10-08 18:16:45 +08:00
eight
15efafff3c Add: live preview 2018-10-08 17:49:57 +08:00
eight
057111b171 Update usercss API 2018-10-07 22:59:31 +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
34497ebe16 WIP: switch to API 2018-10-05 18:47:52 +08:00
eight
8a6e8ac03a Change: drop prefChanged, use prefs service 2018-10-04 18:05:41 +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
5cbe8a8d78
Add: fetch style object from DB directly in the editor (#507) 2018-10-02 20:22:18 +08:00
eight
9058c06c54 Fix: bad API 2018-10-01 23:24:29 +08:00
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
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
6909c73c69 Fix: minor 2018-09-26 12:16:33 +08:00
eight
2abbf670d8 Fix: check err.code 2018-09-26 10:37:14 +08:00
eight
29b8f51292 Fix: vars could be undefined 2018-09-25 23:21:44 +08:00
eight
3c30bc3eb0 Fix: try to get error message 2018-09-25 21:55:55 +08:00
tophf
c49f4dd11e don't hook auxiliary CMs
fixes #491
2018-09-03 20:54:25 +03:00
tophf
681176ce31 use showHelp.close when it's defined
fixes #485
2018-08-29 15:39:18 +03:00
tophf
2ac9a9db29 fix headerOnScroll 2018-08-24 14:31:29 +03:00
tophf
c0c5f1dbcc avoid overwriting existing usercss on saving a new one 2018-08-18 23:17:20 +03:00
tophf
adc165723c actually run restoreWindowScrollPos in a microtask 2018-08-16 18:09:50 +03:00
tophf
92d6530c8f simplify listener registration
since the function reference is constant, only one listener will be registered
2018-08-07 20:11:11 +03:00
tophf
eff0a7030c display only style name in the editor tab title
"Edit Style" was redundant and made the title unreadable when many tabs were opened.
"Add Style" is still displayed for the new styles.
2018-08-07 19:59:16 +03:00