uppy/examples/cdn-example/index.html
github-actions[bot] 390c4fb250
Release: uppy@3.19.1 (#4790)
| Package            | Version | Package            | Version |
| ------------------ | ------- | ------------------ | ------- |
| @uppy/core         |   3.7.1 | @uppy/react-native |   0.5.2 |
| @uppy/dashboard    |   3.7.1 | uppy               |  3.19.1 |
| @uppy/react        |   3.2.1 |                    |         |

- @uppy/react: Revert "@uppy/react: add useUppyState (#4711)" (Artur Paikin / #4789)
- @uppy/dashboard: fix(@uppy/dashboard): fix wrong option type in index.d.ts (dzcpy / #4788)
- meta: fix build of TypeScript plugins (Antoine du Hamel / #4784)
- @uppy/core,@uppy/dashboard,@uppy/react-native: Update Uppy's blue color to meet WCAG contrast requirements (Alexander Zaytsev / #4777)
- meta: fix JS2TS script (Antoine du Hamel / #4778)
2023-11-12 02:30:15 +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.19.1/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.19.1/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.19.1/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>