* add more granular image rotation control
Fixes: https://github.com/transloadit/uppy/issues/2636
* fixup! add more granular image rotation control
* fixup! add more granular image rotation control
* fixup! add more granular image rotation control
* fixup! add more granular image rotation control
* add input-range-scss dependency
* Modify the rotation slider
- Better visual styles for the slider
- Position a toggle in the center of the slider
- Make it work better on moblile
- 90° rotation: rotate counterclockwise
- 90° rotation: update icon
* Use black background for the canvas when rotating (instead of gray)
* Use smaller range for granular rotation input
* Optimize event listeners
* Fix styles and state unsyncronisation
* Update package-lock.json
Co-authored-by: Alexander Zaytsev <nqst@users.noreply.github.com>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
* Translator: refactor interpolate
Fixes types and small code edits:
`<regex>[Symbol.split](<string>)` is equivalent to
`String.prototype.split.call(<string>, <regex>)` and potentially more
readable (the downside it's not compatible with IE, which may be why we
currently use the latter).
Refs: https://github.com/transloadit/uppy/pull/2899
* Update packages/@uppy/utils/src/Translator.js
* Revert RegExp Symbol for IE compat
In the case of an invalid URL, this is no proper way to handle an error. `uppy.state.info` only show the error without any info that due to which URL error was thrown.
So returning the error or file so it can be handled as need. throwing the error will not be backward compatible
* ignore ts errors
i couldn't get the @types/node-redis-pubsub to work
It seems they are incorrect (they have a namespace NRP around teh class)
* convert from class extends to factory function
* Fix bug introduced in chunkSize PR
Changes the HTTP request error handling logic to only replace the
message inside an Error object, instead of creating a new Error. This
should keep stack traces intact and prevents us from obscuring any
potential additional properties on the original Error.
* rename StatusBar-ghosts to StatusBar-serviceMsg
* resumeAll after restore
* Adjust recovered copy: remove from StatusBar, make it depend on number of ghosts, add re-select button
* Update en_US.js
* add sorting — display ghost files first
* make ghosts more opaque
//cc @nqst
* Update packages/@uppy/dashboard/src/components/FileList.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* Update packages/@uppy/dashboard/src/components/FileList.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* don’t store file.data on local files when we save to localStorage, add isGhost: true, additional event restore-confirmed
Co-Authored-By: Renée Kooi <github@kooi.me>
* Don’t double-emit upload-started for Golden Retriever-restored files that were already started
Co-Authored-By: Renée Kooi <github@kooi.me>
* removeFile: delete updatedUploads[uploadID] instead of calling _removeUpload to avoide excess state updates
Co-Authored-By: Renée Kooi <github@kooi.me>
* clear preview, throttle saving state
* add service message and ghost icons
* regenerate thumnails on restore properly
* allow replacing duplicate files if it’s a ghost
* re-generate thumbnails on componentDidUpdate
* tweak styles for ghosts
* Dashboard cleanup
* refactor: load IndexedDBStore and ServiceWorkerStore together, add uninstall, handle file-edit-complete
* recoveredState — show upload button as “restore”, hide progress pause/resume, handle abortRestore
* tweak serviceMsg mobile styles
* use i18n for strings
* Handle aborting, complete and last file removal with MetaDataStore.cleanup(instanceID)
* fix all the tests
* import .eslintrc from master
* autofix
* add lodash.throttle
* when re-selecting ghost files, only replace the blob, keeping progress, meta, etc
* Delete package-lock.json
* Update en_US locale
* add golden retriever support to darkmode styles
* add golden retriever to website example
* Update package-lock.json
Co-authored-by: Renée Kooi <github@kooi.me>
* Rename strokeDasharray to stroke-dasharray etc, since Preact doesn’t work with those camelCased
* try adding eslint ignore for react/no-unknown-property rule
* Update index.js
This PR added companion cookies rule to every provider except Box.
https://github.com/transloadit/uppy/pull/2618
(Not sure if there's a reason Box was left out)
* Update docs for the change
* 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>