From bff56220c212b3152203abde0b48cd40aea380e2 Mon Sep 17 00:00:00 2001 From: mikiher Date: Sun, 21 Jul 2024 11:10:05 +0300 Subject: [PATCH 1/5] Adds genres to gloabl search --- client/components/cards/GenreSearchCard.vue | 34 +++++ client/components/controls/GlobalSearch.vue | 18 ++- .../utils/queries/libraryItemsBookFilters.js | 21 ++- .../queries/libraryItemsPodcastFilters.js | 123 ++++++++++-------- 4 files changed, 135 insertions(+), 61 deletions(-) create mode 100644 client/components/cards/GenreSearchCard.vue diff --git a/client/components/cards/GenreSearchCard.vue b/client/components/cards/GenreSearchCard.vue new file mode 100644 index 0000000000..05be761449 --- /dev/null +++ b/client/components/cards/GenreSearchCard.vue @@ -0,0 +1,34 @@ + + + + + diff --git a/client/components/controls/GlobalSearch.vue b/client/components/controls/GlobalSearch.vue index e20732d5df..d9cc6787f9 100644 --- a/client/components/controls/GlobalSearch.vue +++ b/client/components/controls/GlobalSearch.vue @@ -59,13 +59,22 @@

{{ $strings.LabelTags }}

+

{{ $strings.LabelGenres }}

+ +

{{ $strings.LabelNarrators }}

@@ -23,6 +24,9 @@ export default { computed: { name() { return this.author.name + }, + numBooks() { + return this.author.numBooks } }, methods: {}, @@ -33,9 +37,9 @@ export default { \ No newline at end of file + diff --git a/client/components/cards/GenreSearchCard.vue b/client/components/cards/GenreSearchCard.vue index 05be761449..73e8bbacf8 100644 --- a/client/components/cards/GenreSearchCard.vue +++ b/client/components/cards/GenreSearchCard.vue @@ -5,6 +5,7 @@

{{ genre }}

+

{{ $getString('LabelXItems', [numItems]) }}

@@ -12,7 +13,8 @@