2023-08-27 20:20:34 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
2024-01-10 23:14:15 +00:00
|
|
|
<a :href="player.episode.link" target="_blank">
|
|
|
|
<strong>{{ player.episode.name }}</strong>
|
2023-08-27 20:20:34 +00:00
|
|
|
</a>
|
2024-01-10 14:25:54 +00:00
|
|
|
<router-link :to="toUrl(player.podcastUrl)">
|
2024-01-10 23:14:15 +00:00
|
|
|
<i>{{ player.episode.podcast }}</i>
|
2023-08-27 20:20:34 +00:00
|
|
|
</router-link>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2024-01-11 20:41:37 +00:00
|
|
|
import { encodeUrl } from '../../utils/url.js'
|
|
|
|
|
2023-08-27 20:20:34 +00:00
|
|
|
export default {
|
|
|
|
name: 'Infos',
|
|
|
|
computed: {
|
2023-08-28 22:47:22 +00:00
|
|
|
player() {
|
|
|
|
return this.$store.state.player
|
2023-08-27 20:20:34 +00:00
|
|
|
},
|
|
|
|
},
|
2024-01-10 14:25:54 +00:00
|
|
|
methods: {
|
|
|
|
toUrl(url) {
|
2024-01-11 20:41:37 +00:00
|
|
|
return `/${encodeUrl(url)}`
|
2024-01-10 14:25:54 +00:00
|
|
|
},
|
|
|
|
},
|
2023-08-27 20:20:34 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
div {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
2023-08-28 16:18:25 +00:00
|
|
|
width: 40%;
|
2023-08-27 20:20:34 +00:00
|
|
|
}
|
|
|
|
</style>
|