Skip to content

Commit

Permalink
example: update to new CDN export names (#4006)
Browse files Browse the repository at this point in the history
`Uppy` call is now exported as `Uppy` instead of `Core`.

Refs: #3981
  • Loading branch information
aduh95 committed Aug 18, 2022
1 parent b8a8945 commit e69d4ec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
8 changes: 4 additions & 4 deletions examples/cdn-example/index.html
Expand Up @@ -12,13 +12,13 @@

<script type="module">
import {
Core,
Uppy,
Dashboard,
Webcam,
Tus,
} from "https://releases.transloadit.com/uppy/v3.0.0-beta.5/uppy.min.mjs";

const uppy = new Core.Uppy({ debug: true, autoProceed: false })
const uppy = new Uppy({ debug: true, autoProceed: false })
.use(Dashboard, { trigger: "#uppyModalOpener" })
.use(Webcam, { target: Dashboard })
.use(Tus, { endpoint: "https://tusd.tusdemo.net/files/" });
Expand All @@ -32,8 +32,8 @@
<script nomodule src="https://releases.transloadit.com/uppy/v3.0.0-beta.5/uppy.legacy.min.js"></script>
<script nomodule>
{
const { Core, Dashboard, Webcam, Tus } = Uppy;
const uppy = new Core.Uppy({ debug: true, autoProceed: false })
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/" });
Expand Down
16 changes: 9 additions & 7 deletions examples/uppy-with-companion/client/index.html
Expand Up @@ -8,13 +8,15 @@
</head>
<body>
<button id="uppyModalOpener">Open Modal</button>
<script src="https://releases.transloadit.com/uppy/v3.0.0-beta.5/uppy.min.js"></script>
<script>
const uppy = new Uppy.Core({debug: true, autoProceed: false})
.use(Uppy.Dashboard, { trigger: '#uppyModalOpener' })
.use(Uppy.Instagram, { target: Uppy.Dashboard, companionUrl: 'http://localhost:3020' })
.use(Uppy.GoogleDrive, { target: Uppy.Dashboard, companionUrl: 'http://localhost:3020' })
.use(Uppy.Tus, { endpoint: 'https://tusd.tusdemo.net/files/' })
<noscript>This web page requires JavaScript to work properly.</noscript>
<script type="module">
import { Uppy, Dashboard, Instagram, GoogleDrive, Tus } from "https://releases.transloadit.com/uppy/v3.0.0-beta.5/uppy.min.mjs"

const uppy = new Uppy({debug: true, autoProceed: false})
.use(Dashboard, { trigger: '#uppyModalOpener' })
.use(Instagram, { target: Dashboard, companionUrl: 'http://localhost:3020' })
.use(GoogleDrive, { target: Dashboard, companionUrl: 'http://localhost:3020' })
.use(Tus, { endpoint: 'https://tusd.tusdemo.net/files/' })

uppy.on('success', (fileCount) => {
console.log(`${fileCount} files uploaded`)
Expand Down

0 comments on commit e69d4ec

Please sign in to comment.