Commit Graph

522 Commits

Author SHA1 Message Date
eight
f5ea73caeb Fix: remove unneeded comment 2018-09-01 21:23:12 +08:00
eight
ca5c0e92cd Switch to new linter/worker 2018-09-01 19:12:24 +08:00
eight
054d94ebd2 Add: updateCount. Fix table caption 2018-09-01 19:12:04 +08:00
eight
f42e97d71d Fix: hide empty table 2018-09-01 19:11:06 +08:00
eight
e44b5008ca Add: refresh. Fix report order 2018-09-01 18:59:47 +08:00
eight
bd29c07090 Drop lint.js 2018-09-01 18:28:21 +08:00
eight
eb76861fad Add: use cacheFn 2018-09-01 18:20:12 +08:00
eight
2e66ecca18 Add: linter-config-dialog, cacheFn 2018-09-01 18:19:39 +08:00
eight
0b039cb840 Drop linterConfig 2018-09-01 18:18:18 +08:00
eight
259f1d784b Add: linter-help-dialog 2018-09-01 15:52:30 +08:00
eight
d8c9bc8379 Fix: shouldn't delete rule.init 2018-09-01 15:51:56 +08:00
eight
60776fc782 Add: gotoLintIssue 2018-09-01 15:05:29 +08:00
eight
5ec82adaf9 Add: unhook event 2018-09-01 14:47:54 +08:00
eight
30fb084d4d Add: matain the order of lint report for section editor 2018-09-01 14:44:05 +08:00
eight
d57c327955 Fix: toggle hidden state 2018-09-01 14:23:25 +08:00
eight
f79b92c7b0 WIP: linter-report 2018-09-01 01:42:17 +08:00
eight
fe4cc7b59f Fix: logic to get correct linter 2018-08-31 23:17:42 +08:00
eight
ed3ec6215c Add: getStylelintRules, getCsslintRules 2018-08-31 22:50:15 +08:00
eight
3b4db6f858 Add: stylelint 2018-08-31 22:31:50 +08:00
eight
cb77774310 Fix: refresh linter if the editor.linter changes 2018-08-31 22:31:44 +08:00
eight
873c0cff4b Switch to new linter and worker 2018-08-31 20:01:39 +08:00
eight
af08f1ae23 Refactor: pull out editor worker 2018-08-31 20:00:21 +08:00
eight
fd01abe553 Add: implement new linter system 2018-08-31 19:59:40 +08: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