Commit graph

7277 commits

Author SHA1 Message Date
Artur Paikin
41af1995c2
Dashboard: Add image and archive icons (#2027)
* Add image and archive icons

* Refactor archiveTypes
2020-01-17 17:14:20 +03:00
Artur Paikin
aefa2986d7 Temporary disable OneDrive, only show Facebook with #enable-facebook in the url 2020-01-17 16:55:12 +03:00
Artur Paikin
7aac3de10b Update CHANGELOG.md 2020-01-17 16:12:11 +03:00
Kevin van Zonneveld
c4af95d98c Switch from Discourse to Disqus for comments
Because not a soul leaves a comment via Discourse, because Discourse doesn't allow embeded comments, and Jeff Atwood has made it clear, they never will.
2020-01-17 11:40:15 +01:00
Kevin van Zonneveld
303751915e Merge branch 'master' of github.com:transloadit/uppy 2020-01-17 11:24:39 +01:00
Artur Paikin
c7868c5c20 tiny comment fix 2020-01-16 20:40:43 +03:00
Artur Paikin
d3595e4b4d Forgot to add cover image 2020-01-16 20:27:41 +03:00
Artur Paikin
ed18c78f96 Add cat demo video to 1.7 quite post 2020-01-16 20:25:09 +03:00
Kevin van Zonneveld
a82dee3a84 Merge branch 'master' of github.com:transloadit/uppy 2020-01-15 17:26:39 +01:00
Kevin van Zonneveld
96e21be9d0 Create package-lock.json 2020-01-15 17:26:35 +01:00
Renée Kooi
44495c3246
website: redirect /stats, /docs/stats, /guide/stats to package list section 2020-01-15 17:00:49 +01:00
Renée Kooi
cdb2e43543
changelog: add 1.8 version table 2020-01-15 16:43:47 +01:00
Renée Kooi
2b91a96c95
Release 2020-01-15 16:39:45 +01:00
Renée Kooi
28209a059a
changelog: 1.8 2020-01-15 16:30:43 +01:00
Olivier Le Moign
fc5321ef24 Update french translations (#2023)
* Update fr_FR.js

Add missing keys + fix translations (French native here).

* Small revert

* Remove dangling comma
2020-01-15 15:05:51 +01:00
Renée Kooi
c63d01bf07
companion: also pass metadata to getKey for multipart S3 uploads (#2022) 2020-01-15 15:04:57 +01:00
Renée Kooi
7706cad4b7
blog: remove a wip sentence lol 2020-01-15 11:40:28 +01:00
Renée Kooi
7b2283d8ef
examples: add npm run example script
a bad result from adding the examples as dependencies of the root
repository is that they now don't have access to the npm binaries they
need to run in their own folder, because they are installed into the
root repository instead.

this works around that issue.

we may need to consider undoing that change and making the examples work
as standalone projects again, that's easier to understand.

fixes #2024 for now.
2020-01-15 11:16:56 +01:00
Renée Kooi
564c500b76
examples: tweak node-xhr instructions 2020-01-15 10:53:59 +01:00
Renée Kooi
fec7d7db3a
companion: rename S3 upload functions to clarify which type of upload they do
cc @ifedapoolarewaju
2020-01-13 12:59:00 +01:00
Renée Kooi
1463ee79ce
Improve performance of adding and removing files (#1949)
* core: add an addFiles() method that only updates state once

Previously, adding 1300-ish files took around 260ms, and looked like
this in Firefox's performance tab:

![Flamegraph](https://i.imgur.com/08veuoU.png)

All of the downward peaks are `setState()` calls and GC.

Now it takes around 60ms, and looks like this:

![Flamegraph](https://i.imgur.com/xFdwVBV.png)

Here, most of the time is spent generating file IDs and guessing file
types. Those would be areas to look at next.

* dashboard: prevent frequent state update if nothing changed

After the last commit, `addFiles()` still spends a lot of time in
`emit()` and `hideAllPanels()`. The reason is that `addFiles()` still
emits all the hundreds of file-added events, and the Dashboard responds
to each with `hideAllPanels()`, which does a state update. But this all
happens synchronously, and the state almost certainly did not change
since the last `file-added` event that fired a millisecond ago.

This adds a check to avoid the state update if it is not necessary.

![Flamegraph](https://i.imgur.com/KhuD035.png)

Adding 1300 files takes about 40ms now.

With this change, the `addFiles()` call is no longer the slowest
part—now preact rendering all the items is!

* utils: optimize generateFileID and getFileNameAndExtension

Replaces some clever things with more mundane and faster things!

Now, generateFileID is a bunch of string concatenations.
Now, getFileNameAndExtension uses `lastIndexOf()` instead of a regex.

![Flamegraph](https://i.imgur.com/ZQ1IhxI.png)

Adding 1300 files takes about 25ms.

* dashboard: use preact-virtual-list

* thumbnail-generator: add `lazy` option

* dashboard: request thumbnails once file item renders the first time

* dashboard: fork preact-virtual-list

* core: add removeFiles() to remove files in bulk

* Implement removeFile() in terms of removeFiles()

* thumbnail-generator: only queue files that can be previewed

* rename size constants to accommodate WIDTH/HEIGHT

* Use new uppy.addFiles in DragDrop and FileInput

* utils: fix getFileNameAndExtension() type

* Rip out the lazy thumbnail generation

* Rip out virtualization.

* Remove virtualization leftovers

* tell future people that this is intentionally verbose

* Update package-lock.json

* henlo i am spell

* Make `addFiles()` respect maxNumberOfFiles

* core: show an informer error if some files fail in bulk add

* locales: fix quotes to make build:locale-pack happy

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2020-01-13 12:29:08 +01:00
Renée Kooi
bb2ff31335
blog: just quietly release the smol 1.7 post, we can do a proper one for 1.8 again 2020-01-10 14:05:03 +01:00
rtaieb
bdc8862d76 Free rate limit queue when upload times out (#2016) (#2018) 2020-01-10 13:50:18 +01:00
Artur Paikin
6642f32e4a fix vi_VN: rename en_US --> vi_VN 2020-01-07 16:54:00 +01:00
Artur Paikin
1d7a58481d ProviderViews: Improve Instagram’s “video thumbnail” 2020-01-07 16:51:16 +01:00
Renée Kooi
a7e4e12fe2
Companion dependency updates (#1983)
* companion: upgrade deps with updtr

* companion: downgrade stuff for node 6 compat

* Update packages/@uppy/companion/package.json
2020-01-06 15:24:35 +01:00
Renée Kooi
e1f25a4beb
locales: lint fix 2020-01-06 14:56:17 +01:00
Gerd R
72210adee7 Fix #2011 (#2012)
* fix #2011

The isXml() method will return false if the Content-Type header is not set in the S3 response

* aws-s3: fix lint

Co-authored-by: Renée Kooi <renee@kooi.me>
2020-01-06 14:49:56 +01:00
Pankaj Kumar
627b2e4df9 componentWillReceiveProps logic moved to componentDidUpdate (#1999) 2020-01-06 14:48:50 +01:00
thanhthot
53ef2fd862 Create vi_VN;js (#2010)
* Create vi_VN;js

* Update vi_VN.js
2020-01-06 14:27:12 +01:00
Renée Kooi
3c1a2afb09
xhr-upload: do not emit limit warning if an existing rate limit queue was passed 2020-01-06 13:24:08 +01:00
Artur Paikin
60c0654f17 Hide 1.0 logo banner from the website 2019-12-19 17:17:03 +01:00
rlebosse
a6eef8c6c5 @uppy/thumbnail-generator : Fix code crashing in strict mode wi… (#1995)
* Fix code crashing in strict mode by using Number constructor

* Remove useless set of numerator and denominator
2019-12-18 16:15:54 +01:00
Renée Kooi
f5fb7d7c5e
website: quick incomplete draft for a 1.7 blog post 2019-12-18 15:24:59 +01:00
Corentin Ardeois
178343d264 feat(s3-multipart): add optional headers for signed url (#1985)
Update `prepareUploadPart` contract to accept an optional `headers` property in the returned value.
If `headers` are present, they will be sent along the S3 presigned URL

Fixes #1984
2019-12-16 16:07:26 +01:00
Jaedong Kim
56ceb559f5 add Korean Locale (#1986)
* add Korean Locale

* eslint --fix
2019-12-16 14:27:54 +01:00
darthf1
19e31d098b Correct Tus.TusOptions typings based on docs (#1989)
* Correct Tus.TusOptions typings based on docs

From: https://uppy.io/docs/tus/

* Update index.d.ts

* Update packages/@uppy/tus/types/index.d.ts

Co-Authored-By: Renée Kooi <renee@kooi.me>
2019-12-16 14:05:39 +01:00
Renée Kooi
20d14261e9
changelog: add version table for 1.7 2019-12-16 13:00:34 +01:00
Renée Kooi
18180d5778
Release 2019-12-16 12:53:23 +01:00
Renée Kooi
e72c9938ab
changelog: 1.7.0 2019-12-16 12:47:17 +01:00
Renée Kooi
debab7c6fc
pin replace-x to a version that accepts our bad regex 2019-12-16 12:46:12 +01:00
Ifedapo .A. Olarewaju
2194638eb4
Merge pull request #1975 from transloadit/enable-onedrive
website: enable onedrive on the website example
2019-12-13 11:24:31 +01:00
ifedapoolarewaju
7b18b17a24
Merge branch 'enable-onedrive' of github.com:transloadit/uppy into enable-onedrive 2019-12-11 16:45:06 +01:00
ifedapoolarewaju
d1cafab75b
companion: fix onedrive when viewing shared folders/files 2019-12-11 16:40:41 +01:00
Renée Kooi
4179f790e1
drag-drop/dashboard: move dropEffect assignment to dragover (#1982)
Updating `dropEffect` on `ondrop` doesn't matter, since the effect will
already have been executed at that point. It should be updated in
ondragenter/ondragover instead.

fixes #1978
2019-12-11 16:33:49 +01:00
Renée Kooi
f2a0c32aa0
build: i guess --npm-client is no longer a thing? 2019-12-11 14:43:57 +01:00
Renée Kooi
6b006ac42c
companion: upgrade helmet 2019-12-11 13:18:24 +01:00
Renée Kooi
b82115a37f
deps: do npm update && npm audit fix 2019-12-11 13:15:17 +01:00
Renée Kooi
1afe6977af
Pass metadata to Companion getKey() option for S3 uploads (#1866)
* aws-s3: send metadata to companion

* companion: apply non-multipart s3 metadata to object

* companion: add metadata parameter to getKey() api

* docs: add `metadata` parameter for `getKey`
2019-12-09 15:05:40 +01:00
Renée Kooi
8180fa91ab
Merge branch 'master' into enable-onedrive 2019-12-09 14:28:49 +01:00