|
|
@ -16,7 +16,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<slot /> <!-- required here only -->
|
|
|
|
<slot /> <!-- required here only -->
|
|
|
|
<div class="sticky bottom-0 bg-white p-2 flex justify-center z-20">
|
|
|
|
<div class="sticky bottom-0 bg-white p-2 flex justify-center z-20">
|
|
|
|
<iframe width="400rem" height="20" scrolling="no" frameborder="no" allow="autoplay"
|
|
|
|
<iframe width="400rem" height="20" scrolling="no" frameborder="no" allow="autoplay" v-if="audioPlayerStore.soundcloud_trackid !== 'undefined'"
|
|
|
|
:src="'https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/' + audioPlayerStore.soundcloud_trackid + '&inverse=false&auto_play=true&show_user=false'"></iframe>
|
|
|
|
:src="'https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/' + audioPlayerStore.soundcloud_trackid + '&inverse=false&auto_play=true&show_user=false'"></iframe>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -35,4 +35,20 @@
|
|
|
|
const audioPlayerStore = useAudioPlayerStore()
|
|
|
|
const audioPlayerStore = useAudioPlayerStore()
|
|
|
|
const modalStore = useModalStore()
|
|
|
|
const modalStore = useModalStore()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(route.params.files == 'scores') {
|
|
|
|
|
|
|
|
const { data: work } = await useFetch('https://unboundedpress.org/api/works?filter={"score":"' + route.params.filename + '"}', {
|
|
|
|
|
|
|
|
transform: (work) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(work[0].soundcloud_trackid){
|
|
|
|
|
|
|
|
audioPlayerStore.setSoundCloudTrackID(work[0].soundcloud_trackid)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
audioPlayerStore.clearSoundCloudTrackID()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return work[0]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|