2021-09-23 03:40:35 +02:00
|
|
|
<template>
|
|
|
|
<div class="page" :class="streamAudiobook ? 'streaming' : ''">
|
|
|
|
<div class="flex h-full">
|
|
|
|
<app-side-rail />
|
|
|
|
<div class="flex-grow">
|
2021-09-24 14:32:38 +02:00
|
|
|
<app-book-shelf-toolbar :page="id || ''" :selected-series.sync="selectedSeries" />
|
|
|
|
<app-book-shelf :page="id || ''" :selected-series.sync="selectedSeries" />
|
2021-09-23 03:40:35 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2021-09-24 14:32:38 +02:00
|
|
|
asyncData({ params, query, store, app }) {
|
|
|
|
if (query.filter) {
|
|
|
|
store.dispatch('user/updateUserSettings', { filterBy: query.filter })
|
|
|
|
}
|
2021-09-23 03:40:35 +02:00
|
|
|
return {
|
2021-09-24 14:32:38 +02:00
|
|
|
id: params.id,
|
|
|
|
selectedSeries: query.series ? app.$decode(query.series) : null
|
2021-09-23 03:40:35 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {}
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
streamAudiobook() {
|
|
|
|
return this.$store.state.streamAudiobook
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {},
|
|
|
|
mounted() {}
|
|
|
|
}
|
|
|
|
</script>
|