Commit graph

1335 commits

Author SHA1 Message Date
Ifedapo .A. Olarewaju
29e2af05e4
companion: check env for truthy value (#2283)
fixes #2066
2020-05-21 22:14:17 +01:00
Ivaylo Dimitrov
2be9d4f9f8
Add new localization for Bulgarian language [bg_BG] (#2280)
Inherited from the up-to-date en_US localization
2020-05-21 00:19:15 +02:00
Ifedapo .A. Olarewaju
eff4ae9299
companion: validate companion options for non-standalone usage as well (#2275)
this is breaking change since the validation may throw an error
2020-05-20 10:12:04 +01:00
Renée Kooi
547ef058c7
companion-client: add missing dependency, fixes #2266 2020-05-18 14:31:41 +02:00
Renée Kooi
ba4f182c48
aws-s3-multipart: make chunk size configurable, fixes #1543 (#2253) 2020-05-18 14:23:06 +02:00
Renée Kooi
811d763e16
core: add some more suggestions to the incorrect target warning (#2242) 2020-05-15 20:41:39 +02:00
Lars Fernhomberg
817d5ab225
Added option to display error messages for each files in dashboard (#2224)
* Added option to display error messages for each files in dashboard

* Changed default behavior to always show icon

* docs: use default value for `showErrorIconInFileList` like with other options

* rename css class, add it to the Dashboard css, remove the option

Co-authored-by: Renée Kooi <renee@kooi.me>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2020-05-15 20:40:44 +02:00
Artur Paikin
43006c2552
drag-drop: Add label for the input for better a11y (#2257)
* add label for the input for better a11y

* Update packages/@uppy/drag-drop/src/index.js

* use this.uppy.id
2020-05-15 17:15:14 +02:00
Stanislav Červeňák
c6af18b80b
Create sk_SK.js (#2261)
* Create sk_SK.js

* Update packages/@uppy/locales/src/sk_SK.js

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2020-05-14 20:04:41 +02:00
Ifedapo .A. Olarewaju
b5c67e6ea1
companion: check if body is present in error response (#2264)
fixes #2254
2020-05-13 13:49:48 +01:00
Renée Kooi
58cf8e8deb
utils: fix Translator constructor type, fixes #2263 2020-05-13 13:02:04 +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
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