mirror of
https://github.com/transloadit/uppy.git
synced 2026-01-23 18:35:54 +00:00
- Remove outdated examples - Rename folders for consistency - Remove lots of unused deps in angular example. - Rename `name` inside `package.json`'s from `@uppy-example/*` to `example-*`. **Before** ``` ├── angular-example ├── aws-companion ├── aws-nodejs ├── aws-php ├── bundled ├── cdn-example ├── custom-provider ├── digitalocean-spaces ├── multiple-instances ├── node-xhr ├── php-xhr ├── python-xhr ├── react ├── react-native-expo ├── redux ├── sveltekit ├── transloadit ├── transloadit-markdown-bin ├── uppy-with-companion ├── vue3 └── xhr-bundle ``` **After** ``` examples ├── angular ├── aws-companion ├── aws-nodejs ├── aws-php ├── cdn ├── companion ├── companion-custom-provider ├── companion-digitalocean-spaces ├── react ├── react-native-expo ├── redux ├── sveltekit ├── transloadit ├── vue ├── xhr-bundle ├── xhr-node ├── xhr-php └── xhr-python ```
23 lines
492 B
JavaScript
23 lines
492 B
JavaScript
import Uppy from '@uppy/core'
|
|
import Dashboard from '@uppy/dashboard'
|
|
import Webcam from '@uppy/webcam'
|
|
import XHRUpload from '@uppy/xhr-upload'
|
|
|
|
import '@uppy/core/dist/style.css'
|
|
import '@uppy/webcam/dist/style.css'
|
|
import '@uppy/dashboard/dist/style.css'
|
|
|
|
const uppy = new Uppy({
|
|
debug: true,
|
|
autoProceed: false,
|
|
})
|
|
|
|
uppy.use(Webcam)
|
|
uppy.use(Dashboard, {
|
|
inline: true,
|
|
target: 'body',
|
|
plugins: ['Webcam'],
|
|
})
|
|
uppy.use(XHRUpload, {
|
|
endpoint: 'http://localhost:3020/upload',
|
|
})
|