diff --git a/.gitignore b/.gitignore index 1eda8e1fa8..667264b0a9 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,8 @@ /metadata/ /client/.nuxt/ /client/dist/ +/client/dist +/client/.output/ /dist/ /deploy/ /coverage/ diff --git a/client/components/app/ConfigSideNav.vue b/client/components/app/ConfigSideNav.vue index adc99e5ae5..9efa5b07be 100644 --- a/client/components/app/ConfigSideNav.vue +++ b/client/components/app/ConfigSideNav.vue @@ -15,11 +15,11 @@
diff --git a/client/components/app/SideRail.vue b/client/components/app/SideRail.vue index dbbc4d2666..58a133f3ce 100644 --- a/client/components/app/SideRail.vue +++ b/client/components/app/SideRail.vue @@ -116,7 +116,7 @@ diff --git a/client/components/covers/AuthorImage.vue b/client/components/covers/AuthorImage.vue index 0192636339..dd4383bc40 100644 --- a/client/components/covers/AuthorImage.vue +++ b/client/components/covers/AuthorImage.vue @@ -55,8 +55,7 @@ export default { return this._author.updatedAt }, imgSrc() { - if (!this.imagePath) return null - return `${this.$config.routerBasePath}/api/authors/${this.authorId}/image?token=${this.userToken}&ts=${this.updatedAt}` + return this.imagePath ? `${this.$config.public.routerBasePath}/api/authors/${this.authorId}/image?token=${this.userToken}&ts=${this.updatedAt}` : null } }, methods: { diff --git a/client/components/modals/ShareModal.vue b/client/components/modals/ShareModal.vue index d0487fd386..9d73c50d6f 100644 --- a/client/components/modals/ShareModal.vue +++ b/client/components/modals/ShareModal.vue @@ -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' diff --git a/client/components/modals/player/QueueItemRow.vue b/client/components/modals/player/QueueItemRow.vue index 31f49aa9c7..a067075cc0 100644 --- a/client/components/modals/player/QueueItemRow.vue +++ b/client/components/modals/player/QueueItemRow.vue @@ -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); } - \ No newline at end of file + diff --git a/client/components/readers/EpubReader.vue b/client/components/readers/EpubReader.vue index 725e9cc1e6..35bea54291 100644 --- a/client/components/readers/EpubReader.vue +++ b/client/components/readers/EpubReader.vue @@ -15,7 +15,7 @@