Commit graph

1282 commits

Author SHA1 Message Date
Artur Paikin
97cd38798b Merge branch 'master' into feature/upload-retry 2017-10-03 10:18:51 -04:00
Renée Kooi
735b33c700 Merge pull request #368 from goto-bus-stop/content-disposition
s3: Add ability to configure request headers
2017-10-03 10:43:19 +02:00
Artur Paikin
37a9ae2e5a console.dir(msg) the original object
followup to #372
2017-10-03 00:20:33 -04:00
Artur Paikin
8136e87c5c Add retry/retryAll to XHRUpload, stage 1 2017-10-02 23:17:01 -04:00
Artur Paikin
84a3f8cebe Large refactor: move pauseAll, resumeAll, retryAll to Core 2017-10-02 23:14:49 -04:00
Artur Paikin
7c0cc62b2c Merge pull request #373 from transloadit/feature/redux-dev-tools
Add support for Redux DevTools via a plugin
2017-10-02 17:23:40 -04:00
Artur Paikin
b430df0fdf don’t do anything if debug: false 2017-10-02 17:14:11 -04:00
Artur Paikin
0fa1ec4df9 Alter “retry” link 2017-10-02 17:07:33 -04:00
Renée Kooi
d16a7d8dbb
xhrupload: add fields and headers to uppy-server request 2017-10-02 17:37:19 +02:00
Artur Paikin
be0ec9a15e remove 0 file warning 2017-10-01 00:17:49 -04:00
Artur Paikin
f2b3988716 comments and naming 2017-09-30 21:26:30 -04:00
Artur Paikin
52d6ffe157 to get to render of the plugin, find that plugin via core.getPlugin() 2017-09-30 17:52:36 -04:00
Artur Paikin
239a6f1d1c move ReduxDevTools from Core to a separate plugin 2017-09-30 17:52:00 -04:00
Artur Paikin
431f815fc0 Don’t store function references in state to keep state serializable
Instead of storing methods in state, find plugin and add methods to the object that we pass to `render`, when it’s needed.
2017-09-30 00:27:37 -04:00
Artur Paikin
fcc2b7cb89 Add support for Redux DevTools
- sends state updates to devtools
- sets uppy state to state provided by devtools for time traveling
- we could add support for custom action type names, and then we’ll get actions like `UPPY_ADD_FILE` and such

try by installing and activating: https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=en
2017-09-30 00:23:41 -04:00
Artur Paikin
4a2a5abc93 refactor log by adding timestamps and warnings; check for uploader plugins and 0 files in upload 2017-09-29 17:06:53 -04:00
Artur Paikin
8b0d74be6a Merge branch 'master' into feature/upload-retry 2017-09-29 15:45:41 -04:00
Artur Paikin
0df9f4e4b6 refactor: move balloon to common.scss 2017-09-29 15:45:27 -04:00
Artur Paikin
3057f30fc2 move stuff to onPauseResumeCancelRetry handler 2017-09-29 15:40:45 -04:00
Artur Paikin
2e30a136fd use already declared error variable 2017-09-29 15:37:53 -04:00
Artur Paikin
67dfcdff16 i18n all the things, error details balloon 2017-09-29 15:35:57 -04:00
Artur Paikin
5a82fb163c move pauseResume from Tus plugin to Core, add retry to remote too 2017-09-29 13:46:59 -04:00
Artur Paikin
9357428152 errored files get red tint color 2017-09-29 00:43:05 -04:00
Artur Paikin
6b708bbebf show error StatusBar only when all errored, add isAllErrored, offer retry 2017-09-29 00:42:05 -04:00
Artur Paikin
3a84c989c2 add retryAll to pauseResume and core:retry-all event 2017-09-29 00:40:46 -04:00
Artur Paikin
b13b1cd7c0 clear error on retry 2017-09-29 00:39:59 -04:00
Renée Kooi
df6d4f06c1
xhrupload: DRY options merging 2017-09-28 11:26:24 +02:00
Renée Kooi
eee3142d42
s3: Allow request headers to be returned from getUploadParameters
Closes #243

