Initial commit

This commit is contained in:
Mindboost
2025-07-01 10:53:26 +00:00
commit 38050e5c69
416 changed files with 48708 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import { useTimerStore } from '~~/stores/timer'
const storageKeys = {
timer: 'timer-settings'
}
export const storeSettings = () => {
const timerSettings = useTimerStore().$state.settings
localStorage.setItem(storageKeys.timer, JSON.stringify(timerSettings))
}
export const getSettings = () => {
const storedSettings = {
timer: localStorage.getItem(storageKeys.timer)
}
if (storedSettings.timer) {
useTimerStore().$state.settings = JSON.parse(storedSettings.timer)
}
}