mirror of
https://github.com/koel/koel
synced 2024-12-20 17:43:36 +00:00
21 lines
537 B
Vue
21 lines
537 B
Vue
<template>
|
|
<SidebarItem screen="YouTube" href="#/youtube">
|
|
<template #icon>
|
|
<Icon :icon="faYoutube" fixed-width />
|
|
</template>
|
|
{{ title }}
|
|
</SidebarItem>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { unescape } from 'lodash'
|
|
import { faYoutube } from '@fortawesome/free-brands-svg-icons'
|
|
import { ref } from 'vue'
|
|
import { eventBus } from '@/utils'
|
|
|
|
import SidebarItem from './SidebarItem.vue'
|
|
|
|
const title = ref('')
|
|
|
|
eventBus.on('PLAY_YOUTUBE_VIDEO', payload => (title.value = unescape(payload.title)))
|
|
</script>
|