* Only log info if debug is true
* Add option logClientVersion
defaults to true
* Update companion.md
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
* #2920 fixed standalone server to initiate itself on explicit function call
* refactored standalone server module export
* fixed unit tests related to new companion standalone export, set the jest timeout slightly higher
Co-authored-by: Thomas Benndorf <thomas@br24.com>
* Allowed HTML Attributes to be passed via props
This fix still needs some work, as certain attributes could be passed to Uppy or as an HTML attribute, such as target
When this is fixed, this will resolve#2403
* Removed shared attributes
I removed the ability to use certain attributes ('width', 'height', and 'target') and pass them down as Props to the div due to that fact that Uppy relies on them
* Add typescript types for the HTML attributes
* Moved common.js to getHTMLProps.js
* Fixed import
* Converted `possibleStandardNames` to an Array
* Fix import
* Fix tests
* Expose drag-drop events
* we need to call DragDrop.renderArrowSvg without this, since it’s now static
* Update docs based on feedback
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
* 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