Commit graph

1266 commits

Author SHA1 Message Date
Artur Paikin
4eee20aa18 Release 2020-04-01 22:29:44 +02:00
Ifedapo .A. Olarewaju
7d972e09a4
tus,xhr-upload: emit error when companion returns error during upload creation (#2166) 2020-04-01 22:14:45 +02:00
Artur Paikin
89c04b8516
Add facebook and onedrive (#2167)
🙈
2020-04-01 21:14:10 +02:00
Renée Kooi
700863e46e
Release 2020-04-01 17:32:30 +02:00
agreene-coursera
71e83504d3
transloadit: fix progress with very different Assembly runtimes (#2143)
* FIX: if an assembly has fully completed during the upload step (because it was smaller than other files in the batch), complete it during post processing

* FIX: linter error

* TRY: creating AssemblyWatcher before connecting assembly

* REMOVE: Assembly watcher changes

* transloadit: track completed files by ID

* transloadit: fix postprocess progress bar

* transloadit: create AssemblyWatchers when restoring files

Co-authored-by: Renée Kooi <renee@kooi.me>
2020-04-01 16:40:52 +02:00
Renée Kooi
3b54808cc7
Loosen metaFields.render types again to fix React/preact typings conflict 2020-04-01 13:04:34 +02:00
Artur Paikin
8ad7eddaa3
Add Facebook and OneDrive to Robodog (#2165) 2020-03-31 20:32:19 +02:00
Ifedapo .A. Olarewaju
eceff59bb6
Merge pull request #2160 from transloadit/validate-upload-data
companion: validate all upload data provided by Uppy Client
2020-03-30 15:36:12 +01:00
Daniel Placinta
bd87af3d8a
Romanian [ro_RO] language pack added (#2162)
* ro_RO locale added

* ro_RO language several updates
2020-03-30 16:32:09 +02:00
ifedapoolarewaju
8d5890ca3f
chores: remove blank line 2020-03-30 14:43:32 +01:00
Renée Kooi
894c739883
Remove obsolete strings from language files. 2020-03-30 15:41:52 +02:00
ifedapoolarewaju
d272ff210e
companion: validate all client provided upload data 2020-03-30 14:00:14 +01:00
Leonardo Galli
8735c896a5
[Dashboard] Allow setting the input type when editing files in Dashboard plugin (#2147)
* Added possibility of specifying form field type.

* remove log statements

* Change to allow providing custom render function

* Add Types and Docs.

* Pass Uppy-styled CSS class names, so developers can leverege them when adding their custom inputs

@goto-bus-stop as we’ve discussed, what do you think?

* Fix var name

* dashboard: make typings for `render()` stricter

so people will get type errors if they try to return React elements or
raw DOM nodes.

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
Co-authored-by: Renée Kooi <renee@kooi.me>
2020-03-30 13:12:52 +02:00
Renée Kooi
8e79920097
docs: document XHRUpload#validateStatus option (#2154) 2020-03-27 11:20:45 +01:00
Artur Paikin
6b2cb1a1fa Merge branch 'master' of https://github.com/MikeKovarik/uppy into MikeKovarik-master 2020-03-26 18:11:21 +01:00
Artur Paikin
0b1187e523
Delete package-lock.json
we don’t need `@uppy/thumbnail-generator/package-lock.json`, it should be in the root only, right @goto-bus-stop?
2020-03-26 18:08:47 +01:00
ifedapoolarewaju
fa32da7cf3
Release 2020-03-25 12:37:44 +01:00
Kevin van Zonneveld
71fa8397ad Remove Serverless example
Because it doesn't work well. and we don't have the resources to make it work well. Community PRs welcome to patch this up! Until then, let's not confuse any more users.

https://github.com/transloadit/uppy/issues/1306#issuecomment-510811306

https://github.com/transloadit/uppy/issues/2149

https://community.transloadit.com/t/websockets-with-companion-and-serverless-on-aws/15233
2020-03-24 20:38:12 +01:00
Renée Kooi
876f8a2fc0
webcam: Try to respect restrictions (#2090)
* webcam: request a video mime type listed in `allowedFileTypes`

* webcam: stop recording when we are about to reach the max file size

* webcam: request an image mime type listed in `allowedFileTypes`

* docs: add Webcam#preferredImageMimeType

* locale: add `recordingStoppedMaxSize` string

* changelog: check webcam restrictions

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2020-03-24 18:53:36 +01:00
Artur Paikin
5079d98584
dashboard: 2020 redesign 🍿 (#2015)
* ProviderViews: Improve Instagram’s “video thumbnail”

* Update all provider icons to nicer round ones

* Change “drop files” copy depending on number of acquirers and Dashboard width

* Translator: support multiple components in options

When the source contains multiple placeholders for interpolation, we should ignore chunks that are not strings, because those can be JSX objects and will be otherwise incorrectly turned into strings.

Without this condition we’d get this: [object Object] hello [object Object] my <button>

* Remove unused locale strings

* Rever renderSingleInlineProvider, use Browse button instead of link, tweak styles

* Try “Browse My Device” button

* Introduce “Dark Mode“: new Dashboard option 'theme': 'light', 'dark' or 'auto'

* Refactor to also add uninstall/removeListener for the darkModeMediaQuery; remove all bindings in favor of class properties

* More dark mode styles: Providers, FileCard, tweaking focus, inputs, etc

* My Device: mobile and desktop icons

* add isMobileDevice capability, very simple detection

* More dark mode styles

* refactor

* switch back to single simple my device icon

* chrome 78 for android doesn’t support document.querySelector 👌

* nobr --> span white-space: nowrap

* Major style tweaks for mobile provider list, show dashed borders only when DnD is supported

* Add color after “import from”

just for Russian for now, because I’m thinking if this should be a part of the language string or html? @goto-bus-stop @kvz, what do you think?

* improve isMobileDevice, add tests

* don’t set the isMobileDevice capability in core for now

* add checks for typeof window !== 'undefined', otherwise fails in Node/RN

* update locales

* refactor renderDropFilesSubtitle
2020-03-24 18:05:11 +01:00
dkisic
2d9f4f5cb2
Croatian translations added (#2150) 2020-03-23 15:36:47 +01:00
Ifedapo .A. Olarewaju
a133903402
Merge pull request #2145 from transloadit/gsuite-files
companion: add support to download gsuite (google docs, google spreadsheet files
2020-03-23 14:25:16 +01:00
ifedapoolarewaju
5fe7b54a43
companion[test]: remove flaky test 2020-03-23 14:18:47 +01:00
ifedapoolarewaju
bfd5d217fe
companion: fix test 2020-03-23 12:32:59 +01:00
Artur Paikin
f4497838da
Only _startIfAutoProceed if some files were actually added (#2146) 2020-03-21 11:03:56 +01:00
Mike Kovařík
450050c820 fixed png and gif support of extracting exif 2020-03-19 17:18:39 +01:00
ifedapoolarewaju
1e5e54bc9d
companion: add support to download gsuite (google docs, google sreadsheet) files 2020-03-19 16:30:47 +01:00
Renée Kooi
5e25b2a939
Fix translations that did not respect word order (#2077)
* Fix translations that did not respect word order

Fixes #2069

We were still using raw string concatenation in these two places. To
maintain backwards compatibility, this commit adds _new_ translations
that are substitution-based instead of concatenation-based. The old
translation is passed in as a possible substitution parameter
`backwardsCompat`, and the default (English) translations use this
parameter.

With this, if you are using a custom locale that overrides eg. the
`exceedsSize` string, Uppy will first get your `exceedsSize`
translation, and then use the default `exceedsSize2` translation which
concatenates that result and the file size. So it works the same as it
did in the past.
If a translation requires a different word order, it can override the
`exceedsSize2` translation instead.
```js
new Uppy({
  locale: {
    strings: {
      exceedsSize2: 'Maximum file size of %{size} exceeded',
      poweredBy2: '%{uppy} made this!'
    }
  }
})
```

In 2.0, we can remove all the old strings and only use `poweredBy2` (and
probably rename them to `poweredBy` too, heh)

* website: add missing dashboard strings to docs

* locales: remove unused second plural form from EN and NL

* build: allow different numbers of plural forms

* utils: add test for new throwing behaviour

* docs: insert PR url

* locales: revert ko_KR changes

* changelog: add 2.0 backlog entry

* locales: var → const

* docs: add brief note that translators should supply a pluralize function

* locales: update en_US with new template

* fix HEIGHT_MD = 400

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2020-03-19 14:41:14 +01:00
alfatv
2c781a6c64
Polish language pack. (#2138)
* Dodanie pl_PL

Dodanie języka polskiego.

* Rename pl_PL to pl_PL.js

* Update pl_PL.js
2020-03-19 12:31:39 +01:00
Artur Paikin
7021657459
Dashboard: Log warning instead of an error when trigger is not found (#2144)
* Log warning instead of an error when trigger is not found

* Only issue warning if opts.trigger is not set
2020-03-19 11:06:54 +01:00
Mike Kovařík
b8836b5cf5 bumped exifr to 4.3.4 2020-03-17 21:15:57 +01:00
Mike Kovařík
a6bfd8123b added exifr to global package-lock 2020-03-17 11:55:05 +01:00
Mike
fc3b50a76a replace exif-js with exifr in thumbnail-generator 2020-03-16 22:44:26 +01:00
Ifedapo .A. Olarewaju
fdd7efc9fa
Merge pull request #2139 from transloadit/send-back-download-error
companion: emit error to client if download fails
2020-03-16 16:32:41 +01:00
ifedapoolarewaju
fdc065fe51
companion: emit error to client if download fails 2020-03-16 16:11:53 +01:00
Renée Kooi
ab3d7cb067
react: fix typescript proptypes for DashboardModal, fixes #2124 (#2136) 2020-03-16 15:22:03 +01:00
Renée Kooi
0aa511a476
core: add typings for setOptions(). (#2135)
* core: add typings for `setOptions()`.

* core: add typings test for plugin#setOptions
2020-03-16 14:11:56 +01:00
Renée Kooi
849b12a655
companion: drop parallel down/upload for S3 multipart (#2114)
* companion: drop parallel down/upload for S3 multipart

We were not ending the `fs-tail-stream` correctly. `fs-tail-stream` is
also not a battle-tested package and relying on file watching is never a
fun time, so it's better if we can avoid it entirely.

One good way to do that is to axe the entire parallel download/upload
feature, and instead download files in full before uploading them, like
we do for Tus and XHR :)

Fixes #1457.

* companion: add back the multiple start calls test
2020-03-16 13:09:33 +01:00
Artur Paikin
9a610f1204 Publish
- uppy@1.10.1
 - @uppy/facebook@1.0.0
2020-03-11 23:54:00 +01:00
Artur Paikin
2664a59450 Release 2020-03-11 21:50:23 +01:00
Ifedapo .A. Olarewaju
a59e8483b0
companion: don't log redundant errors in production (#2112)
* companion: don't log redundant errors in production

cc @kvz

* companion: remove redundant condition

* companion: if the error is a URIError from the requested URL we only log the error message
2020-03-11 13:00:38 +01:00
Ifedapo .A. Olarewaju
62c48408ba
companion: return 401 early if token is not set (#2118) 2020-03-10 16:34:20 +01:00
Renée Kooi
0e02d2a495
companion: pass endpoint and region to AWS SDK constructor (#2113)
Accidentally removed in #2030. This can cause S3 to reject uploads.
2020-03-09 13:56:31 +01:00
Jason Bosco
b40934a90c
Allow S3 ACL to be specified in Companion Standalone (#2111) 2020-03-09 10:43:16 +01:00
Renée Kooi
d191703595
companion: allow providing any S3 option, closes #1388 (#2030)
* companion: allow providing any S3 option, closes #1388

Now you can configure any S3 option listed in
https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#constructor-property.

It adds a warning about the official S3 names `accessKeyId` and
`secretAccessKey` because you should use the Companion-style names `key`
and `secret` instead.

* companion: use awsClientOptions property for Aws SDK config

* companion: also reject keys inside awsClientOptions

* should keep the checks next to each other

* companion: first check if awsClientOptions isnt null
2020-03-04 14:01:59 +01:00
ifedapoolarewaju
7bfc3e7e5f
Release 2020-02-28 12:15:39 +01:00
ifedapoolarewaju
b59d5b4fb6
companion: use state in session in tests 2020-02-27 18:45:12 +01:00
ifedapoolarewaju
7fc4490bb8
companion: read state from session in oauth-redirect controller 2020-02-27 17:28:30 +01:00
ifedapoolarewaju
ca37f093fe
Release 2020-02-27 13:45:01 +01:00
ifedapoolarewaju
9b17cf2037
companion: return the right httpAgent when protocol value contains ":" 2020-02-27 12:58:48 +01:00