diff --git a/src/lib/components/app-sidebar.svelte b/src/lib/components/app-sidebar.svelte
deleted file mode 100644
index 7a69362..0000000
--- a/src/lib/components/app-sidebar.svelte
+++ /dev/null
@@ -1,198 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- {#each data.navMain as item (item.title)}
-
-
-
-
-
-
- {#each item.items as subItem (subItem.title)}
-
-
- {#snippet child({ props })}
- {subItem.title}
- {/snippet}
-
-
- {/each}
-
-
-
-
-
- {/each}
-
-
-
diff --git a/src/lib/components/search-form.svelte b/src/lib/components/search-form.svelte
index 8544a96..208c5e7 100644
--- a/src/lib/components/search-form.svelte
+++ b/src/lib/components/search-form.svelte
@@ -1,21 +1,28 @@
diff --git a/src/lib/components/version-switcher.svelte b/src/lib/components/version-switcher.svelte
index a06825a..48a8506 100644
--- a/src/lib/components/version-switcher.svelte
+++ b/src/lib/components/version-switcher.svelte
@@ -1,48 +1,54 @@
-
-
-
- {#snippet child({ props })}
-
- {/snippet}
-
-
-
-
+
+
+
+ {#snippet child({ props })}
+
+ {/snippet}
+
+
+
+
diff --git a/src/lib/services/onboarding.ts b/src/lib/services/onboarding.ts
index 54b7bef..a20437b 100644
--- a/src/lib/services/onboarding.ts
+++ b/src/lib/services/onboarding.ts
@@ -1,3 +1,3 @@
export async function check_onboarding(): Promise {
- return Promise.resolve(true);
-}
\ No newline at end of file
+ return Promise.resolve(true);
+}
diff --git a/src/lib/theme-switcher.ts b/src/lib/theme-switcher.ts
index ab0cf1b..3b96ad1 100644
--- a/src/lib/theme-switcher.ts
+++ b/src/lib/theme-switcher.ts
@@ -1,45 +1,54 @@
-import { writable } from 'svelte/store';
-import { browser } from '$app/environment';
+import { writable } from "svelte/store";
+import { browser } from "$app/environment";
-export const themes = ['light', 'dark', 'latte', 'frappe', 'macchiato', 'mocha'] as const;
+export const themes = [
+ "light",
+ "dark",
+ "latte",
+ "frappe",
+ "macchiato",
+ "mocha",
+] as const;
type Theme = (typeof themes)[number];
const createThemeStore = () => {
- const { subscribe, set } = writable('light');
+ const { subscribe, set } = writable("light");
- function applyTheme(theme: Theme) {
- if (browser) {
- document.documentElement.classList.remove(...themes);
- document.documentElement.classList.add(theme);
- localStorage.setItem('theme', theme);
- set(theme);
- }
- }
+ function applyTheme(theme: Theme) {
+ if (browser) {
+ document.documentElement.classList.remove(...themes);
+ document.documentElement.classList.add(theme);
+ localStorage.setItem("theme", theme);
+ set(theme);
+ }
+ }
- function initializeTheme() {
- if (browser) {
- const storedTheme = localStorage.getItem('theme') as Theme | null;
- const systemTheme: Theme = window.matchMedia('(prefers-color-scheme: dark)').matches
- ? 'dark'
- : 'light';
- const initialTheme = storedTheme ?? systemTheme;
- applyTheme(initialTheme);
- }
- }
+ function initializeTheme() {
+ if (browser) {
+ const storedTheme = localStorage.getItem("theme") as Theme | null;
+ const systemTheme: Theme = window.matchMedia(
+ "(prefers-color-scheme: dark)"
+ ).matches
+ ? "dark"
+ : "light";
+ const initialTheme = storedTheme ?? systemTheme;
+ applyTheme(initialTheme);
+ }
+ }
- function resetToSystem() {
- if (browser) {
- localStorage.removeItem('theme');
- initializeTheme();
- }
- }
+ function resetToSystem() {
+ if (browser) {
+ localStorage.removeItem("theme");
+ initializeTheme();
+ }
+ }
- return {
- subscribe,
- applyTheme,
- initializeTheme,
- resetToSystem
- };
+ return {
+ subscribe,
+ applyTheme,
+ initializeTheme,
+ resetToSystem,
+ };
};
export const theme = createThemeStore();