repod/src/components/Player/Infos.vue
Michel Roux 785414f33f
All checks were successful
repod / xml (push) Successful in 32s
repod / php (push) Successful in 1m2s
repod / nodejs (push) Successful in 2m1s
refacto: simplify EpisodeActionExtraData API
2024-01-11 00:14:15 +01:00

36 lines
562 B
Vue

<template>
<div>
<a :href="player.episode.link" target="_blank">
<strong>{{ player.episode.name }}</strong>
</a>
<router-link :to="toUrl(player.podcastUrl)">
<i>{{ player.episode.podcast }}</i>
</router-link>
</div>
</template>
<script>
export default {
name: 'Infos',
computed: {
player() {
return this.$store.state.player
},
},
methods: {
toUrl(url) {
return `/${btoa(url)}`
},
},
}
</script>
<style scoped>
div {
display: flex;
flex-direction: column;
justify-content: center;
width: 40%;
}
</style>