Commit graph

51 commits

Author SHA1 Message Date
Artur Paikin
0f95529cc5 Release 2019-04-19 15:46:25 +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
Ifedapo Olarewaju
f4e558bf94 rename serverUrl to companionUrl
and serverPattern to companionAllowedHosts
2019-04-14 13:53:50 +01:00
Artur Paikin
7ae8af44ab Release 2019-04-04 19:31:09 +03:00
Renée Kooi
5709647728
typescript: fix uppy package use with allowSyntheticImports: false
Synthetic default imports allow you to `import X from 'x'` if `'x'` is a
CommonJS module. Our `uppy` package relied on that (probably forgot to
update it in a previous patch). If users had set
`allowSyntheticDefaultImports: false`, they would not be able to use the
`uppy` package.

We should at some point go through the typings again and set everything
to the tightest options, because that'll work with the widest array of
users, but for now let's just unbreak this particular case.

Fixes #1395
2019-04-01 11:47:52 +02:00
Artur Paikin
27899d944f Release 2019-03-08 20:47:42 +03:00
Renée Kooi
fd6734be4d
docs: update webpack homepage URLs 2019-03-04 13:43:37 +01:00
Craig Jennings
1f8e08d492 Avoid throwing error when file has been removed
There is a case where a fileId no longer exists in uppy, namely if the
file is removed from uppy before `getUploadParameters` returns.

fixes #1317
2019-02-27 12:16:45 -06:00
Artur Paikin
f94bc77deb Publish
- uppy@0.30.2
 - @uppy/aws-s3-multipart@0.30.2
 - @uppy/aws-s3@0.30.2
 - @uppy/companion-client@0.28.2
 - @uppy/companion@0.17.2
 - @uppy/core@0.30.2
 - @uppy/dashboard@0.30.2
 - @uppy/drag-drop@0.30.2
 - @uppy/dropbox@0.30.2
 - @uppy/file-input@0.30.2
 - @uppy/form@0.30.2
 - @uppy/golden-retriever@0.30.2
 - @uppy/google-drive@0.30.2
 - @uppy/informer@0.30.2
 - @uppy/instagram@0.30.2
 - @uppy/progress-bar@0.30.2
 - @uppy/provider-views@0.30.2
 - @uppy/react@0.30.2
 - @uppy/redux-dev-tools@0.30.2
 - @uppy/robodog@0.30.2
 - @uppy/status-bar@0.30.2
 - @uppy/store-default@0.28.2
 - @uppy/store-redux@0.28.2
 - @uppy/thumbnail-generator@0.30.2
 - @uppy/transloadit@0.30.2
 - @uppy/tus@0.30.2
 - @uppy/url@0.30.2
 - @uppy/utils@0.30.2
 - @uppy/webcam@0.30.2
 - @uppy/xhr-upload@0.30.2
2019-02-22 22:43:58 +03:00
Artur Paikin
a5c39e9a35 Release 2019-02-21 19:09:22 +03:00
Artur Paikin
4dcef4c3b9 Release 2019-02-15 23:55:18 +03:00
Artur Paikin
ea0befe4ce update peerDependencies before release 2019-02-15 22:09:12 +03:00
Renée Kooi
54ab032e7b
s3: Use user provided filename / type for uploaded object, fixes #1238 2019-01-28 11:26:40 +01:00
Artur Paikin
3ddf4c7548 Release 2019-01-15 19:21:04 +03:00
Artur Paikin
9fce77830b
Remove jsnext:main since it’s been deprecated
https://github.com/stereobooster/package.json#jsnextmain
2019-01-15 18:22:15 +03:00
Renée Kooi
3710b19e1b
Use export = in @uppy/core typings. 2018-12-20 14:51:42 +01:00
Renée Kooi
1a0878a851
Merge pull request #1131 from mattes3/master
Make Uppy's React components usable from Typescript
2018-12-10 15:50:12 +01:00
Artur Paikin
c68f2c7e68 Release 2018-11-29 23:36:16 +03:00
Artur Paikin
faefe0d5f0 @uppy/core peerDependency --> ^0.29.0 2018-11-29 21:34:56 +03:00
Matthias Bohlen
c8cb89bde0 Convert to "export =" everywhere because...
...the *.js source files use "module.exports = " instead of
"export default".
2018-11-12 12:05:54 +01:00
Renée Kooi
71d8064982
aws-s3: Avoid using responseXML. 2018-11-12 11:30:32 +01:00
Renée Kooi
e7b39e4ef1
aws-s3: Explicitly set responseType: text, fixes #518 2018-11-12 11:24:27 +01:00
Artur Paikin
47a68a6148 Release 2018-10-31 19:30:39 +03:00
Artur Paikin
09b6ca0c92 update plugin peerDependencies to "@uppy/core": "^0.28.0" before release 2018-10-31 15:47:27 +03:00
Artur Paikin
5ec15c11ca update this.translator = new Translator in all plugins that use i18n
I wonder if this could somehow be done in Plugin class once
2018-10-20 12:50:34 -04:00
Renée Kooi
da8b5d0a0d
aws-s3: Add companion-client dependency. 2018-10-08 12:56:59 +02:00
Renée Kooi
0f4f7dffff
Object rest spread 2018-10-08 12:46:29 +02:00
Renée Kooi
cd71bc48b3
aws-s3: Use RequestClient. 2018-10-08 12:45:05 +02:00
Artur Paikin
113d6f09bb Release
- uppy@0.27.5
 - @uppy/aws-s3-multipart@0.27.4
 - @uppy/aws-s3@0.27.4
 - @uppy/core@0.27.3
 - @uppy/dashboard@0.27.5
 - @uppy/drag-drop@0.27.4
 - @uppy/dropbox@0.27.4
 - @uppy/file-input@0.27.4
 - @uppy/form@0.27.4
 - @uppy/golden-retriever@0.27.4
 - @uppy/google-drive@0.27.5
 - @uppy/informer@0.27.4
 - @uppy/instagram@0.27.5
 - @uppy/progress-bar@0.27.4
 - @uppy/provider-views@0.27.4
 - @uppy/react@0.27.5
 - @uppy/redux-dev-tools@0.27.4
 - @uppy/status-bar@0.27.4
 - @uppy/thumbnail-generator@0.27.4
 - @uppy/transloadit@0.27.5
 - @uppy/tus@0.27.5
 - @uppy/url@0.27.5
 - @uppy/webcam@0.27.4
 - @uppy/xhr-upload@0.27.4
