From a25c6f68958e59cece8c7634236739e2ab93c69a Mon Sep 17 00:00:00 2001 From: bkis Date: Mon, 18 Mar 2024 16:04:16 +0100 Subject: [PATCH] Streamline search request handling --- Tekst-Web/src/App.vue | 3 +- .../browse/ResourceToggleDrawer.vue | 3 +- .../src/components/generic/IconHeading.vue | 2 +- .../components/navigation/PrimaryNavBar.vue | 3 +- .../src/components/navigation/QuickSearch.vue | 25 ++++---- .../navigation/TextSelectOption.vue | 2 +- .../navigation/ThemeModeSwitcher.vue | 2 +- .../navigation/UserActionsButton.vue | 3 +- .../search/GeneralSearchSettingsForm.vue | 8 +-- .../forms/search/QuickSearchSettingsForm.vue | 10 +-- Tekst-Web/src/router.ts | 2 +- Tekst-Web/src/stores/index.ts | 2 + Tekst-Web/src/stores/search.ts | 62 +++++++++++++++++++ Tekst-Web/src/stores/state.ts | 17 +---- Tekst-Web/src/views/ResourceSettingsView.vue | 5 +- Tekst-Web/src/views/SearchResultsView.vue | 38 ++++++------ Tekst-Web/src/views/SearchView.vue | 34 +++++----- 17 files changed, 134 insertions(+), 87 deletions(-) create mode 100644 Tekst-Web/src/stores/search.ts diff --git a/Tekst-Web/src/App.vue b/Tekst-Web/src/App.vue index 3f0e3296..c9f17f72 100644 --- a/Tekst-Web/src/App.vue +++ b/Tekst-Web/src/App.vue @@ -4,7 +4,7 @@ import InitLoader from '@/components/InitLoader.vue'; import GlobalMessenger from '@/components/messages/GlobalMessenger.vue'; import { computed } from 'vue'; import { getLocaleProfile } from '@/i18n'; -import { useStateStore } from '@/stores'; +import { useStateStore, useThemeStore } from '@/stores'; import { NLoadingBarProvider, NConfigProvider, @@ -13,7 +13,6 @@ import { NBackTop, useThemeVars, } from 'naive-ui'; -import { useThemeStore } from '@/stores/theme'; import PageHeader from './layout/PageHeader.vue'; import PageFooter from './layout/PageFooter.vue'; import { useInitializeApp } from '@/composables/init'; diff --git a/Tekst-Web/src/components/browse/ResourceToggleDrawer.vue b/Tekst-Web/src/components/browse/ResourceToggleDrawer.vue index 81cef817..c9225f05 100644 --- a/Tekst-Web/src/components/browse/ResourceToggleDrawer.vue +++ b/Tekst-Web/src/components/browse/ResourceToggleDrawer.vue @@ -1,13 +1,12 @@