diff --git a/.env b/.env
index c0c68b1c..045c80db 100644
--- a/.env
+++ b/.env
@@ -1 +1,6 @@
-PORT=3000
\ No newline at end of file
+VITE_DOMAIN="beatbump.io"
+VITE_SITE_URL="https://beatbump.io"
+VITE_DONATION_URL="https://www.paypal.com/donate/?hosted_button_id=E6YRHKS2H2KP2"
+ALLOW_IFRAME="true"
+PUBLIC_ALLOW_THUMBNAIL_PROXY="true"
+PORT=3000
diff --git a/.env.EXAMPLE b/.env.EXAMPLE
new file mode 100644
index 00000000..a092885e
--- /dev/null
+++ b/.env.EXAMPLE
@@ -0,0 +1,6 @@
+VITE_DOMAIN="beatbump.io"
+VITE_SITE_URL="https://beatbump.io"
+VITE_DONATION_URL="https://www.paypal.com/donate/?hosted_button_id=E6YRHKS2H2KP2"
+ALLOW_IFRAME="false"
+PUBLIC_ALLOW_THUMBNAIL_PROXY="false"
+PORT=3000
diff --git a/.gitignore b/.gitignore
index a603fb41..274f05a7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,3 +19,6 @@ node_modules
/app/.svelte-kit/cloudflare*
/app/.svelte-kit/adapter*
/packages/proxy-server/rust/target
+/app/.svelte-kit/*
+app/.svelte-kit/ambient.d.ts
+app/build/**/*
diff --git a/.vscode/schema.json b/.vscode/schema.json
index 0ccb636d..d9f2802d 100644
--- a/.vscode/schema.json
+++ b/.vscode/schema.json
@@ -40,8 +40,9 @@
"type": "object",
"description": "",
"properties": {
- "edge": {
- "type": "boolean",
+ "runtime": {
+ "type": "string",
+ "oneOf": [{ "const": "edge" }, { "const": "nodejs16.x" }, { "const": "nodejs18.x" }],
"default": false
},
"split": {
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 915e3cad..61a6e926 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,6 +1,6 @@
{
"svg.preview.background": "custom",
- "eslint.probe": ["javascript", "typescript", "html", "markdown", "svelte"],
+ "eslint.enable": true,
"editor.formatOnSave": true,
"deno.enable": false,
"npm.autoDetect": "on",
@@ -9,24 +9,37 @@
"json.schemas": [
{
"url": "./.vscode/schema.json",
- "fileMatch": [
- "/app/beatbump.conf.json"
- ]
+ "fileMatch": ["/app/beatbump.conf.json"]
}
],
"typescript.format.enable": true,
"prettier.enable": true,
"prettier.configPath": ".prettierrc",
- "editor.formatOnSaveMode": "modificationsIfAvailable",
+ "editor.formatOnSaveMode": "file",
"[typescript]": {
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
- "editor.defaultFormatter": "esbenp.prettier-vscode",
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
},
+ "eslint.nodePath": "app/node_modules",
"[svelte]": {
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
- "editor.defaultFormatter": "svelte.svelte-vscode",
+
+ "editor.defaultFormatter": "svelte.svelte-vscode"
},
- "typescript.tsdk": "./app/node_modules/typescript/lib"
+ "typescript.tsdk": "./app/node_modules/typescript/lib",
+ "search.exclude": {
+ ".cloudflare/**": true,
+ "**/.cloudflare": true,
+ "**/.cloudflare/*": true,
+ "build/**": true
+ },
+ "diffEditor.codeLens": true,
+ "diffEditor.experimental.showMoves": true,
+ "explorer.fileNesting.enabled": true,
+ "explorer.fileNesting.patterns": {
+ "*.svelte": "+${capture}.css.scss.js.ts"
+ },
+ "diffEditor.hideUnchangedRegions.enabled": true
}
diff --git a/Beatbump.code-workspace b/Beatbump.code-workspace
index 421e0df6..c4bdbb77 100644
--- a/Beatbump.code-workspace
+++ b/Beatbump.code-workspace
@@ -1,16 +1,56 @@
{
"folders": [
{
- "path": "."
+ "path": "app"
},
{
"path": "packages/proxy-server/rust"
+ },
+ {
+ "path": "."
}
],
"settings": {
"svg.preview.background": "custom",
"npm-intellisense.recursivePackageJsonLookup": true,
- "typescript.format.enable": true,
- "typescript.tsdk": "Beatbump/app/node_modules/typescript/lib"
+ "typescript.tsdk": "Beatbump/app/node_modules/typescript/lib",
+ "svelte.enable-ts-plugin": true,
+ "svelte.plugin.svelte.defaultScriptLanguage": "ts",
+ "eslint.lintTask.enable": true,
+ "eslint.useESLintClass": true,
+ "eslint.enable": true,
+ "eslint.probe": [
+ "javascript",
+ "javascriptreact",
+ "typescript",
+ "typescriptreact",
+ "html",
+ "svelte",
+ "vue",
+ "markdown"
+ ],
+ // "eslint.lintTask.enable": true,
+ "eslint.run": "onType",
+ "eslint.validate": [
+ "javascript",
+ "javascriptreact",
+ "typescript",
+ "typescriptreact",
+ "html",
+ "svelte",
+ "vue",
+ "markdown"
+ ],
+ "eslint.workingDirectories": [],
+ "css.validate": false,
+ "scss.validate": false,
+ "stylelint.enable": true,
+ "editor.codeActionsOnSave": {
+ "source.fixAll": "explicit",
+ "source.organizeImports": "explicit"
+ },
+ "eslint.format.enable": false,
+ "eslint.codeActionsOnSave.mode": "all",
+ "stylelint.validate": ["css", "less", "postcss"]
}
}
diff --git a/README.md b/README.md
index 5366f266..d6548828 100644
--- a/README.md
+++ b/README.md
@@ -1,109 +1,124 @@
-
-
-# Beatbump
-
-A privacy-respecting alternative frontend for YouTube Music. Built with SvelteKit, official instance hosted with Cloudflare Workers.
-
-> NOTE: Beatbump is going through a major rewrite, so errors, bugs, and other problems may happen at random.
-
-
|
|
|
-| ------------------------------------------------ | ------------------------------------------------------------- | ---------------------------------------------- |
-
-
+
+# Beatbump
+
+A privacy-respecting alternative frontend for YouTube Music. Built with SvelteKit, official instance hosted with
+Cloudflare Workers.
+
+> NOTE: Beatbump is going through a major rewrite, so errors, bugs, and other problems may happen at random.
+
+
|
|
|
+| ------------------------------------------------ | ------------------------------------------------------------- | ---------------------------------------------- |
+
+