From 4e90ae9bda2cf547947b71845a21abb4f4a560b5 Mon Sep 17 00:00:00 2001 From: lesion Date: Wed, 21 Sep 2022 10:51:04 +0200 Subject: [PATCH] remove per event options @homepage to improve performance --- components/Event.vue | 64 +++----------------------------------------- 1 file changed, 3 insertions(+), 61 deletions(-) diff --git a/components/Event.vue b/components/Event.vue index d41eb02e..3d6500ff 100644 --- a/components/Event.vue +++ b/components/Event.vue @@ -16,52 +16,15 @@ v-card.h-event.event.d-flex(itemscope itemtype="https://schema.org/Event") v-chip.ml-1.mt-1(v-for='tag in event.tags.slice(0, 6)' small :to='`/tag/${tag}`' :key='tag' outlined color='primary') {{ tag }} - client-only - v-menu(offset-y eager) - template(v-slot:activator="{ on }") - v-btn.align-self-end(icon v-on='on' color='primary' title='more' aria-label='more') - v-icon(v-text='mdiDotsVertical') - v-list(dense) - v-list-item-group - v-list-item(@click='clipboard(`${settings.baseurl}/event/${event.slug || event.id}`)') - v-list-item-icon - v-icon(v-text='mdiContentCopy') - v-list-item-content - v-list-item-title {{ $t('common.copy_link') }} - v-list-item(:href='`/api/event/${event.slug || event.id}.ics`') - v-list-item-icon - v-icon(v-text='mdiCalendarExport') - v-list-item-content - v-list-item-title {{ $t('common.add_to_calendar') }} - v-list-item(v-if='is_mine' :to='`/add/${event.id}`') - v-list-item-icon - v-icon(v-text='mdiPencil') - v-list-item-content - v-list-item-title {{ $t('common.edit') }} - v-list-item(v-if='is_mine' @click='remove(false)') - v-list-item-icon - v-icon(color='error' v-text='mdiDeleteForever') - v-list-item-content - v-list-item-title {{ $t('common.remove') }} - template(#placeholder) - v-btn.align-self-end(icon color='primary' aria-label='more') - v-icon(v-text='mdiDotsVertical')