Commit graph

33 commits

Author SHA1 Message Date
Artur Boryś
3d3fd13f16 Add option to hide ProgressBar after upload finish 2018-01-05 19:33:30 +01:00
Artur Paikin
276e730a85 🚨 convert all remaining hyperx strings to JSX
things might be broken! tested to the best of my abilities, fixed multiple issues on the way
2017-12-20 00:11:30 -05:00
Artur Paikin
7f906a8282 Convert Informer and ProgressBar to JSX 2017-12-18 11:43:54 -05:00
Artur Paikin
b062ba4236 Update html to use hyperx; use Component where lifecycle needed, refs;
also fix bugs here and there
2017-12-12 23:32:09 -05:00
Artur Paikin
ed9aa1a537 🚨this.core to this.uppy everywhere
danger again
2017-12-08 17:34:33 -05:00
Artur Paikin
1bd1e410d9 move plugins/Plugin.js to core/Plugin.js
to better separate concerns and later split into packages
2017-11-27 22:03:38 -05:00
Artur Paikin
cb6c1aeff0 add this.opts.id || [name] to this.id for all UI plugins 2017-11-10 20:15:59 -05:00
Renée Kooi
d330c26813
react: Different way to do React components
This is a different approach to React components suggested by @arturi.
Instead of the components adding and removing plugins when mounting and
unmounting, plugins are configured at the start, and the components act
as slots for the plugins to actually mount in. Because all plugins are
still being configured up front here, we don't have to change how the
provider `target:` options work, they can install themselves into eg.
the Dashboard plugin immediately.

The core of this approach is the `UppyWrapper` component, which takes an
Uppy instance and a plugin ID, and mounts the plugin inside itself. The
other components only provide a default plugin ID.

The one change required in Uppy itself for this to work is to the
`mount()` functions: now, `mount()` configures `this.target` on the
plugins. If plugins do not have a `target:` option, they do not mount on
install. Some DOM code also had to be moved into the `mount()` function
for the DragDrop component instead of staying in `install()`, but I
think it makes sense.

(Still have to work out how to make the `DashboardModal` component's
`onRequestClose` option work.)
2017-09-18 14:40:32 +02:00
Artur Paikin
1d3c2f053c set body as default target for ProgressBar 2017-08-25 01:43:13 +03:00
René Kooi
03c5845ab6
Add uninstall method for unmounting ProgressBar. 2017-05-02 10:13:14 +02:00
Artur Paikin
db647f7c14 convert everything to const/require and module.exports 🙀 2016-12-19 23:23:33 -05:00
Artur Paikin
bb27801826 ProgressBar should not be fixed by default 2016-09-20 02:27:06 -04:00
Artur Paikin
f6877a0037 minor DragDrop and Progressbar updates 2016-08-25 00:06:33 -04:00
Artur Paikin
ed5647fe8b added fixed option for position: fixed in ProgressBar 2016-08-20 19:25:45 -04:00
Artur Paikin
8fac1611d5 Upload remaining time and speed, refactor progress events 2016-08-09 13:46:20 -04:00
Artur Paikin
e2cda3a1b5 Cleanup, fix acceptance tests 2016-06-02 02:20:01 -04:00
Artur Paikin
5eadd138c0 Fix yo-yo + Uppy rendering issues, add focus on the first element in Modal tab, refactor getTarget — now called mount 2016-06-02 01:21:56 -04:00
Artur Paikin
d6ee3b973b Change plugin name to id, manually set it everywhere — IE doesn’t support constructor.name 2016-05-02 16:20:37 -04:00
Artur Paikin
e0bbc16cc6 Possible replaceTargetContent, minor refactoring 2016-05-01 19:07:18 -04:00
Artur Paikin
6502d66d0b Move update() to Plugin.js to avoid duplication 2016-04-23 18:01:21 -04:00
Artur Paikin
a48c5faaf3 Rethink rendering architecture: in Modal, use a render method for each plugin, instead of a pre-rendered element
Using pre-rendered elements was making `morphdom` (which is used inside
`yo-yo`) replace each plugin’s content, when that plugin was used in
Modal.
2016-04-19 00:38:13 -04:00
Artur Paikin
9feeb9f01f Fix and enable ProgressBar again (hipster version) 2016-04-17 15:12:53 -04:00
Artur Paikin
5675c515bb Event-based plugin communication, upload progress for each file 2016-03-23 00:50:42 -04:00
Kevin van Zonneveld
ae55424d1d Upgrade eslint & standard and fix linting accordingly 2016-03-18 11:22:40 +01:00
Artur Paikin
3b546329d4 Total file count handling with Modal and globally 2016-03-17 23:34:24 -04:00
Artur Paikin
db037b7acc Display total file selected count, allow adding files, improve passing files to uploaders, disable upload btn while nothing is selected 2016-03-16 19:58:16 -04:00
Artur Paikin
593b12c43f Reset progressbar and presenter when modal is closed/opened 2016-03-16 19:58:16 -04:00
Artur Paikin
3cc0c23bc3 Add selected files count 2016-03-16 19:58:16 -04:00
Artur Paikin
fc41d61ad9 Modal refactoring, open first tab right away, improved accessibility, fileSelection event 2016-03-09 19:01:50 -05:00
Kevin van Zonneveld
76a7255155 core: Rename progress to progressindicator (@kvz) 2016-03-07 10:37:17 +01:00
Artur Paikin
006e66d4ec Modal Upload/Next button, refactoring 2016-03-04 01:11:03 -05:00
Artur Paikin
531b0b0ba5 Make Progressbar work, improve styles, remove trash, add Tus to the Modal example 2016-02-21 13:38:52 -05:00
Artur Paikin
2c34ccf55e Rename back again 2016-02-15 19:03:59 -05:00
Renamed from src/plugins/HmProgressBar.js (Browse further)