2017-06-23 21:00:42 +00:00
|
|
|
<template>
|
2017-06-29 21:26:57 +00:00
|
|
|
<div class="main library pusher">
|
2017-06-23 21:00:42 +00:00
|
|
|
<div class="ui secondary pointing menu">
|
2018-06-30 13:28:47 +00:00
|
|
|
<router-link class="ui item" to="/library" exact>
|
2018-07-01 13:31:34 +00:00
|
|
|
<translate>Browse</translate>
|
2018-06-30 13:28:47 +00:00
|
|
|
</router-link>
|
|
|
|
<router-link class="ui item" to="/library/artists" exact>
|
2018-07-01 13:31:34 +00:00
|
|
|
<translate>Artists</translate>
|
2018-06-30 13:28:47 +00:00
|
|
|
</router-link>
|
|
|
|
<router-link class="ui item" to="/library/radios" exact>
|
2018-07-01 13:31:34 +00:00
|
|
|
<translate>Radios</translate>
|
2018-06-30 13:28:47 +00:00
|
|
|
</router-link>
|
|
|
|
<router-link class="ui item" to="/library/playlists" exact>
|
2018-07-01 13:31:34 +00:00
|
|
|
<translate>Playlists</translate>
|
2018-06-30 13:28:47 +00:00
|
|
|
</router-link>
|
2017-12-12 22:41:47 +00:00
|
|
|
<div class="ui secondary right menu">
|
2018-05-24 20:39:32 +00:00
|
|
|
<router-link v-if="showImports" class="ui item" to="/library/import/launch" exact>
|
2018-07-01 13:31:34 +00:00
|
|
|
<translate>Import</translate>
|
2018-04-15 10:45:56 +00:00
|
|
|
</router-link>
|
2018-05-24 20:39:32 +00:00
|
|
|
<router-link v-if="showImports" class="ui item" to="/library/import/batches">
|
2018-07-01 13:31:34 +00:00
|
|
|
<translate>Import batches</translate>
|
2018-02-22 22:35:56 +00:00
|
|
|
</router-link>
|
2017-12-12 22:41:47 +00:00
|
|
|
</div>
|
2017-06-23 21:00:42 +00:00
|
|
|
</div>
|
2017-12-17 18:42:58 +00:00
|
|
|
<router-view :key="$route.fullPath"></router-view>
|
2017-06-23 21:00:42 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2018-05-24 20:39:32 +00:00
|
|
|
computed: {
|
|
|
|
showImports () {
|
|
|
|
return this.$store.state.auth.availablePermissions['upload'] || this.$store.state.auth.availablePermissions['library']
|
|
|
|
}
|
|
|
|
}
|
2017-06-23 21:00:42 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
|
|
<style lang="scss">
|
2018-02-15 21:34:14 +00:00
|
|
|
@import '../../style/vendor/media';
|
|
|
|
|
2017-06-29 21:26:57 +00:00
|
|
|
.library.pusher > .ui.secondary.menu {
|
2018-02-15 21:34:14 +00:00
|
|
|
@include media(">tablet") {
|
|
|
|
margin: 0 2.5rem;
|
|
|
|
}
|
2017-12-24 21:59:49 +00:00
|
|
|
.item {
|
|
|
|
padding-top: 1.5em;
|
|
|
|
padding-bottom: 1.5em;
|
|
|
|
}
|
2017-06-23 21:00:42 +00:00
|
|
|
}
|
|
|
|
|
2017-06-29 21:26:57 +00:00
|
|
|
.library {
|
2017-06-23 21:00:42 +00:00
|
|
|
.ui.segment.head {
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
padding: 0;
|
|
|
|
.segment-content {
|
|
|
|
margin: 0 auto;
|
2018-02-15 21:34:14 +00:00
|
|
|
padding: 2em;
|
|
|
|
@include media(">tablet") {
|
|
|
|
padding: 4em;
|
|
|
|
}
|
2017-06-23 21:00:42 +00:00
|
|
|
}
|
|
|
|
&.with-background {
|
|
|
|
.header {
|
|
|
|
&, .sub, a {
|
|
|
|
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
|
|
|
|
color: white !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.segment-content {
|
|
|
|
background-color: rgba(0, 0, 0, 0.5)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|