Commit graph

225 commits

Author SHA1 Message Date
Artur Paikin
6d36309b72 make “powered by” translatable with i18n 2019-04-23 18:03:33 +03:00
Artur Paikin
d17005a63f wider dropFilesTitle to accomodate for different translations 2019-04-22 15:05:05 +03:00
Artur Paikin
9a4559a11d “File Uploader” instead of “Uppy Dashboard”
//cc @kvz
2019-04-22 15:03:00 +03:00
Artur Paikin
0f95529cc5 Release 2019-04-19 15:46:25 +03:00
Artur Paikin
f4fa026807
Merge pull request #1460 from nqst/tweak-dashed-border
Fix border colors
2019-04-19 13:04:34 +03:00
Renée Kooi
e55757455d
dashboard,utils: fix import paths 2019-04-18 16:55:39 +02:00
Alexander Zaytsev
34bafa730e Lighter border 2019-04-18 16:35:20 +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
e3657ae017
Merge pull request #1450 from transloadit/feature/robodog-dashboard
robodog: add Dashboard API
2019-04-18 15:47:34 +03:00
Artur Paikin
cb27df2502
Merge pull request #1440 from lakesare/improve-drag-to-upload-state
Improve drag to upload state
2019-04-18 15:38:53 +03:00
Evgenia Karunus
97ad62b4cc UrlPlugin - made sure url drop/paste is browser-compatible 2019-04-17 21:12:03 +02: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
df88406768 Fix source icon alignment 2019-04-17 11:30:54 +03:00
Alexander Zaytsev
0a191fb806 Fix blurry file icon 2019-04-17 11:30:46 +03:00
Alexander Zaytsev
04a616e53e Fix blurry icon 2019-04-17 11:19:46 +03:00
Alexander Zaytsev
47d951c78c Merge remote-tracking branch 'upstream/master' into design-facelift-2 2019-04-17 10:20:35 +03:00
Evgenia Karunus
bcd9472da5 getDroppedFiles.js - moved into @uppy/utils, refactored 2019-04-17 01:30:32 +02:00
Evgenia Karunus
da9c0452a7 DashboardPlugin - scss variable and .className changes 2019-04-16 17:35:04 +02: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
8180ef60eb Try using dashed border for the dashboard 2019-04-16 11:11:26 +03:00
Alexander Zaytsev
12c28881b4 Polishing 2019-04-16 10:51:37 +03:00
Alexander Zaytsev
52677d444b Tweak size 2019-04-16 10:44:47 +03:00
Alexander Zaytsev
0a0ffa277e Tweak file format icons 2019-04-16 10:43:01 +03:00
Alexander Zaytsev
7104100606 A bit smaller file icon size 2019-04-16 10:29:09 +03:00
Alexander Zaytsev
861fa37881 Default file icon 2019-04-16 10:29:00 +03:00
Evgenia Karunus
54d8fa153f merged master in 2019-04-15 15:55:45 +02:00
Evgenia Karunus
d76e46e9cc DashboardPlugin, UrlPlugin - dropped drag-drop library, added support for crossbrowser folder drops, and visible placeholder 2019-04-15 15:37:32 +02:00
Alexander Zaytsev
f82ea241b7 Update file icons 2019-04-15 12:53:43 +03:00
Alexander Zaytsev
daacadab06 Simple blank file icon 2019-04-15 12:18:14 +03:00
Alexander Zaytsev
7d6fc6ab14 Better remove file icon, without clipping in Safari 2019-04-15 11:43:34 +03:00
Renée Kooi
0fa68aab9d
wip 2019-04-15 10:34:58 +02:00
Ifedapo Olarewaju
f4e558bf94 rename serverUrl to companionUrl
and serverPattern to companionAllowedHosts
2019-04-14 13:53:50 +01:00
Alexander Zaytsev
193f92b890 Darker focus highlight 2019-04-12 13:41:51 +03:00
Alexander Zaytsev
0bfdb70174 Fix + button alignment 2019-04-12 12:30:26 +03:00
Alexander Zaytsev
de8829b9c8 Fix dots misplacing bug 2019-04-12 12:16:13 +03:00
Alexander Zaytsev
b8629a13e8 Copy/edit hover styles 2019-04-11 16:31:47 +03:00
Alexander Zaytsev
bc389cbb1e Fix border-bottom in IE 2019-04-11 16:11:43 +03:00
Alexander Zaytsev
442c8de949 Update text document icon color 2019-04-11 15:59:52 +03:00
Alexander Zaytsev
ecf18c4d9f Merge remote-tracking branch 'upstream/master' into design-facelift 2019-04-11 15:51:33 +03:00
Alexander Zaytsev
3826abc2de Larger clickable areas for the top bar buttons 2019-04-11 14:58:55 +03:00
Artur Paikin
b5a7051939 hide cancel button when individualCancellation is not available
//cc @goto-bus-stop
2019-04-11 14:55:47 +03:00
Alexander Zaytsev
f89564f866 add missing semicolon 2019-04-11 14:45:31 +03:00
Alexander Zaytsev
7b464928a4 Nice focus when choosing a provider 2019-04-11 14:29:06 +03:00
Alexander Zaytsev
38f3ad68af Remove (buggy) transition 2019-04-11 11:05:26 +03:00
Alexander Zaytsev
104ce44a2b Tune dashboard items look & feel 2019-04-11 10:57:47 +03:00
Kevin van Zonneveld
b5c9e3069b Hardcode colors for React Native /cc @arturi 2019-04-10 17:07:12 +02:00
Kevin van Zonneveld
126f572605 Revert "Add a fill for icons so it works in React Native /cc @arturi"
This reverts commit 4f74dd555b.
2019-04-10 17:01:42 +02:00
Evgenia Karunus
f1b08ec2c1 DashboardPlugin, UrlPlugin - prevented dragover flickering, added translatable 'Drop Here' hint 2019-04-10 16:49:33 +02:00
Kevin van Zonneveld
4f74dd555b Add a fill for icons so it works in React Native /cc @arturi 2019-04-10 16:46:55 +02:00