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