From 332465b85c14c174956154dcdd501ad9fbb6e13c Mon Sep 17 00:00:00 2001
From: Izan Gil <66965250+SrIzan10@users.noreply.github.com>
Date: Fri, 18 Apr 2025 11:57:50 +0200
Subject: [PATCH] style: format with prettier
---
.prettierrc | 6 +-
.vscode/settings.json | 10 +-
components.json | 30 +--
package.json | 69 ++---
postcss.config.js | 4 +-
src/app.css | 6 +-
src/app.d.ts | 14 +-
src/app.html | 18 +-
src/lib/components/app/bg-image.svelte | 15 +-
src/lib/components/app/bottom-bar.svelte | 8 +-
src/lib/components/app/daemon.svelte | 243 +++++++++---------
src/lib/components/app/now-playing.svelte | 16 +-
src/lib/components/ui/button/button.svelte | 121 +++++----
src/lib/components/ui/button/index.ts | 26 +-
.../dropdown-menu-checkbox-item.svelte | 66 ++---
.../dropdown-menu-content.svelte | 42 +--
.../dropdown-menu-group-heading.svelte | 26 +-
.../dropdown-menu/dropdown-menu-item.svelte | 34 +--
.../dropdown-menu/dropdown-menu-label.svelte | 32 +--
.../dropdown-menu-radio-item.svelte | 46 ++--
.../dropdown-menu-separator.svelte | 20 +-
.../dropdown-menu-shortcut.svelte | 26 +-
.../dropdown-menu-sub-content.svelte | 26 +-
.../dropdown-menu-sub-trigger.svelte | 42 +--
src/lib/components/ui/dropdown-menu/index.ts | 82 +++---
src/lib/state.svelte.ts | 42 +--
src/lib/types.ts | 101 ++++----
src/lib/utils.ts | 20 +-
src/routes/+layout.svelte | 4 +-
src/routes/+page.svelte | 17 +-
svelte.config.js | 26 +-
tailwind.config.ts | 182 ++++++-------
tsconfig.json | 34 +--
vite.config.ts | 2 +-
yarn.lock | 5 +
35 files changed, 733 insertions(+), 728 deletions(-)
diff --git a/.prettierrc b/.prettierrc
index 49d911d..a6c14c7 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -4,5 +4,7 @@
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "es5",
- "semi": true
-}
\ No newline at end of file
+ "semi": true,
+ "plugins": ["prettier-plugin-svelte"],
+ "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
+}
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 592a4a7..f918991 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,6 +1,6 @@
{
- "editor.tabSize": 2,
- "editor.detectIndentation": false,
- "editor.insertSpaces": true,
- "editor.rulers": [100]
-}
\ No newline at end of file
+ "editor.tabSize": 2,
+ "editor.detectIndentation": false,
+ "editor.insertSpaces": true,
+ "editor.rulers": [100]
+}
diff --git a/components.json b/components.json
index 260ea62..22be117 100644
--- a/components.json
+++ b/components.json
@@ -1,17 +1,17 @@
{
- "$schema": "https://next.shadcn-svelte.com/schema.json",
- "style": "new-york",
- "tailwind": {
- "config": "tailwind.config.ts",
- "css": "src/app.css",
- "baseColor": "neutral"
- },
- "aliases": {
- "components": "$lib/components",
- "utils": "$lib/utils",
- "ui": "$lib/components/ui",
- "hooks": "$lib/hooks"
- },
- "typescript": true,
- "registry": "https://next.shadcn-svelte.com/registry"
+ "$schema": "https://next.shadcn-svelte.com/schema.json",
+ "style": "new-york",
+ "tailwind": {
+ "config": "tailwind.config.ts",
+ "css": "src/app.css",
+ "baseColor": "neutral"
+ },
+ "aliases": {
+ "components": "$lib/components",
+ "utils": "$lib/utils",
+ "ui": "$lib/components/ui",
+ "hooks": "$lib/hooks"
+ },
+ "typescript": true,
+ "registry": "https://next.shadcn-svelte.com/registry"
}
diff --git a/package.json b/package.json
index 247512f..3a49974 100644
--- a/package.json
+++ b/package.json
@@ -1,37 +1,38 @@
{
- "name": "chillhop",
- "private": true,
- "version": "0.0.1",
- "type": "module",
- "scripts": {
- "dev": "vite dev",
- "build": "vite build",
- "preview": "vite preview",
- "prepare": "svelte-kit sync || echo ''",
- "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
- "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
- "ui:add": "npx shadcn-svelte@next add",
+ "name": "chillhop",
+ "private": true,
+ "version": "0.0.1",
+ "type": "module",
+ "scripts": {
+ "dev": "vite dev",
+ "build": "vite build",
+ "preview": "vite preview",
+ "prepare": "svelte-kit sync || echo ''",
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
+ "ui:add": "npx shadcn-svelte@next add",
"format": "prettier --write ."
- },
- "devDependencies": {
- "@lucide/svelte": "^0.488.0",
- "@sveltejs/adapter-auto": "^6.0.0",
- "@sveltejs/adapter-cloudflare": "^5.0.1",
- "@sveltejs/kit": "^2.16.0",
- "@sveltejs/vite-plugin-svelte": "^5.0.0",
- "autoprefixer": "^10.4.20",
- "bits-ui": "^1.3.19",
- "clsx": "^2.1.1",
- "prettier": "^3.5.3",
- "svelte": "^5.0.0",
- "svelte-check": "^4.0.0",
- "tailwind-merge": "^3.2.0",
- "tailwind-variants": "^1.0.0",
- "tailwindcss": "^3.4.17",
- "tailwindcss-animate": "^1.0.7",
- "typescript": "^5.0.0",
- "vite": "^6.0.0",
- "wrangler": "^4.12.0"
- },
- "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
+ },
+ "devDependencies": {
+ "@lucide/svelte": "^0.488.0",
+ "@sveltejs/adapter-auto": "^6.0.0",
+ "@sveltejs/adapter-cloudflare": "^5.0.1",
+ "@sveltejs/kit": "^2.16.0",
+ "@sveltejs/vite-plugin-svelte": "^5.0.0",
+ "autoprefixer": "^10.4.20",
+ "bits-ui": "^1.3.19",
+ "clsx": "^2.1.1",
+ "prettier": "^3.5.3",
+ "prettier-plugin-svelte": "^3.3.3",
+ "svelte": "^5.0.0",
+ "svelte-check": "^4.0.0",
+ "tailwind-merge": "^3.2.0",
+ "tailwind-variants": "^1.0.0",
+ "tailwindcss": "^3.4.17",
+ "tailwindcss-animate": "^1.0.7",
+ "typescript": "^5.0.0",
+ "vite": "^6.0.0",
+ "wrangler": "^4.12.0"
+ },
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
diff --git a/postcss.config.js b/postcss.config.js
index ba80730..2aa7205 100644
--- a/postcss.config.js
+++ b/postcss.config.js
@@ -1,6 +1,6 @@
export default {
plugins: {
tailwindcss: {},
- autoprefixer: {}
- }
+ autoprefixer: {},
+ },
};
diff --git a/src/app.css b/src/app.css
index ef33889..72b0ea6 100644
--- a/src/app.css
+++ b/src/app.css
@@ -24,7 +24,7 @@
--destructive-foreground: 0 0% 98%;
--ring: 0 0% 3.9%;
--radius: 1rem;
- --sidebar-background: 0 0% 98%;
+ --sidebar-background: 0 0% 98%;
--sidebar-foreground: 240 5.3% 26.1%;
--sidebar-primary: 240 5.9% 10%;
--sidebar-primary-foreground: 0 0% 98%;
@@ -54,7 +54,7 @@
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 0% 98%;
--ring: 0 0% 83.1%;
- --sidebar-background: 240 5.9% 10%;
+ --sidebar-background: 240 5.9% 10%;
--sidebar-foreground: 240 4.8% 95.9%;
--sidebar-primary: 224.3 76.3% 48%;
--sidebar-primary-foreground: 0 0% 100%;
@@ -72,4 +72,4 @@
body {
@apply bg-background text-foreground m-0 p-0 overflow-hidden;
}
-}
\ No newline at end of file
+}
diff --git a/src/app.d.ts b/src/app.d.ts
index da08e6d..520c421 100644
--- a/src/app.d.ts
+++ b/src/app.d.ts
@@ -1,13 +1,13 @@
// See https://svelte.dev/docs/kit/types#app.d.ts
// for information about these interfaces
declare global {
- namespace App {
- // interface Error {}
- // interface Locals {}
- // interface PageData {}
- // interface PageState {}
- // interface Platform {}
- }
+ namespace App {
+ // interface Error {}
+ // interface Locals {}
+ // interface PageData {}
+ // interface PageState {}
+ // interface Platform {}
+ }
}
export {};
diff --git a/src/app.html b/src/app.html
index 77a5ff5..84ffad1 100644
--- a/src/app.html
+++ b/src/app.html
@@ -1,12 +1,12 @@
-
-
-
-
- %sveltekit.head%
-
-
- %sveltekit.body%
-
+
+
+
+
+ %sveltekit.head%
+
+
+ %sveltekit.body%
+
diff --git a/src/lib/components/app/bg-image.svelte b/src/lib/components/app/bg-image.svelte
index 9bf5d54..1efce8a 100644
--- a/src/lib/components/app/bg-image.svelte
+++ b/src/lib/components/app/bg-image.svelte
@@ -1,7 +1,8 @@
-
\ No newline at end of file
+
diff --git a/src/lib/components/app/bottom-bar.svelte b/src/lib/components/app/bottom-bar.svelte
index c990a5d..916be73 100644
--- a/src/lib/components/app/bottom-bar.svelte
+++ b/src/lib/components/app/bottom-bar.svelte
@@ -1,7 +1,9 @@
-
+
-
\ No newline at end of file
+
diff --git a/src/lib/components/app/daemon.svelte b/src/lib/components/app/daemon.svelte
index 2704b0f..9ce7c80 100644
--- a/src/lib/components/app/daemon.svelte
+++ b/src/lib/components/app/daemon.svelte
@@ -1,138 +1,143 @@
{#if !state.hasInteracted}
-