2018-09-27 16:31:35 -04:00
Artur Paikin
4819ff33ce Release
- uppy@0.27.4
 - @uppy/aws-s3-multipart@0.27.3
 - @uppy/aws-s3@0.27.3
 - @uppy/companion@0.14.4
 - @uppy/core@0.27.2
 - @uppy/dashboard@0.27.4
 - @uppy/drag-drop@0.27.3
 - @uppy/dropbox@0.27.3
 - @uppy/file-input@0.27.3
 - @uppy/form@0.27.3
 - @uppy/golden-retriever@0.27.3
 - @uppy/google-drive@0.27.4
 - @uppy/informer@0.27.3
 - @uppy/instagram@0.27.4
 - @uppy/progress-bar@0.27.3
 - @uppy/provider-views@0.27.3
 - @uppy/react@0.27.4
 - @uppy/redux-dev-tools@0.27.3
 - @uppy/status-bar@0.27.3
 - @uppy/thumbnail-generator@0.27.3
 - @uppy/transloadit@0.27.4
 - @uppy/tus@0.27.4
 - @uppy/url@0.27.4
 - @uppy/webcam@0.27.3
 - @uppy/xhr-upload@0.27.3
2018-09-18 19:46:24 -04:00
Renée Kooi
b343d8ed9e
Release
- uppy@0.27.3
 - @uppy/aws-s3-multipart@0.27.2
 - @uppy/aws-s3@0.27.2
 - @uppy/companion-client@0.27.2
 - @uppy/companion@0.14.3
 - @uppy/core@0.27.1
 - @uppy/dashboard@0.27.3
 - @uppy/drag-drop@0.27.2
 - @uppy/dropbox@0.27.2
 - @uppy/file-input@0.27.2
 - @uppy/form@0.27.2
 - @uppy/golden-retriever@0.27.2
 - @uppy/google-drive@0.27.3
 - @uppy/informer@0.27.2
 - @uppy/instagram@0.27.3
 - @uppy/progress-bar@0.27.2
 - @uppy/provider-views@0.27.2
 - @uppy/react@0.27.3
 - @uppy/redux-dev-tools@0.27.2
 - @uppy/status-bar@0.27.2
 - @uppy/thumbnail-generator@0.27.2
 - @uppy/transloadit@0.27.3
 - @uppy/tus@0.27.3
 - @uppy/url@0.27.3
 - @uppy/utils@0.27.1
 - @uppy/webcam@0.27.2
 - @uppy/xhr-upload@0.27.2
