Much simpler undo/redo handling, bugs fixed and less code.

This commit is contained in:
Leo Vasanko
2025-08-27 13:54:10 -06:00
parent 45939939f2
commit 57aefc5b4c
9 changed files with 177 additions and 268 deletions

View File

@@ -3,7 +3,7 @@ import './assets/calendar.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import { calendarHistory } from '@/plugins/calendarHistory'
import { history } from '@/plugins/history'
import App from './App.vue'
@@ -12,7 +12,7 @@ const app = createApp(App)
const pinia = createPinia()
// Order: persistence first so snapshots recorded by undo reflect already-hydrated state
pinia.use(piniaPluginPersistedstate)
pinia.use(calendarHistory)
pinia.use(history)
app.use(pinia)
app.mount('#app')