add format check, update prettier rules, apply rules consistently

This commit is contained in:
Gregor Vostrak
2025-07-29 18:58:31 +02:00
parent b11672732b
commit a3d7cdaf4d
323 changed files with 3728 additions and 5579 deletions

View File

@@ -1,18 +1,18 @@
import { usePreferredColorScheme, useStorage } from "@vueuse/core";
import { computed, watch } from "vue";
import { usePreferredColorScheme, useStorage } from '@vueuse/core';
import { computed, watch } from 'vue';
type themeOption = "system" | "light" | "dark";
const themeSetting = useStorage<themeOption>("theme", "system");
type themeOption = 'system' | 'light' | 'dark';
const themeSetting = useStorage<themeOption>('theme', 'system');
const preferredColor = usePreferredColorScheme();
const theme = computed(() => {
if(themeSetting.value === "system"){
if (themeSetting.value === 'system') {
console.log(preferredColor.value);
if (preferredColor.value === 'no-preference') {
return 'dark';
}
return preferredColor.value;
}
return themeSetting.value
return themeSetting.value;
});
function useTheme() {