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

112 lines
3.6 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"><i class="mdi mdi-web" /></span>
2022-02-19 00:18:01 -05:00
<span class="">Browse</span>
</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"
><i class="mdi mdi-artist"
/></span>
2022-02-19 00:18:01 -05:00
<span class="">Artists</span>
</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"
><i class="mdi mdi-album"
/></span>
2022-02-19 00:18:01 -05:00
<span class="">Albums</span>
</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"
><i class="mdi mdi-speaker"
/></span>
2022-02-19 00:18:01 -05:00
<span class="">Genres</span>
</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"
><i class="mdi mdi-book-open-page-variant"
/></span>
2022-02-19 00:18:01 -05:00
<span class="">Composers</span>
</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"
><i class="mdi mdi-spotify"
/></span>
2022-02-19 00:18:01 -05:00
<span class="">Spotify</span>
</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>