mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-24 19:11:44 +01:00
38 lines
823 B
Vue
38 lines
823 B
Vue
<template>
|
|
<div class="page" :class="streamLibraryItem ? 'streaming' : ''">
|
|
<div class="flex h-full">
|
|
<app-side-rail class="hidden md:block" />
|
|
<div class="flex-grow">
|
|
<app-book-shelf-toolbar is-home />
|
|
<app-book-shelf-categorized />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
async asyncData({ store, params, redirect }) {
|
|
var libraryId = params.library
|
|
var library = await store.dispatch('libraries/fetch', libraryId)
|
|
if (!library) {
|
|
return redirect(`/oops?message=Library "${libraryId}" not found`)
|
|
}
|
|
return {
|
|
library
|
|
}
|
|
},
|
|
data() {
|
|
return {}
|
|
},
|
|
computed: {
|
|
streamLibraryItem() {
|
|
return this.$store.state.streamLibraryItem
|
|
}
|
|
},
|
|
methods: {},
|
|
mounted() {},
|
|
beforeDestroy() {}
|
|
}
|
|
</script>
|