Commit Graph

2543 Commits

Author SHA1 Message Date
dana
d95b857491 Merge branch 'master' of https://github.com/DanaMW/stylus
* 'master' of https://github.com/DanaMW/stylus:
2018-11-03 11:44:22 -07:00
dana
3bc2b3f2e8 Merge remote-tracking branch 'upstream/master'
* upstream/master:
  Implement Dropbox export (#82) (#393)
  1.4.23
  Update dev dependencies & CodeMirror
  Locales (#532)
2018-11-03 11:44:17 -07:00
Dana Meli
89b6c27b4e Merge remote-tracking branch 'upstream/master' 2018-11-03 11:42:30 -07:00
Matheus Faustino
79c6506c5c Implement Dropbox export (#82) (#393)
* Implement Dropbox export (#82)

* Remove wrong dropbox api key

* Improve implementation of Dropbox by using identity.launchWebAuthFlow api and get rid of web_accessible_resources

* We don't need a dropbox receiver anymore, remove constante with the html file

* Implement compression in dropbox export

* Add LICENSE file from dropbox and zipjs

* Fix code style error

* Fix code style and folder structure of the feature

* Fix eslint error in dropbox implementation

* Add real dropbox api key from stylus dropbox account

* For test only: fixed addon's ID on firefox

* Change the file not found message to a better one

* Add dropdown style on export and import buttons

* Changes arrow from buttons to svg

* Remove applications entry on manifest.json

* Remove unnecessary break line
2018-11-03 13:33:35 -05:00
Rob Garrison
5c6cf72a4c 1.4.23 2018-11-03 12:58:39 -05:00
Rob Garrison
14144c287c Update dev dependencies & CodeMirror 2018-11-03 12:12:02 -05:00
Rob Garrison
5536f7ad22
Locales (#532)
* Add gitattributes

* Add update locales script

* Update locales

* Remove old script files

* Switch to use transifex client app
2018-11-03 09:37:25 -05:00
dana
b6dcc68687 Merge branch 'master' of https://github.com/DanaMW/stylus
* 'master' of https://github.com/DanaMW/stylus:
  Update
2018-10-27 03:15:25 -07:00
dana
09dab03779 Update package.json
updates
2018-10-27 03:10:27 -07:00
dana
d7101ae202 Merge remote-tracking branch 'upstream/master'
* upstream/master:
  Fix incorrect USO md5Url (#523) (#527)
2018-10-27 02:55:19 -07:00
Dana Meli
63f40ee1de Update 2018-10-26 22:20:30 -07:00
Dana Meli
087366983a Merge remote-tracking branch 'upstream/master' 2018-10-26 21:46:06 -07:00
Rob Garrison
30cf5b2458
Fix incorrect USO md5Url (#523) (#527)
* Fix incorrect USO md5Url (#523)

* Fix md5Url in getAll

* Remove variable reassignment
2018-10-26 08:48:58 -05:00
dana
544571a9cb Merge remote-tracking branch 'upstream/master'
* upstream/master:
  Fix: TypeError in style-via-api (#521)
2018-10-18 17:20:18 -07:00
eight
100e1dc28d Fix: TypeError in style-via-api (#521) 2018-10-18 19:19:36 -05:00
dana
9ecf3f274c go 2018-10-12 15:05:47 -07:00
dana
d2e9f2bf0f Merge remote-tracking branch 'upstream/master'
* upstream/master:
  Add: fetch style object from DB directly in the editor (#507)
2018-10-02 06:48:19 -07:00
eight
5cbe8a8d78
Add: fetch style object from DB directly in the editor (#507) 2018-10-02 20:22:18 +08:00
dana
0a0ef61a66 Merge remote-tracking branch 'upstream/master'
* upstream/master:
  Rewrite linter system (#487)
2018-10-01 10:01:14 -07: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
dana
4a37f775dc from official 2018-09-24 05:29:18 -07:00
dana
5a8936e15e Merge remote-tracking branch 'upstream/master'
* upstream/master: (45 commits)
  Alas, poor clamp! I knew it well
  Update number input on blur
  Don't re-render input while focused
  Fix undefined value
  Update current value in updateRangeCurrentValue
  Remove onblur, don't save invalid inputs
  Change stored number value on change
  Remove isNumber function
  Fix isNumber function
  Change clamp function order & only call onblur
  Remove misleading comment
  Fix strict equals
  Fix clamp function
  Check for null in isNumber
  Fix clamp function
  Fix clamp undefined step
  Fix clamp undefined min/max
  Switch to isNumber function
  More suggested changes
  Remove unnecessary css
  ...
2018-09-24 05:04:10 -07:00
Rob Garrison
5f60c519ce Alas, poor clamp! I knew it well 2018-09-24 07:02:04 -05:00
Rob Garrison
b0fbdfb6e9 Update number input on blur 2018-09-24 07:02:04 -05:00
Rob Garrison
93dee41c11 Don't re-render input while focused 2018-09-24 07:02:04 -05:00
Rob Garrison
c18671c91c Fix undefined value 2018-09-24 07:02:04 -05:00
Rob Garrison
a0ffdb7645 Update current value in updateRangeCurrentValue 2018-09-24 07:02:04 -05:00
Rob Garrison
ec16a0c1e0 Remove onblur, don't save invalid inputs 2018-09-24 07:02:04 -05:00
Rob Garrison
40f580a0b2 Change stored number value on change 2018-09-24 07:02:04 -05:00
Rob Garrison
5af74a9d80 Remove isNumber function 2018-09-24 07:02:04 -05:00
Rob Garrison
40a3abbee8 Fix isNumber function 2018-09-24 07:02:04 -05:00
Rob Garrison
d00e5f4ddb Change clamp function order & only call onblur 2018-09-24 07:02:04 -05:00
Rob Garrison
a4d2e3dd9c Remove misleading comment 2018-09-24 07:02:04 -05:00
Rob Garrison
75d2ef2cc1 Fix strict equals 2018-09-24 07:02:04 -05:00
Rob Garrison
f2c973096b Fix clamp function 2018-09-24 07:02:04 -05:00
Rob Garrison
2c7742e56f Check for null in isNumber 2018-09-24 07:02:04 -05:00
Rob Garrison
15a0521408 Fix clamp function 2018-09-24 07:02:04 -05:00
Rob Garrison
f35077afce Fix clamp undefined step 2018-09-24 07:02:04 -05:00
Rob Garrison
7fff670683 Fix clamp undefined min/max 2018-09-24 07:02:04 -05:00
Rob Garrison
375e0ec448 Switch to isNumber function 2018-09-24 07:02:04 -05:00
Rob Garrison
314ec99e5c More suggested changes 2018-09-24 07:02:04 -05:00
Rob Garrison
0678a6b302 Remove unnecessary css 2018-09-24 07:02:04 -05:00
Rob Garrison
ff0145a129 Fix clamp to step floor 2018-09-24 07:02:04 -05:00
Rob Garrison
7be33a9237 Fix default values 2018-09-24 07:02:04 -05:00
Rob Garrison
d136fdbafa Allow including null in number/range variables 2018-09-24 07:02:04 -05:00
Rob Garrison
7d533d4d4a Fix select default option extraction 2018-09-24 07:02:04 -05:00
Rob Garrison
153a066fbe Fix clampValue issue if min/max are not defined 2018-09-24 07:02:04 -05:00
Rob Garrison
2a2191049f Don't allow step to be set to zero 2018-09-24 07:02:04 -05:00
Rob Garrison
1ba0173422 Remove rangeToProps & fix clampValue functions 2018-09-24 07:02:04 -05:00
Rob Garrison
1881552348 Remove va.range & add min/max/step to va directly 2018-09-24 07:02:04 -05:00