From a25226aab2dbb5115beb689faa2d96f92030b241 Mon Sep 17 00:00:00 2001 From: Prakash Date: Mon, 8 Dec 2025 14:18:23 +0530 Subject: [PATCH] Fix @uppy/examples (#6099) we forgot to update the examples after #5830 --- examples/aws-companion/main.js | 6 +++--- examples/companion-custom-provider/client/main.js | 4 ++-- examples/companion-digitalocean-spaces/main.js | 4 ++-- examples/companion/server/index.js | 7 ++++++- examples/transloadit/main.js | 6 +++--- examples/xhr-bundle/main.js | 4 ++-- examples/xhr-node/main.js | 2 +- examples/xhr-php/main.js | 6 +++--- examples/xhr-python/main.js | 6 +++--- 9 files changed, 25 insertions(+), 20 deletions(-) diff --git a/examples/aws-companion/main.js b/examples/aws-companion/main.js index bf7545bc6..29cbaea58 100644 --- a/examples/aws-companion/main.js +++ b/examples/aws-companion/main.js @@ -4,9 +4,9 @@ import Dashboard from '@uppy/dashboard' import GoogleDrive from '@uppy/google-drive' import Webcam from '@uppy/webcam' -import '@uppy/core/dist/style.css' -import '@uppy/dashboard/dist/style.css' -import '@uppy/webcam/dist/style.css' +import '@uppy/core/css/style.css' +import '@uppy/dashboard/css/style.css' +import '@uppy/webcam/css/style.css' const uppy = new Uppy({ debug: true, diff --git a/examples/companion-custom-provider/client/main.js b/examples/companion-custom-provider/client/main.js index 839ebf249..aed83c4b0 100644 --- a/examples/companion-custom-provider/client/main.js +++ b/examples/companion-custom-provider/client/main.js @@ -4,8 +4,8 @@ import GoogleDrive from '@uppy/google-drive' import Tus from '@uppy/tus' import MyCustomProvider from './MyCustomProvider.jsx' -import '@uppy/core/dist/style.css' -import '@uppy/dashboard/dist/style.css' +import '@uppy/core/css/style.css' +import '@uppy/dashboard/css/style.css' const uppy = new Uppy({ debug: true, diff --git a/examples/companion-digitalocean-spaces/main.js b/examples/companion-digitalocean-spaces/main.js index a6ade2ae6..c1be7320c 100644 --- a/examples/companion-digitalocean-spaces/main.js +++ b/examples/companion-digitalocean-spaces/main.js @@ -2,8 +2,8 @@ import AwsS3 from '@uppy/aws-s3' import Uppy from '@uppy/core' import Dashboard from '@uppy/dashboard' -import '@uppy/core/dist/style.css' -import '@uppy/dashboard/dist/style.css' +import '@uppy/core/css/style.css' +import '@uppy/dashboard/css/style.css' const uppy = new Uppy({ debug: true, diff --git a/examples/companion/server/index.js b/examples/companion/server/index.js index 98c970404..076e187cd 100644 --- a/examples/companion/server/index.js +++ b/examples/companion/server/index.js @@ -44,7 +44,12 @@ const companionOptions = { key: 'your box key', secret: 'your box secret', }, - // you can also add options for additional providers here + s3: { + key: 'your s3 key', + secret: 'your s3 secret', + bucket: 'your s3 bucket', + region: 'your s3 region', + }, }, corsOrigins: ['*'], // Note: this is not safe for production server: { diff --git a/examples/transloadit/main.js b/examples/transloadit/main.js index 667a8d63e..7853376a3 100644 --- a/examples/transloadit/main.js +++ b/examples/transloadit/main.js @@ -6,9 +6,9 @@ import RemoteSources from '@uppy/remote-sources' import Transloadit, { COMPANION_URL } from '@uppy/transloadit' import Webcam from '@uppy/webcam' -import '@uppy/core/dist/style.css' -import '@uppy/dashboard/dist/style.css' -import '@uppy/image-editor/dist/style.css' +import '@uppy/core/css/style.css' +import '@uppy/dashboard/css/style.css' +import '@uppy/image-editor/css/style.css' const TRANSLOADIT_KEY = '35c1aed03f5011e982b6afe82599b6a0' // A trivial template that resizes images, just for example purposes. diff --git a/examples/xhr-bundle/main.js b/examples/xhr-bundle/main.js index 139d622bf..d9b9306fb 100644 --- a/examples/xhr-bundle/main.js +++ b/examples/xhr-bundle/main.js @@ -2,8 +2,8 @@ import Uppy from '@uppy/core' import Dashboard from '@uppy/dashboard' import XHRUpload from '@uppy/xhr-upload' -import '@uppy/core/dist/style.css' -import '@uppy/dashboard/dist/style.css' +import '@uppy/core/css/style.css' +import '@uppy/dashboard/css/style.css' const uppy = new Uppy({ debug: true, diff --git a/examples/xhr-node/main.js b/examples/xhr-node/main.js index 42cead3e8..7ac277ef4 100644 --- a/examples/xhr-node/main.js +++ b/examples/xhr-node/main.js @@ -4,7 +4,7 @@ import Webcam from '@uppy/webcam' import XHRUpload from '@uppy/xhr-upload' import '@uppy/core/dist/style.css' -import '@uppy/dashboard/dist/style.css' +import '@uppy/dashboard/css/style.css' import '@uppy/webcam/dist/style.css' const uppy = new Uppy({ diff --git a/examples/xhr-php/main.js b/examples/xhr-php/main.js index 69b81e959..cc8d1edc4 100644 --- a/examples/xhr-php/main.js +++ b/examples/xhr-php/main.js @@ -3,9 +3,9 @@ import Dashboard from '@uppy/dashboard' import Webcam from '@uppy/webcam' import XHRUpload from '@uppy/xhr-upload' -import '@uppy/core/dist/style.css' -import '@uppy/dashboard/dist/style.css' -import '@uppy/webcam/dist/style.css' +import '@uppy/core/css/style.css' +import '@uppy/dashboard/css/style.css' +import '@uppy/webcam/css/style.css' const uppy = new Uppy({ debug: true, diff --git a/examples/xhr-python/main.js b/examples/xhr-python/main.js index 0ce0b0e70..c7d29160a 100644 --- a/examples/xhr-python/main.js +++ b/examples/xhr-python/main.js @@ -3,9 +3,9 @@ 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' +import '@uppy/core/css/style.css' +import '@uppy/webcam/css/style.css' +import '@uppy/dashboard/css/style.css' const uppy = new Uppy({ debug: true,