uppy/examples/sveltekit
Mikael Finstad ad4050b51e
Send token using websocket (#6248)
instead of window.opener - it is more robust

inspired by #4110
closes #6246
closes #4107

Biggest caveat: In cases where window.opener is null (Dropbox), the auth
window will not be auto closed (I don't know how to fix that). It will
show the user a message "Authentication successful. You may now close
this page."
https://github.com/transloadit/uppy/pull/6248/changes#diff-ef5b69c4ab5b83168eaba6f57047bb07c53e3a426f375b42fcb32d79c746872cR22

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Prakash <qxprakash@gmail.com>
2026-05-09 15:03:04 +08:00
..
src Add useImageEditor (#6122) 2026-01-29 11:13:12 +01:00
static Headless components (#5727) 2025-05-22 09:59:43 +02:00
test Send token using websocket (#6248) 2026-05-09 15:03:04 +08:00
.gitignore Headless components (#5727) 2025-05-22 09:59:43 +02:00
.npmrc Headless components (#5727) 2025-05-22 09:59:43 +02:00
.stackblitzrc add typescript as a dev dep in stackblitz env (#5976) 2025-09-17 14:37:34 +05:30
package.json @uppy/examples: mock tus endpoint for react, vue and svelte tests (#6215) 2026-03-11 14:05:24 +08:00
README.md Headless components (#5727) 2025-05-22 09:59:43 +02:00
svelte.config.js Migrate from Eslint/Prettier/Stylelint to Biome (#5794) 2025-07-01 14:55:41 +02:00
tsconfig.json Migrate from Eslint/Prettier/Stylelint to Biome (#5794) 2025-07-01 14:55:41 +02:00
vite.config.ts Migrate from Eslint/Prettier/Stylelint to Biome (#5794) 2025-07-01 14:55:41 +02:00
vitest.config.ts Migrate from Cypress to Vitest Browser Mode (#5828) 2025-07-28 11:27:37 +02:00

sv

Everything you need to build a Svelte project, powered by sv.

Creating a project

If you're seeing this, you've probably already done this step. Congrats!

# create a new project in the current directory
npx sv create

# create a new project in my-app
npx sv create my-app

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.