diff --git a/example/index.html b/example/index.html index e66e09f06..fc655d2f7 100644 --- a/example/index.html +++ b/example/index.html @@ -7,18 +7,8 @@

Uppy is here

+ - - - diff --git a/example/main.js b/example/main.js index 058421cda..f1a88f2e7 100644 --- a/example/main.js +++ b/example/main.js @@ -1,8 +1,17 @@ -const Uppy = require('../src/index.js') +import Uppy from '../src/core/Core.js' +import Modal from '../src/plugins/Modal' +import Dashboard from '../src/plugins/dashboard' +import Dummy from '../src/plugins/Dummy' +import ProgressBar from '../src/plugins/ProgressBar' +import Tus10 from '../src/plugins/Tus10' -const uppy = new Uppy.Core({debug: true}) - .use(Uppy.plugins.Modal, {trigger: '#uppyModalOpener'}) - .use(Uppy.plugins.Dashboard, {target: Uppy.plugins.Modal}) - .use(Uppy.plugins.Dummy, {target: Uppy.plugins.Modal}) +const uppy = new Uppy({debug: true}) + .use(Modal, {trigger: '#uppyModalOpener'}) + .use(Dashboard, {target: Modal}) + .use(Dummy, {target: Modal}) + .use(ProgressBar, {target: Modal}) + .use(Tus10, {endpoint: 'http://master.tus.io:8080/files/'}) uppy.run() + +document.querySelector('#uppyModalOpener').click()