Commit graph

7308 commits

Author SHA1 Message Date
ifedapoolarewaju
fd9c1933ad
website: optionally enable facebook with transloadit 2020-02-04 12:16:30 +01:00
Ifedapo .A. Olarewaju
a8917d5062
Merge pull request #2047 from transloadit/put-remote-xhr
companion,xhr-upload: add option to set http method for remote multipart uploads
2020-02-03 12:49:16 +01:00
Artur Paikin
d385d2c84e
Clear state error after the last file is removed (#2041) 2020-02-03 13:07:47 +03:00
Ifedapo .A. Olarewaju
4c1f6231a1
Merge pull request #2046 from transloadit/redundant-option
providers: remove redundant use of options
2020-02-03 09:22:28 +01:00
ifedapoolarewaju
4ed7508f78
companion,xhr-upload: option to set multipart http method
fixes #2019 (we can all go one year backwards once this is merged)
2020-01-31 15:51:15 +01:00
ifedapoolarewaju
83ec63efb2
providers: remove redundant use of options 2020-01-31 14:54:13 +01:00
ifedapoolarewaju
746bbcbbc5
update package-lock 2020-01-31 14:49:29 +01:00
ifedapoolarewaju
d34a67f9fd
add todo 2020-01-31 12:13:58 +01:00
Ifedapo .A. Olarewaju
e86d01e247
Merge pull request #2044 from mkabatek/fix/google-drive-providerName
fix: remove conditional to replace `google` with `drive`
2020-01-31 11:09:12 +01:00
Michael Kabatek
ff5714ebc3 fix: remove conditonal to replace google with drive
* Google drive callback url now uses 'google' and not 'drive'
* Fixes callback url by removing the conditional for google providerName
2020-01-31 02:06:01 -07:00
Artur Paikin
1ea950d5d2
core: Always log errors (#2029)
* Show errors in logs always. nullLogger --> justErrorsLogger

Reasoning: too often we ended up showing errors in the Informer bubble, but not in the console, which is wrong and annoying. Devs still have an option to silence logs or direct them elsewhere by setting a custom logger

* Hide pause/resume buttons when error occures

* Update tests

* Update website/src/docs/uppy.md

Co-Authored-By: Renée Kooi <renee@kooi.me>

Co-authored-by: Renée Kooi <renee@kooi.me>
2020-01-28 18:45:23 +03:00
Eduardo Flores
285ac9a9d0 Changed aria-level attribute to correct syntax. (#2032)
* Changed aria-level attribute to correct syntax.

Changed the aria-level attribute to the correct syntax. Changes were also made to meet ADA compliance.

* update a few more aria-level attributes

Co-authored-by: Renée Kooi <renee@kooi.me>
2020-01-22 13:06:53 +01:00
yoann-hellopret
0640a1a56a remove encodeURIComponent to avoid encoding characters twice (#2033) 2020-01-22 12:39:52 +01:00
Ifedapo .A. Olarewaju
15cd6fd781
Merge pull request #2034 from transloadit/fix-onedrive
companion,website: make encryption shorter + enable onedrive on website
2020-01-22 12:36:18 +01:00
Ifedapo .A. Olarewaju
cb75538fcd
Merge pull request #1966 from transloadit/instagram-graph
companion: support new Instagram Graph API
2020-01-21 13:45:36 +01:00
ifedapoolarewaju
61edba36b3
companion,website: make encryption shorter + enable onedrive on website example 2020-01-21 13:14:17 +01:00
Renée Kooi
d9882e569d
changelog: remove some things from backlog that are already done 2020-01-20 17:19:17 +01:00
Renée Kooi
78003c2f5b
examples: fix s3 import path 2020-01-20 15:19:00 +01:00
Artur Paikin
4ee15aedef Update CHANGELOG.md 2020-01-20 17:11:24 +03:00
ifedapoolarewaju
a54274f645
debug: make tests pass 2020-01-20 15:10:37 +01:00
ifedapoolarewaju
aeb3d12d7f
debug: fix base64 escaping 2020-01-20 14:25:23 +01:00
ifedapoolarewaju
4b4ff2eccd
Merge branch 'master' of github.com:transloadit/uppy 2020-01-20 13:42:53 +01:00
ifedapoolarewaju
4d8bdb282c
website: enable onedrive via url hash
cc @arturi
2020-01-20 13:42:26 +01:00
ifedapoolarewaju
1971117ee3
debug: encode companion auth token as base64 2020-01-20 13:40:48 +01:00
Artur Paikin
7eda2346a8
core: setState(modifiedFiles) in onBeforeUpload (#2028)
* Updating files in state, too, because uploader plugins receive file IDs only, not actual files

* Update doc examples with simpler spread syntax
2020-01-20 15:33:38 +03:00
ifedapoolarewaju
0b4c22dddb
Revert "debug: see if excluding cookies for onedrive fixes large header issue"
This reverts commit c6fbae5a9d.
2020-01-19 23:02:27 +01:00
ifedapoolarewaju
c6fbae5a9d
debug: see if excluding cookies for onedrive fixes large header issue 2020-01-19 22:32:36 +01:00
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