Commit Graph

192 Commits

Author SHA1 Message Date
eight
6494985b50 Fix: various 2018-10-10 16:14:51 +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
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
a38558ef78 WIP: make notifyAllTabs a noop 2018-10-08 15:30:39 +08:00
eight
582e9078af Fix: inject all scripts 2018-10-08 14:39:08 +08:00
eight
f4651da8d8 Drop deleteStyle 2018-10-07 23:41:46 +08:00
eight
02f471f077 Fix: usercss API 2018-10-07 23:28:41 +08:00
eight
057111b171 Update usercss API 2018-10-07 22:59:31 +08:00
eight
69cae02381 Drop getStyles 2018-10-07 21:40:29 +08:00
eight
c5d41529d9 Minor fixes 2018-10-07 21:28:51 +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
1c635b5bc1 Drop requestStyles 2018-10-06 17:47:43 +08:00
eight
75f2561154 Fix: don't recreate element when style update in popup 2018-10-06 16:38:04 +08:00
eight
583ca31d97 fixup! Add: isCodeEmpty 2018-10-06 15:40:07 +08:00
eight
1cf6008514 Add: isCodeEmpty 2018-10-06 15:33:18 +08:00
eight
450cd60aeb Fix: ignore comment block 2018-10-06 15:22:04 +08:00
eight
e594b8ccb1 Cache enabled state 2018-10-06 15:11:01 +08:00
eight
1f18b13a92 Add: match global sections 2018-10-06 13:48:46 +08:00
eight
fedf844ddd Add: getStylesInfoByUrl 2018-10-06 13:45:37 +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
bb1cb58024 WIP: msg.js 2018-10-06 03:10:04 +08:00
eight
2472e91f57 WIP: emitChangesToTabs 2018-10-05 21:28:19 +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
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
5cbe8a8d78
Add: fetch style object from DB directly in the editor (#507) 2018-10-02 20:22:18 +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
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
c0c5f1dbcc avoid overwriting existing usercss on saving a new one 2018-08-18 23:17:20 +03:00
tophf
406a7cd4c0 FF bug workaround: apply styles to more iframes 2018-08-09 21:22:26 +03:00
tophf
be94303bad simplify onInstalled 2018-08-06 18:20:57 +03:00
Rob Garrison
8a6011de8c Attempt to update icon count 2018-07-22 11:21:45 -05:00
Rob Garrison
4fcb1a88d7 Fix empty exclusion storage error 2018-07-22 11:21:45 -05:00
Rob Garrison
bfe54ab4c4 Add tab communication 2018-07-22 11:21:45 -05:00
Rob Garrison
e94c7edb38 Attempt to fix popup exclusion issues 2018-07-22 11:21:44 -05:00
Rob Garrison
2b4a1a5635 Modify input method 2018-07-22 11:21:44 -05:00
Rob Garrison
68dfa0153c Add style exclusions. Closes #113 2018-07-22 11:21:43 -05:00
tophf
15c3c7c8ab fixup 3418ac9c: explicitly set the optional parameter
fixes #423
2018-07-09 09:10:36 +03:00
tophf
0d7b8152e8 code cosmetics 2018-07-05 15:46:01 +03:00
tophf
d8b776bedf try installing from full code if 'sections' is empty in style json
fixes #414
2018-07-05 15:46:01 +03:00
tophf
d37b113d0d retry on HTTP status 429 "Too Many Requests" 2018-07-02 17:20:22 +03:00
tophf
711a3afeee logQueue can be empty 2018-05-24 21:09:00 +03:00