Commit graph

1561 commits

Author SHA1 Message Date
Renée Kooi
63c49df92f
transloadit: fix #2626 (#2748) 2021-01-28 16:32:53 +00:00
Renée Kooi
72bef8d9d7
companion: remove incorrect Expires option (#2746)
I assumed `Expires` had to do with signed URL expiration, but in the
case of `createMultipartUpload`, it affects the _uploaded file itself_.

Those files are not automatically removed but no longer cacheable after
the expiration time, which is still bad.

Thanks to @Dock1100 for raising this! Fixes #2483.
2021-01-28 17:19:23 +01:00
Artur Paikin
7c55bd855e Release 2021-01-28 16:08:14 +00:00
Renée Kooi
52760d2bb7
dashboard: improve support for right-to-left scripts (#2705)
* dashboard: fix modal position on rtl pages, fixes #2495

* Align text to the right on right-to-left pages

* core: fix default text alignment on right-to-left pages

* dashboard: fix margin in provider browser on right-to-left pages

* dashboard: use direction-aware offset properties

* provider-views: use logical offset CSS properties

* status-bar: use logical offset CSS properties

* dashboard: fix addMore icon margin on RTL pages

* dashboard: some more logical properties

* build: compile logical properties to old CSS

* dashboard: set dir attribute if page did not provide one

* status-bar: set fallback text direction if not provided

* support direction option for inline and modal dashboard

* use companion.uppy.io on deploy previews

* provider-views: fix RTL alignment of file icons

* put the dir attribute on a wrapper div

* fix icon alignment in RTL provider views

* informer: fix ? alignment in RTL mode
2021-01-27 17:13:38 +00:00
Artur Paikin
e1efe07927 Release 2021-01-27 16:22:43 +00:00
Renée Kooi
eecad13920
companion: pass-through metadata to S3, fixes #2531 (#2742) 2021-01-25 13:23:51 +00:00
Priyesh
0b4d5c5948
use multi-stage docker build (#2732)
- Using a multi-stage build so that the build dependencies
  do not end up in the final image. Saves a bit on the image
  size as well.
2021-01-19 21:42:51 +01:00
Ifedapo .A. Olarewaju
e24430cc1c
companion: delete tus error's originalRequest field before propagatin… (#2733) 2021-01-18 14:36:09 +01:00
Artur Paikin
1eff05ede7
Dashboard: emit fileId on both file-edit-start and file-edit-complete events (#2729)
* emit fileId on both file-edit-start and file-edit-complete

* update docs

* fileId  --> fileID

* fileID --> file
2021-01-15 15:58:28 +00:00
Ifedapo .A. Olarewaju
c7b097cd90
companion: add support to allow custom oauth credentials at request time (#2622)
* companion: add support to allow custom oauth credentials at request time

other affected ackages: dropbox, google-drive, zoom, instagram, facebook, onedrive, provider-views

* companion: avoid re-using "state" value from previous oauth dance

* companion: fix tests

* companion: add test for preauth endpoint

* companion: document functions

* companion: add tests for oauth credentials fetcher module

* companion: rename "params" to "parameters" to avoid ambiguity with transloadit's API

* companion: fix typos

Co-authored-by: Renée Kooi <renee@kooi.me>

* companion-client: use qs-stringify for url queries

* companion-client: rename "credentialsRequestParams" -> "companionKeysParams"

Co-authored-by: Renée Kooi <renee@kooi.me>
2021-01-15 10:50:12 +01:00
Renée Kooi
c81780230d
Add all the CI badges (#2725)
* Add all the CI badges

* flip the CI / npm version order

* add github actions tests badges to all package readmes

* remove |

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2021-01-13 00:30:59 +00:00
Ifedapo .A. Olarewaju
3b5d19f363
companion-client: support options cookies send rule (#2618)
* companion-client: support options cookies send rule

fixes #2241

* companion-client: prefix cookiesSendRule option with "companion"

* companion-client: set "companionCookiesRule" as optional field
2021-01-12 14:54:36 +01:00
kiloreux
1f365608be
Fixes around Github actions and Companion deploys. (#2717) 2021-01-04 11:17:26 +01:00
Denys Nosov
910ceaeef4
Fix grammar (#2714) 2021-01-04 11:16:28 +01:00
Denys Nosov
12271104a7
Add Ukrainian localization (uk-UA) (#2713)
* Add Ukrainian localization (uk-UA)

* Update uk_UA.js

* Update uk_UA.js

* Update uk_UA.js

* Update uk_UA.js
2020-12-30 01:40:05 +00:00
Artur Paikin
1493a807fe Release 2020-12-23 18:04:51 +00:00
Andrew
ff3127f663
Svelte integration (#2671)
* Added basic components

* Updated README

* Added LICENSE

* Added basic doucmentation

* svelte: Fixed CSS issues

* svelte: Added CSS to docs

* svelte: Removed favicon

* svelte: Configured build system and CSS

* svelte: Updated docs for better CSS

* svelte: Disable TSD for svelte

* fix: fixed svelte building issues

* Update packages/@uppy/svelte/package.json

Co-authored-by: Artur Paikin <artur@arturpaikin.com>

* add svelte to locale-packes build ignore

* upgrade typescript

This might get reverted, but it upgrades from Typescript version 3.7.5 to 3.9.3

* remove devDependencies from svelte and vue packages

* Update packages/@uppy/svelte/package.json

Co-authored-by: Renée Kooi <renee@kooi.me>

* slight tweak for docs and readme

* try to switch to file urls for vue and svelte

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
Co-authored-by: Renée Kooi <renee@kooi.me>
2020-12-23 13:45:26 +00:00
Artur Paikin
a6a28eac67
dashboard: add autoopen for file editors (image-editor) (#2681)
* final-file-added event for when the last file in the batch has been added

* intoduce autoOpenFileEditor — open when the last file (image) from a batch has beed added

* make cropping box more visible

* add docs

* final-file-added --> files-added
2020-12-18 21:27:48 +00:00
Andrew
80b5ace47d
Added FileInput component to React (#2706)
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2020-12-18 21:21:12 +00:00
Renée Kooi
b03c5af053
react: add useUppy() hook (#2666)
* react: add useUppy() hook

* add test

* docs: replace useRef/useEffect recommendation with useUppy()

* fix typo
2020-12-18 21:11:11 +00:00
Ahmed Kandil
916d4d7eaa
utils: Add archive mime types (#2703)
Resolves #2702
2020-12-18 21:09:18 +00:00
Andrew
9bbb80f6cf
types: Corrected StatusBar types (#2697)
* types: Corrected StatusBar types

Not all of the documented options were in the types file,this fixes that

* Update packages/@uppy/status-bar/types/index.d.ts

Co-authored-by: Renée Kooi <renee@kooi.me>

Co-authored-by: Renée Kooi <renee@kooi.me>
2020-12-16 19:26:42 +00:00
Renée Kooi
a03a1ed7d6
use tusd.tusdemo.net (#2691) 2020-12-16 15:08:40 +01:00
Renée Kooi
38599e3aa2
Release 2020-12-11 21:17:27 +01:00
Renée Kooi
f7f7b6fd02
companion: upgrade express-prom-bundle to v6 (#2689)
* companion: upgrade express-prom-bundle to v6

* companion: fix install tree and types so express-prom-bundle works
2020-12-11 16:37:21 +01:00
Adam Bannach
d8c5be24c7
expand result as body on success (#2623) 2020-12-11 10:38:29 +01:00
Ifedapo .A. Olarewaju
415231eef4
companion: exit function after sending response (#2687)
fixes #2684
2020-12-09 15:52:33 +01:00
Artur Paikin
76366c3a92
addFile returns string, not void (#2685) 2020-12-08 19:08:41 +00:00
Ifedapo .A. Olarewaju
943261968d
unsplash: unsplash needs uppy/core to be 1.13.3 or higher (#2676) 2020-12-08 16:42:45 +00:00
Enrique Mejia
f09de1a151
companion: Remove fs stat and use bytesWritten as content length (#2683) 2020-12-08 09:14:28 +01:00
Kjetil Møkkelgjerd
d1d24047b4
Added nb_NO (#2677)
* Added nb_NO

Added support for Norwegian (bokmål)

* Remove trailing commas
2020-12-07 01:56:41 +00:00
Renée Kooi
c578456689
thumbnail-generator: upgrade exifr to v6 (#2667) 2020-11-30 14:27:23 +00:00
Renée Kooi
f4eb113bbc
silence or fix lint warnings (#2665) 2020-11-30 10:58:33 +01:00
Renée Kooi
084d17db7d
GitHub actions (#2617) 2020-11-27 09:52:48 +01:00
Artur Paikin
68a23d9ff1 Release 2020-11-25 23:33:54 +00:00
Andrew
b082e54029
Vue integration (#2500)
* Basic setup

* Updated some documentation

* Cleanup some useless files

* Added docs to website

* Re-add package.json

* Added module

* Update vue.md

* Update DOCS.md

* Starting writing docs

* Fix my own spelling mistake

* Add a proper README and LICENSE

* Some quick fixes

* Update Dashboard.vue

* Added shallow-equal

* Try adding an example to test vue integration locally

* Temporarily fixed build and example

* Small documentation fixes

* Added Vue 3 example

* Added proper bundling and typescript for vue

* Added full typescript support for integration

All @uppy/vue components now support TypeScript and are strongly typed.

* Massive docs improvement for @uppy/vue

* Fix small type error in dashboard-modal

* Slight documentation changes

* Add typescript types file to package.json

* Trim down dependencies

* Fix building with Vue

I added it to a list of ignored packages as it builds a little weird

* Updated example

* Converted .vue files to .ts

* Setup .js files for @uppy/vue

* Fixed small rendering bug

* Delete package-lock.json

* Delete package-lock.json

* Delete package-lock.json

* Update packages/@uppy/vue/package.json

Co-authored-by: Artur Paikin <artur@arturpaikin.com>

* Some cleaning for @uppy/vue

* Delete components.d.ts

* Removed Vue 3 example

* Update typescript stuff for @uppy/vue

* Documentation update for @uppy/vue

I changed to menu text to 'Other Integrations'

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2020-11-25 22:59:06 +00:00
Artur Paikin
95e014f572
test: use DeepFrozenStore in one end to end test (#2607)
* use DeepFrozenStore in one end to end test

Follow up to #320

* add DeepFrozenStore to some Core unit tests
2020-11-25 21:19:32 +00:00
Artur Paikin
d40ad5d028
Status Bar and Dashboard: add “done” after upload is complete (#2653)
* add Done button

* move doneButtonHandler to options in Dashboard

* update docs

* revert for speed
2020-11-25 18:09:19 +00:00
Artur Paikin
449798d964
pass files array to _checkRestrictions in _checkAndCreateFileStateObject via addFiles (#2655) 2020-11-25 11:55:36 +00:00
Enrico Sottile
d4e9e2ed21
S3 validate parameters: display correct error for wrong method (#2577)
Co-authored-by: Ifedapo .A. Olarewaju <ifedapoolarewaju@gmail.com>
Co-authored-by: Your Name <you@example.com>
Co-authored-by: Renée Kooi <renee@kooi.me>
2020-11-23 13:08:41 +01:00
Konstantin Epishev
dd437510e3
fix: jwt helper optional parameters (#2613)
Co-authored-by: Ifedapo .A. Olarewaju <ifedapoolarewaju@gmail.com>
Co-authored-by: Renée Kooi <renee@kooi.me>
2020-11-23 11:00:00 +01:00
Brett Aaron
93578e8ba3
Add missing option types to XHRUploadOptions (#2639)
withCredentials and responseType are available options when using XHRUpload, but they are not included in the type signature of XHRUploadOptions
2020-11-19 15:01:37 +01:00
Artur Paikin
55d38e7b5f show the edit button only when !uploadInProgressOrComplete 2020-11-16 15:06:46 +00:00
Artur Paikin
1bfe1995eb Release 2020-11-16 11:51:59 +00:00
Artur Paikin
ee3ce04c4f add box publishConfig 2020-11-16 11:44:45 +00:00
Bruno Gerotto
256c06e227
tus: add onBeforeRequest option (#2611) 2020-11-16 11:55:06 +01:00
Ifedapo .A. Olarewaju
9e07c9900c
companion: fix the thumbnail for Box provider (#2630)
* companion: fix box provider tests + remove unused e2e test files

* companion,box: fix thumbnails and user email for box provider
2020-11-15 16:00:51 +01:00
Artur Paikin
ce92b6b919
Image editor zoom button and types fix (#2632)
* fix zoom button

* fix types
2020-11-14 13:59:38 +00:00
Ifedapo .A. Olarewaju
9fff34b11e
companion: fix box provider tests + remove unused e2e test files (#2628) 2020-11-13 18:21:14 +01:00
Carter Konz
970ac8df5b
companion,box: Box provider implementation (#2549)
* boilerplate for Box provider

TODO:
  - adapter
  - index
  - website/src/docs
  - tests

* Box provider implementation

- adapter
- index
- npm bufoonery
- lil' fixes

and MORE!

TODO:
- thumbnails 🤬
- tests
- docs

* Box provider: add brand icon, fix file icons

- token issues with thumbnail/logout

* Box provider: fix thumbnails, upload

- fix tokens for box
- implement `size()`
- make debug logging easier to find (bold blue)

learned:
- box needs cookie auth
- thumbnail requests come back as 202s

TODO:
- fix logout with form POST (zoom example)

* Box provider: fix logout

- add client info as formData to revoke post

TODO:
- tests cleanup
- package-lock fix
- docs

* Box provider: docs

TODO:
- tests

* Box provider: cleanup

TODO:
- tests

* fix error msg path for Box

- remove comment

* keeping up

- update ProviderViews import
- fix version string on Box package.json

* companion,box: exclude box from global module/examples while in beta

Co-authored-by: Ifedapo .A. Olarewaju <ifedapoolarewaju@gmail.com>
2020-11-13 15:37:00 +01:00