This way headers like `Content-Disposition` can be added without
requiring support for that on the signing server side.

```js
uppy.use(AwsS3, {
  getUploadParameters (file) {
    return fetch(`/sign?name=${file.name}&type=${file.type.mime}`)
      .then((response) => response.json())
      .then((data) => Object.assign(data, {
        'Content-Disposition': file.meta.contentDisposition
      }))
  }
})

// later
uppy.addFile({
  name: 'xyz.jpg',
  mime: 'image/jpeg',
  data: someArrayBuffer,
  meta: {
    contentDisposition: 'inline'
  }
})
```
2017-09-28 11:21:16 +02:00
Renée Kooi
c8133c1250
xhrupload: Merge headers from different options locations 2017-09-28 11:20:41 +02:00
Renée Kooi
e8ea5b2e21 Merge pull request #363 from goto-bus-stop/feature/setpluginstate
Move `setPluginState` to Plugin class, add `getPluginState` to match
2017-09-27 21:43:29 +02:00
Renée Kooi
95405b47ce
dashboard: Use get/setPluginState for modal related state 2017-09-27 21:31:29 +02:00
Artur Paikin
0af891ad12 Merge pull request #346 from richardwillars/more-tests
More tests for src/core
2017-09-26 18:06:26 -04:00
Renée Kooi
7fa7f53af0
core,plugins: Update tests for get/setPluginState 2017-09-26 17:26:38 +02:00
Renée Kooi
2ec1696455
plugins: add get/setPluginState methods 2017-09-26 17:10:47 +02:00
Artur Paikin
77f3b5d9d6 Merge branch 'master' into feature/upload-retry 2017-09-25 10:35:28 -04:00
Renée Kooi
9681f2c43b
core: settle() tests 2017-09-25 12:29:42 +02:00
Renée Kooi
4d93e0ac85
tus,xhrupload: Replace promise-settle with own version 2017-09-25 12:29:42 +02:00
Renée Kooi
ef3480ac26
tus,xhrupload: Reject upload() if all file uploads failed. 2017-09-25 12:22:35 +02:00
Renée Kooi
2856767926
react: rm empty line 2017-09-22 23:10:35 +02:00
Renée Kooi
2aa8f9ee01
core: rm rejection when execCommand did not work 2017-09-22 23:09:33 +02:00
Renée Kooi
cd7b035976
core: Still accept a string as user-provided rejections 2017-09-22 23:09:33 +02:00
Renée Kooi
662393483c
Lint fixes 2017-09-22 23:09:33 +02:00
Renée Kooi
8a3b411409
Always reject Promises with Error instances 2017-09-22 23:09:33 +02:00
Renée Kooi
ecefc7eed7
test: Return Promise assertions from test 2017-09-22 23:09:33 +02:00
Renée Kooi
edddc8f724
Update tests after React PR merge 2017-09-22 22:42:03 +02:00
Renée Kooi
9af6b2fea6 Merge pull request #170 from goto-bus-stop/feature/react
High-level React Components
2017-09-22 16:36:58 +02:00
Renée Kooi
858cef92b2 Merge pull request #359 from gavboulton/plugin-base
Add default methods to Plugin base class
2017-09-22 12:42:41 +02:00
Renée Kooi
671ab0b2cf Merge pull request #358 from goto-bus-stop/feature/rm-blobs-on-complete
restore: Remove files from cache when their upload finished
2017-09-22 11:57:15 +02:00
Renée Kooi
1f51fedb47 Merge pull request #356 from goto-bus-stop/chore/dead-code
Clean up unused code
2017-09-21 20:59:51 +02:00
Gavin Boulton
3ea73b1a7d Add default methods to Plugin base class
Add `render` and `addTarget` methods that throw by default. These methods should have a sub-class implementation when a plugin wants to mounts on a DOM element or on another plugin's target.
2017-09-21 16:52:54 +01:00