main.js 677 B

123456789101112131415161718192021222324252627282930313233
  1. import Uppy from '@uppy/core'
  2. import Dashboard from '@uppy/dashboard'
  3. import GoldenRetriever from '@uppy/golden-retriever'
  4. import '@uppy/core/dist/style.css'
  5. import '@uppy/dashboard/dist/style.css'
  6. // Initialise two Uppy instances with the GoldenRetriever plugin,
  7. // but with different `id`s.
  8. const a = new Uppy({
  9. id: 'a',
  10. debug: true,
  11. })
  12. .use(Dashboard, {
  13. target: '#a',
  14. inline: true,
  15. width: 400,
  16. })
  17. .use(GoldenRetriever, { serviceWorker: false })
  18. const b = new Uppy({
  19. id: 'b',
  20. debug: true,
  21. })
  22. .use(Dashboard, {
  23. target: '#b',
  24. inline: true,
  25. width: 400,
  26. })
  27. .use(GoldenRetriever, { serviceWorker: false })
  28. window.a = a
  29. window.b = b