55 lines
2.3 KiB
Vue
55 lines
2.3 KiB
Vue
<template>
|
|
<div class="inline-flex p-1 min-w-[25px]">
|
|
<div v-show="visible" class="bg-black rounded-full text-xs inline-flex" >
|
|
|
|
<button v-if="type === 'score'" @click="modalStore.setModalProps('pdf', 'aspect-[1/1.414]', true, '', '', '', link)" class="inline-flex p-1">
|
|
<Icon name="ion:book-sharp" style="color: white" />
|
|
</button>
|
|
|
|
<button v-else-if="type === 'document'" @click="modalStore.setModalProps('pdf', 'aspect-[1/1.414]', true, '', '', '', link)" class="inline-flex p-1">
|
|
<Icon name="ion:book-sharp" style="color: white" />
|
|
</button>
|
|
|
|
<NuxtLink v-else-if="type === 'buy'" class="inline-flex p-1" :to="link">
|
|
<Icon name="bxs:purchase-tag" style="color: white" />
|
|
</NuxtLink>
|
|
|
|
<NuxtLink v-else-if="type === 'email'" class="inline-flex p-1" :to="link">
|
|
<Icon name="ic:baseline-email" style="color: white" />
|
|
</NuxtLink>
|
|
|
|
<NuxtLink v-else-if="type === 'discogs'" class="inline-flex p-1" :to="link">
|
|
<Icon name="simple-icons:discogs" style="color: white" />
|
|
</NuxtLink>
|
|
|
|
<button @click="audioPlayerStore.setSoundCloudTrackID(work.soundcloud_trackid)" v-else-if="type === 'audio'" class="inline-flex p-1">
|
|
<Icon name="wpf:speaker" style="color: white" />
|
|
</button>
|
|
|
|
<button @click="modalStore.setModalProps('video', 'aspect-video', true, '', '', work.vimeo_trackid)" v-else-if="type === 'video'" class="inline-flex p-1">
|
|
<Icon name="fluent:video-48-filled" style="color: white" />
|
|
</button>
|
|
|
|
<button @click="modalStore.setModalProps('image', 'aspect-auto', true, 'images', work.gallery, '')" v-else="type === 'image'" class="inline-flex p-1">
|
|
<Icon name="mdi:camera" style="color: white" />
|
|
</button>
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { useAudioPlayerStore } from "@/stores/AudioPlayerStore"
|
|
import { useModalStore } from "@/stores/ModalStore"
|
|
|
|
const audioPlayerStore = useAudioPlayerStore()
|
|
const modalStore = useModalStore()
|
|
|
|
</script>
|
|
|
|
<script>
|
|
export default {
|
|
props: ['type', 'work', 'visible', 'link', 'newTab']
|
|
}
|
|
</script>
|