perf: use biome

This commit is contained in:
hamster1963
2025-12-28 18:05:02 +08:00
parent 3bfd4ef4d2
commit 29e349505d
115 changed files with 9924 additions and 8381 deletions
+5 -5
View File
@@ -10,7 +10,7 @@
theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"
}
document.documentElement.classList.add(theme)
} catch (e) {
} catch (_e) {
document.documentElement.classList.add("light")
}
</script>
@@ -36,15 +36,15 @@
}
html {
background-color: var(--bg) !important;
background-color: var(--bg);
}
body {
background-color: var(--bg) !important;
background-color: var(--bg);
}
#root {
background-color: var(--bg) !important;
background-color: var(--bg);
visibility: hidden;
}
@@ -63,7 +63,7 @@
}
</style>
<script>
;(function () {
;(() => {
const storageKey = "vite-ui-theme"
const theme = localStorage.getItem(storageKey) || "system"
const root = document.documentElement