diff --git a/.gitignore b/.gitignore index b2268f7..cd8e1d7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,31 +1,26 @@ -# Dependencies -node_modules/ +node_modules -# Build output -dist/ +# Output +.output +.vercel +.netlify +.wrangler +/.svelte-kit +/build -# Vite -.vite/ - -# Editor directories and files -.vscode/* -!.vscode/extensions.json -.idea/ -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? - -# OS files +# OS .DS_Store Thumbs.db -# Logs -*.log -npm-debug.log* - -# Environment files +# Env .env -.env.local -.env.*.local +.env.* +!.env.example +!.env.test + +# Vite +vite.config.js.timestamp-* +vite.config.ts.timestamp-* +# Paraglide +src/lib/paraglide +project.inlang/cache/ diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..b6f27f1 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..bc31e15 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "files.associations": { + "*.css": "tailwindcss" + } +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..c15abb1 --- /dev/null +++ b/README.md @@ -0,0 +1,42 @@ +# sv + +Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli). + +## Creating a project + +If you're seeing this, you've probably already done this step. Congrats! + +```sh +# create a new project +npx sv create my-app +``` + +To recreate this project with the same configuration: + +```sh +# recreate this project +npx sv create --template minimal --types ts --add tailwindcss="plugins:typography,forms" paraglide="languageTags:en, et+demo:no" --install npm audio-visualizer-v2 +``` + +## Developing + +Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: + +```sh +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: + +```sh +npm run build +``` + +You can preview the production build with `npm run preview`. + +> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment. diff --git a/index.html b/index.html deleted file mode 100644 index 8aeede2..0000000 --- a/index.html +++ /dev/null @@ -1,31 +0,0 @@ - - - -
- - -- Click Start, pick a tab playing music, and check "Share tab audio". Direct audio capture — no mic needed. -
- {:else} -- Tab audio capture is only supported in Chrome and Edge. Use Link - or Mic instead. -
- {/if} - {:else if audioSource === "link"} - - {#if embedUrl} - {#if isYouTubeUrl} - + {m.tab_hint()} + "{m.tab_hint_bold()}". + + {/if} + + {#if audioSource === "file"} +- Play the video in the new tab, then click Start here. Uses your mic - to capture the audio. -
- {:else} - -- Play the music above, then click Start. Uses your mic to capture the - audio. -
- {/if} - {:else if audioUrl} -- Could not parse this URL. Try a YouTube, Spotify, or SoundCloud link. -
+{m.file_loaded()}
+ {/if} +File loaded. Click Start to begin playback.
- {/if} -