tophf
|
9f4066faa1
|
code cosmetics: remove redundant comments
|
2017-11-15 11:36:24 +03:00 |
|
tophf
|
5a9227ce8c
|
speedup usercss opening: combine a few ops
|
2017-11-15 11:35:54 +03:00 |
|
tophf
|
15c98bac9e
|
fixup 8ca7c363: focus() must be the last action
|
2017-11-15 11:33:37 +03:00 |
|
tophf
|
82651ed6cd
|
usercss: create applies-to widgets faster on load
only the visible portion is built immediately, the rest is throttled
|
2017-11-15 10:54:19 +03:00 |
|
tophf
|
06cc703887
|
use CSS variables for applies-to line widgets
|
2017-11-15 09:04:09 +03:00 |
|
tophf
|
14dbfdd915
|
update applies-to widget on any style changes
|
2017-11-15 08:32:22 +03:00 |
|
tophf
|
9868a1819c
|
actually focus code after import
|
2017-11-15 08:15:06 +03:00 |
|
tophf
|
b9f6095db5
|
focus code on opening standard editor immediately
|
2017-11-15 04:53:37 +03:00 |
|
tophf
|
8ca7c36380
|
focus code on opening usercss editor
|
2017-11-15 04:27:33 +03:00 |
|
tophf
|
8517e392fe
|
throttle mozImport after 100ms, display progress after 500ms
* Ctrl-Enter = append button
* Shift-Ctrl-Enter = replace button
* instantaneous readiness of import dialog on non-blank input
* code dedup: addSections()
* trimNewLines() -> trim()
|
2017-11-15 04:24:36 +03:00 |
|
tophf
|
102b5e03d4
|
superfast cm.isBlank() instead of !cm.getValue().trim()
|
2017-11-15 02:50:53 +03:00 |
|
tophf
|
e4cd984061
|
regexp tester: switch to existing tabs also in other windows
|
2017-11-14 09:49:07 +03:00 |
|
tophf
|
135d8d9c54
|
force wrapping in regexp-report summary
|
2017-11-14 09:38:09 +03:00 |
|
tophf
|
95be66cb61
|
convert another tHTML in edit.js to $element
|
2017-11-14 09:36:43 +03:00 |
|
tophf
|
70a827b033
|
dd69e1e5 followup + handle empty at-values
see #235
|
2017-11-14 08:55:53 +03:00 |
|
tophf
|
1d463d7820
|
Merge pull request #134 from eight04/dev-user-css
Install styles from *.user.css file
|
2017-11-14 08:22:56 +03:00 |
|
eight
|
7543b8406f
|
Fix: messageBox global
|
2017-11-09 15:56:29 +08:00 |
|
eight
|
a1c1eb328b
|
Add: draw line pointer for parsing error
|
2017-11-09 15:55:06 +08:00 |
|
eight
|
4d8268bb27
|
Fix: use messageBox
|
2017-11-09 14:40:46 +08:00 |
|
eight
|
c2687573b3
|
Add setStyleDirty, refactor replaceStyle
|
2017-11-09 14:11:27 +08:00 |
|
eight
|
d93bf05f64
|
Fix: isWarm -> isTouched
|
2017-11-09 14:11:27 +08:00 |
|
eight
|
6d411c01fc
|
Fix: use sticky flag to avoid text slicing
|
2017-11-09 14:11:27 +08:00 |
|
eight
|
53770c0db6
|
i18n: appliesRemoveError
|
2017-11-09 14:11:26 +08:00 |
|
eight
|
9a8c19b09b
|
Fix: move isClean into unbeforeunload handler
|
2017-11-09 14:11:26 +08:00 |
|
eight
|
3011ba836d
|
Fix: isInit -> initialized
|
2017-11-09 14:11:26 +08:00 |
|
eight
|
95e3ba13cd
|
Fix: newStyleInUsercss -> newStyleAsUsercss
|
2017-11-09 09:12:14 +08:00 |
|
eight
|
0d06f32735
|
Fix: updateMetas -> updateMeta
|
2017-11-09 09:12:13 +08:00 |
|
eight
|
48e565079c
|
Fix: reindent promise
|
2017-11-09 09:12:12 +08:00 |
|
eight
|
eef17cc4f8
|
Fix: replaceMetas -> replaceMeta
|
2017-11-09 09:12:12 +08:00 |
|
eight
|
b4dfe5c836
|
Fix: use isArray
|
2017-11-09 09:12:12 +08:00 |
|
eight
|
c4c4b5638e
|
Refactor: isUsercss
|
2017-11-09 09:12:12 +08:00 |
|
eight
|
92cadc03fa
|
Fix: avoid return short circuit for editor selection
|
2017-11-09 09:12:11 +08:00 |
|
eight
|
2edd22e37c
|
Fix: normalizeString -> unquote
|
2017-11-09 09:12:10 +08:00 |
|
eight
|
3844b3db73
|
Fix: cm.findPosH in one line
|
2017-11-09 09:12:10 +08:00 |
|
eight
|
0c64e6013b
|
Fix: insertBefore -> insertAdjancentElement
|
2017-11-09 09:12:09 +08:00 |
|
eight
|
3d57fd4158
|
Fix: e.target -> this
|
2017-11-09 09:12:09 +08:00 |
|
eight
|
809414941e
|
Refactor: add createApply
|
2017-11-09 09:12:08 +08:00 |
|
eight
|
3c5136171e
|
Fix: use messageBox
|
2017-11-09 09:12:08 +08:00 |
|
eight
|
9d1b0884e5
|
Fix: use this.value
|
2017-11-09 09:12:08 +08:00 |
|
eight
|
191603ae01
|
Fix: makeInputEl -> makeLi
|
2017-11-09 09:12:07 +08:00 |
|
eight
|
caaeec08e4
|
Fix: use Math.max
|
2017-11-09 09:12:06 +08:00 |
|
eight
|
a7b73e859f
|
Fix: use debounce
|
2017-11-09 09:12:06 +08:00 |
|
eight
|
285f3144ca
|
Fix: style -> gutterStyle
|
2017-11-09 09:12:04 +08:00 |
|
eight
|
f70cf01155
|
Fix: move let definition into one line
|
2017-11-09 09:12:04 +08:00 |
|
eight
|
2b17c07cd6
|
Fix: use CodeMirror.defineExtension
|
2017-11-01 11:18:42 +08:00 |
|
eight
|
d981660983
|
Fix: drop getParams
|
2017-11-01 11:17:00 +08:00 |
|
eight
|
6a53ea423c
|
Refactor: pull out createAppliesToLineWidget
|
2017-11-01 11:17:00 +08:00 |
|
eight
|
8f642dc05c
|
Fix: drop innerHTML
|
2017-11-01 11:17:00 +08:00 |
|
eight
|
534803ccfd
|
Fix: isWarm
|
2017-11-01 11:17:00 +08:00 |
|
eight
|
9dddbbba9f
|
Fix: unused getName
|
2017-11-01 11:16:59 +08:00 |
|
eight
|
45da3ff50e
|
Fix: style.id consistency
|
2017-11-01 11:16:59 +08:00 |
|
eight
|
13ca45a104
|
Fix: reorder global comment
|
2017-11-01 11:16:46 +08:00 |
|
eight
|
79b6266cf9
|
Fix: no new line before use strict
|
2017-11-01 11:13:57 +08:00 |
|
tophf
|
3c665aea08
|
widen editor input[type="number"], align to match siblings
fixes #221
|
2017-10-31 12:52:11 +03:00 |
|
eight
|
62748b3b79
|
Fix: use arrow function for IIFE
|
2017-10-30 01:22:10 +08:00 |
|
eight
|
adc0c8025a
|
Fix: lazy load regexp tester
|
2017-10-30 01:07:08 +08:00 |
|
eight
|
ce348d4f86
|
Fix: add isWarm flag to decide if the editor can be reloaded
|
2017-10-16 16:08:13 +08:00 |
|
eight
|
0a6de8edb8
|
Add: make dirtyReporter.clear accept a key
|
2017-10-16 16:05:48 +08:00 |
|
eight
|
be4a896bc9
|
Fix: disable CSSLint option in stylus mode
|
2017-10-16 14:54:47 +08:00 |
|
eight
|
95902388a3
|
Fix: default linter hacks
|
2017-10-16 03:58:02 +08:00 |
|
eight
|
368bb34811
|
Fix: make updateLinter wait linterConfig to load
|
2017-10-15 05:19:22 +08:00 |
|
eight
|
96a046f774
|
Fix: toggle style outside of the editor
|
2017-10-15 04:18:23 +08:00 |
|
eight
|
a1ca416ef2
|
Fix: miss makeLink global
|
2017-10-15 02:59:28 +08:00 |
|
narcolepticinsomniac
|
e612a305cc
|
Moz-import background
Fixes #209
I used `!important` because I think it might be necessary to override themes.
|
2017-10-12 19:50:41 -04:00 |
|
eight
|
54076d9f17
|
Merge branch 'master' of https://github.com/openstyles/stylus into dev-user-css
|
2017-10-12 16:28:18 +08:00 |
|
eight
|
ce2a21451a
|
Add: usercss documentation link in the editor
|
2017-10-11 22:23:39 +08:00 |
|
eight
|
cd00c20fa4
|
Fix: newStyleFormat -> newStyleInUsercss
|
2017-10-09 00:52:05 +08:00 |
|
eight
|
1a6f9dfcaa
|
Add: confirmation to replace dirty style
|
2017-10-09 00:43:00 +08:00 |
|
eight
|
228057d231
|
Add: make source editor work with newly created style
|
2017-10-08 23:26:55 +08:00 |
|
eight
|
8007f47c09
|
Revert "Add: save usercss from multi-section editor"
This reverts commit da5626a6d7 .
|
2017-10-08 22:08:47 +08:00 |
|
eight
|
50a5bbecfa
|
Add: regexp tester in applies-to line widget
|
2017-10-08 22:03:27 +08:00 |
|
eight
|
9ee7e2046c
|
Refactor: split out regexp tester
|
2017-10-07 23:41:37 +08:00 |
|
eight
|
765231581c
|
Fix: onbeforeunload handler would disable the save button
|
2017-10-07 18:10:00 +08:00 |
|
eight
|
fc51d806da
|
Fix: force using stylelint when editor mode is not css
|
2017-10-07 18:00:25 +08:00 |
|
eight
|
da5626a6d7
|
Add: save usercss from multi-section editor
|
2017-10-06 17:05:51 +08:00 |
|
eight
|
c0514a6699
|
Change: default linter
|
2017-10-06 16:33:49 +08:00 |
|
eight
|
0f6de587ec
|
Add: remove/add button in applies-to widget
|
2017-10-06 01:10:45 +08:00 |
|
eight
|
b69b834949
|
Fix: handle editor.options.expanded
|
2017-10-04 16:47:56 +08:00 |
|
eight
|
bb508b6933
|
Fix: import error is not displayed correctly
|
2017-10-04 16:39:02 +08:00 |
|
eight
|
04ebc837e2
|
Fix: use closeCurrentTab
|
2017-09-25 18:45:44 +08:00 |
|
eight
|
7365a8bada
|
Fix: various fixes
|
2017-09-25 18:43:55 +08:00 |
|
eight
|
24cd85688f
|
WIP: install page + editor
|
2017-09-24 16:54:21 +08:00 |
|
tophf
|
2d8adf1173
|
restore size on reopening a closed editor tab
|
2017-09-23 21:33:57 +03:00 |
|
eight
|
a4e3fba968
|
Fix: source editor is not closed when style is removed
|
2017-09-19 08:51:57 +08:00 |
|
eight
|
ba4c06ae82
|
Fix: lint initialize issue
|
2017-09-19 08:51:56 +08:00 |
|
eight
|
1d829fe8f5
|
Fix: split up usercss logic from saveStyle
|
2017-09-18 11:34:12 +08:00 |
|
eight
|
90ca2f2d23
|
Fix: autocomplete should use changes event
|
2017-09-18 07:33:07 +08:00 |
|
eight
|
a0495f466f
|
Change style structure
|
2017-09-16 10:14:23 +08:00 |
|
eight
|
dc988a413e
|
Revert: editors
|
2017-09-16 08:44:56 +08:00 |
|
eight
|
4d6f856473
|
Revert "Add: scroll the editor when cursor is outside of the editor"
This reverts commit 5a9ac5ce7d .
|
2017-09-16 07:33:12 +08:00 |
|
eight
|
a73493d5d2
|
Add: make applies-to line widget editable
|
2017-09-15 17:13:58 +08:00 |
|
eight
|
693a0483e3
|
Add: offset info
|
2017-09-15 15:36:44 +08:00 |
|
eight
|
ccb5f488e5
|
Fix: move to new format
|
2017-09-15 14:11:58 +08:00 |
|
eight
|
5a9ac5ce7d
|
Add: scroll the editor when cursor is outside of the editor
|
2017-09-15 07:47:44 +08:00 |
|
eight
|
70bbc08ee0
|
Add editor.appliesToLineWidget option
|
2017-09-14 09:58:22 +08:00 |
|
eight
|
37c83ce187
|
Fix: shouldn't contain new line
|
2017-09-14 09:10:11 +08:00 |
|
eight
|
b7b5888431
|
Fix: should't edit the style object directly returned from getStyles cache
|
2017-09-14 09:09:40 +08:00 |
|
eight
|
97fd2aa083
|
Compat: firefox
|
2017-09-13 23:35:34 +08:00 |
|
eight
|
40a5dab311
|
Fix: script order of loadLinterAssets
|
2017-09-13 21:26:22 +08:00 |
|
eight
|
411df8b051
|
Fix: no need to use $$ for element existence check
|
2017-09-13 20:39:42 +08:00 |
|