diff --git a/components/IconButton.vue b/components/IconButton.vue index 2572744..1e8cf2f 100644 --- a/components/IconButton.vue +++ b/components/IconButton.vue @@ -2,17 +2,10 @@
- - - - - - - - - + + @@ -66,14 +59,6 @@ const workSlug = computed(() => slugify(props.work?.title)) - const scoreLink = computed(() => { - if (!props.work?.score) return null - if (props.work.score.startsWith('/scores/')) { - return props.work.score - } - return '/scores/' + props.work.score - }) - const isExternalLink = computed(() => { return props.link && !props.link.endsWith('.pdf') && !props.link.startsWith('/') }) @@ -82,11 +67,6 @@ return props.link && props.link.startsWith('/') && !props.link.endsWith('.pdf') }) - const isMobile = () => { - if (typeof window === 'undefined') return false - return window.innerWidth < 768 - } - const openDocument = () => { if (props.link?.endsWith('.pdf')) { modalStore.setModalProps('pdf', 'aspect-[1/1.414]', true, '', '', '', props.link) diff --git a/pages/works/[slug].vue b/pages/works/[slug].vue index a4874c8..0369081 100644 --- a/pages/works/[slug].vue +++ b/pages/works/[slug].vue @@ -8,12 +8,7 @@
@@ -27,7 +22,7 @@ -
+
@@ -82,11 +77,6 @@ const itemCount = computed(() => { return count }) -const isMobile = () => { - if (typeof window === 'undefined') return false - return window.innerWidth < 768 -} - onMounted(() => { if (work.value?.soundcloud_trackid) { audioPlayerStore.setSoundCloudTrackID(work.value.soundcloud_trackid)