-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install styles from *.user.css file #134
Merged
Merged
Changes from all commits
Commits
Show all changes
252 commits
Select commit
Hold shift + click to select a range
81f490c
Fix: csslint is moved
eight04 6aaa7ef
Fix: configure icon
eight04 9c2acd5
Fix: remove unused variable 'event'
eight04 8607d77
Change how var is saved
eight04 dfb7ac9
Extend messageBox to set onclick handler on buttons
eight04 acd9bef
Change how configure dialog works.
eight04 0e5ab44
Fix: remove message.js dependency from localization.js
eight04 3c40b52
Add 'injectResource' message to inject js/css
eight04 4dec097
Rewrite usercss installation page
eight04 b3b4769
Fix: display homepage icon for usercss
eight04 78264a1
Add: parse more metas, add variable type
eight04 f74641e
Add: make filterUsercss build code to get section includes
eight04 6e52d48
Add: Add 'applies to' to install page
eight04 3f06ce8
Fix: don't mix url and updateUrl
eight04 f7a43d7
Add: draw different type of input
eight04 1f44898
Add: adopt node-semver
eight04 4e0f4b3
Add: colorParser
eight04 bf45575
Use options dialog style
eight04 3daff40
Add: vars validation
eight04 cb23f89
Add: allow saveUsercss to build style
eight04 8c374db
Add: live-reload
eight04 1c33172
Refactor: init
eight04 cfdb0b4
Add mode stylus, loadmode
eight04 8bc6986
Change: make unknown preprocessor throw
eight04 a15493b
Add: source editor
eight04 f305719
Fix: update progress
eight04 381ee88
Fix: i18n error message
eight04 20481c9
Fix: i18n config dialog
eight04 3730a4e
Fix: i18n and escapeHtml, url
eight04 41f0174
Add: valid url
eight04 d4ddefe
Merge branch 'master' of https://github.com/openstyles/stylus into de…
eight04 de84248
Fix: add editors hack
eight04 e2ea93a
Fix: decodeURI -> encodeURI
eight04 5fecd7e
Drop .before, .after, .prepend, .append
eight04 6ce4af8
Fix: wrong indentation
eight04 8207d60
Fix: injectResource -> injectContent
eight04 33200db
Fix: cleanup injectContent
eight04 a395df1
Fix: rewrite filterUsercss
eight04 e13a6f6
Fix: saveUsercss
eight04 e1d221e
Fix: saveStyle indent
eight04 f3176de
Fix: findDupUsercss indent
eight04 97b4d91
Fix: communicate -> runtimeSend
eight04 bbe37ad
Fix: drop tHTML
eight04 43b912c
Fix: remove suffix check
eight04 e4d3025
Revert changes to editors global
eight04 27f8bc2
Fix: don't use leading underscore for function name
eight04 7612cd3
Fix: move createEmptyStyle, windowLoaded into init
eight04 02c61b9
Fix: self -> _
eight04 e7eb38b
Fix: drop dummy Promise.resolve
eight04 4b2f7a1
Fix: make codeIsUpdated flag work properly
eight04 39df704
Fix: move editor creation to one structure
eight04 431dbdc
Fix: remove escapeHtml completely
eight04 7c1b140
Fix: drop tHTML
eight04 51e92e5
Fix: use IIFE for try-catch in tDocLoader
eight04 9069562
Fix: err -> e
eight04 e3c3dcc
Fix: use .map to build vars
eight04 a3f26d8
Fix: _parse -> parseRGB
eight04 8e5ffd0
Fix: use rgb() when alpha === 1
eight04 6b1d656
Fix: drop pad
eight04 23bd3e2
fixup! Fix: err -> e
eight04 a1b8945
Fix: remove try-catch in util.js
eight04 dc37588
Fix: drop windowLoaded
eight04 2506b95
Fix: rewrite loadScript, merge onDOMscripted, injectCSS, injectScript
eight04 2342cc5
fixup! Fix: rewrite loadScript, merge onDOMscripted, injectCSS, injec…
eight04 acaa1ed
Fix: appendChild -> textContent
eight04 436551a
Fix: alpha channel -> opacity
eight04 6165487
Fix: use lowercase placeholder
eight04 93fe23f
Fix: innerHTML -> textContent
eight04 279c7d0
Fix: _style -> newStyle
eight04 31464bb
Fix: reference error
eight04 fa06b29
Fix: add 'v' before version
eight04 b102aa0
Fix: beforeunload warning
eight04 6195e55
Fix: draw title
eight04 0e92e6d
Add applies-to line widget
eight04 d7f0e3c
fixup! Fix: draw title
eight04 b61b058
Fix: pull out makeLink
eight04 3c450e7
Fix: resize grip style
eight04 411df8b
Fix: no need to use $$ for element existence check
eight04 40a5dab
Fix: script order of loadLinterAssets
eight04 97fd2aa
Compat: firefox
eight04 b7b5888
Fix: should't edit the style object directly returned from getStyles …
eight04 37c83ce
Fix: shouldn't contain new line
eight04 2ba4c4f
Fix: remove debounce dependency
eight04 70bbc08
Add editor.appliesToLineWidget option
eight04 a542d22
Fix: adjust install page layout
eight04 553cc94
Fix: style install button
eight04 5a9ac5c
Add: scroll the editor when cursor is outside of the editor
eight04 21256e3
Fix: wrap long line
eight04 eaf33af
Rewrite parser, add uso preprocessor
eight04 ccb5f48
Fix: move to new format
eight04 693a048
Add: offset info
eight04 a73493d
Add: make applies-to line widget editable
eight04 4d6f856
Revert "Add: scroll the editor when cursor is outside of the editor"
eight04 dc988a4
Revert: editors
eight04 a0495f4
Change style structure
eight04 aed3698
Fix: looseJSONParse doesn't work on chrome 49
eight04 90ca2f2
Fix: autocomplete should use changes event
eight04 94e5336
Fix: don't set updateUrl to a local file
eight04 1e9ee78
Fix: normalize new line
eight04 1d829fe
Fix: split up usercss logic from saveStyle
eight04 94a7e0c
Fix: manually updated usercss doesn't keep settings
eight04 aa71984
Fix: save name when updating usercss
eight04 ead006a
Fix: remove button style
eight04 d1964bb
Fix: make download be able to read file:
eight04 ba4c06a
Fix: lint initialize issue
eight04 0852b56
Fix: add set updateUrl option
eight04 2b6404c
Fix: stop live-reload and refresh the page when style is removed
eight04 a4e3fba
Fix: source editor is not closed when style is removed
eight04 18fd153
WIP: install page
eight04 24cd856
WIP: install page + editor
eight04 cb7aaa7
Fix: move to root
eight04 587feb3
Fix: externalLink might be null
eight04 7365a8b
Fix: various fixes
eight04 04ebc83
Fix: use closeCurrentTab
eight04 c2eadda
Add: live-reload
eight04 2912a53
Fix: missing id when updating digest
eight04 6636d33
Fix: install error when live-reload is disabled
eight04 bb508b6
Fix: import error is not displayed correctly
eight04 b69b834
Fix: handle editor.options.expanded
eight04 0f6de58
Add: remove/add button in applies-to widget
eight04 b866688
Add: parse author string
eight04 c0514a6
Change: default linter
eight04 f194155
Add: close source tab after install
eight04 0d4d058
Fix: remove unused initInstallPage
eight04 da5626a
Add: save usercss from multi-section editor
eight04 56e669f
Fix: normalize version
eight04 fc51d80
Fix: force using stylelint when editor mode is not css
eight04 40a1781
Fix: TypeError when missing author meta
eight04 7652315
Fix: onbeforeunload handler would disable the save button
eight04 f255631
Fix: live-reload doesn't send style id
eight04 9ee7e20
Refactor: split out regexp tester
eight04 50a5bbe
Add: regexp tester in applies-to line widget
eight04 8007f47
Revert "Add: save usercss from multi-section editor"
eight04 3cb1943
Add: newStyleFormat option
eight04 228057d
Add: make source editor work with newly created style
eight04 1a6f9df
Add: confirmation to replace dirty style
eight04 2f3c477
Fix: openEditor has no response
eight04 cd00c20
Fix: newStyleFormat -> newStyleInUsercss
eight04 a901ca2
Add: allow array in var select
eight04 77b6b6c
Change: drop looseJSONParse
eight04 1d1c7da
Fix: hide the header in error page
eight04 c0378e3
Fix: uso preprocessor infinite recursion
eight04 4115705
Fix: uso replace doesn't work on var select
eight04 3906060
Add: multi-line string syntax
eight04 5b701d0
Add: detail dialog. Move makeAuthor to dom.js. Move external.svg into
eight04 2642206
Change: the layout of color input
eight04 7ca9938
Change: always set updateUrl
eight04 ce2a214
Add: usercss documentation link in the editor
eight04 eec52ad
Revert "Add: detail dialog. Move makeAuthor to dom.js. Move external.…
eight04 40ad783
Change: allow makeLink to append child. Add rel=noopener
eight04 33607e7
Fix: let makeAuthor use makeLink
eight04 54076d9
Merge branch 'master' of https://github.com/openstyles/stylus into de…
eight04 a1ca416
Fix: miss makeLink global
eight04 7c22489
Change: let makeLink accept object
eight04 c1d2857
Add: config dialog heading - feedback link
eight04 9770523
Fix: vertical rhythm in config dialog
eight04 96a046f
Fix: toggle style outside of the editor
eight04 368bb34
Fix: make updateLinter wait linterConfig to load
eight04 9590238
Fix: default linter hacks
eight04 be4a896
Fix: disable CSSLint option in stylus mode
eight04 831a4ef
Fix: remove logging in wrapReject
eight04 0a6de8e
Add: make dirtyReporter.clear accept a key
eight04 ce348d4
Fix: add isWarm flag to decide if the editor can be reloaded
eight04 7101362
Fix: description for linterCSSLintIncompatible
eight04 adc0c80
Fix: lazy load regexp tester
eight04 62748b3
Fix: use arrow function for IIFE
eight04 6fac838
Fix: unused translation
eight04 6536028
Fix: typo
eight04 6f51100
Fix: unused injectContent
eight04 79b6266
Fix: no new line before use strict
eight04 098dc10
Fix: pull out runtimeSend
eight04 398056c
Fix: _source -> newSource
eight04 13ca45a
Fix: reorder global comment
eight04 45da3ff
Fix: style.id consistency
eight04 9dddbbb
Fix: unused getName
eight04 534803c
Fix: isWarm
eight04 8f642dc
Fix: drop innerHTML
eight04 6a53ea4
Refactor: pull out createAppliesToLineWidget
eight04 d981660
Fix: drop getParams
eight04 45e70b2
Fix: use Array.isArray
eight04 f35fbb5
Fix: add styleMetaErrorSelectValueMismatch
eight04 71a1c5e
Fix: old -> oldStyle
eight04 db1643e
Refactor: pull out colorParser
eight04 0ad0c70
Fix: unnecessary trim line
eight04 2b17c07
Fix: use CodeMirror.defineExtension
eight04 5a9f78e
Add: key:label syntax in var select
eight04 391cfb5
Fix: then -> than the
eight04 90be1da
Fix: status: 'success' -> success: true
eight04 08c7004
Fix: use switch for version compare
eight04 8d19e0b
Fix: noReject in one line
eight04 92b01e1
Fix: reindent single then
eight04 e0bd991
Fix: promise indent
eight04 f70cf01
Fix: move let definition into one line
eight04 285f314
Fix: style -> gutterStyle
eight04 a7b73e8
Fix: use debounce
eight04 caaeec0
Fix: use Math.max
eight04 191603a
Fix: makeInputEl -> makeLi
eight04 9d1b088
Fix: use this.value
eight04 3c51361
Fix: use messageBox
eight04 8094149
Refactor: add createApply
eight04 3d57fd4
Fix: e.target -> this
eight04 0c64e60
Fix: insertBefore -> insertAdjancentElement
eight04 3844b3d
Fix: cm.findPosH in one line
eight04 2edd22e
Fix: normalizeString -> unquote
eight04 92cadc0
Fix: avoid return short circuit for editor selection
eight04 c4c4b56
Refactor: isUsercss
eight04 b4dfe5c
Fix: use isArray
eight04 eef17cc
Fix: replaceMetas -> replaceMeta
eight04 48e5650
Fix: reindent promise
eight04 0d06f32
Fix: updateMetas -> updateMeta
eight04 fa1c55b
Fix: EOF
eight04 7266c38
Fix: inline svg
eight04 2b614bd
Fix: dom.js is not a content script anymore
eight04 5f5b06b
Fix: use FIREFOX variable
eight04 0c292c3
Fix: download should throw status code
eight04 95e3ba1
Fix: newStyleInUsercss -> newStyleAsUsercss
eight04 3a78681
Fix: use .map to build varDef
eight04 6358162
Fix: createOption in one line
eight04 f86d0fc
Fix: use sticky flag to avoid slicing string
eight04 a1b818f
Fix: invalid default value for dropdown
eight04 09e7d67
Refactor: buildMeta
eight04 7842ac7
i18n: styleMetaErrorPreprocessor
eight04 c17433c
Fix: use switch-case
eight04 dd64551
Fix: set dirty prop in one line
eight04 78c1a1b
Fix: el -> elements
eight04 5dd322e
Refactor: shouldShowConfig
eight04 f070d7f
Fix: indent of promises
eight04 137198e
Refactor: messageBox
eight04 4a8894d
Add: use messageBox in install page
eight04 1dd0dbf
Revert: isSame/isEdited util
eight04 29f5daa
i18n: live reload error
eight04 3011ba8
Fix: isInit -> initialized
eight04 9a8c19b
Fix: move isClean into unbeforeunload handler
eight04 988a920
Fix: use getOwnTab in closeCurrentTab
eight04 d03c752
Fix: promise indent
eight04 53770c0
i18n: appliesRemoveError
eight04 6d411c0
Fix: use sticky flag to avoid text slicing
eight04 d93bf05
Fix: isWarm -> isTouched
eight04 c268757
Add setStyleDirty, refactor replaceStyle
eight04 ae50cbe
Refactor: move alert/confirm util to msgbox.js
eight04 4d8268b
Fix: use messageBox
eight04 d02984e
Add: expose parseError.index
eight04 79a7a21
Fix: align text to left in pre
eight04 a1c1eb3
Add: draw line pointer for parsing error
eight04 7543b84
Fix: messageBox global
eight04 ecc306d
Change: move header to the top
eight04 d59f24c
Change: a simpler installUpdateFromLabel
eight04 9b41a70
Fix: link style
eight04 26e46a9
Fix: min height of message box title
eight04 58c0239
Change: allow select to stretch up to 124px
eight04 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These messages are used by usercss parser. Is it necessary to translate error messages? If not, we can remove them. Also note that errors from JSON parser is not translated, and errors thrown by CSSLint (moz-parser) or Stylus-lang preprocessor are not translatable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let them be.