New data model updates for bookshelf, covers, cards

This commit is contained in:
advplyr 2022-03-23 17:59:14 -05:00
parent 84bab5de1b
commit 03312390cb
16 changed files with 1094 additions and 454 deletions

View file

@ -2,6 +2,7 @@ import Vue from 'vue'
import { Network } from '@capacitor/network'
export const state = () => ({
streamLibraryItem: null,
streamAudiobook: null,
playingDownload: null,
playOnLoad: false,
@ -80,6 +81,9 @@ export const mutations = {
setPlayOnLoad(state, val) {
state.playOnLoad = val
},
setLibraryItemStream(state, libraryItem) {
state.streamLibraryItem = libraryItem
},
setStreamAudiobook(state, audiobook) {
if (audiobook) {
state.playingDownload = null
@ -111,12 +115,6 @@ export const mutations = {
state.networkConnected = val.connected
state.networkConnectionType = val.connectionType
},
setStreamListener(state, val) {
state.streamListener = val
},
removeStreamListener(state) {
state.streamListener = null
},
openReader(state, audiobook) {
state.selectedBook = audiobook
state.showReader = true