user module + translations

This commit is contained in:
2026-02-05 16:38:34 +02:00
parent 4d95a40c37
commit 6e95ac7999
9 changed files with 185 additions and 35 deletions
+8 -1
View File
@@ -9,10 +9,17 @@ prefs = reactive(prefs ? JSON.parse(prefs) : {
}
})
let snackbar = reactive({
show: false,
text: '',
color: 'info',
timeout: 3000,
})
watch(prefs, (newPrefs) => {
localStorage.setItem('prefs', JSON.stringify(newPrefs))
}, { deep: true })
export const useAppStore = defineStore('app', {
state: () => ({ prefs }),
state: () => ({ prefs, snackbar }),
})