Commit graph

1613 commits

Author SHA1 Message Date
Merlijn Vos
cd3b3967da
Add preview for videos made with webcam (#2837)
* Add preview for videos made with webcam

* Update webcam and screen capture submit icon & fix prop typo

* Remove console.log

* Disable mirroring when showing recorded video

* Fix re-enable of mirroring

* Add discard button

* Don't forget to re-enable mirroring for discard button
2021-04-11 22:27:50 +01:00
Renée Kooi
7406356ecf
companion: remove stray ts-ignore comment 2021-04-06 11:54:34 +02:00
Renée Kooi
e82f828d19
companion: smaller heroku deployment (#2845) 2021-04-01 12:30:26 +02:00
Artur Paikin
6771545fe7 "access": "public" 2021-04-01 00:21:13 +01:00
Artur Paikin
1751241362 Release 2021-03-31 23:59:08 +01:00
Artur Paikin
82be5eb72a remove accidental ? devDependency 2021-03-31 18:48:48 +01:00
Renée Kooi
386cd5201b
CI better pass like this >:( 2021-03-31 18:26:42 +02:00
Artur Paikin
1fcb99540c
Add @uppy/drop-target — drag and drop files on any existing DOM element (#2836)
* Add dom-target plugin

* add dom-target to bundle and website — had trouble with css otherwise

* cleanup and dev setup

* newline at the end, restore inline: false by default

* dom-target --> drop-target, remove paste

* add docs, bundle, website example

* add types

@goto-bus-stop this should probably be something other than Uppy.PluginTarget since it won’t accept an uppy plugin?

* fix types

* Update examples/dev/Dashboard.js

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

* type string | Element

* Update packages/@uppy/drop-target/package.json

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

* Update packages/@uppy/drop-target/package.json

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

* Update examples/dev/Dashboard.js

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

* Create package-lock.json

* Update package-lock.json

* Update package-lock.json

Co-authored-by: Renée Kooi <renee@kooi.me>
2021-03-31 16:29:03 +01:00
Renée Kooi
d52bebad3a
Revert "ci: Try a much smaller Companion deployment to heroku"
This reverts commit a6d24cbae0.
2021-03-31 14:58:47 +02:00
Renée Kooi
a6d24cbae0
ci: Try a much smaller Companion deployment to heroku 2021-03-31 14:50:24 +02:00
Renée Kooi
c88e27608c
ci: fix companion deploys to docker and heroku 2021-03-31 14:18:56 +02:00
Renée Kooi
cb1a41234a
Workspaces (#2835) 2021-03-31 14:04:18 +02:00
Mikael Finstad
ceadd2e7f4
Google drive shared with me (#2758)
* Refactor list to use promises

* Include shared with me files

Fixes #2739

* revert usage of promise version of purest

it fails tests

* fix bugs

* fix lint warnings

* implement shared with me virtual dir

* pull out adaptData (it's not a public method, eslint warn)

* fix test

* disable checkbox for “shared with me”

//cc @mifi

Co-authored-by: Kevin van Zonneveld <kevin@vanzonneveld.net>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2021-03-31 10:12:24 +01:00
Antoine du Hamel
9e82431a16
add dynamic metaFields option (#2834)
* add dynamic metaFields option

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

* fixup! add dynamic metaFields option

* fixup! add dynamic metaFields option

* Update website/src/docs/dashboard.md

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2021-03-30 21:33:08 +01:00
Renée Kooi
b46be23fbe
companion: fix running on a subpath (#2841)
Co-authored-by: Niklas Salmoukas <niklas@salmoukas.com>
2021-03-29 13:48:48 +02:00
Mikael Finstad
415681f659
Use cors module instead of custom cors logic (#2823)
* use cors module instead of custom cors logic #2762

- adds support for regex COMPANION_CLIENT_ORIGINS_REGEX
- encapsulate custom cors header merge logic in own middleware
- pull out non cors logic from middleware
- unit test the cors middleware

* fix capitalization

Co-authored-by: Julian Gruber <julian@juliangruber.com>

Co-authored-by: Julian Gruber <julian@juliangruber.com>
2021-03-26 19:38:23 +00:00
Niklas Salmoukas
6c4f79b3d8
Feature: add redis pubsub scope setting (#2804) 2021-03-26 13:23:55 +01:00
Mikael Finstad
2e0065a2e1
Improve companion unit testing DX (#2827) 2021-03-26 12:44:10 +01:00
Kevin van Zonneveld
7e465338cf
Upgrade to eslint-config-transloadit@1.2.0 (#2830)
* Upgrade to eslint-config-transloadit@1.2.0

* allow console.log for /bin files

* Reduce noise in PR
2021-03-25 13:51:50 +01:00
anark
28a46011d4
fix: Aws-s3-multipart sends outdated file info to upload-success event (#2828) 2021-03-25 13:07:20 +01:00
Andrew
58f996c0e4
Vue 3 support (#2755)
* basic support

* improved support

* Add all components (still buggy)

* revert && Add lockfile

* Small fixes

* import .eslintrc from master

* Fix shadowing issue

* Update packages/@uppy/vue/src/utils.js

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

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
Co-authored-by: Renée Kooi <renee@kooi.me>
2021-03-24 16:01:45 +00:00
slawexxx44
4ee3993ef5
AWS-S3 removeUploader triggered on uninstall (#2824)
Co-authored-by: Renée Kooi <renee@kooi.me>
2021-03-22 10:41:48 +01:00
Renée Kooi
c1d15abf10
error on import lint failure + some misc lint fixes (#2813)
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2021-03-20 11:02:49 +01:00
Alvin Wang
8c77679651
Add missing doneButtonHandler type to dashboard (#2821)
Added missing type to dashboard which is present in the documentation: https://uppy.io/docs/dashboard/#doneButtonHandler

`doneButtonHandler`
2021-03-19 21:01:28 +00:00
Dominic Eden
580677e0d0
[FIX] - @uppy/webcam - Fix issue where the modes: [‘audio-only’] option was ignored when getting tracks from the media stream. Now we check to see if the Webcam is set to ‘audio-only’ and if so, only load audio tracks. (#2810) 2021-03-19 15:58:38 +00:00
Tim Whitney
2a90571bdb
Fix: typo from seee to see (#2818) 2021-03-19 00:34:37 +00:00
Kevin van Zonneveld
be0834f5a9
Replace references to www.transloadit.com to just transloadit.com (#2812) 2021-03-18 00:16:07 +00:00
Stanislav Červeňák
9d4bd737d2
Update sk_SK.js (#2814)
Added new phrases and modified old translations
2021-03-18 00:13:53 +00:00
Stanislav Červeňák
5fafa7b7a9
image-editor: fix flipHorizontal string (#2815)
Co-authored-by: Renée Kooi <renee@kooi.me>
2021-03-17 14:37:08 +01: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
Renée Kooi
6cb90c613c
companion: fix videoMediaMetadata property name 2021-03-15 16:56:32 +01:00
Adam Henley
db6fe5fd73
Add additional Google Drive Metadata (#2795)
Signed-off-by: Adam Henley <adamazing@gmail.com>

Co-authored-by: Adam Henley <adamazing@gmail.com>
2021-03-15 14:46:02 +00:00
Roy Art
b243ad79f0
Set headers just before the upload in case options changed before the upload started (#2781) 2021-03-15 14:45:30 +00:00
Renée Kooi
4bf1072363
Release 2021-03-10 13:11:28 +01:00
Renée Kooi
65297810bb
companion: fix crash when S3 is not configured (#2798)
I thought of this as a server-side issue when initially writing it, but
if you don't have S3 uploads configured, users can still target the
endpoint. So that endpoint should never crash the process.

With this change users get a 400 response when trying to start an S3 upload
of remote files if their Companion server does not support it.
2021-03-10 12:40:46 +01:00
Renée Kooi
29956dd9d3
utils: loosen flaky test 2021-03-10 12:19:12 +01:00
Renée Kooi
fc1c808ab9
companion: generate type declaration files (#2749)
So folks can use it more easily in their server-side typescript projects.

We don't have precise types for the `options` objects yet. We should add
that too.
2021-03-09 21:40:07 +00:00
Artur Paikin
502a755458
Use Array.findIndex instead of Array.indexOf in uppy.removePlugin (#2793)
* move findIndex to @uppy/utils, add tests

* use Array.findIndex instead of Array.indexOf in uppy.removePlugin

because strict comparison started failing with Vue3 Proxies
2021-03-08 18:16:01 +00:00
Artur Paikin
7d162b0dcc Release 2021-02-26 03:37:58 +00:00
Artur Paikin
8a60cf160b
Add opts.disabled for the Dashboard (#2768)
* Introduce opts.disabled for the Dashboard

* Reduce opacity, disable user-select, set cursor

* Add classes to providers' background circles

So they can be grayscaled via css

* add disableAllFocusableElements and run it in afterUpdate hook, if needed

* increase opacity for readability

* Store previous tabindex value and use it when restoring (setting disable: false)

//cc @goto-bus-stop

* Add disabled docs

* add disabled option to website example

Co-authored-by: Alexander Zaytsev <nqst@users.noreply.github.com>
2021-02-26 03:21:53 +00:00
Renée Kooi
bcdac14c46
image-editor: add missing dependency, closes #2770 2021-02-24 15:10:13 +01:00
Ethan Willis
f4f8b157c6
Make url concatenation more robust (#2777) 2021-02-23 14:11:22 +01:00
Jan Wilts
b50e9ad597
Fix Dutch spelling mistake (#2775) 2021-02-22 12:14:39 +01:00
Renée Kooi
8ae7213f78
Release 2021-02-12 11:58:46 +01:00
Renée Kooi
26524270da
transloadit: fix upload-success handler using stale data 2021-02-12 11:41:42 +01:00
Artur Paikin
2eabc33099 Release 2021-02-10 18:55:14 +00:00
Dominic Eden
183c25b128
[FIX] Safari 14.0 on Mac records audio (using the Webcam Uppy component) with MIME-type ‘audio/mp4’. Update the file extensions checker to reflect this as otherwise audio cannot be recorded with Safari. (#2753) 2021-02-10 18:26:28 +00:00
Renée Kooi
cd7f94838e
dashboard: fix showing showProgressDetails on md and up (#2760)
The DOM changed to accomodate RTL scripts, but this CSS rule was not
changed accordingly.

The StatusBar does not know its own width, so a standalone StatusBar
would never have an `.uppy-size--md` parent element. You only get that
with the Dashboard. So I've moved the rule to the Dashboard plugin, and
the selector now checks for `.uppy-Dashboard`. That element also has the
size classes.

The standalone StatusBar does not auto-hide progress details on narrow
screens. I think that's probably fine, if you're using it directly and
explicitly asking for progress details you might want to always see
them…
2021-02-10 13:10:01 +00:00
Renée Kooi
bba2a2543a
transloadit: fix polling fallback bugs (#2759)
* transloadit: fix polling attempts after Assembly completed

* core: mark postprocessing completion if upload is complete
2021-02-10 12:29:53 +00:00
Tim Koschuetzki
61dbc3173c
Companion should respect previously set value for Accesss-Control-Allow-Methods (#2726)
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2021-02-09 13:17:57 +01:00