From 130ccc0f731a3ca05895a4782a9581ceabe3e859 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Sun, 24 Aug 2025 21:59:56 -0600 Subject: [PATCH] Simple undo/redo --- package.json | 2 +- src/App.vue | 31 ++++- src/assets/layout.css | 83 ++++++++--- src/components/CalendarView.vue | 57 +++++++- src/components/EventDialog.vue | 13 ++ src/components/EventOverlay.vue | 36 ++++- src/main.js | 3 + src/plugins/calendarHistory.js | 200 +++++++++++++++++++++++++++ src/plugins/calendarUndoNormalize.js | 57 ++++++++ src/stores/CalendarStore.js | 4 + 10 files changed, 459 insertions(+), 27 deletions(-) create mode 100644 src/plugins/calendarHistory.js create mode 100644 src/plugins/calendarUndoNormalize.js diff --git a/package.json b/package.json index 7e0f7b7..cca40c0 100644 --- a/package.json +++ b/package.json @@ -16,9 +16,9 @@ "format": "prettier --write src/" }, "dependencies": { - "date-holidays": "^3.25.1", "date-fns": "^3.6.0", "date-fns-tz": "^3.0.0", + "date-holidays": "^3.25.1", "pinia": "^3.0.3", "pinia-plugin-persistedstate": "^4.5.0", "vue": "^3.5.18" diff --git a/src/App.vue b/src/App.vue index 451c0d9..5836a2c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@