init runtime.public ;; cleared up misc errors

This commit is contained in:
wommy 2024-09-24 02:59:35 -04:00
parent 2baf50da12
commit e77609ed57
10 changed files with 17 additions and 18 deletions

View file

@ -112,11 +112,10 @@ export default {
return this.$store.state.user.user
},
demoShareUrl() {
return `${window.origin}${this.$config.routerBasePath}/share/${this.newShareSlug}`
return `${window.origin}${this.$config.public.routerBasePath}/share/${this.newShareSlug}`
},
currentShareUrl() {
if (!this.currentShare) return ''
return `${window.origin}${this.$config.routerBasePath}/share/${this.currentShare.slug}`
return this.currentShare ? `${window.origin}${this.$config.public.routerBasePath}/share/${this.currentShare.slug}` : ''
},
currentShareTimeRemaining() {
if (!this.currentShare) return 'Error'

View file

@ -55,7 +55,7 @@ export default {
return this.item.coverPath
},
coverUrl() {
if (!this.coverPath) return `${this.$config.routerBasePath}/book_placeholder.jpg`
if (!this.coverPath) return `${this.$config.public.routerBasePath}/book_placeholder.jpg`
return this.$store.getters['globals/getLibraryItemCoverSrcById'](this.libraryItemId)
},
bookCoverAspectRatio() {
@ -99,4 +99,4 @@ export default {
.queue-item-row-content {
max-width: calc(100% - 48px - 128px);
}
</style>
</style>