Commit Graph

314 Commits

Author SHA1 Message Date
eight
25fd3a1c2b Fix: remove unused prop 2018-10-11 22:14:56 +08:00
eight
bdae1c3697 Change: simpler styleCodeEmpty 2018-10-11 20:00:25 +08:00
eight
bd4a453f45 Merge branch 'dev-usercss-meta' into dev-exclusions 2018-10-11 19:49:37 +08:00
eight
30e494eda9 Add: icon-util 2018-10-11 15:42:23 +08:00
eight
510a886e14 Fix: exposeIframes 2018-10-11 03:21:38 +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
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
dc5f3e209f Fix: settings could be empty on the first install 2018-10-04 19:34:36 +08:00
eight
56b737b65a Remove unused FIREFOX_NO_DOM_STORAGE 2018-10-04 18:14:57 +08:00
eight
10f9449144 Change: move setupLivePrefs to dom.js. Remove prefs.js dependencies 2018-10-04 17:46:45 +08:00
eight
dd2b8ed091 Fix: type error 2018-10-04 17:18:38 +08:00
eight
874a2da33e Enhance: make prefs use storage.sync 2018-10-04 17:04:23 +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
282bdf7706 Fix: numbers are not compared correctly 2018-10-03 20:24:06 +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
1f2d116aae Fix: use meta parser 2018-10-01 23:14:56 +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
79833d8bba Fix: a better way to draw list? 2018-09-26 11:40:04 +08:00
eight
d5ee31a080 Fix: a better way to draw character list? 2018-09-26 11:37:50 +08:00
eight
fefa987c4d Change: sections-equal -> sections-util 2018-09-26 10:37:28 +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
9713c6a3be Fix: throw an error for unparsable color 2018-09-25 21:56:38 +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
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