e3d3604afc
* Squashed commit of the following: commitd84c4dc3fe
Author: eight <eight04@gmail.com> Date: Sun Oct 14 19:13:29 2018 +0800 Fix: remove unused comment commit46027120ec
Author: eight <eight04@gmail.com> Date: Sun Oct 14 19:09:06 2018 +0800 Add: handle styleUpdated message commitf85d4de39b
Author: eight <eight04@gmail.com> Date: Sun Oct 14 18:59:29 2018 +0800 Fix: handle styleAdded message in popup commit81f3e69574
Author: eight <eight04@gmail.com> Date: Sun Oct 14 18:50:54 2018 +0800 Change: getStylesInfoByUrl -> getStylesByUrl commitf9dc04558f
Author: eight <eight04@gmail.com> Date: Sun Oct 14 18:48:20 2018 +0800 Fix: drop getStylesInfo commitfea04d591f
Author: eight <eight04@gmail.com> Date: Sun Oct 14 18:39:28 2018 +0800 Fix: remove unused ignoreChromeError commit2aff14e213
Author: eight <eight04@gmail.com> Date: Sun Oct 14 18:09:53 2018 +0800 Fix: don't dup promisify in prefs commitd4ddfcc713
Author: eight <eight04@gmail.com> Date: Sun Oct 14 17:56:16 2018 +0800 Change: drop .last and .rotate commit85e70491e4
Author: eight <eight04@gmail.com> Date: Sun Oct 14 17:36:00 2018 +0800 Fix: unused renderIndex commit7acb131642
Author: eight <eight04@gmail.com> Date: Sun Oct 14 17:32:49 2018 +0800 Fix: update title on input commita39405ac4c
Author: eight <eight04@gmail.com> Date: Sun Oct 14 17:17:20 2018 +0800 Fix: remove unused messages commit14c2fdbb58
Author: eight <eight04@gmail.com> Date: Sun Oct 14 16:36:12 2018 +0800 Fix: dirty state for new added applies commitfb1b49b8bb
Author: eight <eight04@gmail.com> Date: Sun Oct 14 16:27:17 2018 +0800 Fix: minor commit2c2d849fa4
Author: eight <eight04@gmail.com> Date: Sun Oct 14 16:20:14 2018 +0800 Fix: drop unused getCode commitf133c3e67a
Author: eight <eight04@gmail.com> Date: Sun Oct 14 16:18:14 2018 +0800 Fix: drop unused lastActive commit05a6208f5c
Author: eight <eight04@gmail.com> Date: Sun Oct 14 16:17:45 2018 +0800 Fix: minor commit05a87ed00f
Author: eight <eight04@gmail.com> Date: Sun Oct 14 15:58:33 2018 +0800 Fix: minor commit576f73f333
Author: eight <eight04@gmail.com> Date: Sun Oct 14 03:03:35 2018 +0800 Fix: always register listeners commite93819deb4
Author: eight <eight04@gmail.com> Date: Sun Oct 14 02:58:49 2018 +0800 Fix: unused statement commit39b11685b4
Author: eight <eight04@gmail.com> Date: Sun Oct 14 02:54:29 2018 +0800 Fix: minor commit9dd3cd43c1
Author: eight <eight04@gmail.com> Date: Sun Oct 14 02:49:22 2018 +0800 Fix: don't reorder options commit90aadfd728
Author: eight <eight04@gmail.com> Date: Sun Oct 14 02:43:52 2018 +0800 Fix: drop __ERROR__ commit838c21e3b3
Author: eight <eight04@gmail.com> Date: Sun Oct 14 02:36:20 2018 +0800 Fix: use findStyle API commit93a4cdf595
Author: eight <eight04@gmail.com> Date: Sun Oct 14 02:34:05 2018 +0800 Add: findStyle API commit8e75871b9b
Author: eight <eight04@gmail.com> Date: Sun Oct 14 02:19:01 2018 +0800 Breaking: drop getStylesFallback commitad06551440
Author: eight <eight04@gmail.com> Date: Sun Oct 14 02:16:48 2018 +0800 Fix: use dataurl to inject page script commitcb5cbb4d10
Author: eight <eight04@gmail.com> Date: Sun Oct 14 01:39:50 2018 +0800 Fix: various commit53efd78b89
Author: eight <eight04@gmail.com> Date: Sun Oct 14 01:12:57 2018 +0800 Update doc commit7d005f3eaa
Author: eight <eight04@gmail.com> Date: Sun Oct 14 01:09:22 2018 +0800 Change: kill style.reason commitfc53bed3de
Author: eight <eight04@gmail.com> Date: Sun Oct 14 00:56:04 2018 +0800 Fix: doo many indents commit14e321d258
Author: eight <eight04@gmail.com> Date: Sun Oct 14 00:40:23 2018 +0800 Fix: don't update icon for popup and options commit01bdd529bc
Author: eight <eight04@gmail.com> Date: Sun Oct 14 00:39:17 2018 +0800 Fix: updateCount commitb9968830d3
Author: eight <eight04@gmail.com> Date: Sun Oct 14 00:38:49 2018 +0800 Fix: don't send null value commitff3bf6f52d
Author: eight <eight04@gmail.com> Date: Sun Oct 14 00:03:34 2018 +0800 Add: styleViaAPI updateCount commit39d21c3d29
Author: eight <eight04@gmail.com> Date: Sat Oct 13 23:57:45 2018 +0800 Fix: broadcastError -> ignoreError commitecb622c93c
Author: eight <eight04@gmail.com> Date: Sat Oct 13 21:29:06 2018 +0800 Fix: implement styleViaAPI commit7c3d49c005
Author: eight <eight04@gmail.com> Date: Sat Oct 13 17:50:28 2018 +0800 Fix: ROOT may change in XML pages commit3fd8d937f3
Author: eight <eight04@gmail.com> Date: Sat Oct 13 16:49:43 2018 +0800 Fix: various commit859afc8ee9
Author: eight <eight04@gmail.com> Date: Sat Oct 13 16:39:54 2018 +0800 Enhance: don't cache enabled state commitfbe77a8d15
Author: eight <eight04@gmail.com> Date: Sat Oct 13 16:15:07 2018 +0800 Fix: various commita4fc3e9162
Author: eight <eight04@gmail.com> Date: Sat Oct 13 16:11:38 2018 +0800 Fix: various commit7e0eddeb8f
Author: eight <eight04@gmail.com> Date: Sat Oct 13 15:58:31 2018 +0800 Fix: various commit8b4ab47d89
Author: eight <eight04@gmail.com> Date: Sat Oct 13 15:20:10 2018 +0800 Add: some type hint commit7d340d62dc
Author: eight <eight04@gmail.com> Date: Sat Oct 13 15:13:11 2018 +0800 Change: drop storage.js, some functions are moved to sections-util commitd286997d6a
Author: eight <eight04@gmail.com> Date: Sat Oct 13 15:12:00 2018 +0800 Fix: minor commitd60db9dbef
Author: eight <eight04@gmail.com> Date: Sat Oct 13 15:03:10 2018 +0800 Fix: minor commit43afa31fa0
Author: eight <eight04@gmail.com> Date: Sat Oct 13 14:50:31 2018 +0800 Fix: update tab icon on forward/backward commitf08faea149
Author: eight <eight04@gmail.com> Date: Sat Oct 13 13:50:03 2018 +0800 Fix: parallel import commit4d06435486
Author: eight <eight04@gmail.com> Date: Fri Oct 12 23:32:03 2018 +0800 Add: importStyle API commitc55675912e
Author: eight <eight04@gmail.com> Date: Fri Oct 12 23:14:46 2018 +0800 Fix: refactor import-export commit86ea846a89
Author: eight <eight04@gmail.com> Date: Fri Oct 12 17:34:36 2018 +0800 Fix: search db is broken commit831ca07c2d
Author: eight <eight04@gmail.com> Date: Fri Oct 12 17:29:35 2018 +0800 fixup! Add: implement sloppy regexp indicator commite67b7f4f36
Author: eight <eight04@gmail.com> Date: Fri Oct 12 17:27:19 2018 +0800 Add: implement sloppy regexp indicator commit36e13f88f0
Author: eight <eight04@gmail.com> Date: Fri Oct 12 16:59:23 2018 +0800 Add: return excluded/sloppy state in getStylesInfoByUrl commitf6ce78f55b
Author: eight <eight04@gmail.com> Date: Fri Oct 12 16:39:47 2018 +0800 Fix: dead object commit5ae95a1ad9
Author: eight <eight04@gmail.com> Date: Fri Oct 12 16:27:54 2018 +0800 Fix: don't reinit all editors on save commit1a5a206fe6
Author: eight <eight04@gmail.com> Date: Fri Oct 12 16:18:40 2018 +0800 Refactor: pull out sections editor section commit8016346035
Author: eight <eight04@gmail.com> Date: Fri Oct 12 15:30:35 2018 +0800 Fix: replaceStyle make style name undefined commitfa080d1913
Author: eight <eight04@gmail.com> Date: Fri Oct 12 15:21:36 2018 +0800 Fix: catch csp error commite0b064115d
Author: eight <eight04@gmail.com> Date: Fri Oct 12 15:03:00 2018 +0800 Fix: use a simple eval to execute page scripts commit405b7f8f06
Author: eight <eight04@gmail.com> Date: Fri Oct 12 03:48:13 2018 +0800 Fix: removed unused API commit1b2c88f926
Author: eight <eight04@gmail.com> Date: Fri Oct 12 03:46:51 2018 +0800 Fix: no need to access db commita8131fc9c5
Author: eight <eight04@gmail.com> Date: Fri Oct 12 03:43:31 2018 +0800 Fix: remove unused methods commit3ae0c4dd13
Author: eight <eight04@gmail.com> Date: Fri Oct 12 03:10:26 2018 +0800 Enhance: allow matcher to return verbose info commit0ea7ada48f
Author: eight <eight04@gmail.com> Date: Fri Oct 12 02:02:14 2018 +0800 Fix: content script may load before the background is ready commit04c2d6bbf6
Author: eight <eight04@gmail.com> Date: Fri Oct 12 01:49:52 2018 +0800 Fix: throw receiving end doesn't exist message commitf0c0bc4d6a
Author: eight <eight04@gmail.com> Date: Fri Oct 12 01:11:17 2018 +0800 Fix: unwrap error commit4d42765d6c
Author: eight <eight04@gmail.com> Date: Thu Oct 11 23:55:16 2018 +0800 fixup! Fix: match subdomain commit99626e4a48
Author: eight <eight04@gmail.com> Date: Thu Oct 11 23:54:58 2018 +0800 Fix: match subdomain commita57b3b2716
Author: eight <eight04@gmail.com> Date: Thu Oct 11 23:39:11 2018 +0800 Fix: firefox commit5cfea3933f
Author: eight <eight04@gmail.com> Date: Thu Oct 11 22:46:34 2018 +0800 Add some comment to db.js commit25fd3a1c2b
Author: eight <eight04@gmail.com> Date: Thu Oct 11 22:14:56 2018 +0800 Fix: remove unused prop commitbdae1c3697
Author: eight <eight04@gmail.com> Date: Thu Oct 11 20:00:25 2018 +0800 Change: simpler styleCodeEmpty commitbd4a453f45
Merge:c1bf9f5
9058c06
Author: eight <eight04@gmail.com> Date: Thu Oct 11 19:49:37 2018 +0800 Merge branch 'dev-usercss-meta' into dev-exclusions commitc1bf9f57e9
Author: eight <eight04@gmail.com> Date: Thu Oct 11 19:29:17 2018 +0800 Fix: minor commitfd5eeb4b81
Author: eight <eight04@gmail.com> Date: Thu Oct 11 19:00:05 2018 +0800 Add: refresh on view commit3e38810a49
Author: eight <eight04@gmail.com> Date: Thu Oct 11 18:13:24 2018 +0800 Fix: make sure icons are refreshed at startup commitc657d7e55c
Author: eight <eight04@gmail.com> Date: Thu Oct 11 17:32:27 2018 +0800 Add: implement bug 461 commit7ed39ab6ef
Author: eight <eight04@gmail.com> Date: Thu Oct 11 15:42:44 2018 +0800 fixup! Add: icon-util commit30e494eda9
Author: eight <eight04@gmail.com> Date: Thu Oct 11 15:42:23 2018 +0800 Add: icon-util commit510a886e14
Author: eight <eight04@gmail.com> Date: Thu Oct 11 03:21:38 2018 +0800 Fix: exposeIframes commitc7f81662c4
Author: eight <eight04@gmail.com> Date: Thu Oct 11 02:19:14 2018 +0800 Fix: autoCloseBrackets is true by default commitf3a103645d
Author: eight <eight04@gmail.com> Date: Thu Oct 11 02:11:14 2018 +0800 Fix: various commitd4436cde20
Author: eight <eight04@gmail.com> Date: Thu Oct 11 01:39:10 2018 +0800 Add: implement exposeIframe commit43db875fd8
Author: eight <eight04@gmail.com> Date: Thu Oct 11 01:26:24 2018 +0800 Kill more globals commitdc491e9be3
Author: eight <eight04@gmail.com> Date: Thu Oct 11 01:22:13 2018 +0800 Kill old storage, storage-dummy commitba64b95575
Author: eight <eight04@gmail.com> Date: Thu Oct 11 00:54:38 2018 +0800 WIP: kill cachedStyles commit7eba890a21
Merge:d2b36a1
81e4823
Author: eight <eight04@gmail.com> Date: Wed Oct 10 23:15:14 2018 +0800 Merge branch 'dev-private-prefs' into dev-exclusions commitd2b36a168e
Author: eight <eight04@gmail.com> Date: Wed Oct 10 23:05:20 2018 +0800 Kill hidden globals commit22d4767511
Author: eight <eight04@gmail.com> Date: Wed Oct 10 19:23:34 2018 +0800 Fix: margin for deleted sections commit00687983f0
Author: eight <eight04@gmail.com> Date: Wed Oct 10 18:21:07 2018 +0800 Fix: default value commitff6fd8cad3
Author: eight <eight04@gmail.com> Date: Wed Oct 10 18:02:51 2018 +0800 Fix: default options commitc23f315c52
Author: eight <eight04@gmail.com> Date: Wed Oct 10 17:40:07 2018 +0800 Refactor: use CodeMirror.defineOption commit4419c5dc1e
Author: eight <eight04@gmail.com> Date: Wed Oct 10 16:32:39 2018 +0800 Change: kill editors, styleId commit6494985b50
Author: eight <eight04@gmail.com> Date: Wed Oct 10 16:14:51 2018 +0800 Fix: various commit37e1f43f75
Author: eight <eight04@gmail.com> Date: Wed Oct 10 15:04:03 2018 +0800 Fix: minor commitd26ce3238e
Author: eight <eight04@gmail.com> Date: Wed Oct 10 14:49:37 2018 +0800 Add: codemirror-factory commit15a1f552f6
Author: eight <eight04@gmail.com> Date: Wed Oct 10 12:08:35 2018 +0800 WIP: kill getSection commitba6159e067
Author: eight <eight04@gmail.com> Date: Wed Oct 10 02:43:09 2018 +0800 WIP: edit page commitfd9ab5d6e5
Author: eight <eight04@gmail.com> Date: Wed Oct 10 00:41:07 2018 +0800 Fix: switch to editor commit06e22d0d18
Author: eight <eight04@gmail.com> Date: Tue Oct 9 23:38:29 2018 +0800 Change: add sections-editor commit30e8662946
Author: eight <eight04@gmail.com> Date: Mon Oct 8 20:12:39 2018 +0800 Add: preview error commit47b2b4fc49
Author: eight <eight04@gmail.com> Date: Mon Oct 8 18:38:01 2018 +0800 Add: livePreview.show commit7b5e7c96d5
Author: eight <eight04@gmail.com> Date: Mon Oct 8 18:16:45 2018 +0800 Hook up live preview commit15efafff3c
Author: eight <eight04@gmail.com> Date: Mon Oct 8 17:49:57 2018 +0800 Add: live preview commita38558ef78
Author: eight <eight04@gmail.com> Date: Mon Oct 8 15:30:39 2018 +0800 WIP: make notifyAllTabs a noop commit582e9078af
Author: eight <eight04@gmail.com> Date: Mon Oct 8 14:39:08 2018 +0800 Fix: inject all scripts commitf4651da8d8
Author: eight <eight04@gmail.com> Date: Sun Oct 7 23:41:46 2018 +0800 Drop deleteStyle commit0489fb3b2f
Author: eight <eight04@gmail.com> Date: Sun Oct 7 23:33:51 2018 +0800 Drop saveStyle commit02f471f077
Author: eight <eight04@gmail.com> Date: Sun Oct 7 23:28:41 2018 +0800 Fix: usercss API commit057111b171
Author: eight <eight04@gmail.com> Date: Sun Oct 7 22:59:31 2018 +0800 Update usercss API commit69cae02381
Author: eight <eight04@gmail.com> Date: Sun Oct 7 21:40:29 2018 +0800 Drop getStyles commitc5d41529d9
Author: eight <eight04@gmail.com> Date: Sun Oct 7 21:28:51 2018 +0800 Minor fixes commit5b3b4e680f
Author: eight <eight04@gmail.com> Date: Sun Oct 7 21:20:39 2018 +0800 Add: navigator-util commitb5107b78a5
Author: eight <eight04@gmail.com> Date: Sun Oct 7 01:42:43 2018 +0800 Add: broadcast messages with reasons commite7ef4948cd
Author: eight <eight04@gmail.com> Date: Sat Oct 6 18:10:47 2018 +0800 Fix: observer is unavailable? commit1c635b5bc1
Author: eight <eight04@gmail.com> Date: Sat Oct 6 17:47:43 2018 +0800 Drop requestStyles commit75f2561154
Author: eight <eight04@gmail.com> Date: Sat Oct 6 16:38:04 2018 +0800 Fix: don't recreate element when style update in popup commit583ca31d97
Author: eight <eight04@gmail.com> Date: Sat Oct 6 15:40:07 2018 +0800 fixup! Add: isCodeEmpty commit1cf6008514
Author: eight <eight04@gmail.com> Date: Sat Oct 6 15:33:18 2018 +0800 Add: isCodeEmpty commit450cd60aeb
Author: eight <eight04@gmail.com> Date: Sat Oct 6 15:22:04 2018 +0800 Fix: ignore comment block commit196b6aac63
Author: eight <eight04@gmail.com> Date: Sat Oct 6 15:16:00 2018 +0800 Fix: the return value of getSectionsByUrl is changed commit3122d28c1a
Author: eight <eight04@gmail.com> Date: Sat Oct 6 15:14:05 2018 +0800 Fix: always use promise in API call commite594b8ccb1
Author: eight <eight04@gmail.com> Date: Sat Oct 6 15:11:01 2018 +0800 Cache enabled state commit1f18b13a92
Author: eight <eight04@gmail.com> Date: Sat Oct 6 13:48:46 2018 +0800 Add: match global sections commitfedf844ddd
Author: eight <eight04@gmail.com> Date: Sat Oct 6 13:45:37 2018 +0800 Add: getStylesInfoByUrl commit095998f07c
Author: eight <eight04@gmail.com> Date: Sat Oct 6 13:27:58 2018 +0800 Change: switch to msg.js commitfa3127d988
Author: eight <eight04@gmail.com> Date: Sat Oct 6 13:02:45 2018 +0800 Change: switch to msg.js commit05d582c726
Author: eight <eight04@gmail.com> Date: Sat Oct 6 11:43:42 2018 +0800 Add: msg.sendBg commit171339f710
Author: eight <eight04@gmail.com> Date: Sat Oct 6 04:39:48 2018 +0800 WIP: drop api.js commit3a618aca2a
Author: eight <eight04@gmail.com> Date: Sat Oct 6 03:19:51 2018 +0800 WIP: use deepCopy commitbb1cb58024
Author: eight <eight04@gmail.com> Date: Sat Oct 6 03:10:04 2018 +0800 WIP: msg.js commit2472e91f57
Author: eight <eight04@gmail.com> Date: Fri Oct 5 21:28:19 2018 +0800 WIP: emitChangesToTabs commit34497ebe16
Author: eight <eight04@gmail.com> Date: Fri Oct 5 18:47:52 2018 +0800 WIP: switch to API commitf1639cc33e
Author: eight <eight04@gmail.com> Date: Fri Oct 5 01:03:40 2018 +0800 WIP: broadcastMessage commit81e4823f46
Author: eight <eight04@gmail.com> Date: Thu Oct 4 19:39:59 2018 +0800 Debounce updateAllTabsIcon commitdc5f3e209f
Author: eight <eight04@gmail.com> Date: Thu Oct 4 19:34:36 2018 +0800 Fix: settings could be empty on the first install commit2328cf623a
Author: eight <eight04@gmail.com> Date: Thu Oct 4 19:34:22 2018 +0800 Change: start-firefox -> start commit7be6a1cba9
Author: eight <eight04@gmail.com> Date: Thu Oct 4 19:24:35 2018 +0800 Add: applications commit630725196f
Author: eight <eight04@gmail.com> Date: Thu Oct 4 19:22:44 2018 +0800 fixup! Fix: update all icons when some prefs changed commit0d0e1b4dc0
Author: eight <eight04@gmail.com> Date: Thu Oct 4 19:20:36 2018 +0800 Fix: update all icons when some prefs changed commit5c0288e9ba
Author: eight <eight04@gmail.com> Date: Thu Oct 4 19:20:11 2018 +0800 fixup! Remove unused FIREFOX_NO_DOM_STORAGE commit56b737b65a
Author: eight <eight04@gmail.com> Date: Thu Oct 4 18:14:57 2018 +0800 Remove unused FIREFOX_NO_DOM_STORAGE commit829a134ed1
Author: eight <eight04@gmail.com> Date: Thu Oct 4 18:10:53 2018 +0800 Fix: this -> prefs commitd35f92250e
Author: eight <eight04@gmail.com> Date: Thu Oct 4 18:08:19 2018 +0800 Fixme: styleViaAPI commit8a6e8ac03a
Author: eight <eight04@gmail.com> Date: Thu Oct 4 18:05:41 2018 +0800 Change: drop prefChanged, use prefs service commit10f9449144
Author: eight <eight04@gmail.com> Date: Thu Oct 4 17:46:45 2018 +0800 Change: move setupLivePrefs to dom.js. Remove prefs.js dependencies commitdd2b8ed091
Author: eight <eight04@gmail.com> Date: Thu Oct 4 17:18:38 2018 +0800 Fix: type error commit3af310c341
Author: eight <eight04@gmail.com> Date: Thu Oct 4 17:09:26 2018 +0800 Fix: open-manager has no default value commit874a2da33e
Author: eight <eight04@gmail.com> Date: Thu Oct 4 17:04:23 2018 +0800 Enhance: make prefs use storage.sync commitc01f93f62c
Author: eight <eight04@gmail.com> Date: Thu Oct 4 15:57:02 2018 +0800 WIP commit6d32ffb76b
Author: eight <eight04@gmail.com> Date: Thu Oct 4 12:46:19 2018 +0800 WIP commit0f148eac32
Author: eight <eight04@gmail.com> Date: Thu Oct 4 03:35:07 2018 +0800 WIP commit282bdf7706
Author: eight <eight04@gmail.com> Date: Wed Oct 3 20:24:06 2018 +0800 Fix: numbers are not compared correctly commit24b1eea8a4
Merge:8a6011d
5cbe8a8
Author: eight <eight04@gmail.com> Date: Wed Oct 3 15:00:07 2018 +0800 Merge branch 'master' of https://github.com/openstyles/stylus into dev-exclusions commit5cbe8a8d78
Author: eight <eight04@gmail.com> Date: Tue Oct 2 20:22:18 2018 +0800 Add: fetch style object from DB directly in the editor (#507) commit9058c06c54
Author: eight <eight04@gmail.com> Date: Mon Oct 1 23:24:29 2018 +0800 Fix: bad API commit1f2d116aae
Author: eight <eight04@gmail.com> Date: Mon Oct 1 23:14:56 2018 +0800 Fix: use meta parser commit918e47b1ed
Author: eight <eight04@gmail.com> Date: Mon Oct 1 23:01:21 2018 +0800 Fix: emit update event if no fatal errors commit81a7bb9ac9
Author: eight <eight04@gmail.com> Date: Mon Oct 1 22:56:25 2018 +0800 Add: editorWorker.metalint commitf47d57aea8
Author: eight <eight04@gmail.com> Date: Mon Oct 1 22:49:16 2018 +0800 Change: use editorWorker.metalint commit5778d5c858
Author: eight <eight04@gmail.com> Date: Mon Oct 1 22:39:01 2018 +0800 Change: editor-worker-body -> editor-worker commit268e1716b4
Author: eight <eight04@gmail.com> Date: Mon Oct 1 22:38:06 2018 +0800 Change: switch to worker-util commitcc2980b647
Author: eight <eight04@gmail.com> Date: Mon Oct 1 22:30:16 2018 +0800 Drop: parserlib-loader commit08adcb60f2
Merge:6909c73
2fd531e
Author: eight <eight04@gmail.com> Date: Mon Oct 1 22:29:39 2018 +0800 Merge branch 'master' into dev-usercss-meta commite4135ce35d
Author: eight <eight04@gmail.com> Date: Fri Sep 28 11:57:34 2018 +0800 Fix: remove unused function commit39a6d1909f
Author: eight <eight04@gmail.com> Date: Fri Sep 28 00:26:29 2018 +0800 Fix: prefs doesn't work in FF's private windows. Add web-ext. Drop prefs.readOnlyValues commit6909c73c69
Author: eight <eight04@gmail.com> Date: Wed Sep 26 12:16:33 2018 +0800 Fix: minor commit79833d8bba
Author: eight <eight04@gmail.com> Date: Wed Sep 26 11:40:04 2018 +0800 Fix: a better way to draw list? commita849fd6dda
Author: eight <eight04@gmail.com> Date: Wed Sep 26 11:39:53 2018 +0800 Fix: missing placeholders commitd5ee31a080
Author: eight <eight04@gmail.com> Date: Wed Sep 26 11:37:50 2018 +0800 Fix: a better way to draw character list? commit7b959af3e3
Author: eight <eight04@gmail.com> Date: Wed Sep 26 11:30:10 2018 +0800 Update usercss-meta commitfefa987c4d
Author: eight <eight04@gmail.com> Date: Wed Sep 26 10:37:28 2018 +0800 Change: sections-equal -> sections-util commit2abbf670d8
Author: eight <eight04@gmail.com> Date: Wed Sep 26 10:37:14 2018 +0800 Fix: check err.code commit1fe0586b29
Author: eight <eight04@gmail.com> Date: Wed Sep 26 10:33:02 2018 +0800 Add: i18n error message commitab0ef239cf
Author: eight <eight04@gmail.com> Date: Wed Sep 26 09:34:57 2018 +0800 Change: move styleCodeEmpty to sections-util, load colorConverter in background worker commitd5ade807f0
Author: eight <eight04@gmail.com> Date: Wed Sep 26 09:27:30 2018 +0800 Fix: display error message commit4f5337e51d
Author: eight <eight04@gmail.com> Date: Wed Sep 26 09:26:55 2018 +0800 Fix: remove unused colorconverter commit29b8f51292
Author: eight <eight04@gmail.com> Date: Tue Sep 25 23:21:44 2018 +0800 Fix: vars could be undefined commita7cfeb22e4
Author: eight <eight04@gmail.com> Date: Tue Sep 25 22:54:40 2018 +0800 Fix: window is undefined commit9713c6a3be
Author: eight <eight04@gmail.com> Date: Tue Sep 25 21:56:38 2018 +0800 Fix: throw an error for unparsable color commit3c30bc3eb0
Author: eight <eight04@gmail.com> Date: Tue Sep 25 21:55:55 2018 +0800 Fix: try to get error message commit3d32b0428b
Author: eight <eight04@gmail.com> Date: Tue Sep 25 21:38:40 2018 +0800 Fix: vars might be empty commit7d75dd8754
Author: eight <eight04@gmail.com> Date: Tue Sep 25 21:18:39 2018 +0800 Add: meta-parser commita4df641b96
Author: eight <eight04@gmail.com> Date: Tue Sep 25 21:18:18 2018 +0800 Enhance: set flag in parserlib so we don't need another loader commit8028a3529f
Author: eight <eight04@gmail.com> Date: Tue Sep 25 21:17:40 2018 +0800 Include util, worker-util in background commitba5d6cc31a
Author: eight <eight04@gmail.com> Date: Tue Sep 25 21:16:59 2018 +0800 Fix: use spread syntax in loadScript commitb853be13f8
Author: eight <eight04@gmail.com> Date: Tue Sep 25 21:14:46 2018 +0800 Enhance: swith to usercss-meta (in worker) commita3e7915199
Author: eight <eight04@gmail.com> Date: Tue Sep 25 21:11:54 2018 +0800 Fix: use promise API commit5d07a8cd4e
Author: eight <eight04@gmail.com> Date: Tue Sep 25 21:11:09 2018 +0800 Fix: buildMeta now returns a promise commita004bc3c7d
Author: eight <eight04@gmail.com> Date: Tue Sep 25 21:10:35 2018 +0800 Move styleCodeEmpty to util commit41ac66a137
Author: eight <eight04@gmail.com> Date: Tue Sep 25 21:09:40 2018 +0800 Add: background worker commitffb13bf1db
Author: eight <eight04@gmail.com> Date: Tue Sep 25 21:09:04 2018 +0800 Enhance: move moz-parser/meta-parser/usercss compiler to worker commit42e97ef153
Author: eight <eight04@gmail.com> Date: Tue Sep 25 20:45:07 2018 +0800 Fix: display error on install page commit64aa9fcf53
Author: eight <eight04@gmail.com> Date: Tue Sep 25 17:34:54 2018 +0800 Add: background worker commitb0e407e98f
Author: eight <eight04@gmail.com> Date: Tue Sep 25 14:52:35 2018 +0800 Add: worker util commit7a24547e09
Author: eight <eight04@gmail.com> Date: Tue Sep 25 00:01:18 2018 +0800 Add: usercss-meta commit8a6011de8c
Author: Rob Garrison <wowmotty@gmail.com> Date: Sun Jul 22 09:15:09 2018 -0500 Attempt to update icon count commit4fcb1a88d7
Author: Rob Garrison <wowmotty@gmail.com> Date: Sun Jul 15 13:44:29 2018 -0500 Fix empty exclusion storage error commitbfe54ab4c4
Author: Rob Garrison <wowmotty@gmail.com> Date: Sun Jul 15 12:59:51 2018 -0500 Add tab communication commit983a7bc219
Author: Rob Garrison <wowmotty@gmail.com> Date: Sun Jul 15 10:51:11 2018 -0500 Fix escaped regex example commit3950482f34
Author: Rob Garrison <wowmotty@gmail.com> Date: Wed Apr 25 18:11:37 2018 -0500 Fix undefined error commite94c7edb38
Author: Rob Garrison <wowmotty@gmail.com> Date: Wed Apr 25 17:09:45 2018 -0500 Attempt to fix popup exclusion issues commit2b4a1a5635
Author: Rob Garrison <wowmotty@gmail.com> Date: Thu Apr 19 13:00:27 2018 -0500 Modify input method commit9f75b69cd8
Author: Rob Garrison <wowmotty@gmail.com> Date: Wed Mar 7 11:54:05 2018 -0600 Include iframe urls in exclusion popup commit68dfa0153c
Author: Rob Garrison <wowmotty@gmail.com> Date: Wed Jan 24 19:42:02 2018 -0600 Add style exclusions. Closes #113 * Revert: exclusions * Fix: pass eslint * Fix: the style is injected twice * Fix: don't load script async * Fix: styleCodeEmpty returns true for empty string * Fix: drop array selection * Fix: the config dialog is broken * Fix: popup doesn't use getStyle/getStylesByUrl correctly * Fix: keep disabled state in setStyleContent * Fix: allow live-preview to assign newest vars * Fix: transition fix is broken because setStyleContent becomes async * Fix: typo, TypeError in styleExists * Fix: use new API * Fix: pass linter * Fix: LICENCE -> LICENSE * Fix: remove unused distroy function
504 lines
24 KiB
HTML
504 lines
24 KiB
HTML
<html id="stylus">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<link href="global.css" rel="stylesheet">
|
|
<link href="edit/edit.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="msgbox/msgbox.css">
|
|
|
|
<style id="firefox-transitions-bug-suppressor">
|
|
/* restrict to FF */
|
|
@supports (-moz-appearance:none) {
|
|
/* increased specificity to override sane selectors in user styles */
|
|
html#stylus.firefox #stylus-edit #header *,
|
|
html#stylus.firefox #stylus-edit #sections * {
|
|
transition: none !important;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<link href="vendor/codemirror/lib/codemirror.css" rel="stylesheet">
|
|
<script src="vendor/codemirror/lib/codemirror.js"></script>
|
|
|
|
<script src="vendor/codemirror/mode/css/css.js"></script>
|
|
|
|
<link href="vendor/codemirror/addon/dialog/dialog.css" rel="stylesheet">
|
|
<script src="vendor/codemirror/addon/dialog/dialog.js"></script>
|
|
|
|
<script src="vendor/codemirror/addon/edit/closebrackets.js"></script>
|
|
|
|
<link href="vendor/codemirror/addon/search/matchesonscrollbar.css" rel="stylesheet">
|
|
<script src="vendor/codemirror/addon/search/matchesonscrollbar.js"></script>
|
|
<script src="vendor/codemirror/addon/scroll/annotatescrollbar.js"></script>
|
|
<script src="vendor/codemirror/addon/search/match-highlighter.js"></script>
|
|
<script src="vendor/codemirror/addon/search/searchcursor.js"></script>
|
|
|
|
<script src="vendor/codemirror/addon/comment/comment.js"></script>
|
|
<script src="vendor/codemirror/addon/selection/active-line.js"></script>
|
|
<script src="vendor/codemirror/addon/edit/matchbrackets.js"></script>
|
|
|
|
<link href="vendor/codemirror/addon/fold/foldgutter.css" rel="stylesheet" />
|
|
<script src="vendor/codemirror/addon/fold/foldcode.js"></script>
|
|
<script src="vendor/codemirror/addon/fold/foldgutter.js"></script>
|
|
<script src="vendor/codemirror/addon/fold/brace-fold.js"></script>
|
|
<script src="vendor/codemirror/addon/fold/indent-fold.js"></script>
|
|
<script src="vendor/codemirror/addon/fold/comment-fold.js"></script>
|
|
|
|
<link href="vendor/codemirror/addon/lint/lint.css" rel="stylesheet" />
|
|
<script src="vendor/codemirror/addon/lint/lint.js"></script>
|
|
|
|
|
|
<link href="vendor/codemirror/addon/hint/show-hint.css" rel="stylesheet" />
|
|
<script src="vendor/codemirror/addon/hint/show-hint.js"></script>
|
|
<script src="vendor/codemirror/addon/hint/css-hint.js"></script>
|
|
|
|
<script src="vendor/codemirror/keymap/sublime.js"></script>
|
|
<script src="vendor/codemirror/keymap/emacs.js"></script>
|
|
<script src="vendor/codemirror/keymap/vim.js"></script>
|
|
|
|
<link href="vendor-overwrites/colorpicker/colorpicker.css" rel="stylesheet">
|
|
<script src="vendor-overwrites/colorpicker/colorconverter.js"></script>
|
|
<script src="vendor-overwrites/colorpicker/colorpicker.js"></script>
|
|
<script src="vendor-overwrites/colorpicker/colorview.js"></script>
|
|
|
|
<script src="js/promisify.js"></script>
|
|
<script src="js/dom.js"></script>
|
|
<script src="js/messaging.js"></script>
|
|
<script src="js/prefs.js"></script>
|
|
<script src="js/localization.js"></script>
|
|
<script src="js/script-loader.js"></script>
|
|
<script src="js/storage-util.js"></script>
|
|
<script src="js/msg.js"></script>
|
|
<script src="js/worker-util.js"></script>
|
|
|
|
<script src="content/apply.js"></script>
|
|
|
|
<link href="edit/global-search.css" rel="stylesheet">
|
|
<script src="edit/global-search.js"></script>
|
|
|
|
<script src="edit/match-highlighter-helper.js"></script>
|
|
|
|
<link href="edit/codemirror-default.css" rel="stylesheet">
|
|
<script src="edit/codemirror-default.js"></script>
|
|
|
|
<script src="edit/util.js"></script>
|
|
<script src="edit/regexp-tester.js"></script>
|
|
<script src="edit/live-preview.js"></script>
|
|
<script src="edit/applies-to-line-widget.js"></script>
|
|
<script src="edit/reroute-hotkeys.js"></script>
|
|
<script src="edit/codemirror-factory.js"></script>
|
|
<script src="edit/colorpicker-helper.js"></script>
|
|
<script src="edit/beautify.js"></script>
|
|
<script src="edit/show-keymap-help.js"></script>
|
|
<script src="edit/refresh-on-view.js"></script>
|
|
|
|
<script src="edit/source-editor.js"></script>
|
|
<script src="edit/sections-editor-section.js"></script>
|
|
<script src="edit/sections-editor.js"></script>
|
|
|
|
<script src="edit/edit.js"></script>
|
|
|
|
<script src="msgbox/msgbox.js" async></script>
|
|
|
|
<script src="edit/linter.js"></script>
|
|
<script src="edit/linter-defaults.js"></script>
|
|
<script src="edit/linter-engines.js"></script>
|
|
<script src="edit/linter-meta.js"></script>
|
|
<script src="edit/linter-help-dialog.js"></script>
|
|
<script src="edit/linter-report.js"></script>
|
|
<script src="edit/linter-config-dialog.js"></script>
|
|
|
|
<link id="cm-theme" rel="stylesheet">
|
|
|
|
<template data-id="appliesTo">
|
|
<li class="applies-to-item">
|
|
<div class="select-resizer">
|
|
<select name="applies-type" class="applies-type style-contributor">
|
|
<option value="url" i18n-text="appliesUrlOption"></option>
|
|
<option value="url-prefix" i18n-text="appliesUrlPrefixOption"></option>
|
|
<option value="domain" i18n-text="appliesDomainOption"></option>
|
|
<option value="regexp" i18n-text="appliesRegexpOption"></option>
|
|
</select>
|
|
<svg class="svg-icon select-arrow"><use xlink:href="#svg-icon-select-arrow"/></svg>
|
|
</div>
|
|
<div class="applies-value-wrapper">
|
|
<input name="applies-value" class="applies-value style-contributor" spellcheck="false">
|
|
<a class="remove-applies-to" href="#" i18n-text="appliesRemove" i18n-title="appliesRemove">
|
|
<svg class="svg-icon remove"><use xlink:href="#svg-icon-minus"/></svg>
|
|
</a>
|
|
<a class="add-applies-to" href="#" i18n-text="appliesAdd" i18n-title="appliesAdd">
|
|
<svg class="svg-icon add"><use xlink:href="#svg-icon-plus"/></svg>
|
|
</a>
|
|
</div>
|
|
</li>
|
|
</template>
|
|
|
|
<template data-id="appliesToEverything">
|
|
<li class="applies-to-everything" i18n-text="appliesToEverything">
|
|
<a class="add-applies-to" i18n-text="appliesAdd" i18n-title="appliesAdd" href="#">
|
|
<svg class="svg-icon add"><use xlink:href="#svg-icon-plus"/></svg>
|
|
</a>
|
|
</li>
|
|
</template>
|
|
|
|
<template data-id="section">
|
|
<div class="section">
|
|
<!-- not using DIV to make our CSS work for #sections > div:only-of-type .remove-section -->
|
|
<p class="deleted-section">
|
|
<button class="restore-section" i18n-text="sectionRestore"></button>
|
|
</p>
|
|
<label i18n-text="sectionCode" class="code-label"></label>
|
|
<div class="applies-to">
|
|
<label i18n-text="appliesLabel">
|
|
<a href="#" class="svg-inline-wrapper applies-to-help" tabindex="0">
|
|
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
|
|
</a>
|
|
</label>
|
|
<ul class="applies-to-list"></ul>
|
|
</div>
|
|
<div class="edit-actions">
|
|
<button class="remove-section" i18n-text="sectionRemove"></button>
|
|
<button class="add-section" i18n-long-text="sectionAdd" i18n-short-text="genericAdd"></button>
|
|
<button class="clone-section" i18n-text="genericClone"></button>
|
|
<button class="move-section-up"></button>
|
|
<button class="move-section-down"></button>
|
|
<button class="beautify-section" i18n-text="styleBeautify"></button>
|
|
<button class="test-regexp" i18n-text="styleRegexpTestButton"></button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<template data-id="searchReplaceDialog">
|
|
<div id="search-replace-dialog">
|
|
<div data-type="main">
|
|
<div data-type="content"></div>
|
|
<div data-type="actions">
|
|
<a data-action="case" i18n-title="searchCaseSensitive" href="#" tabindex="0">Aa</a>
|
|
<a data-action="prev" i18n-title="genericPrevious" href="#" data-hotkey-tooltip="findPrev" tabindex="0">
|
|
<svg class="svg-icon" style="transform: rotate(180deg)"><use xlink:href="#svg-icon-v"/></svg>
|
|
</a>
|
|
<a data-action="next" i18n-title="genericNext" href="#" data-hotkey-tooltip="findNext" tabindex="0">
|
|
<svg class="svg-icon"><use xlink:href="#svg-icon-v"/></svg>
|
|
</a>
|
|
<a data-action="close" i18n-title="confirmClose" href="#" data-hotkey-tooltip="=Esc" tabindex="0">
|
|
<svg class="svg-icon dismiss"><use xlink:href="#svg-icon-close"/></svg>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div data-type="status">
|
|
<div class="CodeMirror-search-hint" i18n-text="searchRegexp"></div>
|
|
<div data-type="tally" i18n-title="searchNumberOfResults"></div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<template data-id="clearSearch">
|
|
<div data-type="hover" i18n-title="confirmDelete">
|
|
<svg data-action="clear" class="svg-icon"><use xlink:href="#svg-icon-close"></use></svg>
|
|
</div>
|
|
</template>
|
|
|
|
<template data-id="find">
|
|
<div data-type="content">
|
|
<div data-type="input-wrapper">
|
|
<textarea class="CodeMirror-search-field" rows="1" spellcheck="false" required
|
|
i18n-placeholder="search"></textarea>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<template data-id="replace">
|
|
<div data-type="content">
|
|
<div data-type="input-wrapper">
|
|
<textarea data-type="replace-from"
|
|
i18n-placeholder="replace"
|
|
class="CodeMirror-search-field" rows="1" required
|
|
spellcheck="false"></textarea>
|
|
</div>
|
|
<div data-type="input-wrapper">
|
|
<textarea data-type="replace-to"
|
|
i18n-placeholder="replaceWith"
|
|
class="CodeMirror-search-field" rows="1" required
|
|
spellcheck="false"></textarea>
|
|
</div>
|
|
<button data-action="replace" i18n-text="replace" disabled></button>
|
|
<button data-action="replaceAll" i18n-text="replaceAll" disabled></button>
|
|
<button data-action="undo" i18n-text="undo" disabled></button>
|
|
<!--
|
|
Using a separate set of buttons because
|
|
1. FF can display tooltips only when specified on the <button>, ignores the nested <title> in <svg>
|
|
2. the icon doesn't fill the entire button area so tooltips aren't shown when the edges are hovered
|
|
-->
|
|
<button class="hidden" data-action="replace" i18n-title="replace" disabled>
|
|
<svg class="svg-icon" viewBox="0 0 20 20">
|
|
<polygon points="15.83 4.75 8.76 11.82 5.2 8.26 3.51 9.95 8.76 15.19 17.52 6.43 15.83 4.75"/>
|
|
</svg>
|
|
</button>
|
|
<button class="hidden" data-action="replaceAll" i18n-title="replaceAll" disabled>
|
|
<svg class="svg-icon" viewBox="0 0 20 20">
|
|
<polygon points="15.8,1.8 8.8,8.8 5.2,5.3 3.5,6.9 8.8,12.2 17.5,3.4 "/>
|
|
<polygon points="15.8,7.8 8.8,14.8 5.2,11.3 3.5,12.9 8.8,18.2 17.5,9.4 "/>
|
|
</svg>
|
|
</button>
|
|
<button class="hidden" data-action="undo" i18n-title="undo" disabled>
|
|
<svg class="svg-icon" viewBox="0 0 20 20">
|
|
<path d="M11.3,5.5H8.7V1.4L1.9,6.5l6.8,5.1V7.5h2.6c1.8,0,3.2,1.4,3.2,3.2s-1.4,3.2-3.2,3.2H7.8v2h3.5c2.9,0,5.2-2.3,5.2-5.2S14.2,5.5,11.3,5.5z"/>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
</template>
|
|
|
|
<template data-id="jumpToLine">
|
|
<span i18n-text="editGotoLine">: <input class="CodeMirror-jump-field" type="text"></span>
|
|
</template>
|
|
|
|
<template data-id="regexpTestPartial">
|
|
<a target="_blank" href="https://github.com/stylish-userstyles/stylish/wiki/Applying-styles-to-specific-sites#advanced-matching-with-regular-expressions"><svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg></a>
|
|
</template>
|
|
|
|
<template data-id="resizeGrip">
|
|
<div class="resize-grip" i18n-title="cm_resizeGripHint"></div>
|
|
</template>
|
|
|
|
<template data-id="keymapHelp">
|
|
<table class="keymap-list">
|
|
<thead>
|
|
<tr>
|
|
<th><input i18n-placeholder="helpKeyMapHotkey" type="search" class="can-close-on-esc"></th>
|
|
<th><input i18n-placeholder="helpKeyMapCommand" type="search" class="can-close-on-esc" spellcheck="false"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</template>
|
|
</head>
|
|
|
|
<body id="stylus-edit">
|
|
<div id="header">
|
|
<h1 id="heading"> </h1> <!-- nbsp allocates the actual height which prevents page shift -->
|
|
<section id="basic-info">
|
|
<div id="basic-info-name">
|
|
<input id="name" class="style-contributor" spellcheck="false" required>
|
|
<a id="url" target="_blank"><svg class="svg-icon"><use xlink:href="#svg-icon-external-link"/></svg></a>
|
|
</div>
|
|
<div id="basic-info-enabled">
|
|
<label id="enabled-label"
|
|
i18n-text="styleEnabledLabel"
|
|
i18n-title="toggleStyle"
|
|
data-hotkey-tooltip="toggleStyle">
|
|
<input type="checkbox" id="enabled" class="style-contributor">
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
</label>
|
|
<label id="preview-label" i18n-text="previewLabel" i18n-title="previewTooltip" class="hidden">
|
|
<input type="checkbox" id="editor.livePreview">
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
</label>
|
|
<span id="preview-errors" class="hidden">!</span>
|
|
</div>
|
|
</section>
|
|
<section id="actions">
|
|
<div>
|
|
<button id="save-button" i18n-text="styleSaveLabel" data-hotkey-tooltip="save"></button>
|
|
<button id="beautify" i18n-text="styleBeautify"></button>
|
|
<a href="manage.html" tabindex="-1"><button id="cancel-button" i18n-text="styleCancelEditLabel"></button></a>
|
|
</div>
|
|
<div id="mozilla-format-container">
|
|
<h2 id="mozilla-format-heading" i18n-text="styleMozillaFormatHeading">
|
|
<a id="to-mozilla-help" class="svg-inline-wrapper" href="#" tabindex="0">
|
|
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
|
|
</a>
|
|
</h2>
|
|
<div id="mozilla-format-buttons">
|
|
<button id="from-mozilla" i18n-text="importLabel"></button>
|
|
<button id="to-mozilla" i18n-text="exportLabel"></button>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<details id="options" data-pref="editor.options.expanded">
|
|
<summary><h2 id="options-heading" i18n-text="optionsHeading"></h2></summary>
|
|
<div id="options-wrapper">
|
|
<div class="options-column">
|
|
<div class="option">
|
|
<label id="lineWrapping-label" i18n-text="cm_lineWrapping">
|
|
<input id="editor.lineWrapping" type="checkbox">
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
</label>
|
|
</div>
|
|
<div class="option">
|
|
<label id="smartIndent-label" i18n-text="cm_smartIndent">
|
|
<input id="editor.smartIndent" type="checkbox">
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
</label>
|
|
</div>
|
|
<div class="option">
|
|
<label id="indentWithTabs-label" i18n-text="cm_indentWithTabs">
|
|
<input id="editor.indentWithTabs" type="checkbox">
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
</label>
|
|
</div>
|
|
<div class="option">
|
|
<label i18n-text="cm_autoCloseBrackets" i18n-title="cm_autoCloseBracketsTooltip">
|
|
<input id="editor.autoCloseBrackets" type="checkbox">
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
</label>
|
|
</div>
|
|
<div class="option">
|
|
<label i18n-text="cm_autocompleteOnTyping">
|
|
<input id="editor.autocompleteOnTyping" type="checkbox">
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
</label>
|
|
</div>
|
|
<div class="option">
|
|
<label i18n-text="cm_selectByTokens"
|
|
i18n-title="cm_selectByTokensTooltip">
|
|
<input id="editor.selectByTokens" type="checkbox">
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
</label>
|
|
</div>
|
|
<div class="option">
|
|
<label i18n-text="cm_colorpicker">
|
|
<input id="editor.colorpicker" type="checkbox">
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
</label>
|
|
<a id="colorpicker-settings" href="#" class="svg-inline-wrapper" i18n-title="shortcutsNote" tabindex="0">
|
|
<svg class="svg-icon settings"><use xlink:href="#svg-icon-settings"/></svg>
|
|
</a>
|
|
</div>
|
|
<div class="option usercss-only">
|
|
<label i18n-text="appliesLineWidgetLabel" i18n-title="appliesLineWidgetWarning">
|
|
<input id="editor.appliesToLineWidget" type="checkbox">
|
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="options-column">
|
|
<div class="option aligned">
|
|
<label id="tabSize-label" for="editor.tabSize" i18n-text="cm_tabSize"></label>
|
|
<input id="editor.tabSize" type="number" min="0">
|
|
</div>
|
|
<div class="option aligned">
|
|
<label id="keyMap-label" for="editor.keyMap" i18n-text="cm_keyMap"></label>
|
|
<div class="select-resizer">
|
|
<select id="editor.keyMap"></select>
|
|
<svg class="svg-icon select-arrow"><use xlink:href="#svg-icon-select-arrow"/></svg>
|
|
</div>
|
|
<a id="keyMap-help" href="#" class="svg-inline-wrapper" tabindex="0">
|
|
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
|
|
</a>
|
|
</div>
|
|
<div class="option aligned">
|
|
<label id="theme-label" for="editor.theme" i18n-text="cm_theme"></label>
|
|
<div class="select-resizer">
|
|
<select id="editor.theme"></select>
|
|
<svg class="svg-icon select-arrow"><use xlink:href="#svg-icon-select-arrow"/></svg>
|
|
</div>
|
|
</div>
|
|
<div class="option aligned">
|
|
<label id="highlight-label" for="editor.matchHighlight" i18n-text="cm_matchHighlight"></label>
|
|
<div class="select-resizer">
|
|
<select id="editor.matchHighlight">
|
|
<option i18n-text="cm_matchHighlightToken" value="token">
|
|
<option i18n-text="cm_matchHighlightSelection" value="selection">
|
|
<option i18n-text="genericDisabledLabel" value="">
|
|
</select>
|
|
<svg class="svg-icon select-arrow"><use xlink:href="#svg-icon-select-arrow"/></svg>
|
|
</div>
|
|
</div>
|
|
<div class="option aligned">
|
|
<label id="linter-label" for="editor.linter" i18n-text="cm_linter"></label>
|
|
<div class="select-resizer">
|
|
<select id="editor.linter">
|
|
<option value="csslint" selected>CSSLint</option>
|
|
<option value="stylelint">Stylelint</option>
|
|
<option value="" i18n-text="genericDisabledLabel"></option>
|
|
</select>
|
|
<svg class="svg-icon select-arrow"><use xlink:href="#svg-icon-select-arrow"/></svg>
|
|
</div>
|
|
<a id="linter-settings" href="#" class="svg-inline-wrapper" i18n-title="linterConfigTooltip" tabindex="0">
|
|
<svg class="svg-icon settings"><use xlink:href="#svg-icon-settings"/></svg>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</details>
|
|
<details id="lint" class="hidden" data-pref="editor.lint.expanded">
|
|
<summary>
|
|
<h2 i18n-text="linterIssues">: <span id="issue-count"></span>
|
|
<a id="lint-help" href="#" class="svg-inline-wrapper intercepts-click" tabindex="0">
|
|
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
|
|
</a>
|
|
</h2>
|
|
</summary>
|
|
<div class="lint-report-container"></div>
|
|
</details>
|
|
<div id="footer" class="hidden">
|
|
<a href="https://github.com/openstyles/stylus/wiki/Usercss"
|
|
i18n-text="externalUsercssDocument"
|
|
target="_blank"></a>
|
|
</div>
|
|
</div>
|
|
<section id="sections">
|
|
<!--
|
|
It seems that we don't use these anymore
|
|
https://github.com/openstyles/stylus/blob/5cbe8a8d780a6eb9fce11d5846e92bf244c3a3f3/edit/sections.js#L18
|
|
-->
|
|
<!-- <h2><span id="sections-heading" i18n-text="styleSectionsTitle"></span>
|
|
<a id="sections-help" href="#" class="svg-inline-wrapper" tabindex="0">
|
|
<svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg>
|
|
</a>
|
|
</h2> -->
|
|
</section>
|
|
<div id="help-popup">
|
|
<div class="title"></div><svg id="sections-help" class="svg-icon dismiss"><use xlink:href="#svg-icon-close"/></svg>
|
|
<div class="contents"></div>
|
|
</div>
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" style="display: none">
|
|
|
|
<symbol id="svg-icon-external-link" viewBox="0 0 8 8">
|
|
<path d="M0 0v8h8v-2h-1v1h-6v-6h1v-1h-2zm4 0l1.5 1.5-2.5 2.5 1 1 2.5-2.5 1.5 1.5v-4h-4z"></path>
|
|
</symbol>
|
|
|
|
<symbol id="svg-icon-help" viewBox="0 0 14 16" i18n-alt="helpAlt">
|
|
<path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path>
|
|
</symbol>
|
|
|
|
<symbol id="svg-icon-close" viewBox="0 0 12 16">
|
|
<path fill-rule="evenodd" d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48z"></path>
|
|
</symbol>
|
|
|
|
<symbol id="svg-icon-v" viewBox="0 0 16 16">
|
|
<path d="M8,11.5L2.8,6.3l1.5-1.5L8,8.6l3.7-3.7l1.5,1.5L8,11.5z"/>
|
|
</symbol>
|
|
|
|
<symbol id="svg-icon-settings" viewBox="0 0 16 16">
|
|
<path d="M8,0C7.6,0,7.3,0,6.9,0.1v2.2C6.1,2.5,5.4,2.8,4.8,3.2L3.2,1.6c-0.6,0.4-1.1,1-1.6,1.6l1.6,1.6C2.8,5.4,2.5,6.1,2.3,6.9H0.1C0,7.3,0,7.6,0,8c0,0.4,0,0.7,0.1,1.1h2.2c0.1,0.8,0.4,1.5,0.9,2.1l-1.6,1.6c0.4,0.6,1,1.1,1.6,1.6l1.6-1.6c0.6,0.4,1.4,0.7,2.1,0.9v2.2C7.3,16,7.6,16,8,16c0.4,0,0.7,0,1.1-0.1v-2.2c0.8-0.1,1.5-0.4,2.1-0.9l1.6,1.6c0.6-0.4,1.1-1,1.6-1.6l-1.6-1.6c0.4-0.6,0.7-1.4,0.9-2.1h2.2C16,8.7,16,8.4,16,8c0-0.4,0-0.7-0.1-1.1h-2.2c-0.1-0.8-0.4-1.5-0.9-2.1l1.6-1.6c-0.4-0.6-1-1.1-1.6-1.6l-1.6,1.6c-0.6-0.4-1.4-0.7-2.1-0.9V0.1C8.7,0,8.4,0,8,0z M8,4.3c2.1,0,3.7,1.7,3.7,3.7c0,0,0,0,0,0c0,2.1-1.7,3.7-3.7,3.7c0,0,0,0,0,0c-2.1,0-3.7-1.7-3.7-3.7c0,0,0,0,0,0C4.3,5.9,5.9,4.3,8,4.3C8,4.3,8,4.3,8,4.3z"/>
|
|
</symbol>
|
|
|
|
<symbol id="svg-icon-select-arrow" viewBox="0 0 1792 1792">
|
|
<path fill-rule="evenodd" d="M1408 704q0 26-19 45l-448 448q-19 19-45 19t-45-19l-448-448q-19-19-19-45t19-45 45-19h896q26 0 45 19t19 45z"/>
|
|
</symbol>
|
|
|
|
<symbol id="svg-icon-checked" viewBox="0 0 1000 1000">
|
|
<path fill-rule="evenodd" d="M983.2,184.3L853,69.8c-4-3.5-9.3-5.3-14.5-5c-5.3,0.4-10.3,2.8-13.8,6.8L352.3,609.2L184.4,386.9c-3.2-4.2-8-7-13.2-7.8c-5.3-0.8-10.6,0.6-14.9,3.9L18,487.5c-8.8,6.7-10.6,19.3-3.9,28.1L325,927.2c3.6,4.8,9.3,7.7,15.3,8c0.2,0,0.5,0,0.7,0c5.8,0,11.3-2.5,15.1-6.8L985,212.6C992.3,204.3,991.5,191.6,983.2,184.3z"/>
|
|
</symbol>
|
|
|
|
<symbol id="svg-icon-plus" viewBox="0 0 8 8">
|
|
<path fill-rule="evenodd" d="M3 0v3h-3v2h3v3h2v-3h3v-2h-3v-3h-2z"/>
|
|
</symbol>
|
|
|
|
<symbol id="svg-icon-minus" viewBox="0 0 8 8">
|
|
<path fill-rule="evenodd" d="M0 3v2h8v-2h-8z"/>
|
|
</symbol>
|
|
|
|
</svg>
|
|
|
|
</body>
|
|
</html>
|