From f7d0f408503749952fdbcfaa81a971d1d205500e Mon Sep 17 00:00:00 2001 From: les Date: Fri, 4 Dec 2020 17:28:11 +0100 Subject: [PATCH] reuse v-calendar --- pages/event/_id.vue | 12 ------------ plugins/v-calendar.js | 15 ++++++++------- 2 files changed, 8 insertions(+), 19 deletions(-) diff --git a/pages/event/_id.vue b/pages/event/_id.vue index a3cc3227..6e403934 100644 --- a/pages/event/_id.vue +++ b/pages/event/_id.vue @@ -56,18 +56,6 @@ v-container v-btn.ml-2(large icon v-on='on' color='primary' :href='`/api/event/${event.id}.ics`') v-icon mdi-calendar-export - //- v-list - v-list-item(link) - v-list-item-content.primary--text.text-uppercase( - v-clipboard:success='copyLink' - v-clipboard:copy='`${settings.baseurl}/event/${event.id}`') {{$t('common.copy_link')}} - - v-list-item(link) - v-list-item-content.primary--text.text-uppercase(@click='showEmbed=true' text color='primary') {{$t('common.embed')}} - - v-list-item(link :href='`/api/event/${event.id}.ics`') - v-list-item-content.primary--text.text-uppercase - //- v-btn(nuxt block link :href='`/api/event/${event.id}.ics`' text color='primary') {{$t('common.add_to_calendar')}} .p-description.text-h6(v-html='event.description') v-chip.p-category.ml-1(v-for='tag in event.tags' color='primary' diff --git a/plugins/v-calendar.js b/plugins/v-calendar.js index 29f0414e..3d4aef0d 100644 --- a/plugins/v-calendar.js +++ b/plugins/v-calendar.js @@ -1,7 +1,8 @@ -// import Vue from 'vue' -// import VCalendar from 'v-calendar' -// export default () => { -// Vue.use(VCalendar, { -// firstDayOfWeek: 2 -// }) -// } + import Vue from 'vue' + import VCalendar from 'v-calendar' + export default () => { + Vue.use(VCalendar, { + // why is that ?! + firstDayOfWeek: 2 + }) + }