Artur Paikin
1d8ee14ead
fix the issue with FileCard rendering 0 in place of edit button, because props.metaFields.length
...
fixed by checking props.metaFields.length > 0, which returns true/false instead of 0
thanks @goto-bus-stop! //cc @lakesare
2019-07-02 17:02:22 +02:00
Dave Kiss
b12cac4765
Add metadata support for S3 MultiPart ( #1698 )
...
* Pass metadata to S3 createMultipartUpload
* Send file meta during multipart POST request
* Ensure null values aren't passed as meta
`null` values will cause an error from AWS since meta must be a string: `Header x-amz-meta-relativepath contains invalid value`
* Lint fix
* Remove strict check to also ignore undefined values
Co-Authored-By: Renée Kooi <renee@kooi.me>
2019-07-01 16:05:32 +02:00
Renée Kooi
315c7b2309
Do eslint --fix
2019-07-01 11:08:19 +02:00
Artur Paikin
5e35987079
Log error in uppy.addFile try/catch ( #1680 )
...
* Log error in uppy.addFile try/catch
* Add `.isRestriction` to a custom RestrictionError, check for that before logging
* keep throwing for robodog.upload
//cc @goto-bus-stop
2019-06-28 20:25:17 +03:00
Artur Paikin
09178ae134
Compare file.id instead of the whole object ( #1672 )
2019-06-28 15:35:20 +03:00
Alexander Zaytsev
3b4547fa2c
More design improvements ( #1574 )
...
* Better focus styles
* Improve focus on the remove button
* "Add more" caption to the "+" button (todo: i18n)
* Add i18n (todo: check)
* Fix icon size
* Try removing file source (todo: remove icons)
* Simplify caption
* Revert "Try removing file source (todo: remove icons)"
This reverts commit 20c5ecb554 .
* (WIP) Use icons for Edit / Copy link actions
* Class names optimizing
* Subtle shadows
* Optimize code, align action icons on smaller screens
* Reduce Tab-btn horizontal padding on mobile
* Fix padding
* i18n
* replace arabic with persian
* initial refactor
* primarily FileItem's css - reintegrated Alex's changes
* @uppy/dashboard - unnested subcomponents from ./components
* @uppy/dashboard scss - added some spacing as per conventions
* @uppy/dashboard - changed behaviour of truncateString() to always return a predictable number of symbols
* @uppy/dashboard - subdivided FileItem.js and its css into smaller files
Removed unused css classes, made filenames avoid overflow
* @uppy/dashboard - removed unused .currentWidth prop, FileItem.js - made fileName take up at most 2 lines
* test:endtoend:prepare-ci - fix test by reordering locale lines
* @uppy/dashboard - decorative FileItem.js changes
* @uppy/dashboard - made css of FileItem.js more flat
* @uppy/Dashboard - in FileItem.js made max filename length 30 symbols
* fix image getting width: 100% in DashboardFileCard
//cc @lakesare
* FileItem.scss - removed tagnames
2019-06-28 15:20:04 +03:00
Ifedapo .A. Olarewaju
4eed5cd565
Merge pull request #1692 from transloadit/dropbox-media-info
...
companion: remove deprecated dropbox field
2019-06-28 12:54:52 +01:00
Renée Kooi
6d033ae427
Update lockfile
2019-06-26 15:12:29 +02:00
Ifedapo .A. Olarewaju
b25f243627
Merge pull request #1612 from transloadit/preflight-version-header
...
companion,companion-client: send uppy-versions header to companion
2019-06-26 12:03:42 +01:00
Artur Paikin
81a45a01ed
eslint jsdoc fixes
2019-06-25 18:27:48 +03:00
Ifedapo Olarewaju
edd9de1867
companion: remove deprecated dropbox field
2019-06-25 12:02:16 +01:00
Randy Etheredge
5d895f2bfa
Allow overriding of getResponseData() ( #1647 )
...
* Allow overriding of getResponseData()
* aws-s3: document getResponseData()
2019-06-24 12:15:39 +02:00
Artur Paikin
ee51b0d3e9
xhr-upload: Set type and name from file.meta, re-create blob ( #1616 )
...
* Re-create the blob to set file.data.type from file.meta.type, use file.meta.name for name
* Refactor to use setTypeInBlob helper, don’t change anything in createBareUpload
2019-06-21 19:37:29 +03:00
Ifedapo Olarewaju
49539f7ed2
companion-client: add fallback for preflight failure
2019-06-20 16:18:19 +01:00
Ifedapo Olarewaju
cabff1bf88
companion: use decodeURI only when value is set
2019-06-20 06:45:50 +01:00
Ifedapo Olarewaju
3d167cd50e
companion-client: flatten promise usage
2019-06-20 06:45:50 +01:00
Ifedapo Olarewaju
592b43bf67
companion,provider-views: set default version if none is set
...
also encode versions sent through query params
2019-06-20 06:45:50 +01:00
Ifedapo Olarewaju
3afc90baf8
companion,companion-client: remove/add logs accordingly
2019-06-20 06:45:50 +01:00
Ifedapo Olarewaju
f626fc02f4
companion-client: set default values to allowed headers
2019-06-20 06:45:50 +01:00
Ifedapo Olarewaju
d77180adeb
companion,companion-client: send uppy-versions header to companion
2019-06-20 06:45:50 +01:00
Evgenia Karunus
0755798b8c
Make DragDrop entirely clickable ( #1633 )
...
* /examples/dev - added drag-drop plugin dev environment
* @uppy/drag-drop - moved isDragDropSupported() to @uppy/utils
* @uppy/drag-drop - got rid of drag-drop npm library
* examples/dev - made compiled files placed in /output instead of /lib
* ~/examples/dev - made watchify only watch files once
* @uppy/drag-drop - add onPaste
* /examples/dev - readded html css override-attempts
* @uppy/drag-drop - made whole area clickable, and made it accessible
* @uppy/drag-drop - removed excessive outline in firefox
* change dragText classname to browse, minor spacing and order changes
2019-06-19 20:14:44 +03:00
Renée Kooi
a6d3132848
core: make meta.name not required in addFile() ( #1629 )
2019-06-19 10:34:58 +02:00
Renée Kooi
2c361315f9
build: fix lockfiles
2019-06-19 10:16:14 +02:00
Renée Kooi
a7d771f3f5
locales: fix template
2019-06-19 10:15:58 +02:00
Renée Kooi
e6c52f7681
Use opts.id as the plugin ID for all plugins, fixes #1674
2019-06-19 09:58:14 +02:00
HussainAlkhalifah
a808b1d367
Create ar_SA.js ( #1673 )
2019-06-18 21:23:01 +02:00
Kevin van Zonneveld
fe0e9143fd
Move camelcase linting exception to linting config
...
Ref: https://github.com/transloadit/uppy/pull/1673
Q: Should we just name those vars `locale` or `obj` or whatever? No need to have the locale name in it i think?
So no `const fr_FR = {}` but `const locale = {}` ?
/cc @arturi
2019-06-18 21:22:36 +02:00
Ifedapo .A. Olarewaju
324ba3d066
Merge pull request #1652 from stephentuso/drive-dropbox-pagination
...
companion: return nextPagePath for drive/dropbox
2019-06-18 15:35:29 +01:00
Ifedapo Olarewaju
9d44696a3a
companion: change log prefix to "companion"
2019-06-18 11:28:27 +01:00
Ifedapo Olarewaju
4ddb8549d6
companion: pin version
2019-06-18 11:26:03 +01:00
Ifedapo Olarewaju
f9e2402e7e
companion: add colors to logs
2019-06-18 11:26:03 +01:00
stephentuso
b3b820a9fc
companion: use same query parameter for pagination
2019-06-17 16:06:27 -04:00
stephentuso
fcb8d503be
companion: clean up drive query
2019-06-17 14:54:39 -04:00
Renée Kooi
d57403025e
robodog: use chooseFiles string like @uppy/file-input ( #1669 )
...
* robodog: use chooseFiles string like @uppy/file-input
* robodog: add default chooseFiles string
* file-input: add update notice above chooseFiles default
* Add locale docs
2019-06-17 18:38:47 +02:00
Evgenia Karunus
7ce63fcb7e
Accessibility follow-up PR: make all svgs not focusable in IE11 ( #1662 )
...
* /examples/dev - added polyfills for easy development in IE11
* @uppy/dashboard - made all svgs not focusable in IE11
* /examples/dev - started sharing serviceWorker registration code
* /examples/dev - added polyfills for IE11 to dev bundle
2019-06-17 17:08:05 +03:00
Ifedapo .A. Olarewaju
bf71260941
Merge pull request #1668 from transloadit/acess-token-session
...
companion: change oauth access token transport method
2019-06-17 14:51:58 +01:00
Artur Paikin
07da7840dc
dashboard: add modal open and close events ( #1664 )
...
* add modal-open and modal-closed events, call hideAllPanels() when modal is closed
* Document dashboard:modal-open and dashboard:modal-closed events
2019-06-17 16:23:49 +03:00
Andrew Shini
01da52ae22
Check for existing upload ( #1367 )
...
* Check for currentUpload
* Update comment
2019-06-17 14:35:50 +02:00
Thomas Warlop
af1acaf6fa
prevent unnecessary delete multiparts request for completed files ( #1650 )
2019-06-16 16:25:50 +02:00
Ayhan Kesicioğlu
425a2dd491
Create tr_TR.js ( #1667 )
...
* Create tr_TR.js
* Update tr_TR.js
2019-06-15 18:00:16 +02:00
Ifedapo .A. Olarewaju
37b07e8f03
Merge pull request #1663 from transloadit/mask-token
...
companion: don't log uppyAuthToken
2019-06-15 14:17:28 +01:00
Ifedapo Olarewaju
942b867817
companion: change oauth access token transport method
2019-06-15 14:08:46 +01:00
Artur Paikin
e941e9b4d1
Merge branch 'Botz-feature/image-rotation'
2019-06-14 19:28:11 +03:00
Artur Paikin
b278570cb5
Merge branch 'feature/image-rotation' of https://github.com/Botz/uppy into Botz-feature/image-rotation
2019-06-14 19:21:46 +03:00
Artur Paikin
4eb2e65101
dashboard: Refactor FileCard component to fix loosing metadata state on re-renders ( #1656 )
...
* Refactor to fix loosing metadata state on re-renders
* uppy-DashboardContent-bar shouldn’t shrink
* Populate formState in constructor, empty meta value if undefined, pass field.id from oninput
* Use local styles instead of unpkg CDN
* update locales and stargazers
2019-06-14 19:18:14 +03:00
Artur Paikin
e2e7e1d540
remove old debug console.log
2019-06-14 19:11:50 +03:00
Ifedapo Olarewaju
44fe7f1654
companion: don't log uppyAuthToken
2019-06-13 14:17:16 +01:00
Ifedapo .A. Olarewaju
a52e3f90b4
Merge pull request #1649 from transloadit/remove-error-stack
...
companion: don't send error stack to client
2019-06-13 13:54:29 +01:00
Ifedapo .A. Olarewaju
8d3fac47cd
Merge pull request #1651 from transloadit/instagram-username
...
companion: properly load instagram username
2019-06-13 13:53:09 +01:00
Artur Paikin
7de8464a54
Change webcam file name so that it fits on one line in Dashboard ( #1660 )
2019-06-12 23:30:33 +03:00