From 4cde00b33757df47b1ef995f8a50c3d56d53ac4d Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sun, 6 Nov 2022 16:38:01 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81?= =?UTF-8?q?=D0=B0,=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=20=D0=BD=D0=B0?= =?UTF-8?q?=D0=B4=20=D0=B8=D0=BD=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=B5=D0=B9=20=D0=BE=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Search/BookView/BookView.vue | 46 +++++++------------ client/components/Search/Search.vue | 12 +++-- .../SelectGenreDialog/SelectGenreDialog.vue | 2 +- .../SelectLangDialog/SelectLangDialog.vue | 2 +- .../SelectLibRateDialog.vue | 2 +- client/store/root.js | 1 + 6 files changed, 30 insertions(+), 35 deletions(-) diff --git a/client/components/Search/BookView/BookView.vue b/client/components/Search/BookView/BookView.vue index 7baebb7..463bbef 100644 --- a/client/components/Search/BookView/BookView.vue +++ b/client/components/Search/BookView/BookView.vue @@ -33,18 +33,20 @@
-
- {{ bookAuthor }} +
+
+ {{ bookAuthor }} +
{{ book.serno }}.
-
+
{{ book.title }}
-
+
{{ bookSeries }}
@@ -53,15 +55,19 @@ {{ bookSize }}, {{ book.ext }}
-
+
+ [ . . . ] +
+ +
(скачать)
-
+
-
+
(читать)
@@ -107,6 +113,7 @@ class BookView { }; showRates = true; + showInfo = true; showGenres = true; showDeleted = false; showDates = false; @@ -119,6 +126,7 @@ class BookView { const settings = this.settings; this.showRates = settings.showRates; + this.showInfo = settings.showInfo; this.showGenres = settings.showGenres; this.showDates = settings.showDates; this.showDeleted = settings.showDeleted; @@ -183,28 +191,8 @@ class BookView { return utils.sqlDateFormat(this.book.date); } - selectAuthor() { - this.$emit('bookEvent', {action: 'authorClick', book: this.book}); - } - - selectSeries() { - this.$emit('bookEvent', {action: 'seriesClick', book: this.book}); - } - - selectTitle() { - this.$emit('bookEvent', {action: 'titleClick', book: this.book}); - } - - download() { - this.$emit('bookEvent', {action: 'download', book: this.book}); - } - - copyLink() { - this.$emit('bookEvent', {action: 'copyLink', book: this.book}); - } - - readBook() { - this.$emit('bookEvent', {action: 'readBook', book: this.book}); + emit(action) { + this.$emit('bookEvent', {action, book: this.book}); } } diff --git a/client/components/Search/Search.vue b/client/components/Search/Search.vue index bd66a47..fe70ec7 100644 --- a/client/components/Search/Search.vue +++ b/client/components/Search/Search.vue @@ -9,7 +9,7 @@ Новый поиск - + @@ -232,6 +232,7 @@ + @@ -330,6 +331,9 @@ const componentOptions = { showRates(newValue) { this.setSetting('showRates', newValue); }, + showInfo(newValue) { + this.setSetting('showInfo', newValue); + }, showGenres(newValue) { this.setSetting('showGenres', newValue); }, @@ -430,6 +434,7 @@ class Search { //settings showCounts = true; showRates = true; + showInfo = true; showGenres = true; showDates = true; showDeleted = false; @@ -521,6 +526,7 @@ class Search { this.expandedSeries = _.cloneDeep(settings.expandedSeries); this.showCounts = settings.showCounts; this.showRates = settings.showRates; + this.showInfo = settings.showInfo; this.showGenres = settings.showGenres; this.showDates = settings.showDates; this.showDeleted = settings.showDeleted; diff --git a/client/components/Search/SelectGenreDialog/SelectGenreDialog.vue b/client/components/Search/SelectGenreDialog/SelectGenreDialog.vue index 66037d1..8c558c5 100644 --- a/client/components/Search/SelectGenreDialog/SelectGenreDialog.vue +++ b/client/components/Search/SelectGenreDialog/SelectGenreDialog.vue @@ -2,7 +2,7 @@