repod/src/components/Player/Infos.vue
Michel Roux 0bbe6dbf24
All checks were successful
repod / xml (push) Successful in 17s
repod / php (push) Successful in 1m0s
repod / nodejs (push) Successful in 2m18s
repod / release (push) Has been skipped
refacto: encode url with components becuase of / in base 64
2024-01-11 21:41:37 +01:00

38 lines
615 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>
import { encodeUrl } from '../../utils/url.js'
export default {
name: 'Infos',
computed: {
player() {
return this.$store.state.player
},
},
methods: {
toUrl(url) {
return `/${encodeUrl(url)}`
},
},
}
</script>
<style scoped>
div {
display: flex;
flex-direction: column;
justify-content: center;
width: 40%;
}
</style>