Fix ebook url, add opus to uploader, set chapters after track updates

This commit is contained in:
advplyr 2021-10-02 15:36:33 -05:00
parent 78449d918b
commit b20cbb020a
6 changed files with 19 additions and 9 deletions

View file

@ -17,6 +17,8 @@
<controls-global-search />
<div class="flex-grow" />
<span v-if="showExperimentalFeatures" class="material-icons text-4xl text-warning pr-4">logo_dev</span>
<nuxt-link v-if="userCanUpload" to="/upload" class="outline-none hover:text-gray-200 cursor-pointer w-8 h-8 flex items-center justify-center">
<span class="material-icons">upload</span>
</nuxt-link>
@ -117,6 +119,9 @@ export default {
},
processingBatch() {
return this.$store.state.processingBatch
},
showExperimentalFeatures() {
return this.$store.state.showExperimentalFeatures
}
},
methods: {

View file

@ -70,7 +70,7 @@ export default {
}
},
fullUrl() {
var serverUrl = process.env.serverUrl
var serverUrl = process.env.serverUrl || '/local'
return `${serverUrl}/${this.url}`
}
},

View file

@ -120,9 +120,9 @@ export default {
title: null,
author: null,
series: null,
acceptedAudioFormats: ['.mp3', '.m4b', '.m4a', '.flac'],
acceptedAudioFormats: ['.mp3', '.m4b', '.m4a', '.flac', '.opus'],
acceptedImageFormats: ['.png', '.jpg', '.jpeg', '.webp'],
inputAccept: '.png, .jpg, .jpeg, .webp, .mp3, .m4b, .m4a, .flac',
inputAccept: '.png, .jpg, .jpeg, .webp, .mp3, .m4b, .m4a, .flac, .opus',
isDragOver: false,
showUploader: true,
validAudioFiles: [],

View file

@ -6,7 +6,8 @@ module.exports = {
safelist: [
'bg-success',
'bg-red-600',
'py-1.5'
'py-1.5',
'bg-info'
]
}
},