Commit graph

21 commits

Author SHA1 Message Date
Antoine du Hamel
c223a1f204
@uppy/transloadit: remove IE 10 hack (#3777) 2022-05-30 18:32:53 +02:00
Antoine du Hamel
5a8a8d35be
meta: prepare test files for lint rule hardening (#3761) 2022-05-23 12:02:19 +02:00
Antoine du Hamel
3f5a03f504
@uppy/transloadit: refactor to ESM (#3725) 2022-05-17 15:17:50 +02:00
Antoine du Hamel
1413672f7c
@uppy/transloadit: add rate limiting for assembly creation and status polling (#3718)
Share one instance of `RateLimitedQueue` between Tus plugin and
Transloadit plugin, ensure all requests to transloadit.com go through
the `RateLimitedQueue` to handle rate limiting response globally.
2022-05-13 17:05:07 +02:00
Antoine du Hamel
aba7b29662
@uppy/transloadit: close assembly if upload is cancelled (#3591)
Fixes: https://github.com/transloadit/uppy/issues/3156
2022-03-24 13:57:00 +01:00
Antoine du Hamel
e2c62594a1
@uppy/transloadit: ignore rate limiting errors when polling (#3418)
Fixes: https://github.com/transloadit/uppy/issues/3156
2022-01-10 19:36:13 +01:00
Kevin van Zonneveld
bfe659820e
Upgrade linting to 2.0.0-0 (#3280)
* Upgrade linting to 2.0.0-0

* Adjust so we can pass without error

* Fix linting

* Update header-blacklist.js

* Update index.js

* Update Uppy.js

* Update Components.js

* Update StatusBar.js

* Update Assembly.js

* Upgrade to linting 2.0.0 (final release)
2021-11-09 11:19:05 +00:00
Antoine du Hamel
6b7ad5e7c7
Stricter linter (#3095)
* enforce some eslint rules

* enforce accessibility linter rules

* harden lint rules with only 1 or 2 warnings

* fix remaining rules with less than 3 warnings

* fix e2e tests

* fix remaining rules with less than 4 warnings

* fix remaining rules with less than 6 warnings

* fix `shuffleTaglines`

* fix companion build
2021-08-17 20:32:57 +02: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
9a46b0d2da
@uppy/transloadit: refactor to use private properties (#3019) 2021-07-21 17:38:24 +02:00
Merlijn Vos
f01538ba41
Resolve all type TODO's (#2963) 2021-07-20 14:40:31 +02:00
Kevin van Zonneveld
764c2ccada
Update Linter (#2796)
* relocate .vscode

* Switch to transloadit linter

* Update .eslintrc.json

* autofix code

* unlink and install eslint-config-transloadit@1.1.1

* Change 0 to "off"

* Don't change 'use strict'

* Do not vertically align

* disable key-spacing

* add import/no-extraneous-dependencies per package

* add more react/a11y warnings

* Revert "autofix code"

This reverts commit 14c8a8cde8.

* add import/no-extraneous-dependencies per example and main package

* autofix code (2)

* Allow devDependencies in ./bin

* Change import/no-extraneous-dependencies to warn again

* upgrade linter

* Set import/no-extraneous-dependencies to warn
2021-03-15 16:25:17 +00:00
Artur Paikin
948a17d86f add catch and error logging 2020-06-13 02:29:19 +01:00
Artur Paikin
ef5977643a Refactor to use fetchWithNetworkError 2020-06-12 15:27:00 +01:00
Artur Paikin
5273c46a06 Add NetworkError to Transloadit plugin, including socket.io’s connect_failed 2020-05-27 09:35:21 +02:00
Renée Kooi
c62ec3665d Update eslint to v6 (#1777)
* Update eslint

* Do eslint --fix

* Do not access Object.prototype method 'hasOwnProperty' from target object

* utils: add hasProperty

* eslint --fix

* Disable quote-props for locale files

* add back quotes in locale files

* revert locale files to state on master

* Update react-scripts
2019-08-13 21:45:30 +03:00
Renée Kooi
d60e67becd
transloadit: reduce excessive polling (#1689) 2019-07-05 14:04:04 +02:00
Renée Kooi
3b7264c376
transloadit: Use https endpoint for status fetching.
Fixes #1032
2018-09-03 11:15:11 +02:00
Renée Kooi
eb0c681455 transloadit: Only use socket.io's WebSocket transport. (#1029)
There is not much benefit to this (except saving a few HTTP requests)
but if we do this we'll see if anyone's firewalls are blocking WS or
something. Then one day in the future we can switch to plain WebSockets
instead of socket.io to shed 20KB once the Transloadit backend supports
it.
2018-08-30 22:03:36 +02:00
Renée Kooi
a4c43abd8b transloadit: Lazy load socket.io-client. (#1019) 2018-08-23 16:32:18 +02:00
Renée Kooi
ed5f73c6f5 Transloadit refactors + socket fallback (#1011)
* transloadit: Add an Assembly class to handle status updates.

* transloadit: Replace StatusSocket with new Assembly class.

* transloadit: Draft new Golden Retriever integration

* transloadit: Refetch Assembly status on events.

* transloadit: Update `assemblies` state when new status was fetched.

* transloadit: Move assembly options extraction to a class

* transloadit: use AssemblyOptions class directly for assembly options tests

* transloadit: move attachAssemblyMetadata to a class method.

* transloadit: Remove obsolete dependency.

* transloadit: Reconnect to assemblies after restore.

* tus: Always store uploadUrl

This was changed in: https://github.com/transloadit/uppy/pull/507
but actually, the uploadUrl is required by GoldenRetriever, _especially_
when `resume` is false.

* transloadit: Move `afterUpload()` closures to AssemblyWatcher class

* transloadit: Prefix private methods with _

* transloadit: Replace 2kb url-parse with custom helper.

* transloadit: Semi consistent comment width

* transloadit: Capitalise "Assembly".
2018-08-21 15:23:31 +02:00