Commit graph

819 commits

Author SHA1 Message Date
Artur Paikin
b19881edd1 remove emoji from Informer messages 2017-05-09 22:18:41 -04:00
Artur Paikin
118f0eaf2f make informer bar a tad opaque 2017-05-09 22:18:41 -04:00
Artur Paikin
103285af41 Merge pull request #190 from goto-bus-stop/chore/uncrop-webcam
Make the webcam video fill the available space as much as possible
2017-05-09 22:12:10 -04:00
Artur Paikin
092bf4f57a add min-height: 300px to prevent Dashboard from collapsing on smaller screens, also make file icon smaller on small screens 2017-05-04 17:20:18 -04:00
Renée Kooi
59bef6de7a
Make the webcam video fill the available space as much as possible 2017-05-04 17:13:57 +02:00
Renée Kooi
b98973bf8b Transloadit: Fix starting uploads while previously uploaded files are still in state (#186) 2017-05-03 15:22:56 +02:00
Renée Kooi
b90eeec6b8 Pass through errors (#185)
* Transloadit: pass through assembly errors.

* Bubble up upload errors to a `core:err~or` event
2017-05-03 15:06:57 +02:00
Renée Kooi
16a51de428 Fix dashboard width when multiple instances exist (#184) 2017-05-03 12:08:42 +02:00
Artur Paikin
83843dc62b fixing this.opts.autoProceed uploads 2017-05-02 12:11:56 -04:00
Artur Paikin
eedb801dec refactor styles to prevent duplicating 🙀 2017-05-02 11:09:44 -04:00
Renée Kooi
93d3606c4a Implement reading audio+video from Webcam. (#175)
* webcam: Add options to select whether video/audio should be recorded.

* webcam: add audio/video stream capture.

* webcam: Make sure querySelector for `video` element always picks our current element.

* webcam: Add buttons to control video recording.

* webcam: Pull `Recording` status into State object.

* webcam: Only show recording buttons if `MediaRecorder` is available.

* webcam: Add `modes` list option to determine whether video/audio should be recorded.
2017-04-28 12:50:34 +02:00
Renée Kooi
9a84327447 Fix Transloadit plugin tests. (#180) 2017-04-28 11:43:52 +02:00
Renée Kooi
bc7f703916 Transloadit plugin, closes #173 (#177)
* transloadit: Add barebones base plugin.

* tus: Add `uninstall` method.

* transloadit: Implement creating assemblies and hacky tus-uploading.

* transloadit: Add test file (Just checking options errors for now)

* transloadit: Link to templates overview page in `templateId` error.

* transloadit: Use dynamic tus endpoint from assembly result.

* core: Implement uploader pre- and postprocessors and async flow.

* tus: Merge in tus options from `file` objects.

This will allow preprocessor plugins to configure tus uploads.

* transloadit: Implement as a `preprocessor` handler.

* transloadit: Add status socket connection.Add `wait` option to wait for assembly to finish before resolving.

* dashboard: Log errors to console if the upload fails at any point.

* transloadit: Add `waitForEncoding`, `waitForMetadata` options instead of just `wait`.

* transloadit: Merge in params from `params` option when creating an assembly.

* transloadit: Docc why we set the `file.meta` property.

* transloadit: Support the API key being passed in via `params.auth.key`.

This way developers can dump a JSON payload for transloadit into the
`params` option. That'd be especially useful for `signature`s.

* transloadit: Only add `template_id` param to assembly if a `templateId` option is given.

* transloadit: Add a `signature` pass-thru option.

* transloadit: Remove `key` and `templateId` options--use `params` instead.

* Transloadit: Throw a useful error when `params` is an invalid JSON string.

* Transloadit: Check for existence of `params` before validity.

* Transloadit: Fix adding post-processor.

* Transloadit: No need to get assembly status after creating one.

* Transloadit: Add logs in a few places

* Transloadit: Get assembly status after upload is complete.

It's unused for now, but we should use eg. the results status to
provide feedback, especially if the assembly failed. Maybe the
`uploads` key in the result will also contain useful data if the
uploads fail?

* Transloadit: Add a pass-thru `fields` option…

This one should be runtime-configurable in some other way too.
Maybe by passing a <form /> element, or with the MetaData plugin…

* Transloadit: Always connect to the assembly status socket.

* Transloadit: Emit a `transloadit:result` event for assembly results.

But only when `waitForEncoding` is true!

* transloadit: Some doc comments for the main classes
2017-04-26 17:02:29 +02:00
Artur Paikin
438ec61595 Merge pull request #178 from ThomasG77/merge-tus-client-options
Merge tus client options with uppy. Hence, enable custom headers support
2017-04-20 01:36:12 -04:00
ThomasG77
7afdba5b25 Change var to const 2017-04-19 22:51:59 +02:00
Artur Paikin
8620cfe560 dashboard sourceIcon transparency fix 2017-04-18 09:50:14 -04:00
ThomasG77
f91b2acea6 Merge tus client options with uppy. Hence, enable custom headers support 2017-04-13 17:57:13 +02:00
Artur Paikin
85a7fa884a UppyDashboardItem-sourceIcon position and shadow 2017-04-06 18:56:16 -04:00
Artur Paikin
92d06cc155 icon opacity 2017-04-06 18:56:16 -04:00
Artur Paikin
5429ba4850 Merge pull request #172 from goto-bus-stop/chore/issue-121
multipart/tus: Remove Promise.all() calls with unused results, closes #121
2017-04-04 03:55:21 -04:00
Artur Paikin
c6adc0f286 get plugin id from string, not constructor.name 2017-04-04 03:45:10 -04:00
Artur Paikin
c7bd306964 try on emoji in Informer messages 2017-04-04 03:15:10 -04:00
Artur Paikin
6f94fefff3 add acquire plugin logo/name to files on the file list
had to convert `this.icon` to a function in all acquire plugins to make
this work
2017-04-04 03:14:16 -04:00
René Kooi
46706c1fa3
multipart/tus: Remove unused plugins from uppy-base. 2017-04-03 14:11:56 +02:00
René Kooi
bb55741fc9
multipart/tus: Remove Promise.all() calls with unused results, closes #121 2017-04-03 10:26:41 +02:00
Ifedapo Olarewaju
b72e9a9150 feature: thumbnails from remote providers 2017-04-02 22:36:01 +01:00
René Kooi
124204930d
Fix Dashboard modal close button position.
When the page was scrolled down, the modal close button was
invisible. This patch sets the close button to `fixed` positioning
so it's always in the same place on the screen regardless of scroll,
just like the modal background.
2017-03-31 15:51:29 +02:00
Ifedapo Olarewaju
98e1a63b00 chore: send file size to uppy server 2017-03-24 12:02:13 +01:00
Artur Paikin
b8dc0fabbb Merge pull request #169 from goto-bus-stop/feature/target-element
Accept a DOM element in `target:` and `trigger` options.
2017-03-13 19:19:53 -04:00
René Kooi
eb7a1e82f3
Accept a DOM element in trigger: option in Dashboard plugin. 2017-03-13 18:20:37 +01:00
René Kooi
5da7d3f0d7
Move isDOMElement helper to core/Utils. 2017-03-13 18:18:20 +01:00
Artur Paikin
20dfc93828 Informer line-height, warning added 2017-03-13 11:57:47 -04:00
René Kooi
622c4820ed
Return the target DOM element from addTarget(). 2017-03-09 20:33:48 +01:00
René Kooi
1173ae7e0b
Use direct <input/> references to trigger file selection in Dashboard.
Every element that was opening a file selection dialog by simulating a
`.UppyDashboard-input` click, was also already rendering one of those
input elements. This patch first creates the `input` elements, and
saves them so their variables can be used to simulate a click event
directly.

This way the `container` prop no longer has to be passed down through
every layer, and we can turn the `.target` property in plugins into
a DOM element because it isn't used in `querySelector` anymore.
2017-03-09 20:29:57 +01:00
René Kooi
853074a5ed
Accept a DOM element in target: option. 2017-03-09 19:57:53 +01:00
Artur Paikin
bfb4df14fd don’t need to always log update counter 2017-03-02 23:21:11 -05:00
Artur Paikin
48190e8d17 provider logout link placement 2017-03-02 23:20:37 -05:00
Artur Paikin
9df70f733f improve throttling, so we don’t lose progress events
see here:
9940f27b23
d82422183bbb
2017-03-02 20:45:32 -05:00
Artur Paikin
d0a6335896 Informer plugin gets colors, depending on type 2017-03-02 17:31:21 -05:00
Artur Paikin
c9854c200e option to stress test diffing and re-rendering 2017-03-02 17:30:42 -05:00
Artur Paikin
d96a610f7f fix new eslint issues caused by standard-js version upgrade 2017-02-26 18:22:13 -05:00
Artur Paikin
ca430cc0bb pretty-bytes --> prettier-bytes 2017-02-26 17:57:24 -05:00
Artur Paikin
0a881a5300 export default --> module.exports for locales 2017-02-26 17:51:28 -05:00
Artur Paikin
a7d0226aaf experimental will be moved to a separate branch 2017-02-26 17:47:59 -05:00
Artur Paikin
4ddc4fe974 this.updateDashboardElWidth fixes + timeout 2017-02-26 17:37:32 -05:00
Artur Paikin
4ac7898b66 move updateNum counter to Core 2017-02-25 17:00:12 -05:00
Artur Paikin
9ea27f544b plugin.update() experiments 2017-02-25 16:48:31 -05:00
Artur Paikin
c5f8a49166 debug updateDashboardElWidth() 2017-02-25 16:21:04 -05:00
Artur Paikin
e78a78e509 success is >= 200 and 300 < 2017-02-25 16:08:59 -05:00
Artur Paikin
8da9a2f153 pretty-bytes --> prettier-bytes
attempting once more, something broke last time I tried it
2017-02-25 15:28:10 -05:00