Renée Kooi
d285c77ab4
Account for capabilities.uploadProgress in existing tests.
2018-12-03 14:37:16 +01:00
Renée Kooi
124763dd3c
Add supportsUploadProgress() tests
2018-12-03 14:35:52 +01:00
Renée Kooi
b6df7174d5
Disable upload progress reporting if unsupported in browser.
2018-12-03 13:36:44 +01:00
Artur Paikin
be8a65a3c1
Merge pull request #1153 from transloadit/fix/progress-size
...
Use file sizes for progress calculations, closes #1132
2018-11-19 18:13:01 +03:00
Renée Kooi
12f64cd136
revert unrelated changes
2018-11-12 10:46:13 +01:00
Renée Kooi
372623867a
Revert unrelated change with hard to predict consequences
2018-11-12 10:39:00 +01:00
Renée Kooi
94a5a3b820
Don't pass removed file IDs to next upload step.
...
`uppy.removeFile()` already removes the fileID from the
`currentUploads[*].fileIDs` list, so all we need to do is to pass the
updated array instead of the original!
More importantly this adds a test.
2018-11-08 16:42:49 +01:00
Renée Kooi
2f3ae8566c
fix tests and totalProgress assignments
2018-11-05 14:12:43 +01:00
Renée Kooi
def187e76b
Use file sizes for progress calculations, closes #1132
2018-11-05 13:47:36 +01:00
Artur Paikin
c5c3c7fed6
Merge pull request #1097 from transloadit/status-bar/add-spinner
...
Status Bar: add spinner, pause/resume as small round buttons, different color for encoding
2018-10-31 05:16:23 +03:00
Artur Paikin
92bee3fb8c
Merge pull request #1114 from transloadit/improvement/i18n-packs
...
Bring back locale packs
2018-10-29 20:13:25 +03:00
Artur Paikin
9ee57bb9bd
Merge branch 'master' into status-bar/add-spinner
2018-10-29 06:22:38 +03:00
Artur Paikin
d75facd331
switch to new circular pause/resume/cancel buttons
2018-10-25 20:51:04 +03:00
Artur Paikin
7a137de079
Merge pull request #1090 from transloadit/revoke-inside-thumbnail-generator
...
Move preview revocation to thumbnail-generator
2018-10-23 23:05:51 +03:00
Artur Paikin
537b2010f9
Remove unprefixed and unused fadeIn animation
...
fixes #1115
2018-10-21 11:30:41 -04:00
Artur Paikin
4efc27675c
Allow locale inheritance: defaultLocale, this.uppy.locale, this.opts.locale
...
Mostly what @goto-bus-stop did in 4f51deaaf7 (diff-989af75a364b65c408abe1fc3e7ac0f4R34)
> This patch allows locale keys passed to the main Uppy instance to override default keys in plugins. It's just one idea to kick things off, I'm not attached to this particular implementation.
>
> If we do this we need to make sure that all keys have unique names and that things specific to eg. a single service are "namespaced" (`transloaditEncoding` instead of `encoding`).
>
> The benefit to this is that there is a central point of configuration for languages, so there could be language packs with strings for eg Czech at `@uppy/lang-cz` (or `@uppy/langs/cz`) that would be very easy to use.
2018-10-20 12:49:06 -04:00
Artur Paikin
f9349f249b
Merge pull request #1069 from transloadit/chore/document-events
...
[WIP] [@uppy/core] Document events, deprecate unused
2018-10-10 20:09:27 -04:00
Artur Paikin
a90d6865e5
Turn Pause/Resume into text buttons, add spinner for uploading and processing — different colors
...
Colors experimental
2018-10-10 19:39:00 -04:00
Renée Kooi
c916fa5505
Realign expected setState call count after 72a02f55bc
2018-10-08 12:37:29 +02:00
Renée Kooi
72a02f55bc
Move allowNewUpload reset to cancelAll()
2018-10-08 12:13:45 +02:00
Renée Kooi
363643f0dc
Allow new uploads again after reset()
2018-10-08 12:11:50 +02:00
Renée Kooi
d20c48036a
Add test for addFile() after upload()
2018-10-08 12:11:49 +02:00
Renée Kooi
60a8a2e08e
status-bar,dashboard: Hide upload/add button when no new files can be uploaded
2018-10-08 12:11:49 +02:00
Renée Kooi
4f10868425
core: Add allowMultipleUploads: false option.
2018-10-08 12:11:48 +02:00
Renée Kooi
62b1fe9a96
Move preview revocation to thumbnail-generator
2018-10-08 11:30:06 +02:00
Artur Paikin
04f3f723eb
Merge pull request #1058 from transloadit/chore/cancelAll-removeFile
...
Call `removeFile` on each file when doing `cancelAll`
2018-09-26 18:32:32 -04:00
Artur Paikin
aa39c4820c
update cancelAll test to check for files and uploads
2018-09-26 18:24:02 -04:00
Artur Paikin
bfd4166b93
dirch _removeUpload calls
2018-09-26 17:35:41 -04:00
Artur Paikin
a075ee5a14
add check for resumableUploads before executing pauseResume, change id to name in getPlugin
2018-09-20 19:04:47 -04:00
Artur Paikin
7c19386114
Save actual plugin instance instead of plugin.id in this.parent
2018-09-19 19:21:42 -04:00
Artur Paikin
b9b53da4ec
add onMount to Plugin from @uppy/core
...
Called when plugin is mounted, whether in DOM or into another plugin. Needed because sometimes plugins are mounted separately/after `install`, so this.el and this.parent might not be available in `install`. This is the case with @uppy/react plugins, for example.
2018-09-19 19:09:31 -04:00
Artur Paikin
6463f9e1a4
call removeFile on each file when doing cancelAll
2018-09-14 16:27:41 -04:00
Artur Paikin
8df497fff5
store offset sizes in variables
2018-09-10 11:59:49 -04:00
Artur Paikin
7dcf843231
improve wording: “closing body tag”
2018-09-06 09:47:10 -04:00
Artur Paikin
d92809ab6b
Note that the <script> tag should come at the bottom of the page
...
See https://github.com/transloadit/uppy/issues/1042
2018-09-05 15:05:20 -04:00
Kevin van Zonneveld
67af833fdb
More uppy server -> companion renames ( #1037 )
...
* Some uppy server -> companion renames
* Fix typos
* Implement most of @goto-bus-stop's feedback
* Nuke Create React App readme
* An Companion -> A Companion
* Companion server -> instance
2018-09-03 14:48:03 +02:00
Artur Paikin
b1beef974f
Merge pull request #960 from transloadit/fix/window-react-native
...
Fix @uppy/core window !== undefined check for React Native
2018-08-08 18:35:44 -04:00
Artur Paikin
3947f047f4
check for both window and addEventListener
...
allows Uppy to work in React Native
2018-08-08 17:58:24 -04:00
Artur Paikin
c3a1be2c62
Merge branch 'master' into feature/dashboard-ui-notabs
2018-07-27 22:50:35 -04:00
Artur Paikin
5662a3448e
.uppy-Dashboard--wide --> .uppy-size--md, .uppy-size--lg
2018-07-27 22:24:11 -04:00
Artur Paikin
3a58827f54
colors, sizes
2018-07-26 14:45:48 -04:00
Artur Paikin
f128b45867
fix the Url styling
2018-07-25 17:49:16 -04:00
Artur Paikin
32ec76c7f0
change $screen-medium to accomodate for the close X button
2018-07-25 17:34:32 -04:00
Artur Paikin
6392014d3a
remove all: initial
...
it’s been causing problems with repeated css rules that we have when using styles from multiple plugins since Lerna
2018-07-25 17:34:05 -04:00
Artur Paikin
0b609c378f
remove unused styles, add moz font smoothing
2018-07-24 20:11:10 -04:00
Artur Paikin
ba6fb78fe4
Merge pull request #961 from transloadit/chroe/autoProceed-false-default
...
[WIP] core: `autoProceed: false` by default
2018-07-19 23:14:11 -04:00
Renée Kooi
013eed33f9
Fix setPluginState
...
I broke this in the object rest spread PR. I noticed the Dashboard was
throwing errors when trying to access `pluginState.target.filter()`.
Added a bunch of tests + fixed that method!
2018-07-19 13:02:23 +02:00
Renée Kooi
68b4529ec7
Add object rest spread transform
...
Object rest spread was standardised this year so it's safe to use. It
has shipped in major browsers and Node. Because Uppy uses immutable
state we can make a lot of gains in terseness and readability by using
the new object syntaxes, I think.
I updated one place where we were using Object.assign; I think we can
merge it like this first and then update the other places when we are
changing stuff there anyway.
2018-07-16 14:28:55 +02:00
Artur Paikin
fd5294c40a
update docs, examples and tests to not set autoProceed: false, since that’s the default now
2018-07-15 23:35:44 -04:00
Artur Paikin
bbf6c0893f
Set autoProceed: false by default
2018-07-15 23:35:14 -04:00