From cd7b8afb291a35db70859bd45ef4819ab9c0124e Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Mon, 14 Nov 2022 15:09:13 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=BD=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Search/Search.vue | 82 +--------- .../Search/SettingsDialog/SettingsDialog.vue | 151 ++++++++++++++++++ 2 files changed, 154 insertions(+), 79 deletions(-) create mode 100644 client/components/Search/SettingsDialog/SettingsDialog.vue diff --git a/client/components/Search/Search.vue b/client/components/Search/Search.vue index 4b4c505..58b17b1 100644 --- a/client/components/Search/Search.vue +++ b/client/components/Search/Search.vue @@ -210,42 +210,7 @@ - - - -
-
-
- Результатов на странице -
- -
- - - - - - - - -
- - -
- + @@ -263,6 +228,7 @@ import SeriesList from './SeriesList/SeriesList.vue'; import TitleList from './TitleList/TitleList.vue'; import PageScroller from './PageScroller/PageScroller.vue'; +import SettingsDialog from './SettingsDialog/SettingsDialog.vue'; import SelectGenreDialog from './SelectGenreDialog/SelectGenreDialog.vue'; import SelectLangDialog from './SelectLangDialog/SelectLangDialog.vue'; import SelectLibRateDialog from './SelectLibRateDialog/SelectLibRateDialog.vue'; @@ -290,6 +256,7 @@ const componentOptions = { SeriesList, TitleList, PageScroller, + SettingsDialog, SelectGenreDialog, SelectLangDialog, SelectLibRateDialog, @@ -328,27 +295,6 @@ const componentOptions = { this.updatePageCount(); }, - showCounts(newValue) { - this.setSetting('showCounts', newValue); - }, - showRates(newValue) { - this.setSetting('showRates', newValue); - }, - showInfo(newValue) { - this.setSetting('showInfo', newValue); - }, - showGenres(newValue) { - this.setSetting('showGenres', newValue); - }, - showDates(newValue) { - this.setSetting('showDates', newValue); - }, - showDeleted(newValue) { - this.setSetting('showDeleted', newValue); - }, - abCacheEnabled(newValue) { - this.setSetting('abCacheEnabled', newValue); - }, $route(to) { this.updateListFromRoute(to); this.updateSearchFromRouteQuery(to); @@ -436,12 +382,6 @@ class Search { prevManualDate = ''; //settings - showCounts = true; - showRates = true; - showInfo = true; - showGenres = true; - showDates = true; - showDeleted = false; abCacheEnabled = true; langDefault = ''; limit = 20; @@ -464,16 +404,6 @@ class Search { bookInfo = {}; - limitOptions = [ - {label: '10', value: 10}, - {label: '20', value: 20}, - {label: '50', value: 50}, - {label: '100', value: 100}, - {label: '200', value: 200}, - {label: '500', value: 500}, - {label: '1000', value: 1000}, - ]; - searchDateOptions = [ {label: 'сегодня', value: 'today'}, {label: 'за 3 дня', value: '3days'}, @@ -530,12 +460,6 @@ class Search { this.extendedParams = settings.extendedParams; this.expanded = _.cloneDeep(settings.expanded); 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; this.abCacheEnabled = settings.abCacheEnabled; this.langDefault = settings.langDefault; } diff --git a/client/components/Search/SettingsDialog/SettingsDialog.vue b/client/components/Search/SettingsDialog/SettingsDialog.vue new file mode 100644 index 0000000..1d25da2 --- /dev/null +++ b/client/components/Search/SettingsDialog/SettingsDialog.vue @@ -0,0 +1,151 @@ + + + + + \ No newline at end of file