feat: make settings typed and store "12" and "24" over "12-hour" and "24-hour" internally

This commit is contained in:
Twig 2025-07-12 22:39:26 +02:00
parent eb49450756
commit 195322f3b0
No known key found for this signature in database
5 changed files with 32 additions and 11 deletions

View file

@ -8,7 +8,6 @@
<script lang="ts" setup>
import ContextMenu from '~/components/ContextMenu.vue';
import { render } from 'vue';
import settingLoad from './utils/settingLoad';
const banner = useState("banner", () => false);
@ -44,7 +43,7 @@ function contextMenuHandler(e: MouseEvent) {
//]);
}
const currentTheme = settingLoad("selectedThemeUrl") ?? "dark"
const currentTheme = settingsLoad().selectedThemeId ?? "dark"
const baseURL = useRuntimeConfig().app.baseURL;
useHead({