From d04692ce4fce4c2085062e02d04d5be4ea37a07c Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Mon, 3 Oct 2022 17:35:20 +0800 Subject: refactor: Remove old stuff --- apps/kit/static/preload.js | 13 ------------- apps/kit/tsconfig.json | 8 +++----- 2 files changed, 3 insertions(+), 18 deletions(-) delete mode 100644 apps/kit/static/preload.js diff --git a/apps/kit/static/preload.js b/apps/kit/static/preload.js deleted file mode 100644 index 379902f..0000000 --- a/apps/kit/static/preload.js +++ /dev/null @@ -1,13 +0,0 @@ -const value = `; ${document.cookie}`; -const parts = value.split(`; go_theme=`); -let currentTheme = "system"; -if (parts.length === 2) { - currentTheme = parts.pop().split(";").shift(); -} -if (currentTheme === "light") { - document.querySelector("html").dataset.theme = "light"; -} else if (currentTheme === "dark") { - document.querySelector("html").dataset.theme = "dark"; -} else { - document.querySelector("html").dataset.theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; -} \ No newline at end of file diff --git a/apps/kit/tsconfig.json b/apps/kit/tsconfig.json index 5e89be1..d784754 100644 --- a/apps/kit/tsconfig.json +++ b/apps/kit/tsconfig.json @@ -19,16 +19,14 @@ "./src/lib/*" ], }, - "types": [ - "bun-types" - ] }, "include": [ "./**/*.d.ts", "./**/*.ts", "./**/*.js", - "./**/*.svelte" -, "tailwind.config.cjs" ], + "./**/*.svelte", + "tailwind.config.cjs" + ], "exclude": [ "./node_modules" ] -- cgit v1.3