Commit graph

1129 commits

Author SHA1 Message Date
ifedapoolarewaju
cace48ec72
companion: set required content type for oneDrive domain verification 2019-12-05 02:11:40 +01:00
Artur Paikin
5cfd5495ff thumbnail-generator: Add webp to the list of supported types (#1961)
* Add webp to the list of supported types

* add webp to tests too
2019-12-04 11:07:47 +01:00
Ifedapo .A. Olarewaju
81e1996dfc
Merge pull request #1951 from transloadit/mask-ref
companion: mask token from logged referrer URLs
2019-12-02 14:22:39 +01:00
Renée Kooi
701551434a
aws-s3: support GCS responses, fixes #896 (#1956)
* aws-s3: support GCS responses, fixes #896

* also check text/xml
2019-12-02 13:18:34 +01:00
ifedapoolarewaju
9c3f3dff8a
companion: oneDrive domain validation 2019-11-27 22:22:00 +01:00
Dominic Eden
e7fbaa940d [feature] - Add new ‘showRecordingLength’ option for the Webcam plugin (#1947)
* [feature] - Add new ‘showRecordingLength’ prop for the Webcam plugin. When this is true, it counts the duration of a recording and displays it to the user. Add a test for generating the correct duration of the recording.

* Update packages/@uppy/webcam/src/style.scss

Co-Authored-By: Artur Paikin <artur@arturpaikin.com>

* Added i18n for the recording length counter and update Readme. Fix Webcam styles where some styles were not in alphabetical order.

* Update packages/@uppy/webcam/src/style.scss

Co-Authored-By: Artur Paikin <artur@arturpaikin.com>

Added i18n for the recording length counter and update Readme. Fix Webcam styles where some styles were not in alphabetical order.
2019-11-27 20:10:38 +03:00
Renée Kooi
f1c208777c
dashboard: hide top bar cancel button when `hideCancelButton: t… (#1955)
Previously, only the cancel button in the status bar was hidden.

fixes https://github.com/transloadit/uppy/issues/1950
2019-11-27 14:43:17 +01:00
Ifedapo .A. Olarewaju
8954988157
Merge pull request #1953 from transloadit/test-node-6
companion: test companion on node 6 + fix incompatible code
2019-11-25 21:19:15 +01:00
ifedapoolarewaju
cc01c08eae
companion: test companion on node 6 + fix incompatible code 2019-11-23 13:04:25 +01:00
ifedapoolarewaju
a3d6e760f1
companion: use old url.parse api 2019-11-23 12:01:41 +01:00
Artur Paikin
cdc7c7ce44
Dashboard: hide note/poweredBy on short screens, improve provider list behavior (#1943)
* add uppy-size--height-md, hide note/poweredBy on short screens, refactor uppy-DashboardTabs-list

* fix unnessesary scroll bars

* naming: onFileInputChange
2019-11-21 14:03:51 +03:00
ifedapoolarewaju
a5e043dbbe
companion: mask token from logged referrer URLs 2019-11-21 11:37:56 +01:00
Mark Skelton
0d2dbbbb46 Hard code exif-js source in Uppy (#1940)
* Add exif-js source to the repo

* Remove exif-js dependency

* Clean up exif-js code

* Remove code deleting the exif thumbnail

* Add exif-js copyright info
2019-11-20 17:18:32 +01:00
Alexis Hope
9abb4e2ba7 add event type (#1923)
* add event type

* event type literal union of string

* modify ts test for custom events and emit

* core: add comment about literalunion hack
2019-11-18 14:49:10 +01:00
Alexis Hope
ad74af8b96 Test aws s3 plugin (#1934)
* begin testing aws-s3 uploader

* test getUplaodParameters

* getUploadParameters configured campanionUrl

* warn user when configured without campanionUrl

* warn if missconfigured

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

* remove warning in constructor
2019-11-18 14:45:17 +01:00
ifedapoolarewaju
57305741e8
debug: log oauth response when access token is absent 2019-11-16 10:18:28 +01:00
ifedapoolarewaju
fcee06be71
companion: only generate uppyToken if access_token was received from provider 2019-11-16 09:31:24 +01:00
Yehuda Kremer
a61b2c1df1 Create he_IL.js (#1932)
Added hebrew translation.
2019-11-12 14:25:23 +03:00
Abdelhadi Khiati
4594415353 Change deployment to stable api 2019-11-11 15:08:17 +01:00
ifedapoolarewaju
353a3cc88e
companion: log error if exists during token verification 2019-11-11 10:42:51 +01:00
Renée Kooi
5d906440c2 locales: Rename es_GL → gl_ES (#1929)
* locales: Rename es_GL → gl_ES

the `es-GL` locale means Spanish in Greenland.
`gl-ES` means Galician in Spain.

I just renamed the file here which is a breaking change. I think that's
acceptable for the locales package, as it isn't a dependency of anything
else. `@uppy/locales@2.0` doesn't affect anything. what do y'all think?

* locales: add backwords compat module for es_GL

* add comment with reasoning
2019-11-08 18:31:05 +03:00
Artur Paikin
e3cd6d27f5 thumbnail-generator: emitPreprocessCompleteForAll 2019-11-08 18:18:32 +03:00
Alexis Hope
23b8e820ea Add reset-progress event to docs (#1922)
* document reset-progress event

* reword progress reset behaviour

* remove totalProgress reference
2019-11-08 18:03:52 +03:00
Ifedapo .A. Olarewaju
ea65943549
Merge pull request #1926 from transloadit/renam-companion-options
companion: rename uppy occurrences to companion
2019-11-05 13:47:32 +01:00
Renée Kooi
c370dba0b6
Release 2019-11-04 10:56:06 +01:00
Artur Paikin
4e54483e61 core: setOptions for Core and plugins (#1728)
* Add a method to update options in Core

* Add a method to update options in Plugin (for any plugins)

* Allow re-initializing i18n locales after they’ve been updated with .setOptions

* use rest spread instead of Object.assign

* override setOptions in plugins to include i18nInit

* merge restrictions object in setOptions

* check that newOpts exists

* add spread ...

* don’t double merge

* add i18nInit to all plugins that use translation strings

* add setOptions tests to Core and Dashboard

* add setOptions docs for Core and Plugins

* fix tests for thumbnail-generator by adding plugins: {} to mock core

cause ThumbnailGenerator now calls this.setPluginState, which expects `core.state.plugins`

* also update meta with setOptions if it’s passed, change the way this.opts is set in core

@goto-bus-stop does this look ok? merging restrictions opts in core

* if locale was passed to setOptions(), call plugin.setOptions() on all plugins, so that i18n updates

* add Dashboard test that checks if locale is updated from Core via setOptions()

* Reafactor website Dashboard example to use setOptions and allow selecting a locale

🎉
2019-11-04 10:33:30 +01:00
ifedapoolarewaju
bfcf8a0910
companion: rename uppy occurrencies to companion 2019-10-31 11:37:49 +01:00
Renée Kooi
d4097f09bf
transloadit: send Transloadit-Client header with HTTP API reque… (#1919)
* Send Transloadit-Client headers with API requests.

* Conditionally add xhr/s3 versions

* transloadit: less verbose

* fix `this`
2019-10-28 19:43:03 +01:00
Ifedapo .A. Olarewaju
1c61e02d57
Merge pull request #1909 from transloadit/terminat-tus-upload
tus,companion: terminate tus upload on-upload cancel
2019-10-28 15:39:00 +01:00
Ifedapo .A. Olarewaju
2f05729a0c
Merge pull request #1901 from transloadit/lgtm-security-issues
companion: conditionally set Access-Control-Allow-Credentials
2019-10-28 13:46:06 +01:00
Óli Tómas
542f668f1c Added Icelandic 🇮🇸 (#1916)
* Added Icelandic

* eslint --fix
2019-10-28 12:57:28 +01:00
HuyDD
0ef77e24b0 fix: provider views breadcrumbs is failed to render (#1914)
* fix: provider views's breadcrumbs is failed to render

* fix eslint

* provider-views: use JSX syntax for Breadcrumbs
2019-10-28 11:55:02 +01:00
Ifedapo .A. Olarewaju
ed1405d9c4
Merge pull request #1917 from transloadit/dropbox-thumbnail-size
companion: set a more visible thumbnail size for dropbox
2019-10-28 11:38:48 +01:00
ifedapoolarewaju
0a2387bf1f
companion: set a more visible thumbnail size for dropbox
fixes #1904
2019-10-27 09:07:16 +01:00
ifedapoolarewaju
bad02f9a69
tus: wait for previous request to get aborted 2019-10-27 08:09:36 +01:00
Aaron Ross
44bcea6d03 add UppyFile.response typing (#1882)
* add UppyFile.response typing

* add some `file.response` type tests
2019-10-25 16:23:30 +02:00
Juliano
073937d512 fix: skip upload-success event for a file that has been removed (#1875)
* fix: skip upload-success event for a file that has been removed

* eslint --fix
2019-10-25 13:16:59 +02:00
Renée Kooi
0f269fc054
utils: accept sync functions in wrapPromiseFunction() (#1910)
* utils: add failing test for wrapPromiseFunction(syncFn)

* utils: promisify non-promise-returning functions in wrapPromiseFunction()
2019-10-25 11:07:06 +02:00
Artur Paikin
3d2d23092a
Fix image size for smaller images in grid layout; also make sure checkbox never shrinks (#1897) 2019-10-24 12:59:38 +03:00
Ifedapo .A. Olarewaju
d15e7c76a5
Merge pull request #1911 from transloadit/upgrade-connect-redis
companion: upgrade connect-redis
2019-10-24 10:55:39 +01:00
ifedapoolarewaju
79958b1d51
companion: upgrade connect-redis
fixes #1899
2019-10-23 15:09:26 +01:00
Matthias Kunnen
ddb8f4e702 Allow passing meta type to upload-success and complete events (#1879) 2019-10-23 15:03:46 +02:00
Steve Robinson
14acebc43d Add S3 useAccelerateEndpoint to Companion (#1884)
Expose S3 client's useAccelerateEndpoint option that enables usage of Transfer Acceleration endpoint - https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html
2019-10-23 15:01:49 +02:00
ifedapoolarewaju
c7828139ed
tus,companion: terminate tus upload on-upload cancel
fixes #1544
2019-10-23 11:27:44 +01:00
ifedapoolarewaju
9b90c808b5
companion: set Access-Control-Allow-Credentials only when request origin is whitelisted 2019-10-21 08:41:20 +01:00
Ifedapo .A. Olarewaju
94d764c841
Merge pull request #1886 from transloadit/facebook-grid-view
facebook, provider-views: support list + grid view for facebook
2019-10-16 15:39:31 +03:00
Ifedapo .A. Olarewaju
731114735e
provider-views: remove debug log 2019-10-14 18:24:44 +03:00
Ifedapo .A. Olarewaju
95e0707fcb
provider-views: object spread
Co-Authored-By: Renée Kooi <renee@kooi.me>
2019-10-14 18:23:19 +03:00
Renée Kooi
aea91d00db
Release 2019-10-14 16:49:30 +02:00
Renée Kooi
d474ffeb42
Merge branch 'master' of github.com:transloadit/uppy 2019-10-14 16:45:57 +02:00