Commit graph

19 commits

Author SHA1 Message Date
Mikael Finstad
afd4befee2
Google Picker (#5443)
* initial poc

* improvements

- split into two plugins
- implement photos picker
- auto login
- save access token in local storage
- document
- handle photos/files picked and send to companion
- add new hook useStore for making it easier to use localStorage data in react
- add new hook useUppyState for making it easier to use uppy state from react
- add new hook useUppyPluginState for making it easier to plugin state from react
- fix css error

* implement picker in companion

* type todo

* fix ts error

which occurs in dev when js has been built before build:ts gets called

* reuse docs

* imrpve type safety

* simplify async wrapper

* improve doc

* fix lint

* fix build error

* check if token is valid

* fix broken logging code

* pull logic out from react component

* remove docs

* improve auth ui

* fix bug

* remove unused useUppyState

* try to fix build error
2024-12-02 18:34:50 +08:00
Antoine du Hamel
8b3f1eac01
@uppy/companion: remove oauthOrigin (#5311) 2024-07-09 12:00:51 +02:00
Nadeem Reinhardt
7c174e85b7
@uppy/companion: add s3.forcePathStyle option (#5066)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-07-02 16:13:35 +02:00
Antoine du Hamel
e849827824
@uppy/companion: add oauthOrigin option (#5297)
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2024-07-02 15:33:55 +02:00
Mikael Finstad
b910f84fe2
add test endpoint for dynamic oauth creds (#4667)
* add test endpoint for dynamic oauth creds

this allows us to test it on uppy.io (we can enable it for one provider like google drive for example)

* add to env.example
2023-09-20 18:09:47 +08:00
Mikael Finstad
a16e22eb6b
fix VITE_COMPANION_ALLOWED_HOSTS (#4690)
it was broken
2023-09-20 17:53:22 +08:00
Dominik Schmidt
d7775d12a3
Fix typos and add env vars to .env.example (#4624)
* Add OneDrive env vars to .env.example

* Fix typos in comments
2023-08-14 15:48:22 +01:00
Mikael Finstad
41b8563ae2
@uppy/companion: add S3 prefix env variable (#4320)
* Adds optional COMPANION_S3_PREFIX for companion

* Fixing prefix usage

* fix implementation

* add docs

---------

Co-authored-by: Will Wilson <will.wilson@asset.tv>
2023-03-17 12:18:30 +08:00
Mikael Finstad
8c653bb099
@uppy/companion: document how to run many instances (#4227)
Co-authored-by: Kevin van Zonneveld <kevin@vanzonneveld.net>
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
2023-01-04 14:01:46 +01:00
Antoine du Hamel
141eb248be
meta: upgrade to Vite 4 and ESBuild 0.16 (#4243) 2022-12-13 15:07:19 +01:00
Merlijn Vos
dcfec2570c
Companion: change default S3 expiry from 300 to 800 seconds (#4206) 2022-11-10 11:55:31 -03:00
Antoine du Hamel
51da2b5a79
e2e: add tests for AWS (#3665)
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
2022-08-23 18:43:46 +02:00
Mikael Finstad
3277ac3589
@uppy/provider-views: improve logging (#3638)
* add testing dynamic oauth example

* improve logging levels

Log origin errors with error level

* Update Dashboard.js

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-07-06 16:28:58 +02:00
Antoine du Hamel
868e68d3d5 meta: addVITE_TRANSLOADIT_SECRET for e2e 2022-04-25 16:18:59 +02:00
Antoine du Hamel
a77b039efc
dev: sign requests sent to Transloadit (#3517)
* dev: sign requests sent to Transloadit

* Address review comments
2022-04-21 16:08:28 +02:00
Mikael Finstad
267c34045a
replace debug
remove debug flag
instead add allowLocalUrls (COMPANION_ALLOW_LOCAL_URLS)
which defaults to false
this fixes https://huntr.dev/bounties/8b060cc3-2420-468e-8293-b9216620175b/

also don't allow localhost for any providers getURLMeta
2022-03-02 19:02:56 +08:00
Antoine du Hamel
f4f1b810b7
meta: use a single .env file for config (#3498)
Fixes: https://github.com/transloadit/uppy/issues/3473
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2022-02-17 15:47:15 +01:00
Antoine du Hamel
f08b71d48b
meta: consolidate ENV files and fix contributing guidelines (#3475)
And use `pull_request_target` event instead of `pull_request` to use secrets from forks.

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

Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2022-02-14 15:13:38 +01:00
Merlijn Vos
6da874ed3a
meta: Make E2E Great Again (#3444)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-02-08 17:37:27 +01:00