Commit graph

7565 commits

Author SHA1 Message Date
Artur Paikin
5f28e40dbf add draft basic cropping to a weird place 2020-05-14 20:52:40 +02:00
Renée Kooi
d67ff8d884
build: fix type cast 2020-05-08 11:23:36 +02:00
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
Artur Paikin
216e481ed5 Fix ancor scroll overflow
Mentioned here https://github.com/transloadit/uppy/pull/2128#issue-387905559

https://mobile.twitter.com/hakimel/status/1257252729128435712 thanks @nqst ;)
2020-05-04 16:34:28 +02:00
Renée Kooi
93ebc3b389
transloadit: add typings for Companion URL constants (#2244) 2020-05-04 14:03:09 +02:00
Renée Kooi
4ddeacff7a
changelog: remember to remove UPPY_SERVER const from :tl: plugin at 2.0 2020-05-04 12:36:09 +02:00
Renée Kooi
3da7d8938d
Update lockfile. 2020-05-04 11:56:15 +02:00
Renée Kooi
f04e9c80f5
changelog: add 1.14 changes 2020-05-04 11:54:45 +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
ifedapoolarewaju
379be41560
update package-lock 2020-05-01 08:02:37 +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
4dce124013
examples: fix a case typo :) 2020-04-29 16:34:04 +02:00
Renée Kooi
d043677c16
examples: fix screen capture toggle in dashboard example 2020-04-29 16:03:15 +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
684c59c794
Merge pull request #2222 from transloadit/dark-mode-fixes
Dashboard Dark Mode: move from white to off-white
2020-04-24 13:36:43 +03: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
ecb1a22a3d tel 2020-04-23 14:19:03 +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
23f3bf9edc publish 1.13 post 2020-04-22 11:41:02 +02:00
Renée Kooi
7231b91920
blog: iterate on 1.13 post 2020-04-22 11:27:24 +02:00
Ifedapo .A. Olarewaju
5ad145775a
update 1.13 blog post
cc @arturi
2020-04-22 09:50:56 +01: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
Renée Kooi
9513d1c0b1
Some Windows support (#2211)
* build: explicitly use `sh` for shell scripts

* build: fix css path check on windows

* build: use NODE_PATH instead of symlink for local package resolution in e2e tests

* build: actually with new lerna we do not need NODE_PATH

* build: sh → bash
2020-04-22 09:56:34 +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
614d0c455f add exifr to changelog and next blog post 2020-04-21 20:34:33 +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
Renée Kooi
3c89563f1b
examples: make S3 endpoint configurable for aws-presigned-url 2020-04-20 14:12:58 +02:00
Ryan Schumacher
87c4deb45c
Remove duplicate check of element type (#2210) 2020-04-20 11:26:41 +02:00