tophf
0f394fa8d8
don't scroll CM when target is a scrollable input
2020-08-01 18:00:08 +03:00
tophf
c43315e697
restore Shift-Ctrl-Wheel to scroll window in multi-section mode ( #1005 )
2020-07-29 21:26:38 -04:00
tophf
e1807c8851
restore autosize-on-type of find input
2020-07-24 07:42:58 +03:00
tophf
7e195594b5
show all spaces in find input in firefox ( #1002 )
2020-07-23 17:27:29 -04:00
tophf
787466fc40
consume leftovers when auto-completing properties ( #992 )
2020-07-14 16:25:19 -04:00
tophf
60a37af0e0
add a hotkey & right-click to beautify silently ( #972 )
...
* add a hotkey & right-click to beautify silently
* fix closestVisible
2020-06-22 12:14:41 -04:00
tophf
a1b0eb7df1
show sublime bookmarks ( #951 )
...
* remove redundant setGutterMarker optimization
* show sublime bookmarks
2020-06-01 00:54:49 -04:00
tophf
7ab0651e4d
add ":" to prop names in css autocomplete menu ( #915 )
2020-05-01 01:52:18 -04:00
narcolepticinsomniac
0b4e946c82
CM scrollbar pointer-events ( #902 )
2020-04-17 07:36:37 -04:00
narcolepticinsomniac
50aecffe4c
set min-height outside of query ( #873 )
2020-03-03 11:13:21 -05:00
Rob Garrison
9d765e91c6
Update vendor dependencies
2020-02-02 11:07:22 -06:00
narcolepticinsomniac
1f12d50aaf
Embed options in manager ( #828 )
...
* Embed options in manager
* fix indent again
* Fix edit URL detected as manage URL when creating manager style from popup
* Syntax, hash only, and prevent empty hash
* Fix: move origin check to background
* Rename eslintrc
* Refactor: openURL
* Add: fixme comment about openEditor
* Fix: allow activating manager in other windows
* Add: trimHash method
* Fix: limit the scope of styleViaAPI
* Breaking: add router, keep search params
* Fix: focus options when activated
* Add: some fixme
* Fix: remove unused fixme
* Fix: minor
* Fix: remove unused message
* Add: doc
* Change: activate manager in other windows
* Fix: make sure sender is available in getTabUrlPrefix
* Add: openManage API
* Change: reuse editor in openEditor
* Fix: greedly pop the buffer
* Fix: backward detection
* Fix: remove unused important
* Fix: remove unused workaround
* Fix: avoid empty search param
* Change: detect all kinds of manager in openManage
* Fix: minor
* Manage button text
Co-authored-by: eight <eight04@gmail.com>
2020-02-01 23:36:54 -05:00
tophf
d3ee6d9498
fix an infinite loop in editor search with /^/ or /$/ ( #832 )
2020-01-27 21:39:36 -05:00
tophf
c0fd71dda6
only recalc applies-to css on live-update if style targets the editor
2019-10-13 20:59:50 +03:00
tophf
5459130111
find @-moz-doc sections faster in the editor ( #786 )
...
* find @-moz-doc sections faster in the editor
* only recreate widgets if section data is changed
* CodeMirror speedup: reuse the old folding marks
* add a reminder to remove the CodeMirror hack in the future
* use precise getTokenAt
* check doc type for string/comment to be more mode-agnostic
* fix setGutterMarker hack
* fix skipSpace: EOL is a space too
* move deepEqual next to deepCopy
* fix getTokenTypeAt check for some cases
* remove the unnecessary \s*
2019-09-25 04:44:33 -04:00
narcolepticinsomniac
793dc20722
linter and compact layout improvements ( #749 )
...
* linter and compact layout improvements
Closes #748
While investigating the best way to fix linter scrolling, when I double-checked the compact layout, an old bug I meant to fix a long time ago was immediately apparent. Basically, the linter adds/removes errors as you type, causing the editor to bounce up and down, making it practically unusable.
This PR fixes scrolling, and also collapses options and the linter in the compact layout, but always shows the collapsed linter so you're aware of the error count without the content jumping. It also collapses options in the non-compact layout if the viewport is too short to accommodate them, factoring in the min-height of the linter. All automatic collapsing factors in whether a linter is active so they can adjust accordingly, and disables the setting of collapsed state prefs, since we're deciding the pref anyway, and this allows for re-expanding on resize based on the previous pref.
It's quite possible I failed to account for certain scenarios, so try to break it. Also think it's problematic for the linter to not always be visible if enabled, so I hooked up a 40px fixed header on scroll with just the linter in it for the compact layout.
A few other little details are included. I removed redundant line and column numbers spelled out at the end of lint messages to prevent horizontal overflow. I noticed that the expand/collapse prefs do not toggle correctly when clicking directly on the details-marker arrow. Simplest solution was covering them with the `h2` (we may wanna hook up the manager as well). Also, unrelated, but I switched to opacity to hide resizing sectioned editors, because `visibility: hidden;` breaks editor auto-focus.
If either of you guys wanna fix any bugs, or improve any code, feel free to just commit to this PR directly.
* linter and compact layout improvements
* linter and compact layout improvements
* No usercss scroll listener and delay header check
* Some code tweaks
2019-08-04 13:09:50 -04:00
Rob Garrison
b7b6ed2ff5
Update vendor libraries
...
Codemirror & Dropbox sdk
2019-07-08 04:59:28 -05:00
eight
6fbc291b19
Fix: single editor doesn't stretch to full height ( #728 )
...
* Fix: single editor doesn't stretch to full height
* Fix: remove redundant selectors
2019-06-20 15:36:53 -04:00
eight
d1db77e5b0
Add: auto resize editors on init in section editor ( #729 )
...
* Add: auto resize section editor on init
* Fix: calculate cm height correctly
* Fix: query heights before set
* Fix: work with small layout, hide sections before ready
2019-06-20 15:36:27 -04:00
stonecrusher
b48817fe01
Update Stylelint defaults for Stylus-lang at-rules ( #695 )
...
* Update Stylelint defaults for Stylus-lang at-rules
* Minor tweak
2019-04-14 08:39:22 -05:00
Rob Garrison
ab83ed8f0f
Fix linter config issues. Closes #689
2019-04-05 07:42:37 -05:00
tophf
55189f1fdd
CSSLint and parserlib ( #646 )
...
* CSSLint: add mask-image
https://drafts.fxtf.org/css-masking-1/#the-mask-image
* CSSLint: update <image> type
https://drafts.csswg.org/css-images-3/#typedef-image
* CodeMirror CSS mode: add 'mask-image'
* CodeMirror CSS mode: add CSS Round Display L1
https://www.w3.org/TR/css-round-display-1/
* CSSLint: CSS Round Display L1 (ED 2018-09-26)
https://drafts.csswg.org/css-round-display/
* CSSLint: CSS Environment Variables L1 (ED 2018-08-03)
https://drafts.csswg.org/css-env-1/
* CSSLint: parts of CSS Overflow Module L3 (WD 2018-07-31)
only overflow-* properties are added since the rest seem tentative
https://www.w3.org/TR/css-overflow-3/
* CSSLint: Selectors L4 :is() supersedes :matches()
https://drafts.csswg.org/selectors-4/#matches
* CSSLint: Text Decoration L3 (CR 2018-06-26)
https://drafts.csswg.org/css-text-decor-3/
* CSSLint: fix '&&' in grammarParser
consequences:
* fixed text-shadow
* fixed <display-listitem>
* switched to a string in <shadow>
* CSSLint: fix definition for 'rotate'
* CSSLint: fix applyEmbeddedOverrides
* CSSLint: update definition for 'rotate'
* CSSLint: reset parserlib cache when inline overrides change
* CSSLint: code cosmetics
* CSSLint: fixup d5971e9c
* CSSLint: code cosmetics
* CSSLint: start ignoring from the comment's line number
2019-03-03 16:55:15 -06:00
eight
dfb9db34c3
Fix: update live preview when the style is toggled/replaced ( #662 )
2019-02-03 14:00:13 -05:00
Rob Garrison
e8ba51f940
Fix applies to alignment
2019-01-17 06:41:47 -06:00
Rob Garrison
0c8e69fb9d
Make beautify options persistent. Fixes #630
2018-12-27 07:53:37 -06:00
Rob Garrison
ddd03eab1d
Prevent JS error in multiple section search
2018-12-19 07:09:16 -06:00
Rob Garrison
3edea88b13
Fix linting issues
2018-12-11 07:28:30 -06:00
Rob Garrison
68ce3a653e
Focus first editor on init. Fixes #605
2018-12-08 07:51:09 -06:00
Rob Garrison
8a3c260eb9
Fix save template. Closes #607
2018-12-08 07:21:32 -06:00
eight
8d6c88e377
Support Chrome 49 ( #561 )
...
* Add: polyfill to support chrome 49
* Fix: fetch text in Chrome 49
* Add: polyfill element method
* Update usercss-meta
* Fix: buggy destructuring
* Fix: dialog position?
* Fix: unneeded warning
* Fix: getChromeVersion
* Fix: don't cache tab icon in old chrome
* Fix: static -> relative
* Fix: use XHR as fallback
2018-11-29 19:35:21 -06:00
Rob Garrison
a1b17bb553
Fix dirty style updating. Closes #585 ( #586 )
...
* Fix dirty style updating. Closes #585
* Move common code to edit.js
* init updateDirty
2018-11-27 22:54:36 -06:00
narcolepticinsomniac
eb0b9f58f5
Fix search highlight conflict ( #587 )
...
* Fix search highlight conflict
Regular highlight styling and search highlight styling shouldn't both be applied at the same time. Search highlight styling should also be removed when search is closed. This PR resolves those conflicts.
* Remove unnecessary dummy animation
Not sure what the point of it ever was, but I'm pretty sure it should go.
2018-11-27 22:48:45 -06:00
eight
e97a3ef269
Change: modify match-highlighter plugin ( #578 )
...
* Change: modify match-highlighter plugin
* Fix: boundary character should only be used when the query starts/ends with alphabet
2018-11-25 07:28:37 -06:00
eight
4120907957
Fix: failed to find the old style when the name/namespace is changed ( #581 )
2018-11-25 07:27:10 -06:00
eight
25fb5acabe
Fix: cycle through editors ( #572 )
...
* Fix: cycle through editors
* Fix: command is broken
2018-11-21 09:47:28 -06:00
Rob Garrison
81d27288f2
Remove duplicate rules in issue modal
2018-11-20 18:57:25 -06:00
Rob Garrison
33df061b53
Allow /*! in UserCSS metadata. Closes #571
2018-11-20 17:07:42 -06:00
Rob Garrison
dab3515195
Remove text-decoration-skip:ink; Closes #229
2018-11-11 15:42:36 -06:00
eight
a1a85efc75
Update usercss-meta ( #540 )
...
* Update usercss-meta
* Add: translation for new errors
* Fix: define `anno.rule` in meta linter
* Fix: typo
* Fix: don't display rule id if undefined
* fixup! Fix: don't display rule id if undefined
2018-11-07 23:33:56 +08:00
eight
4db8a9ea9a
Fix: output codemirror themes to a separated file ( #538 )
2018-11-07 05:33:14 -06:00
eight
e3d3604afc
Refactor the entire storage system and the section editor ( #518 )
...
* Squashed commit of the following:
commit d84c4dc3fe
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 19:13:29 2018 +0800
Fix: remove unused comment
commit 46027120ec
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 19:09:06 2018 +0800
Add: handle styleUpdated message
commit f85d4de39b
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 18:59:29 2018 +0800
Fix: handle styleAdded message in popup
commit 81f3e69574
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 18:50:54 2018 +0800
Change: getStylesInfoByUrl -> getStylesByUrl
commit f9dc04558f
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 18:48:20 2018 +0800
Fix: drop getStylesInfo
commit fea04d591f
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 18:39:28 2018 +0800
Fix: remove unused ignoreChromeError
commit 2aff14e213
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 18:09:53 2018 +0800
Fix: don't dup promisify in prefs
commit d4ddfcc713
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 17:56:16 2018 +0800
Change: drop .last and .rotate
commit 85e70491e4
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 17:36:00 2018 +0800
Fix: unused renderIndex
commit 7acb131642
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 17:32:49 2018 +0800
Fix: update title on input
commit a39405ac4c
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 17:17:20 2018 +0800
Fix: remove unused messages
commit 14c2fdbb58
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 16:36:12 2018 +0800
Fix: dirty state for new added applies
commit fb1b49b8bb
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 16:27:17 2018 +0800
Fix: minor
commit 2c2d849fa4
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 16:20:14 2018 +0800
Fix: drop unused getCode
commit f133c3e67a
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 16:18:14 2018 +0800
Fix: drop unused lastActive
commit 05a6208f5c
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 16:17:45 2018 +0800
Fix: minor
commit 05a87ed00f
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 15:58:33 2018 +0800
Fix: minor
commit 576f73f333
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 03:03:35 2018 +0800
Fix: always register listeners
commit e93819deb4
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 02:58:49 2018 +0800
Fix: unused statement
commit 39b11685b4
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 02:54:29 2018 +0800
Fix: minor
commit 9dd3cd43c1
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 02:49:22 2018 +0800
Fix: don't reorder options
commit 90aadfd728
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 02:43:52 2018 +0800
Fix: drop __ERROR__
commit 838c21e3b3
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 02:36:20 2018 +0800
Fix: use findStyle API
commit 93a4cdf595
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 02:34:05 2018 +0800
Add: findStyle API
commit 8e75871b9b
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 02:19:01 2018 +0800
Breaking: drop getStylesFallback
commit ad06551440
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 02:16:48 2018 +0800
Fix: use dataurl to inject page script
commit cb5cbb4d10
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 01:39:50 2018 +0800
Fix: various
commit 53efd78b89
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 01:12:57 2018 +0800
Update doc
commit 7d005f3eaa
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 01:09:22 2018 +0800
Change: kill style.reason
commit fc53bed3de
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 00:56:04 2018 +0800
Fix: doo many indents
commit 14e321d258
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 00:40:23 2018 +0800
Fix: don't update icon for popup and options
commit 01bdd529bc
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 00:39:17 2018 +0800
Fix: updateCount
commit b9968830d3
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 00:38:49 2018 +0800
Fix: don't send null value
commit ff3bf6f52d
Author: eight <eight04@gmail.com>
Date: Sun Oct 14 00:03:34 2018 +0800
Add: styleViaAPI updateCount
commit 39d21c3d29
Author: eight <eight04@gmail.com>
Date: Sat Oct 13 23:57:45 2018 +0800
Fix: broadcastError -> ignoreError
commit ecb622c93c
Author: eight <eight04@gmail.com>
Date: Sat Oct 13 21:29:06 2018 +0800
Fix: implement styleViaAPI
commit 7c3d49c005
Author: eight <eight04@gmail.com>
Date: Sat Oct 13 17:50:28 2018 +0800
Fix: ROOT may change in XML pages
commit 3fd8d937f3
Author: eight <eight04@gmail.com>
Date: Sat Oct 13 16:49:43 2018 +0800
Fix: various
commit 859afc8ee9
Author: eight <eight04@gmail.com>
Date: Sat Oct 13 16:39:54 2018 +0800
Enhance: don't cache enabled state
commit fbe77a8d15
Author: eight <eight04@gmail.com>
Date: Sat Oct 13 16:15:07 2018 +0800
Fix: various
commit a4fc3e9162
Author: eight <eight04@gmail.com>
Date: Sat Oct 13 16:11:38 2018 +0800
Fix: various
commit 7e0eddeb8f
Author: eight <eight04@gmail.com>
Date: Sat Oct 13 15:58:31 2018 +0800
Fix: various
commit 8b4ab47d89
Author: eight <eight04@gmail.com>
Date: Sat Oct 13 15:20:10 2018 +0800
Add: some type hint
commit 7d340d62dc
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
commit d286997d6a
Author: eight <eight04@gmail.com>
Date: Sat Oct 13 15:12:00 2018 +0800
Fix: minor
commit d60db9dbef
Author: eight <eight04@gmail.com>
Date: Sat Oct 13 15:03:10 2018 +0800
Fix: minor
commit 43afa31fa0
Author: eight <eight04@gmail.com>
Date: Sat Oct 13 14:50:31 2018 +0800
Fix: update tab icon on forward/backward
commit f08faea149
Author: eight <eight04@gmail.com>
Date: Sat Oct 13 13:50:03 2018 +0800
Fix: parallel import
commit 4d06435486
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 23:32:03 2018 +0800
Add: importStyle API
commit c55675912e
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 23:14:46 2018 +0800
Fix: refactor import-export
commit 86ea846a89
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 17:34:36 2018 +0800
Fix: search db is broken
commit 831ca07c2d
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 17:29:35 2018 +0800
fixup! Add: implement sloppy regexp indicator
commit e67b7f4f36
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 17:27:19 2018 +0800
Add: implement sloppy regexp indicator
commit 36e13f88f0
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 16:59:23 2018 +0800
Add: return excluded/sloppy state in getStylesInfoByUrl
commit f6ce78f55b
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 16:39:47 2018 +0800
Fix: dead object
commit 5ae95a1ad9
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 16:27:54 2018 +0800
Fix: don't reinit all editors on save
commit 1a5a206fe6
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 16:18:40 2018 +0800
Refactor: pull out sections editor section
commit 8016346035
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 15:30:35 2018 +0800
Fix: replaceStyle make style name undefined
commit fa080d1913
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 15:21:36 2018 +0800
Fix: catch csp error
commit e0b064115d
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 15:03:00 2018 +0800
Fix: use a simple eval to execute page scripts
commit 405b7f8f06
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 03:48:13 2018 +0800
Fix: removed unused API
commit 1b2c88f926
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 03:46:51 2018 +0800
Fix: no need to access db
commit a8131fc9c5
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 03:43:31 2018 +0800
Fix: remove unused methods
commit 3ae0c4dd13
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 03:10:26 2018 +0800
Enhance: allow matcher to return verbose info
commit 0ea7ada48f
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 02:02:14 2018 +0800
Fix: content script may load before the background is ready
commit 04c2d6bbf6
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 01:49:52 2018 +0800
Fix: throw receiving end doesn't exist message
commit f0c0bc4d6a
Author: eight <eight04@gmail.com>
Date: Fri Oct 12 01:11:17 2018 +0800
Fix: unwrap error
commit 4d42765d6c
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 23:55:16 2018 +0800
fixup! Fix: match subdomain
commit 99626e4a48
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 23:54:58 2018 +0800
Fix: match subdomain
commit a57b3b2716
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 23:39:11 2018 +0800
Fix: firefox
commit 5cfea3933f
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 22:46:34 2018 +0800
Add some comment to db.js
commit 25fd3a1c2b
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 22:14:56 2018 +0800
Fix: remove unused prop
commit bdae1c3697
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 20:00:25 2018 +0800
Change: simpler styleCodeEmpty
commit bd4a453f45
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
commit c1bf9f57e9
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 19:29:17 2018 +0800
Fix: minor
commit fd5eeb4b81
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 19:00:05 2018 +0800
Add: refresh on view
commit 3e38810a49
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 18:13:24 2018 +0800
Fix: make sure icons are refreshed at startup
commit c657d7e55c
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 17:32:27 2018 +0800
Add: implement bug 461
commit 7ed39ab6ef
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 15:42:44 2018 +0800
fixup! Add: icon-util
commit 30e494eda9
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 15:42:23 2018 +0800
Add: icon-util
commit 510a886e14
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 03:21:38 2018 +0800
Fix: exposeIframes
commit c7f81662c4
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 02:19:14 2018 +0800
Fix: autoCloseBrackets is true by default
commit f3a103645d
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 02:11:14 2018 +0800
Fix: various
commit d4436cde20
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 01:39:10 2018 +0800
Add: implement exposeIframe
commit 43db875fd8
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 01:26:24 2018 +0800
Kill more globals
commit dc491e9be3
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 01:22:13 2018 +0800
Kill old storage, storage-dummy
commit ba64b95575
Author: eight <eight04@gmail.com>
Date: Thu Oct 11 00:54:38 2018 +0800
WIP: kill cachedStyles
commit 7eba890a21
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
commit d2b36a168e
Author: eight <eight04@gmail.com>
Date: Wed Oct 10 23:05:20 2018 +0800
Kill hidden globals
commit 22d4767511
Author: eight <eight04@gmail.com>
Date: Wed Oct 10 19:23:34 2018 +0800
Fix: margin for deleted sections
commit 00687983f0
Author: eight <eight04@gmail.com>
Date: Wed Oct 10 18:21:07 2018 +0800
Fix: default value
commit ff6fd8cad3
Author: eight <eight04@gmail.com>
Date: Wed Oct 10 18:02:51 2018 +0800
Fix: default options
commit c23f315c52
Author: eight <eight04@gmail.com>
Date: Wed Oct 10 17:40:07 2018 +0800
Refactor: use CodeMirror.defineOption
commit 4419c5dc1e
Author: eight <eight04@gmail.com>
Date: Wed Oct 10 16:32:39 2018 +0800
Change: kill editors, styleId
commit 6494985b50
Author: eight <eight04@gmail.com>
Date: Wed Oct 10 16:14:51 2018 +0800
Fix: various
commit 37e1f43f75
Author: eight <eight04@gmail.com>
Date: Wed Oct 10 15:04:03 2018 +0800
Fix: minor
commit d26ce3238e
Author: eight <eight04@gmail.com>
Date: Wed Oct 10 14:49:37 2018 +0800
Add: codemirror-factory
commit 15a1f552f6
Author: eight <eight04@gmail.com>
Date: Wed Oct 10 12:08:35 2018 +0800
WIP: kill getSection
commit ba6159e067
Author: eight <eight04@gmail.com>
Date: Wed Oct 10 02:43:09 2018 +0800
WIP: edit page
commit fd9ab5d6e5
Author: eight <eight04@gmail.com>
Date: Wed Oct 10 00:41:07 2018 +0800
Fix: switch to editor
commit 06e22d0d18
Author: eight <eight04@gmail.com>
Date: Tue Oct 9 23:38:29 2018 +0800
Change: add sections-editor
commit 30e8662946
Author: eight <eight04@gmail.com>
Date: Mon Oct 8 20:12:39 2018 +0800
Add: preview error
commit 47b2b4fc49
Author: eight <eight04@gmail.com>
Date: Mon Oct 8 18:38:01 2018 +0800
Add: livePreview.show
commit 7b5e7c96d5
Author: eight <eight04@gmail.com>
Date: Mon Oct 8 18:16:45 2018 +0800
Hook up live preview
commit 15efafff3c
Author: eight <eight04@gmail.com>
Date: Mon Oct 8 17:49:57 2018 +0800
Add: live preview
commit a38558ef78
Author: eight <eight04@gmail.com>
Date: Mon Oct 8 15:30:39 2018 +0800
WIP: make notifyAllTabs a noop
commit 582e9078af
Author: eight <eight04@gmail.com>
Date: Mon Oct 8 14:39:08 2018 +0800
Fix: inject all scripts
commit f4651da8d8
Author: eight <eight04@gmail.com>
Date: Sun Oct 7 23:41:46 2018 +0800
Drop deleteStyle
commit 0489fb3b2f
Author: eight <eight04@gmail.com>
Date: Sun Oct 7 23:33:51 2018 +0800
Drop saveStyle
commit 02f471f077
Author: eight <eight04@gmail.com>
Date: Sun Oct 7 23:28:41 2018 +0800
Fix: usercss API
commit 057111b171
Author: eight <eight04@gmail.com>
Date: Sun Oct 7 22:59:31 2018 +0800
Update usercss API
commit 69cae02381
Author: eight <eight04@gmail.com>
Date: Sun Oct 7 21:40:29 2018 +0800
Drop getStyles
commit c5d41529d9
Author: eight <eight04@gmail.com>
Date: Sun Oct 7 21:28:51 2018 +0800
Minor fixes
commit 5b3b4e680f
Author: eight <eight04@gmail.com>
Date: Sun Oct 7 21:20:39 2018 +0800
Add: navigator-util
commit b5107b78a5
Author: eight <eight04@gmail.com>
Date: Sun Oct 7 01:42:43 2018 +0800
Add: broadcast messages with reasons
commit e7ef4948cd
Author: eight <eight04@gmail.com>
Date: Sat Oct 6 18:10:47 2018 +0800
Fix: observer is unavailable?
commit 1c635b5bc1
Author: eight <eight04@gmail.com>
Date: Sat Oct 6 17:47:43 2018 +0800
Drop requestStyles
commit 75f2561154
Author: eight <eight04@gmail.com>
Date: Sat Oct 6 16:38:04 2018 +0800
Fix: don't recreate element when style update in popup
commit 583ca31d97
Author: eight <eight04@gmail.com>
Date: Sat Oct 6 15:40:07 2018 +0800
fixup! Add: isCodeEmpty
commit 1cf6008514
Author: eight <eight04@gmail.com>
Date: Sat Oct 6 15:33:18 2018 +0800
Add: isCodeEmpty
commit 450cd60aeb
Author: eight <eight04@gmail.com>
Date: Sat Oct 6 15:22:04 2018 +0800
Fix: ignore comment block
commit 196b6aac63
Author: eight <eight04@gmail.com>
Date: Sat Oct 6 15:16:00 2018 +0800
Fix: the return value of getSectionsByUrl is changed
commit 3122d28c1a
Author: eight <eight04@gmail.com>
Date: Sat Oct 6 15:14:05 2018 +0800
Fix: always use promise in API call
commit e594b8ccb1
Author: eight <eight04@gmail.com>
Date: Sat Oct 6 15:11:01 2018 +0800
Cache enabled state
commit 1f18b13a92
Author: eight <eight04@gmail.com>
Date: Sat Oct 6 13:48:46 2018 +0800
Add: match global sections
commit fedf844ddd
Author: eight <eight04@gmail.com>
Date: Sat Oct 6 13:45:37 2018 +0800
Add: getStylesInfoByUrl
commit 095998f07c
Author: eight <eight04@gmail.com>
Date: Sat Oct 6 13:27:58 2018 +0800
Change: switch to msg.js
commit fa3127d988
Author: eight <eight04@gmail.com>
Date: Sat Oct 6 13:02:45 2018 +0800
Change: switch to msg.js
commit 05d582c726
Author: eight <eight04@gmail.com>
Date: Sat Oct 6 11:43:42 2018 +0800
Add: msg.sendBg
commit 171339f710
Author: eight <eight04@gmail.com>
Date: Sat Oct 6 04:39:48 2018 +0800
WIP: drop api.js
commit 3a618aca2a
Author: eight <eight04@gmail.com>
Date: Sat Oct 6 03:19:51 2018 +0800
WIP: use deepCopy
commit bb1cb58024
Author: eight <eight04@gmail.com>
Date: Sat Oct 6 03:10:04 2018 +0800
WIP: msg.js
commit 2472e91f57
Author: eight <eight04@gmail.com>
Date: Fri Oct 5 21:28:19 2018 +0800
WIP: emitChangesToTabs
commit 34497ebe16
Author: eight <eight04@gmail.com>
Date: Fri Oct 5 18:47:52 2018 +0800
WIP: switch to API
commit f1639cc33e
Author: eight <eight04@gmail.com>
Date: Fri Oct 5 01:03:40 2018 +0800
WIP: broadcastMessage
commit 81e4823f46
Author: eight <eight04@gmail.com>
Date: Thu Oct 4 19:39:59 2018 +0800
Debounce updateAllTabsIcon
commit dc5f3e209f
Author: eight <eight04@gmail.com>
Date: Thu Oct 4 19:34:36 2018 +0800
Fix: settings could be empty on the first install
commit 2328cf623a
Author: eight <eight04@gmail.com>
Date: Thu Oct 4 19:34:22 2018 +0800
Change: start-firefox -> start
commit 7be6a1cba9
Author: eight <eight04@gmail.com>
Date: Thu Oct 4 19:24:35 2018 +0800
Add: applications
commit 630725196f
Author: eight <eight04@gmail.com>
Date: Thu Oct 4 19:22:44 2018 +0800
fixup! Fix: update all icons when some prefs changed
commit 0d0e1b4dc0
Author: eight <eight04@gmail.com>
Date: Thu Oct 4 19:20:36 2018 +0800
Fix: update all icons when some prefs changed
commit 5c0288e9ba
Author: eight <eight04@gmail.com>
Date: Thu Oct 4 19:20:11 2018 +0800
fixup! Remove unused FIREFOX_NO_DOM_STORAGE
commit 56b737b65a
Author: eight <eight04@gmail.com>
Date: Thu Oct 4 18:14:57 2018 +0800
Remove unused FIREFOX_NO_DOM_STORAGE
commit 829a134ed1
Author: eight <eight04@gmail.com>
Date: Thu Oct 4 18:10:53 2018 +0800
Fix: this -> prefs
commit d35f92250e
Author: eight <eight04@gmail.com>
Date: Thu Oct 4 18:08:19 2018 +0800
Fixme: styleViaAPI
commit 8a6e8ac03a
Author: eight <eight04@gmail.com>
Date: Thu Oct 4 18:05:41 2018 +0800
Change: drop prefChanged, use prefs service
commit 10f9449144
Author: eight <eight04@gmail.com>
Date: Thu Oct 4 17:46:45 2018 +0800
Change: move setupLivePrefs to dom.js. Remove prefs.js dependencies
commit dd2b8ed091
Author: eight <eight04@gmail.com>
Date: Thu Oct 4 17:18:38 2018 +0800
Fix: type error
commit 3af310c341
Author: eight <eight04@gmail.com>
Date: Thu Oct 4 17:09:26 2018 +0800
Fix: open-manager has no default value
commit 874a2da33e
Author: eight <eight04@gmail.com>
Date: Thu Oct 4 17:04:23 2018 +0800
Enhance: make prefs use storage.sync
commit c01f93f62c
Author: eight <eight04@gmail.com>
Date: Thu Oct 4 15:57:02 2018 +0800
WIP
commit 6d32ffb76b
Author: eight <eight04@gmail.com>
Date: Thu Oct 4 12:46:19 2018 +0800
WIP
commit 0f148eac32
Author: eight <eight04@gmail.com>
Date: Thu Oct 4 03:35:07 2018 +0800
WIP
commit 282bdf7706
Author: eight <eight04@gmail.com>
Date: Wed Oct 3 20:24:06 2018 +0800
Fix: numbers are not compared correctly
commit 24b1eea8a4
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
commit 5cbe8a8d78
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 )
commit 9058c06c54
Author: eight <eight04@gmail.com>
Date: Mon Oct 1 23:24:29 2018 +0800
Fix: bad API
commit 1f2d116aae
Author: eight <eight04@gmail.com>
Date: Mon Oct 1 23:14:56 2018 +0800
Fix: use meta parser
commit 918e47b1ed
Author: eight <eight04@gmail.com>
Date: Mon Oct 1 23:01:21 2018 +0800
Fix: emit update event if no fatal errors
commit 81a7bb9ac9
Author: eight <eight04@gmail.com>
Date: Mon Oct 1 22:56:25 2018 +0800
Add: editorWorker.metalint
commit f47d57aea8
Author: eight <eight04@gmail.com>
Date: Mon Oct 1 22:49:16 2018 +0800
Change: use editorWorker.metalint
commit 5778d5c858
Author: eight <eight04@gmail.com>
Date: Mon Oct 1 22:39:01 2018 +0800
Change: editor-worker-body -> editor-worker
commit 268e1716b4
Author: eight <eight04@gmail.com>
Date: Mon Oct 1 22:38:06 2018 +0800
Change: switch to worker-util
commit cc2980b647
Author: eight <eight04@gmail.com>
Date: Mon Oct 1 22:30:16 2018 +0800
Drop: parserlib-loader
commit 08adcb60f2
Merge: 6909c73
2fd531e
Author: eight <eight04@gmail.com>
Date: Mon Oct 1 22:29:39 2018 +0800
Merge branch 'master' into dev-usercss-meta
commit e4135ce35d
Author: eight <eight04@gmail.com>
Date: Fri Sep 28 11:57:34 2018 +0800
Fix: remove unused function
commit 39a6d1909f
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
commit 6909c73c69
Author: eight <eight04@gmail.com>
Date: Wed Sep 26 12:16:33 2018 +0800
Fix: minor
commit 79833d8bba
Author: eight <eight04@gmail.com>
Date: Wed Sep 26 11:40:04 2018 +0800
Fix: a better way to draw list?
commit a849fd6dda
Author: eight <eight04@gmail.com>
Date: Wed Sep 26 11:39:53 2018 +0800
Fix: missing placeholders
commit d5ee31a080
Author: eight <eight04@gmail.com>
Date: Wed Sep 26 11:37:50 2018 +0800
Fix: a better way to draw character list?
commit 7b959af3e3
Author: eight <eight04@gmail.com>
Date: Wed Sep 26 11:30:10 2018 +0800
Update usercss-meta
commit fefa987c4d
Author: eight <eight04@gmail.com>
Date: Wed Sep 26 10:37:28 2018 +0800
Change: sections-equal -> sections-util
commit 2abbf670d8
Author: eight <eight04@gmail.com>
Date: Wed Sep 26 10:37:14 2018 +0800
Fix: check err.code
commit 1fe0586b29
Author: eight <eight04@gmail.com>
Date: Wed Sep 26 10:33:02 2018 +0800
Add: i18n error message
commit ab0ef239cf
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
commit d5ade807f0
Author: eight <eight04@gmail.com>
Date: Wed Sep 26 09:27:30 2018 +0800
Fix: display error message
commit 4f5337e51d
Author: eight <eight04@gmail.com>
Date: Wed Sep 26 09:26:55 2018 +0800
Fix: remove unused colorconverter
commit 29b8f51292
Author: eight <eight04@gmail.com>
Date: Tue Sep 25 23:21:44 2018 +0800
Fix: vars could be undefined
commit a7cfeb22e4
Author: eight <eight04@gmail.com>
Date: Tue Sep 25 22:54:40 2018 +0800
Fix: window is undefined
commit 9713c6a3be
Author: eight <eight04@gmail.com>
Date: Tue Sep 25 21:56:38 2018 +0800
Fix: throw an error for unparsable color
commit 3c30bc3eb0
Author: eight <eight04@gmail.com>
Date: Tue Sep 25 21:55:55 2018 +0800
Fix: try to get error message
commit 3d32b0428b
Author: eight <eight04@gmail.com>
Date: Tue Sep 25 21:38:40 2018 +0800
Fix: vars might be empty
commit 7d75dd8754
Author: eight <eight04@gmail.com>
Date: Tue Sep 25 21:18:39 2018 +0800
Add: meta-parser
commit a4df641b96
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
commit 8028a3529f
Author: eight <eight04@gmail.com>
Date: Tue Sep 25 21:17:40 2018 +0800
Include util, worker-util in background
commit ba5d6cc31a
Author: eight <eight04@gmail.com>
Date: Tue Sep 25 21:16:59 2018 +0800
Fix: use spread syntax in loadScript
commit b853be13f8
Author: eight <eight04@gmail.com>
Date: Tue Sep 25 21:14:46 2018 +0800
Enhance: swith to usercss-meta (in worker)
commit a3e7915199
Author: eight <eight04@gmail.com>
Date: Tue Sep 25 21:11:54 2018 +0800
Fix: use promise API
commit 5d07a8cd4e
Author: eight <eight04@gmail.com>
Date: Tue Sep 25 21:11:09 2018 +0800
Fix: buildMeta now returns a promise
commit a004bc3c7d
Author: eight <eight04@gmail.com>
Date: Tue Sep 25 21:10:35 2018 +0800
Move styleCodeEmpty to util
commit 41ac66a137
Author: eight <eight04@gmail.com>
Date: Tue Sep 25 21:09:40 2018 +0800
Add: background worker
commit ffb13bf1db
Author: eight <eight04@gmail.com>
Date: Tue Sep 25 21:09:04 2018 +0800
Enhance: move moz-parser/meta-parser/usercss compiler to worker
commit 42e97ef153
Author: eight <eight04@gmail.com>
Date: Tue Sep 25 20:45:07 2018 +0800
Fix: display error on install page
commit 64aa9fcf53
Author: eight <eight04@gmail.com>
Date: Tue Sep 25 17:34:54 2018 +0800
Add: background worker
commit b0e407e98f
Author: eight <eight04@gmail.com>
Date: Tue Sep 25 14:52:35 2018 +0800
Add: worker util
commit 7a24547e09
Author: eight <eight04@gmail.com>
Date: Tue Sep 25 00:01:18 2018 +0800
Add: usercss-meta
commit 8a6011de8c
Author: Rob Garrison <wowmotty@gmail.com>
Date: Sun Jul 22 09:15:09 2018 -0500
Attempt to update icon count
commit 4fcb1a88d7
Author: Rob Garrison <wowmotty@gmail.com>
Date: Sun Jul 15 13:44:29 2018 -0500
Fix empty exclusion storage error
commit bfe54ab4c4
Author: Rob Garrison <wowmotty@gmail.com>
Date: Sun Jul 15 12:59:51 2018 -0500
Add tab communication
commit 983a7bc219
Author: Rob Garrison <wowmotty@gmail.com>
Date: Sun Jul 15 10:51:11 2018 -0500
Fix escaped regex example
commit 3950482f34
Author: Rob Garrison <wowmotty@gmail.com>
Date: Wed Apr 25 18:11:37 2018 -0500
Fix undefined error
commit e94c7edb38
Author: Rob Garrison <wowmotty@gmail.com>
Date: Wed Apr 25 17:09:45 2018 -0500
Attempt to fix popup exclusion issues
commit 2b4a1a5635
Author: Rob Garrison <wowmotty@gmail.com>
Date: Thu Apr 19 13:00:27 2018 -0500
Modify input method
commit 9f75b69cd8
Author: Rob Garrison <wowmotty@gmail.com>
Date: Wed Mar 7 11:54:05 2018 -0600
Include iframe urls in exclusion popup
commit 68dfa0153c
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
2018-11-07 14:09:29 +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
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
tophf
bfb35e77b8
strip more trailing spaces in a custom usercss template
2018-08-06 20:56:33 +03:00
tophf
2db52c9e2d
code cosmetics
2018-08-06 15:11:27 +03:00
tophf
f6a90ad166
suppress stylelint warning for stylus-lang's @css block
...
fixes #459
2018-08-06 15:10:42 +03:00
tophf
5f623f2f0e
fill an empty @name with the default placeholder
...
fixes #462
2018-08-06 13:35:33 +03:00
tophf
e27636b93d
preserve linebreaks in live-preview error text
...
fixes #460
2018-08-06 13:13:15 +03:00
tophf
5da1e0fb9b
set onbeforeunload only when dirty
...
https://developers.google.com/web/updates/2018/07/page-lifecycle-api#legacy-lifecycle-apis-to-avoid
2018-08-02 20:54:40 +03:00
tophf
d3c8812e51
listen on newly added section's CodeMirror too
2018-08-02 01:44:10 +03:00
tophf
9cebf91e28
don't call updatePreview twice for the same input event
2018-08-02 00:46:14 +03:00
tophf
68cc033942
trigger live preview also for changes in applies-to
2018-08-01 23:29:21 +03:00
tophf
0c58783a6c
add buttons to restore, clone, move a section
2018-07-23 21:24:35 +03:00
tophf
0a3ffb0bc8
show an empty applies-to URL-prefix in manually added sections
...
because global sections are less frequently used.
2018-07-23 21:24:35 +03:00
tophf
47c4b8157a
expose 'preserve_newlines' in beautifier; dehtmlize
...
fixes #435
2018-07-23 00:28:11 +03:00
tophf
7d1bf4119a
show "close" button in beautifier dialog
...
fixes #436
2018-07-22 20:12:42 +03:00
tophf
4283cc53a7
use the global line wrapping option in moz-export popup
2018-07-22 20:08:13 +03:00
tophf
662b4f8e49
don't show "saved" note in linter config
...
* because we don't show it anywhere else
* disabling the save button is a sufficient indicator used by lots of apps
2018-07-22 19:58:40 +03:00
tophf
126d909ca7
use a typical OS order for #help-popup buttons
...
* horizontally centered in Windows
* right-aligned otherwise
2018-07-22 19:55:27 +03:00
tophf
87da06037f
make showCodeMirrorPopup modal
...
closes #437
2018-07-22 19:37:49 +03:00
tophf
67f48d5e60
make a copy of the applies-to template
...
fixes #442
2018-07-22 16:36:50 +03:00
Rob Garrison
c61d34d053
Update libraries ( #440 )
2018-07-21 20:58:54 +03:00
tophf
6f64bd840c
code cosmetics: strip trailing spaces
2018-07-17 11:24:13 +03:00
narcolepticinsomniac
70b8a1172f
Responsive layout ( #410 )
2018-07-16 19:37:01 +03:00
tophf
e51c632db6
fixup 74ef2f6f: 'editors' is a const
2018-07-10 11:45:52 +03:00
tophf
26f673f30d
move linter worker loaders to edit/
2018-07-10 11:35:19 +03:00
tophf
796b2b132d
FF execCommand bug workaround needs 'input' event dispatched
...
fixes #419
2018-07-06 12:37:35 +03:00
tophf
74ef2f6fcf
editors isn't defined on some pages like install-usercss
...
fixes #411
2018-07-03 08:42:13 +03:00
tophf
3c13f13ae2
FF workaround for broken execCommand and getSelection
...
closes #407
2018-06-29 13:00:25 +03:00
tophf
79c93ce54a
typo
2018-06-15 08:24:35 +03:00
tophf
468b2f6499
CodeMirror: recognize 'zoom' CSS property
2018-06-15 08:24:35 +03:00
tophf
2b268fc589
CSSLint/CodeMirror: background-position-x and -y
...
These have been used for a long time in the real world and will finally get standardized by the upcoming CSS Backgrounds and Borders Module L4.
fixes #397
2018-06-12 12:31:12 +03:00
tophf
44f3a79353
CSS Logical Properties and Values L1 - CodeMirror
2018-06-10 12:42:41 +03:00
tophf
f0c31f75b3
CSS Containment L1 (CR 2018-05-24)
...
https://www.w3.org/TR/css-contain-1/
2018-05-24 12:53:36 +03:00
tophf
0e81a4679d
typo: FF doesn't have window.event
2018-05-17 01:33:18 +03:00
tophf
5c444b4b96
draw fold marks in CSS since some fonts may not have them
2018-05-06 13:11:19 +03:00
tophf
f5750c7ab6
properly start live-preview after first save
2018-05-04 22:27:14 +03:00
Frank Dana
d0115acdf2
Change target of CSSLint "full list of rules" link
...
The "See a full list of rules" link in the CSSLint settings popup currently points to https://github.com/CSSLint/csslint/wiki/Rules-by-ID which is... rather sparse.
Instead, link to https://github.com/CSSLint/csslint/wiki/Rules
It contains all of the same rules / documentation-page links, but presents slightly more information to the user up front, without forcing them to click on everty rule for an explanation of what it is.
2018-05-04 14:23:04 +03:00
tophf
05dbcff7c3
insert spaces on <Tab> when editor.indentWithTabs is false
2018-05-01 23:13:53 +03:00
tophf
5ef347a4d9
LESS preprocessor
...
closes #373
2018-04-19 20:02:23 +03:00
tophf
0614aa2eee
new editor option: selectByTokens
...
implements #361 except for toggling via Ctrl
2018-04-18 19:33:36 +03:00
tophf
5174e7481f
stricter "var(" check and code cosmetics
2018-04-04 11:37:39 +03:00
tophf
1cc8ac7559
autocomplete for --css-variables inside var()
2018-04-03 21:39:09 +03:00
tophf
71b478fe98
use CM theme for applies-to buttons
2018-03-15 20:15:23 +03:00
tophf
dbba338229
report line:ch in live-preview errors for usercss
2018-03-11 16:47:27 +03:00
tophf
66704a78b3
actually use 'pre' font for code errors in messageBox.alert/confirm
2018-03-11 16:31:25 +03:00
tophf
32cd558dda
parse a few nonstandard webkit CSS properties
2018-03-09 02:34:29 +03:00
tophf
f9789e327b
show the new CM themes in the editor options
2018-03-03 23:36:29 +03:00
tophf
2c86f2f4b9
move commentSelection command to other editing commands
2018-03-03 23:36:29 +03:00
tophf
6e8ff5b9ef
simplify toggleEditorFocus now that CM 5.35 handles Ctrl-Pause
2018-03-03 23:36:29 +03:00
tophf
77d44c233e
preUpdateLinting hack isn't needed since CM 5.33
2018-03-03 23:36:28 +03:00
tophf
5acf815b79
report invalid selector in :not() as a warning
...
to prevent failures when updating usercss styles that have to override [currently] invalid :not() selectors used by the site
see #356
2018-03-03 17:28:29 +03:00
tophf
0ba26072f7
restore Chrome 49 compatibility: remove "u" flag in RegExp
...
since it wasn't used globally (e.g. vendor code) it made no real difference
2018-02-28 05:15:28 +03:00
tophf
4e4f0501d2
fixup: add the empty line correctly
2018-02-22 18:34:15 +03:00
tophf
4bb1a191cc
replace the last @-moz-document if present in a usercss template
...
when creating a new style for the site via popup
see #352
2018-02-22 12:59:56 +03:00
tophf
c5ef92cf9c
add the site section to a custom usercss template for new styles
...
fixes #352
2018-02-22 12:41:55 +03:00
tophf
e3d1c6588d
prefill new style name with the domain/hostname
...
implements #344
2018-02-14 05:53:35 +03:00
tophf
7a479edc56
more consistent focus/scroll behavior of global search
...
* keep page scroll position on Esc/close
* focus the match on Enter
2018-02-02 09:04:25 +03:00
tophf
32f0f4bd7a
preserve page scroll position after [de]beautification
2018-02-01 23:51:30 +03:00
tophf
02989edb05
eat unclosed comments
2018-01-30 18:59:28 +03:00
tophf
0f8bca03b8
fixup eaed0de4: don't enable livepreview for unsaved code
2018-01-15 19:16:48 +03:00
tophf
dc1cd890ee
notify event subscribers when toggling the style via Alt-Enter
2018-01-14 17:40:09 +03:00
tophf
3c15521fc2
tweak autocomplete helper
...
* use the faster getStyleAtPos
* autocomplete !important on typing !
* don't autocomplete hex colors
2018-01-14 17:10:54 +03:00
tophf
eaed0de486
init autocomplete/blur/focus for usercss in a common hook
2018-01-14 15:57:29 +03:00
tophf
fb1ef71f25
don't save the style in toggleStyle; use data-hotkey-tooltip
2018-01-12 14:32:15 +03:00
tophf
9affcd13bc
don't preview unsaved styles
2018-01-12 14:11:24 +03:00
tophf
989df35b05
live preview in editor
...
* refreshAllTabs was extracted
* ...and fixed to use each frame's url when getting the styles
2018-01-12 00:54:36 +03:00
tophf
022e588c97
allow errors in usercss when saving in editor and live-reloading
2018-01-07 16:36:30 +03:00
tophf
a6e2cf47ed
don't update the tally when the dialog isn't shown
2018-01-07 12:52:31 +03:00
tophf
d2cba96e10
refactor CSSLint
...
* reduce linting delay
* parse mozformat in worker
* allow empty functions in 'filter:' property
https://drafts.fxtf.org/filter-effects/#supported-filter-functions
* support comma-separated list in :lang()
* strip vendor prefix in isLiteral()
2018-01-07 12:31:23 +03:00
tophf
385dda9923
fixup 227dce01: new styles don't have usercssData
2018-01-06 09:50:48 +03:00
tophf
4a7c675d06
fix '.add-applies-to' click listener
2018-01-06 09:31:37 +03:00
tophf
227dce0177
don't disable Beautify (let the user decide); code cosmetics
2018-01-05 14:05:35 +03:00
tophf
bced23052c
remove some unnecessary deepCopy calls
2018-01-05 14:05:35 +03:00
tophf
bf17c7de94
preserve section indentation in usercss template
2018-01-04 16:45:41 +03:00
tophf
3418ac9cb9
FF: support private/container tabs
2018-01-03 10:43:56 +03:00
tophf
27fe9fa9db
search/replace in extra CodeMirror boxes e.g. lint config
2018-01-01 10:35:22 +03:00
tophf
b2100ea853
fixes for global search/replace
...
* Enter key in input fields:
* [Find mode] closes the dialog and focuses the matched text
* [Replace mode] performs a single replace action
* Undo button checks the new CM changeGeneration and disables itself
if the changes were already undone
* doUndo focuses the visible undo button
2018-01-01 09:56:41 +03:00
tophf
a66c377d8a
fix scrolling over linter issues in usercss mode
2017-12-28 07:01:43 +03:00
tophf
f2efff64fd
FF weird bug workaround: delay initLint() by 100ms
2017-12-25 09:28:26 +03:00
tophf
5df76b04e2
disable #save button right after opening a style
2017-12-25 02:26:01 +03:00
tophf
306b21b75e
show Ctrl-Pause hotkey in keymap info using a dummy command
2017-12-24 12:28:33 +03:00
tophf
57806bed45
don't set sessionStorage.justEditedStyleId to null
2017-12-24 02:37:26 +03:00
tophf
487bc77baa
actually replace 'usercssTemplate'
2017-12-24 01:50:53 +03:00
tophf
9279390e8c
handle double-click between number and %
2017-12-23 09:51:28 +03:00
tophf
8c96165fb4
refactor and improve selectTokenOnDoubleclick logic
2017-12-23 05:39:06 +03:00
tophf
a249167539
remove the no longer used defocusEditor command
2017-12-22 18:35:46 +03:00
tophf
d6c595d94e
detect double-clicked token boundaries better
2017-12-22 16:55:56 +03:00
tophf
068f23b029
fixup: include -+, exclude whitespace at line start
2017-12-22 16:29:52 +03:00
tophf
bf6b4eda83
select entire CSS token on double click
...
* .class-name
* property-name
* #some-id
* #123
* -webkit-any
* !important
* 12.5
2017-12-22 16:23:20 +03:00
tophf
d0380f76c3
rewrite colorview to use CodeMirror::TextMarker
...
* solves all problems with glitching on selection etc.
* perceived performance is same due to lazy-processing
* colors unsupported in current browser are displayed internally as RGB
* the color text is highlighted in the editor when popup is invoked
2017-12-22 11:22:35 +03:00
tophf
2dfaa22c35
Ctrl-Pause defocuses/focuses the editor
2017-12-22 11:22:02 +03:00
tophf
7d8507743d
add the missing CSS colors to codemirror parser
2017-12-20 00:42:51 +03:00
tophf
e50ff316ba
toggle narrow width mode tooltips via html+css; code cosmetics
2017-12-19 02:48:47 +03:00
tophf
1348eeb4e3
code cosmetics
2017-12-18 16:48:33 +03:00
tophf
4ecb6e7bc2
optimistically show 1 in tally only for a code match
2017-12-18 11:28:11 +03:00
tophf
31fd551264
trivial speed-ups for the single editor case
2017-12-18 10:27:50 +03:00
tophf
d10e83d15c
editor: rewrite global search/replace
2017-12-18 10:27:50 +03:00
tophf
fd047f8323
move getRealColors to colorpicker and reuse it
2017-12-18 10:27:50 +03:00
tophf
97e486e139
code cosmetics: silence a warning in edit.css
2017-12-18 10:27:50 +03:00
tophf
db2c4cd6fc
use standard font size in keymap info dialog
2017-12-18 10:27:50 +03:00
tophf
1f45618954
group similar items in keymap option selector
2017-12-18 10:27:50 +03:00
tophf
70d935d1a0
Ctrl-R to invoke replace in pcDefault/sublime keymaps
2017-12-18 10:27:50 +03:00