From 90dcdec386c43bd0efe1785894cd0b13caf26e32 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Sat, 23 Aug 2025 14:03:48 -0600 Subject: [PATCH] Display national holidays on the calendar. --- package.json | 1 + src/App.vue | 9 +- src/assets/colors.css | 178 ++++++++++++++++++++++------- src/components/CalendarDay.vue | 65 +++++++++++ src/components/CalendarView.vue | 6 +- src/components/SettingsDialog.vue | 173 ++++++++++++++++++++++++++++- src/stores/CalendarStore.js | 147 +++++++++++++++++++++++- src/utils/holidays.js | 179 ++++++++++++++++++++++++++++++ 8 files changed, 707 insertions(+), 51 deletions(-) create mode 100644 src/utils/holidays.js diff --git a/package.json b/package.json index eed390a..23b62da 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "format": "prettier --write src/" }, "dependencies": { + "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 439bde5..451c0d9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,9 +1,16 @@