Commit graph

1780 commits

Author SHA1 Message Date
Mikael Finstad
4e37517327
Companion improve logging (#3103)
* reorder code to fix lint warning

* Improve logging

When logging an object it would print [object Object] if `color` was set.
e.g.: google drive callback: "callback.oauth.resp [object Object]"
Now we will instead use util.inspect before calling color
Also fix some linting warnings

* Only util.inspect if not already string

this fixes tests
also simplify masking logic (only need to mask once)

* add test for object log masking

also simplify tests (reuse logic)
2021-08-17 12:33:04 +01:00
Merlijn Vos
667a2366fa
Fix editFile locale usage (#3108) 2021-08-17 12:32:21 +01:00
Artur Paikin
6e8b1d50d7 update nanoid to 3.1.25 to fix missing commonjs issue 2021-08-12 14:28:23 +01:00
Martin Brennan
d613b849a6
@uppy/aws-s3-multipart: add support for presigned URL batching (#3056)
* Add first basic test for aws-s3-multipart

* Add another test for GH actions run

* Add whatwg-fetch to aws-s3-multipart package.json

This is to satisfy linter errors, and the other s3 plugin
does this as well

* Adding more tests

* More test progress

* Tests working with nock

* Add another test, for part uploaded event

* Remove spec and refactor to beforeEach

* S3 multipart batch presign working...in theory

* Working batching and tests

* Min needed for presign batch functionality

* Fix lint issues

* Fix syntax error in companion

* Add companion batch presign endpoint

* Improve tests

* Fix each -> forEach

* Remove .prettierrc

* Adding docs and allow for headers with batch prepare

* Review fixes

* Rename prepareUploadPart to prepareUploadParts and use breaking changes
  to batch presign URLs there.
* Get rid of unnecessary batchPartPresign and minNeededForPresignBatch
  options. Use Math.ceil(limit / 2) for min needed instead.
* Fix up tests.
* Fix up type tests.
* Update documentation.

* Review fixes

* Change _ private methods to use # syntax
* Minor code and docs improvements

* Change Promise.resolve() microtasks to async/await
2021-08-11 15:04:05 +02:00
Merlijn Vos
8fb6078256
Improve a11y of remove button in dashboard (#3088)
* Improve a11y of remove button in dashboard

* Update `en_US.js`

* Update fr_FR.js

* Update `nl_NL.js`

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-08-10 19:04:42 +01:00
Antoine du Hamel
c94664613a
@uppy/utils: resolve remaining linter errors (#3091) 2021-08-10 16:06:49 +02:00
Iman Ghasrfakhri
b5a159a5c4
Add new added phrases and some improvment to fa_IR translation file. (#3050)
* Improve Translations

* Add translation for "noDuplicates"

* Translate New added Phrases
2021-08-09 18:42:24 +01:00
Antoine du Hamel
8f7e63b882
Revert "dashboard: mostly restore backwards compatibility for the browse strings (#2397)" (#3082)
This reverts commit 72965029f2.

Refs: https://github.com/transloadit/uppy/pull/2397
2021-08-09 19:33:24 +02:00
Antoine du Hamel
d94c7d1232
build: harden locale pack check for unused or duplicate key (#3081) 2021-08-09 19:32:44 +02:00
bencergazda
10f595e3a8
@uppy/core: add types for logger (#3090) 2021-08-09 17:52:10 +02:00
Antoine du Hamel
0cccb686fd @uppy/utils: improve support of data URI in dataURItoBlob (#3080) 2021-08-09 16:13:04 +02:00
Antoine du Hamel
6cd5309544 @uppy/utils: simplify canvasToBlob (#3080)
The built-in `HTMLCanvasElement#toBlob` is supported everywhere.
2021-08-09 16:12:59 +02:00
Antoine du Hamel
c8606ae5fe @uppy/utils: use private fields in EventTracker (#3080) 2021-08-09 16:12:54 +02:00
Antoine du Hamel
9866fc1f5c @uppy/utils: remove ponyfill for Array#findIndex (#3080)
The built-in method is supported everywhere.
2021-08-09 16:12:51 +02:00
Antoine du Hamel
2c1287fc52 @uppy/utils: simplify getTimeStamp (#3080) 2021-08-09 16:12:47 +02:00
Antoine du Hamel
126984ece3 @uppy/utils: avoid creating throw-away <div> in isDragDropSupported (#3080) 2021-08-09 16:12:47 +02:00
Antoine du Hamel
2178f531a4 @uppy/utils: simplify code using optional chaining (#3080) 2021-08-09 16:12:37 +02:00
Antoine du Hamel
dc5cab4922 @uppy/utils: use private fields in ProgressTimeout (#3080) 2021-08-09 16:12:33 +02:00
Antoine du Hamel
059870a80b @uppy/utils: refactor prettyETA (#3080) 2021-08-09 16:12:23 +02:00
Antoine du Hamel
3626172b0c @uppy/utils: use private fields in RateLimitedQueue (#3080) 2021-08-09 16:12:18 +02:00
Antoine du Hamel
2cdb19a8c5 @uppy/utils: use Array.from insterad of custom utils (#3080) 2021-08-09 16:12:13 +02:00
Antoine du Hamel
65ffbed1a2 @uppy/utils: refactor truncateString (#3080) 2021-08-09 16:12:08 +02:00
Antoine du Hamel
037b6fe8b5 @uppy/xhr-upload: fix import path (#3080) 2021-08-09 16:12:00 +02:00
Antoine du Hamel
0f9709bb10
@uppy/aws-s3: refactor to private fields (#3076) 2021-08-09 15:54:03 +02:00
Antoine du Hamel
b5411ff78c
deps: remove qs-stringify from dependencies (#3077) 2021-08-06 11:03:47 +01:00
Merlijn Vos
1d5ea81efa
Sort Google Drive list by name (#3069) 2021-08-06 11:03:25 +01:00
Merlijn Vos
b7210b1375
Fix webcam mirror option (#3074) 2021-08-06 11:29:23 +02:00
Artur Paikin
472766e48b
UIPlugin fix: prevent Preact replacing contents of body element by using createDocumentFragment (#3072)
* Pass createDocumentFragment instead of the targetElement to Preact, so it doesn’t destroy the contents of targetElement

* remove replaceTargetContent

* also remove replaceTargetContent from docs and website
2021-08-06 10:02:11 +01:00
Antoine du Hamel
7f37c60eaa
@uppy/core: use privater properties in UIPlugin (#3073) 2021-08-05 15:42:55 +01:00
Pascal Jufer
281f797d63
Sync and enhance locale de_DE (#3071) 2021-08-04 22:16:57 +01:00
Artur Paikin
f19f885a37 Roll back the CDN urls — v2.0.0-alpha.0 is not on CDN 2021-08-03 13:47:25 +01:00
Artur Paikin
113b627dd0 Release 2021-08-02 22:38:11 +01:00
Artur Paikin
8bcf1c6897 Merge branch 'master' into 2.0 2021-08-02 21:53:05 +01:00
Artur Paikin
1c7ac56d84 validateRestrictions was failing due to being unbound, fixed with arrow function 2021-08-02 21:49:24 +01:00
Artur Paikin
2b52d9f9ab fileSource string is unused 2021-08-02 21:48:36 +01:00
Antoine du Hamel
1d62071b92
@uppy/transloadit: upgrade socket.io-client version (#3065)
* @uppy/transloadit: upgrade `socket.io-client` version

Fixes: https://github.com/transloadit/uppy/issues/2875

* Disable `import/no-extraneous-dependencies` linter rules on website and endtoend files

* fixup! Disable `import/no-extraneous-dependencies` linter rules on website and endtoend files

* fixup! Disable `import/no-extraneous-dependencies` linter rules on website and endtoend files
2021-08-02 20:42:18 +01:00
Antoine du Hamel
d1289d6b9a @uppy/angular: fix uppy dependencies 2021-08-02 16:12:14 +02:00
Antoine du Hamel
86a5572900 @uppy/transloadit: fix tests on v16.x 2021-08-02 16:12:14 +02:00
Antoine du Hamel
d9ff0030a9 @uppy/robodog: fix types 2021-08-02 16:12:14 +02:00
Artur Paikin
2fce581063 Release 2021-08-02 15:11:38 +01:00
Artur Paikin
2f791c1747 @uppy/dashboard,@uppy/status-bar: call core methods directly (#3062)
Instead of passing props with x = uppy.x, pass uppy and call methods on
it directly (no need to use `.bind`).
2021-08-02 16:11:28 +02:00
Artur Paikin
90104e7695
don’t show informer for individual required meta fields errors (#3060) 2021-08-02 12:40:27 +01:00
Antoine du Hamel
9b0d25068d
build: fix building on Node.js v14.x LTS (#3061) 2021-08-02 12:36:25 +01:00
Mikael Finstad
da6d2b93a3
Send sameSite and secure for https cookies (#3063) 2021-08-02 11:59:40 +01:00
Artur Paikin
3b42d0ce8d #showOrLogErrorAndThrow 2021-07-30 15:35:20 +01:00
Antoine du Hamel
05d8234d26 fixup! @uppy/informer: remove dependency to preact-transition-group (#3055) 2021-07-30 16:33:40 +02:00
Antoine du Hamel
4ab06907c3 @uppy/core: fix i18n binding 2021-07-30 15:48:58 +02:00
Artur Paikin
bb1c615dc4 Merge conflict, Editor.js 2021-07-30 14:31:21 +01:00
Artur Paikin
172cc77f63 Merge master 2021-07-30 14:27:21 +01:00
Merlijn Vos
7db4ced76e
Add croppedCanvasOptions to image editor opts (#3037)
* Add `croppedCanvasOptions` & fix types

* Update website/src/docs/image-editor.md

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

* Update website/src/docs/image-editor.md

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

* Update website/src/docs/image-editor.md

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-07-30 14:27:56 +02:00