mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-19 09:34:02 +00:00
* relocate .vscode
* Switch to transloadit linter
* Update .eslintrc.json
* autofix code
* unlink and install eslint-config-transloadit@1.1.1
* Change 0 to "off"
* Don't change 'use strict'
* Do not vertically align
* disable key-spacing
* add import/no-extraneous-dependencies per package
* add more react/a11y warnings
* Revert "autofix code"
This reverts commit 14c8a8cde8.
* add import/no-extraneous-dependencies per example and main package
* autofix code (2)
* Allow devDependencies in ./bin
* Change import/no-extraneous-dependencies to warn again
* upgrade linter
* Set import/no-extraneous-dependencies to warn
30 lines
616 B
JavaScript
30 lines
616 B
JavaScript
const Uppy = require('@uppy/core')
|
|
const Dashboard = require('@uppy/dashboard')
|
|
const GoldenRetriever = require('@uppy/golden-retriever')
|
|
|
|
// Initialise two Uppy instances with the GoldenRetriever plugin,
|
|
// but with different `id`s.
|
|
const a = new Uppy({
|
|
id: 'a',
|
|
debug: true,
|
|
})
|
|
.use(Dashboard, {
|
|
target: '#a',
|
|
inline: true,
|
|
width: 400,
|
|
})
|
|
.use(GoldenRetriever, { serviceWorker: false })
|
|
|
|
const b = new Uppy({
|
|
id: 'b',
|
|
debug: true,
|
|
})
|
|
.use(Dashboard, {
|
|
target: '#b',
|
|
inline: true,
|
|
width: 400,
|
|
})
|
|
.use(GoldenRetriever, { serviceWorker: false })
|
|
|
|
window.a = a
|
|
window.b = b
|