From 3a26a1280705ac60465cb8151575e644fed52cf9 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Wed, 7 Dec 2022 18:16:09 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=20=D0=BD?= =?UTF-8?q?=D0=B0=D0=B4=20=D1=80=D0=B0=D1=81=D1=88=D0=B8=D1=80=D0=B5=D0=BD?= =?UTF-8?q?=D0=BD=D1=8B=D0=BC=20=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Search/BookView/BookView.vue | 12 +++++++----- .../components/Search/ExtendedList/ExtendedList.vue | 2 +- client/components/Search/Search.vue | 9 +++++++++ client/store/root.js | 1 + 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/client/components/Search/BookView/BookView.vue b/client/components/Search/BookView/BookView.vue index 0f2bca8..c70e237 100644 --- a/client/components/Search/BookView/BookView.vue +++ b/client/components/Search/BookView/BookView.vue @@ -33,7 +33,7 @@
-
+
{{ bookAuthor }}
@@ -46,7 +46,7 @@
{{ book.title }}
-
+
{{ bookSeries }}
@@ -79,10 +79,10 @@ {{ bookDate }}
-
-
- {{ book }} +
+
{{ book }}
+
@@ -117,6 +117,7 @@ class BookView { showGenres = true; showDeleted = false; showDates = false; + showJson = false; created() { this.loadSettings(); @@ -130,6 +131,7 @@ class BookView { this.showGenres = settings.showGenres; this.showDates = settings.showDates; this.showDeleted = settings.showDeleted; + this.showJson = settings.showJson; } get settings() { diff --git a/client/components/Search/ExtendedList/ExtendedList.vue b/client/components/Search/ExtendedList/ExtendedList.vue index d836118..19a19d5 100644 --- a/client/components/Search/ExtendedList/ExtendedList.vue +++ b/client/components/Search/ExtendedList/ExtendedList.vue @@ -9,7 +9,7 @@
diff --git a/client/components/Search/Search.vue b/client/components/Search/Search.vue index 0f3915f..7544c3c 100644 --- a/client/components/Search/Search.vue +++ b/client/components/Search/Search.vue @@ -227,6 +227,10 @@
{{ foundCountMessage }}
+ +
+ +
@@ -361,6 +365,9 @@ const componentOptions = { langDefault() { this.updateSearchFromRouteQuery(this.$route); }, + showJson(newValue) { + this.setSetting('showJson', newValue); + }, list: { handler(newValue) { this.updateGenreTreeIfNeeded(); @@ -433,6 +440,7 @@ class Search { langDefault = ''; limit = 20; extendedParams = false; + showJson = false; //stuff prevList = {}; @@ -525,6 +533,7 @@ class Search { this.expandedSeries = _.cloneDeep(settings.expandedSeries); this.abCacheEnabled = settings.abCacheEnabled; this.langDefault = settings.langDefault; + this.showJson = settings.showJson; } recvMessage(d) { diff --git a/client/store/root.js b/client/store/root.js index 1a868b1..58bc6a8 100644 --- a/client/store/root.js +++ b/client/store/root.js @@ -16,6 +16,7 @@ const state = { showDeleted: false, abCacheEnabled: true, langDefault: '', + showJson: false, }, };