2018-08-11 07:47:10 +02:00
|
|
|
<template>
|
2025-02-04 22:00:48 +01:00
|
|
|
<section class="section tabs-section">
|
2018-08-11 07:47:10 +02:00
|
|
|
<div class="container">
|
|
|
|
<div class="columns is-centered">
|
|
|
|
<div class="column is-four-fifths">
|
|
|
|
<div class="tabs is-centered is-small">
|
|
|
|
<ul>
|
2022-05-29 18:49:00 +02:00
|
|
|
<router-link
|
|
|
|
v-slot="{ navigate, isActive }"
|
2023-11-21 15:45:00 +01:00
|
|
|
:to="{ name: 'music-history' }"
|
2022-05-29 18:49:00 +02:00
|
|
|
custom
|
|
|
|
>
|
2022-02-19 06:39:14 +01:00
|
|
|
<li :class="{ 'is-active': isActive }">
|
2022-02-19 06:18:01 +01:00
|
|
|
<a @click="navigate" @keypress.enter="navigate">
|
2023-11-21 15:25:27 +01:00
|
|
|
<mdicon class="icon is-small" name="history" size="16" />
|
2024-03-30 11:17:28 +01:00
|
|
|
<span
|
|
|
|
class="is-hidden-mobile"
|
|
|
|
v-text="$t('page.music.tabs.history')"
|
|
|
|
/>
|
2022-02-19 06:18:01 +01:00
|
|
|
</a>
|
|
|
|
</li>
|
2018-08-11 07:47:10 +02:00
|
|
|
</router-link>
|
2022-05-29 18:49:00 +02:00
|
|
|
<router-link
|
|
|
|
v-slot="{ navigate, isActive }"
|
2023-07-10 20:54:52 +02:00
|
|
|
:to="{ name: 'music-artists' }"
|
2022-05-29 18:49:00 +02:00
|
|
|
custom
|
|
|
|
>
|
2022-02-19 06:39:14 +01:00
|
|
|
<li :class="{ 'is-active': isActive }">
|
2022-02-19 06:18:01 +01:00
|
|
|
<a @click="navigate" @keypress.enter="navigate">
|
2023-06-30 21:41:40 +02:00
|
|
|
<mdicon
|
|
|
|
class="icon is-small"
|
|
|
|
name="account-music"
|
|
|
|
size="16"
|
|
|
|
/>
|
2024-03-30 11:17:28 +01:00
|
|
|
<span
|
|
|
|
class="is-hidden-mobile"
|
|
|
|
v-text="$t('page.music.tabs.artists')"
|
|
|
|
/>
|
2022-02-19 06:18:01 +01:00
|
|
|
</a>
|
|
|
|
</li>
|
2018-08-11 07:47:10 +02:00
|
|
|
</router-link>
|
2022-05-29 18:49:00 +02:00
|
|
|
<router-link
|
|
|
|
v-slot="{ navigate, isActive }"
|
2023-07-10 20:54:52 +02:00
|
|
|
:to="{ name: 'music-albums' }"
|
2022-05-29 18:49:00 +02:00
|
|
|
custom
|
|
|
|
>
|
2022-02-19 06:39:14 +01:00
|
|
|
<li :class="{ 'is-active': isActive }">
|
2022-02-19 06:18:01 +01:00
|
|
|
<a @click="navigate" @keypress.enter="navigate">
|
2023-06-30 21:41:40 +02:00
|
|
|
<mdicon class="icon is-small" name="album" size="16" />
|
2024-03-30 11:17:28 +01:00
|
|
|
<span
|
|
|
|
class="is-hidden-mobile"
|
|
|
|
v-text="$t('page.music.tabs.albums')"
|
|
|
|
/>
|
2022-02-19 06:18:01 +01:00
|
|
|
</a>
|
|
|
|
</li>
|
2018-08-11 07:47:10 +02:00
|
|
|
</router-link>
|
2022-05-29 18:49:00 +02:00
|
|
|
<router-link
|
|
|
|
v-slot="{ navigate, isActive }"
|
2023-07-10 20:54:52 +02:00
|
|
|
:to="{ name: 'music-genres' }"
|
2022-05-29 18:49:00 +02:00
|
|
|
custom
|
|
|
|
>
|
2022-02-19 06:39:14 +01:00
|
|
|
<li :class="{ 'is-active': isActive }">
|
2022-02-19 06:18:01 +01:00
|
|
|
<a @click="navigate" @keypress.enter="navigate">
|
2023-06-30 21:41:40 +02:00
|
|
|
<mdicon class="icon is-small" name="speaker" size="16" />
|
2024-03-30 11:17:28 +01:00
|
|
|
<span
|
|
|
|
class="is-hidden-mobile"
|
|
|
|
v-text="$t('page.music.tabs.genres')"
|
|
|
|
/>
|
2022-02-19 06:18:01 +01:00
|
|
|
</a>
|
|
|
|
</li>
|
2018-10-26 16:17:18 +01:00
|
|
|
</router-link>
|
2022-05-29 18:49:00 +02:00
|
|
|
<router-link
|
|
|
|
v-slot="{ navigate, isActive }"
|
2023-07-12 23:02:02 +02:00
|
|
|
:to="{ name: 'music-composers' }"
|
2022-05-29 18:49:00 +02:00
|
|
|
custom
|
|
|
|
>
|
2022-02-19 06:39:14 +01:00
|
|
|
<li :class="{ 'is-active': isActive }">
|
2022-02-19 06:18:01 +01:00
|
|
|
<a @click="navigate" @keypress.enter="navigate">
|
2023-06-30 21:41:40 +02:00
|
|
|
<mdicon
|
|
|
|
class="icon is-small"
|
|
|
|
name="book-open-page-variant"
|
|
|
|
size="16"
|
|
|
|
/>
|
2024-03-30 11:17:28 +01:00
|
|
|
<span
|
|
|
|
class="is-hidden-mobile"
|
|
|
|
v-text="$t('page.music.tabs.composers')"
|
|
|
|
/>
|
2022-02-19 06:18:01 +01:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-10-23 10:48:11 +01:00
|
|
|
</router-link>
|
2022-05-29 18:49:00 +02:00
|
|
|
<router-link
|
|
|
|
v-if="spotify_enabled"
|
|
|
|
v-slot="{ navigate, isActive }"
|
2023-07-12 21:30:52 +02:00
|
|
|
:to="{ name: 'music-spotify' }"
|
2022-05-29 18:49:00 +02:00
|
|
|
custom
|
|
|
|
>
|
2022-02-19 06:39:14 +01:00
|
|
|
<li :class="{ 'is-active': isActive }">
|
2022-02-19 06:18:01 +01:00
|
|
|
<a @click="navigate" @keypress.enter="navigate">
|
2023-06-30 21:41:40 +02:00
|
|
|
<mdicon class="icon is-small" name="spotify" size="16" />
|
2024-03-30 11:17:28 +01:00
|
|
|
<span
|
|
|
|
class="is-hidden-mobile"
|
|
|
|
v-text="$t('page.music.tabs.spotify')"
|
|
|
|
/>
|
2022-02-19 06:18:01 +01:00
|
|
|
</a>
|
|
|
|
</li>
|
2018-08-11 07:47:10 +02:00
|
|
|
</router-link>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2024-08-22 21:31:59 +02:00
|
|
|
import { useServicesStore } from '@/stores/services'
|
|
|
|
|
2018-08-11 07:47:10 +02:00
|
|
|
export default {
|
|
|
|
name: 'TabsMusic',
|
|
|
|
|
2024-08-22 21:31:59 +02:00
|
|
|
setup() {
|
|
|
|
return { servicesStore: useServicesStore() }
|
|
|
|
},
|
|
|
|
|
2018-08-11 07:47:10 +02:00
|
|
|
computed: {
|
2022-02-19 06:39:14 +01:00
|
|
|
spotify_enabled() {
|
2024-08-22 21:31:59 +02:00
|
|
|
return this.servicesStore.spotify.webapi_token_valid
|
2018-08-11 07:47:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|