Commit graph

127 commits

Author SHA1 Message Date
Artur Paikin
4938e21c76 hot fix for crazy totalProgress
//cc @goto-bus-stop
2019-04-25 22:08:13 +03:00
Artur Paikin
103116e48c make “authenticate with” translatable with i18n 2019-04-23 18:03:03 +03:00
Artur Paikin
749cc1388b add “Loading...” from providers to i18n so we can translate it 2019-04-19 15:04:41 +03:00
Alexander Zaytsev
c6f9486c88 Harmonize the default dashed border w/ the drag to upload state 2019-04-18 16:24:57 +03:00
Artur Paikin
16b114d2aa
Merge pull request #1452 from nqst/design-facelift-2
Design facelift — round 2
2019-04-17 17:46:49 +03:00
Artur Paikin
28fce1a137 Default locale for all plugins (#1443)
* first swing at building locale pack

* expose default locale on the plugin instance

* write a pretty en_US locale to a file, using stringify-object and template.js

* generated locale pack

* start adding a script that checks for unused locale strings

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Update bin/build-locale-pack.js

* Console output improvements

* Also sort plugin locale keys

* Support dependencies when digging up sources

because e.g. 'emptyFolderAdded' is used in provider-views but set in Dashboard's defaultLocale

* More complex matching

So can can support cases like: `uppy.i18n(error.isAuthError ? 'companionAuthError' : 'companionError')`

* Remaining const defaultLocale -> this.defaultLocale

* Update packages/@uppy/locales/en_US.js

* Mock browser environment so all plugins can be instantiated

* Clean up output a bit

* Update bin/build-locale-pack.js

* Add all remaining plugin's locales to en_US bundle

* Update packages/@uppy/dashboard/src/index.js

* Update en_US.js

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* remove unused strings

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Also write csv because that makes it real easy to import to friendlier places for translators /cc @arturi

* don’t set locale: this.defaultLocale — it overrides the lang pack

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Add 'russian plural' for english, for consistency

Allows us to signal that this is possible in new target languages, and also run better linting

* Cleanup

* No longer write csv

* WIP for NL

* Create package.json

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* move locales to /src

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* ignore locales themselves

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* build minified locale packs

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* expose Uppy.locale = {} placeholder object

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Update ru_RU.js

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* add locale bundles to example

Co-Authored-By: Kevin van Zonneveld <kevin@transloadit.com>

* Upload locales to cdn

* Allow to run tests with upload-to-cdn by setting a versionSuffix

* Move locale build to function, to make room for test()

* Bring ru_RU in sync with English

now that we've added 3 plural types across the board

* Document using locales as a consuming dev, and plugin dev

* Add linting for missing/excess locale strings

* Add the locales we had to remove to the legacy folder

and explain why they cannot make it back

* Move legacy outside of src so they are definitely not transpiled, etc

* Update packages/@uppy/locales/src/nl_NL.js

* Update website/src/docs/uppy.md
2019-04-17 13:34:23 +02:00
Alexander Zaytsev
47d951c78c Merge remote-tracking branch 'upstream/master' into design-facelift-2 2019-04-17 10:20:35 +03:00
Artur Paikin
6881eef6f3
Merge pull request #1431 from transloadit/feature/tl-cancel
transloadit: Assembly cancellation
2019-04-16 17:17:50 +03:00
Alexander Zaytsev
b14cb53754 Merge remote-tracking branch 'upstream/master' into design-facelift-2 2019-04-16 10:09:58 +03:00
Renée Kooi
f2238895a4
core: fix logging objects 2019-04-15 16:55:01 +02:00
Alexander Zaytsev
3a40bb7d15 Better btn-links 2019-04-15 10:43:34 +03:00
Alexander Zaytsev
ecf18c4d9f Merge remote-tracking branch 'upstream/master' into design-facelift 2019-04-11 15:51:33 +03:00
Alexander Zaytsev
6e6888b592 Cleanup 2019-04-11 15:25:58 +03:00
Alexander Zaytsev
7b464928a4 Nice focus when choosing a provider 2019-04-11 14:29:06 +03:00
Alexander Zaytsev
4a072454fb Better focus on inputs & buttons 2019-04-11 12:24:13 +03:00
Alexander Zaytsev
8f38b1242c Remove an ugly outline inside the buttons in Firefox 2019-04-11 12:04:49 +03:00
Alexander Zaytsev
43da71c3ba Use system focus styles by default 2019-04-11 11:58:53 +03:00
Alexander Zaytsev
7a5fd4c74d Implement that nice Retry button 2019-04-11 11:30:42 +03:00
Alexander Zaytsev
eb06c62654 Brighter red 2019-04-10 15:34:16 +03:00
Alexander Zaytsev
49504b4f75 Remove extra line 2019-04-10 11:12:40 +03:00
Alexander Zaytsev
8be12fdd42 Organize color variables (now they're without color- prefix 2019-04-10 11:12:21 +03:00
Alexander Zaytsev
25e8369c6a Get rid of $color-gray 2019-04-10 10:52:27 +03:00
Alexander Zaytsev
eb854fb9fb Replace $color-black with $gray-800 in some places 2019-04-10 10:29:39 +03:00
Alexander Zaytsev
0f9c9bd65a Using a better system font stack
Inspired by http://markdotto.com/2018/02/07/github-system-fonts/
2019-04-10 10:06:23 +03:00
Alexander Zaytsev
68120ea8ff Remove system-ui from the font-stack since it's buggy
Reason: https://infinnie.github.io/blog/2017/systemui.html
2019-04-10 10:03:13 +03:00
Alexander Zaytsev
30616796c7 Get rid of $color-almost-white 2019-04-09 17:09:06 +03:00
Alexander Zaytsev
54f8e85906 Get rid of $color-almost-white 2019-04-09 17:08:01 +03:00
Alexander Zaytsev
4958027211 Get rid of $color-asphalt-gray 2019-04-09 17:02:21 +03:00
Alexander Zaytsev
cb09de5e61 Fix typo in the font stack 2019-04-09 16:55:33 +03:00
Alexander Zaytsev
991cd5829d Add shades of gray to the variables (beta) 2019-04-09 16:48:36 +03:00
Alexander Zaytsev
e9aa6c01bd Fix spacing 2019-04-09 16:22:37 +03:00
Alexander Zaytsev
92bc5598ab Better padding for button-links 2019-04-09 16:19:22 +03:00
Alexander Zaytsev
c6b2712457 Better color sorting 2019-04-09 15:43:32 +03:00
Alexander Zaytsev
f1916f6712 Simplify color name: cornflower-blue -> blue 2019-04-09 15:42:04 +03:00
Zeqiu Wu
65a03c2cc2 feat: fire event when restriction-failed 2019-04-09 01:02:13 +08:00
Alexander Zaytsev
ba213b2402 Add !default 2019-04-08 17:14:26 +03:00
Alexander Zaytsev
20b5364d56 Using variables for lightgray color; Lowercased color codes 2019-04-08 16:43:43 +03:00
Renée Kooi
088e4699fa
core: update tests to account for new capability flag 2019-04-08 11:37:47 +02:00
Alexander Zaytsev
8169a04fb4 Remove too tall line-height from the text inputs 2019-04-08 11:56:36 +03:00
Alexander Zaytsev
7fecf9a0a9 Simpler inputs 2019-04-08 11:40:38 +03:00
Alexander Zaytsev
3638d25207 Reduce btn-link horizontal padding 2019-04-08 11:39:16 +03:00
Alexander Zaytsev
6033f7d141 Better font size scale 2019-04-08 11:38:18 +03:00
Alexander Zaytsev
c70409c006 Correct font sizes; Improved Add icon 2019-04-08 11:23:52 +03:00
Alexander Zaytsev
4f391a4358 Typography: lighter black 2019-04-08 11:12:12 +03:00
Artur Paikin
a4f94a8d6b remove dir, since it’s probably unnessesary now and not supported in React Native
//cc @kvz
2019-04-04 18:06:07 +03:00
Renée Kooi
8f80088950
individualCancellation flag 2019-04-03 17:09:10 +02:00
Renée Kooi
659ee2ae9e
transloadit: let pipeline progress after cancellation 2019-04-03 16:08:15 +02:00
Renée Kooi
b277edb687
Add test for unsized files 2019-04-01 14:50:08 +02:00
Renée Kooi
8000f08812
Merge branch 'master' into fix/progress-again 2019-04-01 13:44:02 +02:00
Ifedapo Olarewaju
cb7a209037 companion-client: use different informer message for auth errors 2019-03-28 01:46:12 +01:00