audiobookshelf/client/pages/index.vue

41 lines
904 B
Vue
Raw Normal View History

2021-08-18 00:01:11 +02:00
<template>
<div class="page" :class="streamAudiobook ? 'streaming' : ''">
<!-- <app-book-shelf-toolbar /> -->
2021-09-23 03:40:35 +02:00
<!-- <div class="flex h-full">
<app-side-rail />
<div class="flex-grow"> -->
<!-- <app-book-shelf /> -->
2021-09-23 03:40:35 +02:00
<!-- </div> -->
<!-- </div> -->
2021-09-28 13:44:40 +02:00
<div class="flex h-full">
<app-side-rail />
<div class="flex-grow">
<app-book-shelf-toolbar is-home />
<app-book-shelf-categorized />
</div>
</div>
2021-08-18 00:01:11 +02:00
</div>
</template>
<script>
export default {
asyncData({ redirect, store }) {
var currentLibraryId = store.state.libraries.currentLibraryId
console.log('Redir', currentLibraryId)
redirect(`/library/${currentLibraryId}`)
},
data() {
return {}
},
2021-08-18 00:01:11 +02:00
computed: {
streamAudiobook() {
return this.$store.state.streamAudiobook
}
},
methods: {},
mounted() {},
beforeDestroy() {}
}
</script>