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-04-15 10:45:56 +00:00
|
|
|
<router-link class="ui item" to="/library" exact><i18next path="Browse"/></router-link>
|
|
|
|
<router-link class="ui item" to="/library/artists" exact><i18next path="Artists"/></router-link>
|
|
|
|
<router-link class="ui item" to="/library/radios" exact><i18next path="Radios"/></router-link>
|
|
|
|
<router-link class="ui item" to="/library/playlists" exact><i18next path="Playlists"/></router-link>
|
2017-12-12 22:41:47 +00:00
|
|
|
<div class="ui secondary right menu">
|
2018-04-27 20:23:25 +00:00
|
|
|
<router-link
|
|
|
|
v-if="$store.state.auth.authenticated"
|
|
|
|
class="ui item"
|
|
|
|
:to="{name: 'library.requests', query: {status: 'pending' }}"
|
|
|
|
exact>
|
2018-04-15 10:45:56 +00:00
|
|
|
<i18next path="Requests"/>
|
2018-02-22 22:35:56 +00:00
|
|
|
</router-link>
|
2018-05-18 17:09:47 +00:00
|
|
|
<router-link v-if="$store.state.auth.availablePermissions['library']" class="ui item" to="/library/import/launch" exact>
|
2018-04-15 10:45:56 +00:00
|
|
|
<i18next path="Import"/>
|
|
|
|
</router-link>
|
2018-05-18 17:09:47 +00:00
|
|
|
<router-link v-if="$store.state.auth.availablePermissions['library']" class="ui item" to="/library/import/batches">
|
2018-04-15 10:45:56 +00:00
|
|
|
<i18next path="Import batches"/>
|
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-04-29 21:19:09 +00:00
|
|
|
name: '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>
|