mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-30 23:54:30 +02:00
Cleanup old unused and missing vars
This commit is contained in:
parent
f57f0e4e0d
commit
0b9b0341b5
6 changed files with 15 additions and 10 deletions
|
@ -1,12 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div id="streamContainer">
|
<div id="streamContainer">
|
||||||
<app-audio-player ref="audioPlayer" :playing.sync="isPlaying" :bookmarks="bookmarks" :sleep-timer-running="isSleepTimerRunning" :sleep-time-remaining="sleepTimeRemaining" @selectPlaybackSpeed="showPlaybackSpeedModal = true" @updateTime="(t) => (currentTime = t)" @showSleepTimer="showSleepTimer" @showBookmarks="showBookmarks" @hook:mounted="audioPlayerMounted" />
|
<app-audio-player ref="audioPlayer" :playing.sync="isPlaying" :bookmarks="bookmarks" :sleep-timer-running="isSleepTimerRunning" :sleep-time-remaining="sleepTimeRemaining" @selectPlaybackSpeed="showPlaybackSpeedModal = true" @updateTime="(t) => (currentTime = t)" @showSleepTimer="showSleepTimer" @showBookmarks="showBookmarks" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<modals-playback-speed-modal v-model="showPlaybackSpeedModal" :playback-rate.sync="playbackSpeed" @update:playbackRate="updatePlaybackSpeed" @change="changePlaybackSpeed" />
|
<modals-playback-speed-modal v-model="showPlaybackSpeedModal" :playback-rate.sync="playbackSpeed" @update:playbackRate="updatePlaybackSpeed" @change="changePlaybackSpeed" />
|
||||||
<modals-sleep-timer-modal v-model="showSleepTimerModal" :current-time="sleepTimeRemaining" :sleep-timer-running="isSleepTimerRunning" :current-end-of-chapter-time="currentEndOfChapterTime" @change="selectSleepTimeout" @cancel="cancelSleepTimer" @increase="increaseSleepTimer" @decrease="decreaseSleepTimer" />
|
<modals-sleep-timer-modal v-model="showSleepTimerModal" :current-time="sleepTimeRemaining" :sleep-timer-running="isSleepTimerRunning" :current-end-of-chapter-time="currentEndOfChapterTime" @change="selectSleepTimeout" @cancel="cancelSleepTimer" @increase="increaseSleepTimer" @decrease="decreaseSleepTimer" />
|
||||||
<modals-bookmarks-modal v-model="showBookmarksModal" :audiobook-id="audiobookId" :bookmarks="bookmarks" :current-time="currentTime" @select="selectBookmark" />
|
<modals-bookmarks-modal v-model="showBookmarksModal" :bookmarks="bookmarks" :current-time="currentTime" @select="selectBookmark" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ export default {
|
||||||
currentTime: 0,
|
currentTime: 0,
|
||||||
isSleepTimerRunning: false,
|
isSleepTimerRunning: false,
|
||||||
sleepTimerEndTime: 0,
|
sleepTimerEndTime: 0,
|
||||||
sleepTimerRemaining: 0,
|
sleepTimeRemaining: 0,
|
||||||
onSleepTimerEndedListener: null,
|
onSleepTimerEndedListener: null,
|
||||||
onSleepTimerSetListener: null,
|
onSleepTimerSetListener: null,
|
||||||
sleepInterval: null,
|
sleepInterval: null,
|
||||||
|
|
|
@ -105,9 +105,9 @@ export default {
|
||||||
networkConnected() {
|
networkConnected() {
|
||||||
return this.$store.state.networkConnected
|
return this.$store.state.networkConnected
|
||||||
},
|
},
|
||||||
serverConnectionConfigs() {
|
// serverConnectionConfigs() {
|
||||||
return this.deviceData ? this.deviceData.serverConnectionConfigs || [] : []
|
// return this.deviceData ? this.deviceData.serverConnectionConfigs || [] : []
|
||||||
},
|
// },
|
||||||
lastServerConnectionConfigId() {
|
lastServerConnectionConfigId() {
|
||||||
return this.deviceData ? this.deviceData.lastServerConnectionConfigId : null
|
return this.deviceData ? this.deviceData.lastServerConnectionConfigId : null
|
||||||
},
|
},
|
||||||
|
|
|
@ -73,6 +73,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async checkForUpdate() {
|
async checkForUpdate() {
|
||||||
|
if (this.$platform == 'web') return
|
||||||
console.log('Checking for app update')
|
console.log('Checking for app update')
|
||||||
const result = await AppUpdate.getAppUpdateInfo()
|
const result = await AppUpdate.getAppUpdateInfo()
|
||||||
if (!result) {
|
if (!result) {
|
||||||
|
|
|
@ -124,6 +124,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async fetchCategories() {
|
async fetchCategories() {
|
||||||
|
if (!this.currentLibraryId) return null
|
||||||
var categories = await this.$axios
|
var categories = await this.$axios
|
||||||
.$get(`/api/libraries/${this.currentLibraryId}/personalized?minified=1`)
|
.$get(`/api/libraries/${this.currentLibraryId}/personalized?minified=1`)
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<!-- <p class="absolute bottom-16 left-0 right-0 px-2 text-center text-error"><strong>Important!</strong> This app requires that you are running <u>your own server</u> and does not provide any content.</p> -->
|
<!-- <p class="absolute bottom-16 left-0 right-0 px-2 text-center text-error"><strong>Important!</strong> This app requires that you are running <u>your own server</u> and does not provide any content.</p> -->
|
||||||
|
|
||||||
<connection-server-connect-form :server-connection-configs="serverConnectionConfigs" :last-server-connection-config="lastServerConnectionConfig" />
|
<connection-server-connect-form />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center justify-center pt-4 fixed bottom-4 left-0 right-0">
|
<div class="flex items-center justify-center pt-4 fixed bottom-4 left-0 right-0">
|
||||||
|
|
|
@ -3,13 +3,16 @@ import { App } from '@capacitor/app'
|
||||||
import { Dialog } from '@capacitor/dialog'
|
import { Dialog } from '@capacitor/dialog'
|
||||||
import { StatusBar, Style } from '@capacitor/status-bar';
|
import { StatusBar, Style } from '@capacitor/status-bar';
|
||||||
import { formatDistance, format } from 'date-fns'
|
import { formatDistance, format } from 'date-fns'
|
||||||
|
import { Capacitor } from '@capacitor/core';
|
||||||
|
|
||||||
Vue.prototype.$eventBus = new Vue()
|
Vue.prototype.$eventBus = new Vue()
|
||||||
|
|
||||||
const setStatusBarStyleDark = async () => {
|
if (Capacitor.getPlatform() != 'web') {
|
||||||
await StatusBar.setStyle({ style: Style.Dark })
|
const setStatusBarStyleDark = async () => {
|
||||||
|
await StatusBar.setStyle({ style: Style.Dark })
|
||||||
|
}
|
||||||
|
setStatusBarStyleDark()
|
||||||
}
|
}
|
||||||
setStatusBarStyleDark()
|
|
||||||
|
|
||||||
App.addListener('backButton', async ({ canGoBack }) => {
|
App.addListener('backButton', async ({ canGoBack }) => {
|
||||||
if (!canGoBack) {
|
if (!canGoBack) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue