diff --git a/android/app/src/main/assets/capacitor.config.json b/android/app/src/main/assets/capacitor.config.json index cfa4b89b..518f1bbf 100644 --- a/android/app/src/main/assets/capacitor.config.json +++ b/android/app/src/main/assets/capacitor.config.json @@ -5,7 +5,7 @@ "bundledWebRuntime": false, "plugins": { "CapacitorHttp": { - "enabled": true + "enabled": false } } } diff --git a/capacitor.config.json b/capacitor.config.json index 3e6200b2..8b9b4e4f 100644 --- a/capacitor.config.json +++ b/capacitor.config.json @@ -5,7 +5,7 @@ "bundledWebRuntime": false, "plugins": { "CapacitorHttp": { - "enabled": true + "enabled": false } } } \ No newline at end of file diff --git a/components/app/SideDrawer.vue b/components/app/SideDrawer.vue index 447d6497..4f886533 100644 --- a/components/app/SideDrawer.vue +++ b/components/app/SideDrawer.vue @@ -139,8 +139,8 @@ export default { async logout() { await this.$hapticsImpact() if (this.user) { - await this.$axios.$post('/logout').catch((error) => { - console.error(error) + await this.$nativeHttp.post('/logout').catch((error) => { + console.error('Failed to logout', error) }) } diff --git a/components/bookshelf/LazyBookshelf.vue b/components/bookshelf/LazyBookshelf.vue index c99307d3..fad3308d 100644 --- a/components/bookshelf/LazyBookshelf.vue +++ b/components/bookshelf/LazyBookshelf.vue @@ -166,7 +166,7 @@ export default { const sfQueryString = this.currentSFQueryString ? this.currentSFQueryString + '&' : '' const fullQueryString = `?${sfQueryString}limit=${this.booksPerFetch}&page=${page}&minified=1&include=rssfeed,numEpisodesIncomplete` - const payload = await this.$axios.$get(`/api/libraries/${this.currentLibraryId}/${entityPath}${fullQueryString}`).catch((error) => { + const payload = await this.$nativeHttp.get(`/api/libraries/${this.currentLibraryId}/${entityPath}${fullQueryString}`).catch((error) => { console.error('failed to fetch books', error) return null }) diff --git a/components/cards/AuthorCard.vue b/components/cards/AuthorCard.vue index 65773719..06a602be 100644 --- a/components/cards/AuthorCard.vue +++ b/components/cards/AuthorCard.vue @@ -58,24 +58,7 @@ export default { return this._author.numBooks || 0 } }, - methods: { - async searchAuthor() { - this.searching = true - var response = await this.$axios.$post(`/api/authors/${this.authorId}/match`, { q: this.name }).catch((error) => { - console.error('Failed', error) - return null - }) - if (!response) { - this.$toast.error('Author not found') - } else if (response.updated) { - if (response.author.imagePath) this.$toast.success('Author was updated') - else this.$toast.success('Author was updated (no image found)') - } else { - this.$toast.info('No updates were made for Author') - } - this.searching = false - } - }, + methods: {}, mounted() {} } \ No newline at end of file diff --git a/components/connection/ServerConnectForm.vue b/components/connection/ServerConnectForm.vue index d87ffdc7..8c4efa6c 100644 --- a/components/connection/ServerConnectForm.vue +++ b/components/connection/ServerConnectForm.vue @@ -77,6 +77,7 @@