Skip to content
Snippets Groups Projects
Library.vue 1.83 KiB
Newer Older
  • Learn to ignore specific revisions
  •     <div class="ui secondary pointing menu">
    
    Eliot Berriot's avatar
    Eliot Berriot committed
          <router-link class="ui item" to="/library" exact>
    
            <translate>Browse</translate>
    
    Eliot Berriot's avatar
    Eliot Berriot committed
          </router-link>
          <router-link class="ui item" to="/library/artists" exact>
    
            <translate>Artists</translate>
    
    Eliot Berriot's avatar
    Eliot Berriot committed
          </router-link>
          <router-link class="ui item" to="/library/radios" exact>
    
            <translate>Radios</translate>
    
    Eliot Berriot's avatar
    Eliot Berriot committed
          </router-link>
          <router-link class="ui item" to="/library/playlists" exact>
    
            <translate>Playlists</translate>
    
    Eliot Berriot's avatar
    Eliot Berriot committed
          </router-link>
    
          <div class="ui secondary right menu">
    
            <router-link v-if="showImports" class="ui item" to="/library/import/launch" exact>
    
              <translate>Import</translate>
    
    Bat's avatar
    Bat committed
            </router-link>
    
            <router-link v-if="showImports" class="ui item" to="/library/import/batches">
    
              <translate>Import batches</translate>
    
        <router-view :key="$route.fullPath"></router-view>
    
      computed: {
        showImports () {
          return this.$store.state.auth.availablePermissions['upload'] || this.$store.state.auth.availablePermissions['library']
        }
      }
    
    }
    </script>
    
    <!-- Add "scoped" attribute to limit CSS to this component only -->
    <style lang="scss">
    
    @import '../../style/vendor/media';
    
    
      .ui.segment.head {
        background-size: cover;
        background-position: center;
        padding: 0;
        .segment-content {
          margin: 0 auto;
    
          padding: 2em;
          @include media(">tablet") {
            padding: 4em;
          }
    
            &, .sub {
    
              text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
              color: white !important;
            }
          }
          .segment-content {
            background-color: rgba(0, 0, 0, 0.5)
          }
    
        }
      }