Commit Graph

2874 Commits

Author SHA1 Message Date
tophf
f5fc6a91a3 initialize router earlier, fixes ea5a7832 2020-12-17 23:23:18 +03:00
tophf
df2e8221d2 extract fitSelectBox() 2020-12-17 23:23:18 +03:00
tophf
9ffa754246 move MozDocMapper to sections-util.js 2020-12-17 23:23:18 +03:00
tophf
0bf1d365a3 simplify regexpTester::isShown 2020-12-17 23:23:18 +03:00
tophf
f8269c7424 simplify exports 2020-12-17 23:23:18 +03:00
tophf
e74a349a88 extract stuff from edit.js and load on demand 2020-12-17 23:23:18 +03:00
tophf
8d639b6140 blank paint frame workaround for new Chrome 2020-12-17 23:23:17 +03:00
tophf
d037825729 parserlib: fast section extraction 2020-12-17 23:23:17 +03:00
tophf
ffdfc648f0 rework waitForSelector and collapsible <details> 2020-12-17 23:23:17 +03:00
tophf
246d0a3bad fix autofocus in popups, follow-up to 5bb1b5ef 2020-12-17 23:23:17 +03:00
tophf
72330b480b consistent window scrolling in scrollToEditor and jumpToPos 2020-12-17 23:23:17 +03:00
tophf
9d8f9ec5a2 restore scrollInfo focus for first CM 2020-12-17 23:23:17 +03:00
tophf
7ff1f17772 asyncify/split save(), use setSelections 2020-12-17 23:23:17 +03:00
tophf
d054dcf42e migrate to AMD modules 2020-12-17 23:23:17 +03:00
tophf
c2adfbf902 fix temporal dead zone in apply.js 2020-12-17 23:13:57 +03:00
tophf
6fb19270ec remove the obsolete Chrome pre-65 workaround 2020-12-17 23:13:57 +03:00
tophf
6067bb27d7 openManage: unminimize windows 2020-12-17 23:13:57 +03:00
tophf
7fdbc755b4 allow recoverable css errors + async'ify usercss.js 2020-12-17 23:13:57 +03:00
tophf
32c834f513 getAllKeys is implemented since Chrome48, FF44 2020-12-17 23:13:57 +03:00
tophf
432e5db283 don't trust location.href as it hides text fragment 2020-12-17 23:13:57 +03:00
tophf
a07190a3b0 upgrade getEventKeyName to handle mouse clicks 2020-12-17 23:13:57 +03:00
tophf
9ecd8cc479 API.* groups + async'ify
* API.styles.*
* API.usercss.*
* API.sync.*
* API.worker.*
* API.updater.*
* simplify db: resolve with result
* remove API.download
* simplify download()
* remove noCode param as it wastes more time/memory on copying
* styleManager: switch style<->data names to reflect their actual contents
* inline method bodies to avoid indirection and enable better autocomplete/hint/jump support in IDE
2020-12-17 23:13:57 +03:00
tophf
1e614fa2bc don't count&title removed sections 2020-12-15 01:52:10 +03:00
tophf
7140993e6c parserlib: fix reading \\, regressed in 6d04c0e 2020-12-14 21:18:15 +03:00
tophf
775d77a3a8 clone change positions to avoid breaking CodeMirror 2020-12-10 23:25:07 +03:00
tophf
579750fbc0 fix linting when style was initially error-free
regressed in e6f94378
2020-12-10 11:00:24 +03:00
tophf
0b540fbabd parserlib: up to 10% faster first run
* inline generation of trivial tokens
* remove Tokens.CUSTOM_PROP
* allow fit-content keyword as it's used in the wild
* add color-scheme
* add path()
* don't try to validate props with vars
* auto-compile function grammar
* remove CSS4 color functions
* show full error stack
2020-12-10 01:30:17 +03:00
tophf
75cf46aaa7 fix search-target-editor style 2020-12-08 23:03:13 +03:00
tophf
26a539bd62 fix closestVisible nearby check 2020-12-08 18:50:14 +03:00
tophf
463c3b5139 fix subsequent clicks in colorpicker
seems like new CodeMirror modifies the position object
2020-12-08 14:46:03 +03:00
tophf
6d04c0eb7d optimize parserlib by ~10%
* add skipValidation option
* set `recoverable:true` on errors inside declarations
2020-11-29 15:11:31 +03:00
tophf
e6f94378bf re-enable linter after import + async'ify
regressed in 420733b9
2020-11-29 14:25:07 +03:00
tophf
207afccd65
improve autocomplete (#1136)
* fix interaction when search overlay splits `styles`
* handle @rules and @-moz-document functions
* show props in stylus-lang
2020-11-28 23:29:33 +03:00
tophf
6847681ed3 fix findSections for {} + detect reusedEnd 2020-11-27 15:10:03 +03:00
tophf
a87c49f0fc autoresize embedded popup for config dialogs 2020-11-27 15:09:16 +03:00
tophf
cb64a6bac9 use jumpToPos more, fix coords calc 2020-11-26 17:04:51 +03:00
tophf
6451eb533c switch to styleMissingName 2020-11-26 12:09:11 +03:00
tophf
355f240779 add a suffix in editor title 2020-11-26 12:04:42 +03:00
tophf
a91183e1bb fix scrolling in jumpToPos 2020-11-25 23:28:22 +03:00
tophf
a5848682b3 normalize linebreaks in parseMozFormat 2020-11-24 21:04:11 +03:00
tophf
7c2b46be83 fix PortDownloader::onDisconnect 2020-11-24 17:06:25 +03:00
tophf
c635f2e38c monkeypatch next/prevBookmark commands to use jumpToPos 2020-11-24 15:17:14 +03:00
tophf
657798d219 improve bookmarking + rework codemirror-factory.js
* pull editing-only stuff from codemirror-default.js
* switch throttledSetOption to IntersectionObserver
2020-11-24 13:16:51 +03:00
tophf
b4ca17c531 call rerouteHotkeys when restoring scrollInfo
...because we intentionally don't focus any CM in this case as it's bugged as hell
2020-11-24 13:16:51 +03:00
tophf
32cca90ddd limit button reposition to usercss (8b58b228 fixup) 2020-11-24 12:54:39 +03:00
tophf
8b58b22825 [simple-window editor] embed popup as iframe 2020-11-24 12:16:23 +03:00
tophf
b59737a012 $create: assign style property as a string/object 2020-11-24 12:16:23 +03:00
tophf
eb99101f35 inform if the found style doesn't match site url 2020-11-24 00:07:49 +03:00
tophf
5bb1b5ef35 dedup code for modals in popup 2020-11-24 00:07:49 +03:00
tophf
4d198f56e2 faster popup load to avoid resize flicker 2020-11-24 00:07:49 +03:00