Kevin van Zonneveld
803611ed04
Move @uppy/utils/lib/prettyBytes -> @transloadit/prettier-bytes ( #2231 )
...
* Move @uppy/utils/lib/prettyBytes -> @transloadit/prettier-bytes so we can more easily re-use it across projects
* Switch to MIT licensed @transloadit/prettier-bytes
* lockfile fun
* build: add dep for website/inject.js
Co-authored-by: Renée Kooi <renee@kooi.me>
2020-05-07 16:54:13 +02:00
Nico Jones
3ebe9a91be
Hide Progressbar if no upload in progress ( #2252 )
...
* Fixing an error that would prevent the ProgressBar from hiding
Fixing an error that would prevent the ProgressBar from hiding, displaying a `0` in the HTML element .uppy-ProgressBar-inner whenever no files were being uploaded. This fix sets the .uppy-ProgressBar element a class, so the user can decide when to hide it (or what to do)
* Update index.js
improved comment
* removed custom class
* Fixing an error that would prevent the ProgressBar from hiding
`state.totalProgress` is not `100`. It's `0` instead
----------
To reproduce the error:
```
.use(ProgressBar, {
target: '._progress_bar_',
fixed: false,
hideAfterFinish: true
})
```
This will set a `div` inside the `_progress_bar_` element, and this element will be visible, showing `0` to the user.
The problem is that, currently, the bar only hides when `progress === 100`, but that is never true, as `progress` resets to `0` once the upload has been completed.
That means, it is __always__ visible, and only hidden for a brief period after an upload completes (when the `progress === 100`, briefly).
This fix allows the bar to be hidden also when the progress is `0` (after and before uploads)
2020-05-07 16:37:39 +02:00
Renée Kooi
ef4468934d
tus: use hasProperty util to make this if condition more readable
2020-05-06 13:06:15 +02:00
Renée Kooi
77e197fdda
thumbnail-generator: generate 80% quality jpegs ( #2246 )
...
As suggested in #2204 . In my unscientific test, this is actually quite a bit faster, by about 33%!
2020-05-05 18:07:58 +02:00
Alexander Zaytsev
57da3a5a80
Dark mode design improvements ( #2232 )
...
* Modify highlight/link color
* Paler dashed outline
* Simpler input focus
* Tweak statuses' gray
* Tweak & fix :focus colors
* Swap TabBtn hover/focus colors
* Tweak dark focus outline
* Darker actionBtn
* Webcam button support
* Add isDraggingOver support
* Add ScreenCapture support
* ProviderBrowserItem-inner support
* Better fakeCheckbox support
2020-05-05 18:02:24 +02:00
Renée Kooi
0cc2c360cf
List virtualization and lazy thumbnails ( #2161 )
2020-05-05 12:22:15 +02:00
Renée Kooi
93ebc3b389
transloadit: add typings for Companion URL constants ( #2244 )
2020-05-04 14:03:09 +02:00
Tobias L. Maier
e5c854e12a
Add cuid dependency to @uppy/aws-s3 ( #2236 )
2020-05-02 10:55:26 +02:00
ifedapoolarewaju
57d1fed984
Release
2020-05-01 08:19:45 +01:00
Ifedapo .A. Olarewaju
a3a48895c0
companion: make it node 8 compatible (temporarily) ( #2234 )
2020-05-01 07:49:39 +01:00
ifedapoolarewaju
5528c6f6ea
Release
2020-04-30 12:52:46 +01:00
Ifedapo .A. Olarewaju
97b311324d
companion: catch download failures via response status codes ( #2223 )
...
* companion: catch download failures via response status codes
* companion: fix test
* companion: refactor provider file download + status code handling
2020-04-30 11:53:59 +01:00
Ifedapo .A. Olarewaju
81f61d3c33
companion: mask secrets present in log messages ( #2214 )
...
* companion: mask secrets present in log messages
* companion: escape secrets that should be masked
* companion: log error stacks optionally
* companion: restore old node enging compatibility
* companion: refactor conditional error response
2020-04-30 10:37:31 +01:00
Renée Kooi
6e2dfd7c0f
Release
2020-04-29 17:45:02 +02:00
Renée Kooi
9fb55428b5
thumbnail-generator: use new exifr.rotation() API ( #2230 )
...
* thumbnail-generator: use new exifr.rotation() API
* thumbnail-generator: remove test, outdated comment
2020-04-28 14:59:21 +02:00
Renée Kooi
8fd3f591d0
test: make endtoend tests runnable with local IEDriverServer
2020-04-27 15:38:35 +02:00
Renée Kooi
e38fcf7d2d
locales: remove obsolete strings from non-English languages
2020-04-27 13:40:08 +02:00
Alexander Zaytsev
edb0508bce
Merge branch 'master' into dark-mode-fixes
2020-04-24 13:35:22 +03:00
Renée Kooi
8e5b86b839
Dependency and CI updates ( #2217 )
2020-04-24 11:05:47 +02:00
Artur Paikin
63a9e4ea60
Revert "remove extra space"
...
This reverts commit 4f534d97b5 .
2020-04-24 10:13:33 +02:00
Artur Paikin
4f534d97b5
remove extra space
...
@kiloreux was the space intended here, what do you think?
2020-04-24 09:43:45 +02:00
Artur Paikin
df9739e24a
remove unused strings
2020-04-24 09:32:15 +02:00
Flo
273439a1a5
Update FR locale ( #2216 )
2020-04-24 09:29:40 +02:00
Artur Paikin
53138f48f8
move from white to off-white
2020-04-24 09:17:37 +02:00
Artur Paikin
908598c5d8
Fix build locales ( #2221 )
...
* add empty userAgent
//cc @MikeKovarik
* remove unused locale strings
* remove i18n from aws-s3 — it was unused?
/cc @goto-bus-stop
2020-04-23 11:54:07 +02:00
Renée Kooi
6072b1625f
screen-capture: add type tests ( #2218 )
2020-04-23 10:57:58 +02:00
Romain Preston
4e1f21ce5f
fix double encoding of the upload params ( #2220 )
2020-04-22 15:16:57 +02:00
Renée Kooi
3277339899
companion: improve obscuring sensitive values in standalone server ( #2219 )
2020-04-22 14:39:38 +02:00
Artur Paikin
320d73e46b
Exifr use .js ( #2215 )
...
* Revert "Revert "Use .js import for exifr in Thumbnail Generator (#2195 )""
This reverts commit bf1ad04b86 .
* upgrade exifr
2020-04-22 09:57:51 +02:00
Artur Paikin
a6c8ef15e1
ScreenCapture plugin for screenshots / screen recordings ( #2132 )
...
* Finnish locale semantics improved
* Finnish semantics improved
* Screen capture initial commit
* Fix. Removed audio constraint from video.
* ui improvements
* so Lerna doesn’t try to publish as private
* refactor, tweak icons
* remove commented code from webcam styles
* Check for MediaRecorder (hides button in Safari) and refactor everything
* update readme
* beta for now
Co-authored-by: Miika Jukakoski <miika.jukakoski@ourmind.io>
2020-04-21 20:47:20 +02:00
Artur Paikin
ed8a494875
Mark network errors as NetworkError ( #2110 )
...
* Add NetworkError error type and isNetworkError utility check
* Detect network errors in tus and xhr-upload
Co-Authored-By: Ifedapo .A. Olarewaju <ifedapoolarewaju@gmail.com>
* add NetworkError check to RequestClient in companion-client
* return false if !xhr 🙈
* move catch so that only errors from _checkMinNumberOfFiles are caught — errors from uploads are logged in `upload-error` already
//cc @goto-bus-stop
* Add NetworkError to MiniXHRUpload in aws-s3
//cc @goto-bus-stop
* Add tests
//cc @ifedapoolarewaju
* pass xhr to NetworkError
* add logging in catch of uppy.upload()
* start error message with “This looks like a network error”
* originalRequest --> request, return NetworkError right away
* check for NetworkError in `delete` as well
do we need it in preflight too, @ifedapoolarewaju?
* remove redundant error message re-declaration
* _showOrLogErrorAndThrow, but don’t showInformer
Co-authored-by: Ifedapo .A. Olarewaju <ifedapoolarewaju@gmail.com>
2020-04-21 10:36:49 +02:00
Ifedapo .A. Olarewaju
1141e3c6a0
companion,xhr-upload,aws-s3: send useFormData option in companion ( #2178 )
...
fixes #2039
2020-04-20 20:14:20 +01:00
Ryan Schumacher
87c4deb45c
Remove duplicate check of element type ( #2210 )
2020-04-20 11:26:41 +02:00
Ignacio G
eb82c5c15a
Fixing Safari type error ( #2207 )
2020-04-18 14:48:09 +02:00
Zachary Lawson
b02bb2c517
Update README.md ( #2206 )
...
Update Heroku instructions to reflect the latest version which includes Facebook and OneDrive providers
2020-04-17 10:40:43 +02:00
kiloreux
e101256350
Fixes and upgrades ( #2198 )
2020-04-16 22:38:46 +02:00
Louis-Michel Couture
c2df2e4699
More accurate french translation of powered by ( #2203 )
2020-04-16 13:09:08 +02:00
ifedapoolarewaju
323233488f
Release
2020-04-15 20:07:42 +01:00
Ifedapo .A. Olarewaju
cf0fff137f
companion: mimetype could be empty :/ ( #2201 )
2020-04-15 19:48:00 +01:00
Artur Paikin
5752662a93
Release
2020-04-14 22:25:47 +02:00
Artur Paikin
bf1ad04b86
Revert "Use .js import for exifr in Thumbnail Generator ( #2195 )"
...
This reverts commit 4b1297f71a .
2020-04-14 22:17:36 +02:00
Ifedapo .A. Olarewaju
9979d38bfa
Set gsuite file extensions ( #2194 )
...
* companion: add file extensions to gsuite file names + send back target mimetypes
* companion: don't iterate "undefined"
2020-04-14 20:39:12 +02:00
ifedapoolarewaju
73f2aaea37
test: use random urls to avoid confusion
2020-04-14 16:28:19 +01:00
Ifedapo .A. Olarewaju
b27d678161
companion: fix uploader protocol validation ( #2197 )
...
* companion: fix uploader protocol validation
fixes #2188
* test: use correct tus URL
* companion: make it support node 6
2020-04-14 13:32:00 +01:00
Arthur Puyou
4b1297f71a
Use .js import for exifr in Thumbnail Generator ( #2195 )
...
Current build tools seem to have issues importing .cjs files
2020-04-14 14:02:31 +02:00
Ifedapo .A. Olarewaju
3304358954
companion: set debug based on NODE_ENV only if the env is available to begin with ( #2189 )
2020-04-13 23:21:46 +01:00
Artur Paikin
d85185559d
Dashboard tablist IE10 flex fix and refactor ( #2192 )
...
* Refactor Dashboard provider list flexbox styles to work in IE10
* Refactor and cleanup
* tweak title width
2020-04-13 10:45:48 +02:00
Renée Kooi
7bf390abda
add markdown linting using remark ( #2181 )
...
* build: add markdown linting
* build: support markdown front matter
* build: fail remark lint on warnings
* Fix markdown lint warnings
* changelog: fix markdown errors, allow literal URLs
* ci: add markdown lint step
* website: regenerate contributing.md
* build: properly ignore vendor and built files from remark-lint
* build: add private packages to lerna config
2020-04-13 09:48:11 +02:00
ifedapoolarewaju
0481589f3b
Release
2020-04-08 17:37:56 +01:00
Ifedapo .A. Olarewaju
37ecb0d114
companion: favor xlsx, docx, ppt formats when export gsuite files ( #2182 )
2020-04-08 16:54:58 +01:00