owntone-server/web-src/src/components/TabsMusic.vue

114 lines
3.8 KiB
Vue
Raw Normal View History

<template>
<section class="section fd-tabs-section">
<div class="container">
<div class="columns is-centered">
<div class="column is-four-fifths">
<div class="tabs is-centered is-small">
<ul>
<router-link
v-slot="{ navigate, isActive }"
to="/music/browse"
custom
>
<li :class="{ 'is-active': isActive }">
2022-02-19 00:18:01 -05:00
<a @click="navigate" @keypress.enter="navigate">
<span class="icon is-small"
><mdicon name="web" size="16"
/></span>
<span v-text="$t('page.browse.tabs.browse')" />
2022-02-19 00:18:01 -05:00
</a>
</li>
</router-link>
<router-link
v-slot="{ navigate, isActive }"
to="/music/artists"
custom
>
<li :class="{ 'is-active': isActive }">
2022-02-19 00:18:01 -05:00
<a @click="navigate" @keypress.enter="navigate">
<span class="icon is-small"
><mdicon name="account-music" size="16"
/></span>
<span v-text="$t('page.browse.tabs.artists')" />
2022-02-19 00:18:01 -05:00
</a>
</li>
</router-link>
<router-link
v-slot="{ navigate, isActive }"
to="/music/albums"
custom
>
<li :class="{ 'is-active': isActive }">
2022-02-19 00:18:01 -05:00
<a @click="navigate" @keypress.enter="navigate">
<span class="icon is-small"
><mdicon name="album" size="16"
/></span>
<span v-text="$t('page.browse.tabs.albums')" />
2022-02-19 00:18:01 -05:00
</a>
</li>
</router-link>
<router-link
v-slot="{ navigate, isActive }"
to="/music/genres"
custom
>
<li :class="{ 'is-active': isActive }">
2022-02-19 00:18:01 -05:00
<a @click="navigate" @keypress.enter="navigate">
<span class="icon is-small"
><mdicon name="speaker" size="16"
/></span>
<span v-text="$t('page.browse.tabs.genres')" />
2022-02-19 00:18:01 -05:00
</a>
</li>
</router-link>
<router-link
v-slot="{ navigate, isActive }"
to="/music/composers"
custom
>
<li :class="{ 'is-active': isActive }">
2022-02-19 00:18:01 -05:00
<a @click="navigate" @keypress.enter="navigate">
<span class="icon is-small"
><mdicon name="book-open-page-variant" size="16"
/></span>
<span v-text="$t('page.browse.tabs.composers')" />
2022-02-19 00:18:01 -05:00
</a>
</li>
2021-10-23 05:48:11 -04:00
</router-link>
<router-link
v-if="spotify_enabled"
v-slot="{ navigate, isActive }"
to="/music/spotify"
custom
>
<li :class="{ 'is-active': isActive }">
2022-02-19 00:18:01 -05:00
<a @click="navigate" @keypress.enter="navigate">
<span class="icon is-small"
><mdicon name="spotify" size="16"
/></span>
<span v-text="$t('page.browse.tabs.spotify')" />
2022-02-19 00:18:01 -05:00
</a>
</li>
</router-link>
</ul>
</div>
</div>
</div>
</div>
</section>
</template>
<script>
export default {
name: 'TabsMusic',
computed: {
spotify_enabled() {
return this.$store.state.spotify.webapi_token_valid
}
}
}
</script>
<style></style>