From 4bbdce77e4544ae3455ec849cc137af564745e4d Mon Sep 17 00:00:00 2001 From: Avris Date: Wed, 27 Oct 2021 21:00:45 +0200 Subject: [PATCH] #247 [calendar] ics - add all-time, just-one-event, add clipboard button --- components/Calendar.vue | 2 +- components/CalendarEvent.vue | 8 +++- components/CalendarExtra.vue | 30 ++++++++++++-- components/CalendarMonthEvents.vue | 2 +- components/LinkInput.vue | 4 +- locale/de/translations.suml | 4 +- locale/en/translations.suml | 2 + locale/es/translations.suml | 2 + locale/fr/translations.suml | 2 + locale/nl/translations.suml | 2 + locale/no/translations.suml | 2 + locale/pl/translations.suml | 2 + locale/pt/translations.suml | 2 + locale/zh/translations.suml | 2 + package.json | 1 + routes/calendarDay.vue | 2 +- server/routes/calendar.js | 66 ++++++++++++++++++++++++------ src/calendar/helpers.js | 17 +++++++- 18 files changed, 127 insertions(+), 25 deletions(-) diff --git a/components/Calendar.vue b/components/Calendar.vue index b5e58c9c..909c95c4 100644 --- a/components/Calendar.vue +++ b/components/Calendar.vue @@ -26,7 +26,7 @@
diff --git a/components/CalendarEvent.vue b/components/CalendarEvent.vue index b623340d..7d75ee01 100644 --- a/components/CalendarEvent.vue +++ b/components/CalendarEvent.vue @@ -1,10 +1,13 @@ @@ -12,7 +15,8 @@ export default { props: { event: { required: true }, - range: {}, + year: { 'default': () => (new Date).getFullYear() }, + range: { type: Boolean }, }, computed: { eventName() { diff --git a/components/CalendarExtra.vue b/components/CalendarExtra.vue index cf7c1739..91bb7219 100644 --- a/components/CalendarExtra.vue +++ b/components/CalendarExtra.vue @@ -25,9 +25,14 @@

iCalendar:

- + + - ICS + crud.download + .ics
@@ -56,10 +61,29 @@ diff --git a/components/CalendarMonthEvents.vue b/components/CalendarMonthEvents.vue index fcd6e878..d25e9cb3 100644 --- a/components/CalendarMonthEvents.vue +++ b/components/CalendarMonthEvents.vue @@ -1,7 +1,7 @@ diff --git a/components/LinkInput.vue b/components/LinkInput.vue index e137fbcf..8b8938e1 100644 --- a/components/LinkInput.vue +++ b/components/LinkInput.vue @@ -1,7 +1,7 @@