uppy/examples/cdn-example/index.html
github-actions[bot] b5df7d05c6
Release: uppy@3.27.0 (#5257)
| Package              | Version | Package              | Version |
| -------------------- | ------- | -------------------- | ------- |
| @uppy/box            |   2.4.0 | @uppy/onedrive       |   3.4.0 |
| @uppy/companion      |  4.14.0 | @uppy/provider-views |  3.13.0 |
| @uppy/core           |  3.13.0 | @uppy/react          |   3.4.0 |
| @uppy/dashboard      |   3.9.0 | @uppy/remote-sources |   1.3.0 |
| @uppy/dropbox        |   3.4.0 | @uppy/transloadit    |   3.8.0 |
| @uppy/google-drive   |   3.6.0 | uppy                 |  3.27.0 |
| @uppy/google-photos  |   0.1.0 |                      |         |

- @uppy/google-photos: add plugin (Mikael Finstad / #5061)
- examples: updating aws-nodejs example listParts logic for resuming uploads (Mitchell Rhoads / #5192)
- meta: Bump docker/login-action from 3.1.0 to 3.2.0 (dependabot\[bot] / #5217)
- meta: Bump docker/build-push-action from 5.3.0 to 5.4.0 (dependabot\[bot] / #5252)
- @uppy/transloadit: also fix outdated assembly transloadit:result (Merlijn Vos / #5246)
- docs: fix typo in the url (Evgenia Karunus)
- @uppy/companion: Bump ws from 8.8.1 to 8.17.1 (dependabot\[bot] / #5256)
2024-06-18 09:26:52 +00:00

53 lines
1.6 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
href="https://releases.transloadit.com/uppy/v3.27.0/uppy.min.css"
rel="stylesheet"
/>
</head>
<body>
<noscript>You need JavaScript enabled for this example to work.</noscript>
<button id="uppyModalOpener">Open Modal</button>
<script type="module">
import {
Uppy,
Dashboard,
Webcam,
Tus,
} from 'https://releases.transloadit.com/uppy/v3.27.0/uppy.min.mjs'
const uppy = new Uppy({ debug: true, autoProceed: false })
.use(Dashboard, { trigger: '#uppyModalOpener' })
.use(Webcam, { target: Dashboard })
.use(Tus, { endpoint: 'https://tusd.tusdemo.net/files/' })
uppy.on('success', (fileCount) => {
console.log(`${fileCount} files uploaded`)
})
</script>
<!-- To support older browsers, you can use the legacy bundle which adds a global `Uppy` object. -->
<script
nomodule
src="https://releases.transloadit.com/uppy/v3.27.0/uppy.legacy.min.js"
></script>
<script nomodule>
{
const { Dashboard, Webcam, Tus } = Uppy
const uppy = new Uppy.Uppy({ debug: true, autoProceed: false })
.use(Dashboard, { trigger: '#uppyModalOpener' })
.use(Webcam, { target: Dashboard })
.use(Tus, { endpoint: 'https://tusd.tusdemo.net/files/' })
uppy.on('success', function (fileCount) {
console.log(`${fileCount} files uploaded`)
})
}
</script>
</body>
</html>