Commit graph

1015 commits

Author SHA1 Message Date
arggh
a57fb08b39 Add translations in Swedish (#1771) 2019-08-09 18:13:36 +03:00
Artur Paikin
a8ce6dbb19 Improve fi_FI locale after #1744 2019-08-05 15:37:29 +03:00
Evgenia Karunus
8ac57c1ad8 Fix log duplication and excessive ResizeObserver log (#1747)
* everywhere - decorative changes

* /examples - fix duplicate logs in examples

* @uppy/dashboard - only fire the safety resize if we're not in a closed modal

* website/examples - made sure console.debug works in IE10
2019-08-05 15:16:10 +03:00
Matteo Padovano
2f092da106 fix wrong definition for metaFields property (#1763)
* fix wrong definition for metaFields property

* dashboard: add type test for metaFields
2019-08-02 13:10:37 +02:00
Renée Kooi
d05f37488d
core: use setFileState inside retryUpload (#1759)
Makes it a bit easier to follow. It also logs a warning now when you do
`.retryUpload(SomeNonsenseFileID)` instead of silently adding an invalid
object to the state.
2019-07-31 14:46:49 +02:00
Ifedapo .A. Olarewaju
7d22931efb
Merge pull request #1754 from transloadit/allowed-http-methods
companion: set allowed http methods internally
2019-07-29 12:46:16 +01:00
Ifedapo Olarewaju
88fa56e1bd companion: set allowed http methods internally 2019-07-29 12:28:09 +01:00
Renée Kooi
29b82fc036
companion: fix main field 2019-07-29 12:56:42 +02:00
Ifedapo Olarewaju
6559f953e9 companion: rename uppy file -> companion 2019-07-29 11:23:54 +01:00
Nemanja Novicic
ddd65d695d Update sr_RS_Latin.js (#1749)
Uniform translation of the word "folder".
2019-07-24 15:40:40 +02:00
Nemanja Novicic
59d9f224dc Create sr_RS_Cyrillic.js (#1748)
Serbian Cyrillic.
2019-07-24 15:23:02 +02:00
Miika Jukakoski
9e487ed82b Finnish semantics improved and fixed some typos. (#1744)
* Finnish locale semantics improved

* Finnish semantics improved
2019-07-23 10:09:52 +02:00
Ifedapo Olarewaju
06f30811a1 companion: handle status code errors thrown in google drive 2019-07-20 16:26:10 +01:00
Ifedapo Olarewaju
edf6d687fc companion-client: better auth state check 2019-07-20 16:25:12 +01:00
Elio Capella Sánchez
ef2cf98de4 Improve addFile API (#1739)
* return file id of added files

* add documentation for returned value

* fix linting

* update test to new addFile API

* add docs for the change in the addFile API
2019-07-19 14:48:08 +02:00
Renée Kooi
9bd18e9fd8
companion: add necessary devDependencies for isolated build 2019-07-19 13:01:16 +02:00
Renée Kooi
f40605548e
ci: post-merge tweaks 2019-07-19 12:31:15 +02:00
Renée Kooi
10bc79574e
lerna link convert (#1730)
* lerna link convert

* ci: use npm ci

* update lockfile

* companion: set `bin` to source file

Since typescript doesn't actually transform anything, we can just use
this.

In a next major version we could set `noEmit: true` in the tsconfig and
stop publishing `lib`.

* companion: do chmod +x on start-server.js

* build: remove obsolete lerna config

* build: explicitly install latest versions when building e2e tests for ci

* Remove versions from private packages

* fix regex

* try fix

* ci: force npm to install to endtoend folder

* ci: fold up e2e build output

* Update netlify deploy preview command

* Remove mentions of npm run bootstrap

* Edit .github/CONTRIBUTING.md instead

* companion: add proxy executable

* companion: fix publish

* Downgrade jest to appease create-react-app
2019-07-19 12:16:36 +02:00
Artur Paikin
bd2beedcff Release 2019-07-18 17:21:42 +02:00
Artur Paikin
78c643ae61 we don’t need no padding-top, we don’t need no space control 2019-07-18 16:35:57 +02:00
Artur Paikin
b3902a1dfc
provider-views: Select 5 files --> Select 5, because there are also folders (#1697)
* Select 5 files --> Select 5, because there are also folders

not ideal, but better

* selectXFiles --> selectX

* update selectX in all locales

* Update fi_FI.js
2019-07-18 14:42:38 +02:00
Artur Paikin
4aef626a52
core: Added heic file type, refactor getFileType (#1734)
* add .heic and .heif file types

* refactor getFileType — we don’t need special condition for isRemote anymore
2019-07-17 19:54:06 +02:00
Artur Paikin
dc4e982280 remove prettier-bytes from dependencies, follow up for #1732 2019-07-17 19:53:14 +02:00
Renée Kooi
b42f904f2b core: adjust ID generation to keep non-latin characters (#1722)
* core: add test for ID generation with non-latin names

* core: adjust ID generation to keep non-latin characters

This shouldn't be bc-breaking!

Now, non-latin characters are encoded as their charcode in base 32, so
files that only differ by name in a non-latin language will generate
different IDs.
2019-07-17 16:12:51 +02:00
Renée Kooi
94efbd3ad9 robodog: allow customizing triggerUploadOnSubmit (#1691)
* robodog: allow customizing `triggerUploadOnSubmit`

* robodog: explain when to use triggerUploadOnSubmit: false
2019-07-16 15:27:40 +02:00
Artur Paikin
7873f057ca
utils: prettyBytes 1000 --> 1024 (#1732)
* Replace prettier-bytes with its copy, only use 1024 instead of 1000 to justify KB vs kB

* Add tests

* added License

* pretty-bytes to @uppy/utils/lib/prettyBytes everywhere
2019-07-16 15:21:47 +02:00
Evgenia Karunus
0b8674a1ce @uppy/dashboard - made Add More always stick to the right (#1733) 2019-07-15 16:07:11 +02:00
Artur Paikin
6b173d8c78
core: Restrictions improvements (#1726)
* Set file.type before calling onBeforeFileAdded, throw in upload so .catch works, emit restriction-failed for minNumberOfFiles, too

We must throw in upload onError, otherwise .catch won’t catch

* It seems startUpload is not used in Dashboard, used in StatusBar instead

probably a leftover from before StautsBar became a standalone plugin

* only log non-restriction errors

* throw early if restrictions.allowedFileTypes is not an array

* flip condition: do emit the event if err.isRestriction
2019-07-15 14:10:04 +02:00
Renée Kooi
afd30a43b8
transloadit: expand on resume: false reasons 2019-07-15 11:39:44 +02:00
kiloreux
cd378e6be0 2 replicas and add RollingUpdate 2019-07-14 20:30:04 +01:00
kiloreux
31e821fa38 Change cloud in gcloud-deploy (#1729)
* Change roles

* Disable tests for faster iterations

* Remove condiiton

* Test python base64 decode

* Test a different file

* Decode that shit

* Use normal file also

* Print the file

* Remove waste of time

* Remove more waste

* Fix it

* Change space name

* Turn everything back
2019-07-14 11:14:59 +02:00
Evgenia Karunus
70acbf7861 Adjust i18n (#1712)
* @uppy/locales - updated Nl translation as per Kevin

* @uppy/provider-views - moved all translations to Core, removed dependency on Dashboard

* @uppy/locales - added missing translations for 'Add more'
2019-07-12 18:04:42 +02:00
Renée Kooi
d0383fb229 robodog: fix form({ modal: true }) not enabling modal options (#1690)
* robodog: fix `form({ modal: true })` not enabling modal options

Previously, dashboard modal options like `closeAfterFinish` were not
available to robodog.form even if the `modal: true` option was set. this
was because the `addDashboardPlugin` function checks that `opts.inline
=== false`, and we were keeping it null/undefined.

* robodog: use the same `inline` check as the Dashboard does
2019-07-12 17:10:48 +02:00
Ifedapo .A. Olarewaju
d19a4fc37b
Merge pull request #1694 from transloadit/set-real-versions
companion-client: send correct versions to companion
2019-07-10 23:50:02 +01:00
Ifedapo Olarewaju
36c9c0610d provider-views: set correct package when sending version 2019-07-10 23:36:00 +01:00
Ifedapo Olarewaju
de438dd343 companion-client: remove redundant url in nested error message 2019-07-10 22:32:28 +01:00
Ifedapo Olarewaju
295eca5683 companion,companion-client: use request ID in error json 2019-07-10 22:32:28 +01:00
Ifedapo Olarewaju
cf18689c10 companion: add traceID to follow logs through 2019-07-10 22:32:27 +01:00
Ifedapo Olarewaju
49e57c2e7d companion: display truer error during oauth failure 2019-07-10 22:28:33 +01:00
Evgenia Karunus
d47ed39d6f Ie11 filecard preview fix (#1718)
* @uppy/dashboard - factored out and visually nested FileCard scss

(Without changing any actual styles)

* @uppy/dashboard - positioned image previews well in FileCard.js for IE11

And updated CSS to depend on predictable flexbox logic.

* @uppy/dashboard - FileCard.js, ensured Firefox respects flexbox, and fixed border-radius in Safari

* @uppy/dashboard - FileCard.js, fixed imports, moved local classes to local css file

* @uppy/dashboard - FileCard.js, changed classNames as per the new convention

* @uppy/dashboard - FileCard.js, removed unneeded binds

* eslint - added the eslint warning for no unused vars

* eslint - commented out unused-variables rule

It's handy to have nearby, but we don't want to discriminate against all unused variables, sometimes they are expressive.
2019-07-10 16:27:40 +02:00
jukakoski
5d40904eb4 Added Finnish locale (#1719)
* Create fi_FI.js

* fixed typo
2019-07-10 11:09:51 +02:00
Evgenia Karunus
c02f9ee0ec @uppy/dashboard - connected labels to inputs in FileCard.js 2019-07-08 15:57:01 +02:00
Dave Kiss
d5b45a82ff Allow definition of MediaRecorder mimeType (#1708)
* Allow definition of MediaRecorder mimeType

This PR introduces a new option for the `@uppy/webcam` plugin called `preferredMimeType` which defaults as `null`.

If a value is passed, the browser's `MediaRecorder` implementation checks if the `preferredMimeType` is supported, and if it thinks it is, will attempt to record using the `preferredMimeType` rather than the browser default.

If the `preferredMimeType` is unsupported, the browser will fall back to using its default recording mime type.

This allows, for example, a user to pass `preferredMimeType: "video/webm"` during the `@uppy/webcam` plugin construction which will instruct the browser to record to a `.webm` container.

Specific codecs may also be passed here. For example, `video/webm;codecs=vp8` may still parse as valid by the browser.

## Limitations
This does not currently change the mime type for captured images on line 282 (`image/jpeg`) and will only pass the `preferredMimeType` to the browser `MediaRecorder` API.

### Reference
https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/MediaRecorder
https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/isTypeSupported
https://cs.chromium.org/chromium/src/third_party/blink/web_tests/fast/mediarecorder/MediaRecorder-isTypeSupported.html?q=MediaRecorder-isTypeSupported&dr
https://www.webmproject.org/about/faq/

* Constantize preferredMimeType

* Lint fix

* Change option name to preferredVideoMimeType

* One more preferredVideoMimeType

* Update comment

* docs: add preferredVideoMimeType
2019-07-08 12:14:53 +02:00
Evgenia Karunus
e72c305e0a
Merge pull request #1701 from transloadit/add-pretty-focus-styles-everywhere
Added focus styles for all elements
2019-07-07 19:51:51 +02:00
Evgenia Karunus
a1bf8cbb52 @uppy/StatusBar - made sure lingering dot is not displayed, changed className 2019-07-07 19:36:45 +02:00
Artur Paikin
e1f416d019
core: Add an option to supply logger with debug, warn and error methods (#1661)
* Add an option to supply customLogger that will receive message and type from uppy.log

* Always use logger function, set to nullLogger by default

Co-Authored-By: Renée Kooi <github@kooi.me>

* add tests for logging and not logging with a function and debug: true

* Update packages/@uppy/core/src/loggers.js

account for `debug` not being available in IE10

Co-Authored-By: Renée Kooi <renee@kooi.me>

* add .call

* fix tests

* expose Uppy.debugLogger

* document logger

* core cleanup

* add logger to defaultOptions in docs too

* debug: true — only override logger if it has not been set in opts
2019-07-05 20:12:43 +02:00
Renée Kooi
9f22fb28e4
xhr-upload: send global metadata when bundle: true (#1677) 2019-07-05 17:11:57 +02:00
Renée Kooi
8485fec03a
Progress fixes for unsized files (#1610)
* core: consistently use round() for progress calculations

* core: fix the estimated size for unsized files
2019-07-05 15:59:26 +02:00
Evgenia Karunus
f88b0c5bc1 Add translations for aria labels in provider views (#1696)
* @uppy/provider-views - added translations for aria-labels

* @uppy/locales - added translations for provider views
2019-07-05 15:37:13 +03:00
Renée Kooi
d60e67becd
transloadit: reduce excessive polling (#1689) 2019-07-05 14:04:04 +02:00