From 9fd07ee0f8ffb66e8c5f0a3d879f0600b2bec7cb Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Wed, 5 Nov 2025 15:40:22 +0100 Subject: [PATCH] feat: generate and download ics calendar --- package.json | 1 + pnpm-lock.yaml | 15 ++++++ src/App.vue | 108 +++++++++------------------------------- src/utils/data.ts | 122 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 160 insertions(+), 86 deletions(-) create mode 100644 src/utils/data.ts diff --git a/package.json b/package.json index 5a1ac1e..7443061 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ }, "dependencies": { "pinia": "^3.0.3", + "ts-ics": "^2.4.0", "vue": "^3.5.22" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f5913f2..173d472 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,9 @@ importers: pinia: specifier: ^3.0.3 version: 3.0.3(typescript@5.9.3)(vue@3.5.22(typescript@5.9.3)) + ts-ics: + specifier: ^2.4.0 + version: 2.4.0 vue: specifier: ^3.5.22 version: 3.5.22(typescript@5.9.3) @@ -802,6 +805,9 @@ packages: cpu: [x64] os: [win32] + '@standard-schema/spec@1.0.0': + resolution: {integrity: sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==} + '@tsconfig/node22@22.0.2': resolution: {integrity: sha512-Kmwj4u8sDRDrMYRoN9FDEcXD8UpBSaPQQ24Gz+Gamqfm7xxn+GBR7ge/Z7pK8OXNGyUzbSwJj+TH6B+DS/epyA==} @@ -2046,6 +2052,9 @@ packages: peerDependencies: typescript: '>=4.8.4' + ts-ics@2.4.0: + resolution: {integrity: sha512-Tguo+7W/swxTw8/Fxv4zPBqiHw/i1ohg0aCWeY50miwdwFGC7TCWcOUuqaeag5EdnaX57zn1qrqERsc4A+4j1A==} + tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} @@ -2886,6 +2895,8 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.52.5': optional: true + '@standard-schema/spec@1.0.0': {} + '@tsconfig/node22@22.0.2': {} '@tybys/wasm-util@0.10.1': @@ -4197,6 +4208,10 @@ snapshots: dependencies: typescript: 5.9.3 + ts-ics@2.4.0: + dependencies: + '@standard-schema/spec': 1.0.0 + tslib@2.8.1: optional: true diff --git a/src/App.vue b/src/App.vue index 2410dc5..e872aec 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,88 +1,28 @@