* 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
* 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>
* 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>
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.
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.
* 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
* 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>
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…