2018-09-03 16:00:24 +02:00
Kevin van Zonneveld
67af833fdb
More uppy server -> companion renames (#1037)
* Some uppy server -> companion renames

* Fix typos

* Implement most of @goto-bus-stop's feedback

* Nuke Create React App readme

* An Companion -> A Companion

* Companion server -> instance
2018-09-03 14:48:03 +02:00
Renée Kooi
6b82d12d42
Release
- uppy@0.27.1
 - @uppy/aws-s3-multipart@0.27.1
 - @uppy/aws-s3@0.27.1
 - @uppy/companion-client@0.27.1
 - @uppy/companion@0.14.1
 - @uppy/dashboard@0.27.1
 - @uppy/drag-drop@0.27.1
 - @uppy/dropbox@0.27.1
 - @uppy/file-input@0.27.1
 - @uppy/form@0.27.1
 - @uppy/golden-retriever@0.27.1
 - @uppy/google-drive@0.27.1
 - @uppy/informer@0.27.1
 - @uppy/instagram@0.27.1
 - @uppy/progress-bar@0.27.1
 - @uppy/provider-views@0.27.1
 - @uppy/react@0.27.1
 - @uppy/redux-dev-tools@0.27.1
 - @uppy/status-bar@0.27.1
 - @uppy/thumbnail-generator@0.27.1
 - @uppy/transloadit@0.27.1
 - @uppy/tus@0.27.1
 - @uppy/url@0.27.1
 - @uppy/webcam@0.27.1
 - @uppy/xhr-upload@0.27.1
2018-08-16 16:30:45 +02:00
Renée Kooi
8d87f80722 Fix peerDependencies of plugin packages. (#1005) 2018-08-16 11:35:29 +02:00
Artur Paikin
400329e632 Release
- uppy@0.27.0
 - @uppy/aws-s3-multipart@0.27.0
 - @uppy/aws-s3@0.27.0
 - @uppy/companion-client@0.27.0
 - @uppy/companion@0.14.0
 - @uppy/core@0.27.0
 - @uppy/dashboard@0.27.0
 - @uppy/drag-drop@0.27.0
 - @uppy/dropbox@0.27.0
 - @uppy/file-input@0.27.0
 - @uppy/form@0.27.0
 - @uppy/golden-retriever@0.27.0
 - @uppy/google-drive@0.27.0
 - @uppy/informer@0.27.0
 - @uppy/instagram@0.27.0
 - @uppy/progress-bar@0.27.0
 - @uppy/provider-views@0.27.0
 - @uppy/react@0.27.0
 - @uppy/redux-dev-tools@0.27.0
 - @uppy/status-bar@0.27.0
 - @uppy/store-default@0.27.0
 - @uppy/store-redux@0.27.0
 - @uppy/thumbnail-generator@0.27.0
 - @uppy/transloadit@0.27.0
 - @uppy/tus@0.27.0
 - @uppy/url@0.27.0
 - @uppy/utils@0.27.0
 - @uppy/webcam@0.27.0
 - @uppy/xhr-upload@0.27.0
2018-08-11 22:29:46 +01:00
Leonardo Schlossmacher
65bb56e1e5 Fix S3 plugin for browsers without support to responseURL 2018-07-07 18:42:43 +02:00
Renée Kooi
f9a9762dfa
Release
- uppy@0.26.0
 - @uppy/aws-s3-multipart@0.26.0
 - @uppy/aws-s3@0.26.0
 - @uppy/core@0.26.0
 - @uppy/dashboard@0.26.0
 - @uppy/drag-drop@0.26.0
 - @uppy/dropbox@0.26.0
 - @uppy/file-input@0.26.0
 - @uppy/form@0.26.0
 - @uppy/golden-retriever@0.26.0
 - @uppy/google-drive@0.26.0
 - @uppy/informer@0.26.0
 - @uppy/instagram@0.26.0
 - @uppy/progress-bar@0.26.0
 - @uppy/provider-views@0.26.0
 - @uppy/react@0.26.0
 - @uppy/redux-dev-tools@0.26.0
 - @uppy/server-utils@0.26.0
 - @uppy/status-bar@0.26.0
 - @uppy/store-default@0.26.0
 - @uppy/store-redux@0.26.0
 - @uppy/thumbnail-generator@0.26.0
 - @uppy/transloadit@0.26.0
 - @uppy/tus@0.26.0
 - @uppy/url@0.26.0
 - @uppy/utils@0.26.0
 - @uppy/webcam@0.26.0
 - @uppy/xhr-upload@0.26.0
2018-06-28 17:12:13 +02:00
Renée Kooi
3fa82562ad
Update peerDependencies to @uppy/core@^0.26.0. 2018-06-28 17:09:31 +02:00
Renée Kooi
36e5a82393
Use a single typescript config for all types tests. 2018-06-28 16:30:24 +02:00
Renée Kooi
73202c2108
Add uppy.use() overloads to plugin typings. 2018-06-28 16:30:13 +02:00
Renée Kooi
7a639e1610
Use the UppyFile type where relevant. 2018-06-28 16:30:13 +02:00
Artur Paikin
4684a3e1f3
Merge pull request #924 from transloadit/export-plugin
Export Plugin class from @uppy/core.
2018-06-28 09:43:43 -04:00
Renée Kooi
5d9abc518c
Fix version numbers 2018-06-28 15:41:15 +02:00
Renée Kooi
72689d01ac
Export Plugin class from @uppy/core. 2018-06-28 12:20:21 +02:00
Artur Paikin
356585f4af update to status-bar and xhr-upload in: tests, website, dependencies, examples 2018-06-21 16:20:55 -04:00
Renée Kooi
a0798cf5ee
Move S3 Multipart upload to a separate package. 2018-06-21 16:37:55 +02:00
Renée Kooi
1222873698
Remove unnecessary declare module wrappers from .d.ts files. 2018-06-18 16:22:15 +02:00
Renée Kooi
542170943e
Add devDependency on @uppy/core. Include provider CSS in Dashboard. 2018-06-18 15:28:38 +02:00
Renée Kooi
a0fd2d3d29
Split up typescript definitions.
Also add the type tests to our `npm test` script.
2018-06-18 14:59:08 +02:00
Artur Paikin
e7f3f8703b add xhrupload to aws-s3 dependencies 2018-06-18 00:50:11 -04:00