From 134b8a5eb47a7fe834d09712ca8febf0fdeb6173 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Wed, 14 Jan 2026 12:31:38 +0700 Subject: [PATCH] Add CatalogSearchBar component with filter badges MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Create CatalogSearchBar.vue with search input, filter badges (× to remove), filter dropdown, counter, sort dropdown - Integrate searchBar slot into CatalogPage with displayedCount and totalCount - Update hubs page to use CatalogSearchBar with transport type and country filters - Add translations for search bar in common.json - Add transport/country filter labels in catalogHubsSection.json --- app/components/catalog/CatalogSearchBar.vue | 159 ++++++++++++++++++++ app/components/page/CatalogPage.vue | 9 +- app/pages/catalog/hubs/index.vue | 78 +++++++++- i18n/locales/en/catalogHubsSection.json | 4 +- i18n/locales/en/common.json | 5 + i18n/locales/ru/catalogHubsSection.json | 4 +- i18n/locales/ru/common.json | 5 + 7 files changed, 256 insertions(+), 8 deletions(-) create mode 100644 app/components/catalog/CatalogSearchBar.vue diff --git a/app/components/catalog/CatalogSearchBar.vue b/app/components/catalog/CatalogSearchBar.vue new file mode 100644 index 0000000..9ebcc40 --- /dev/null +++ b/app/components/catalog/CatalogSearchBar.vue @@ -0,0 +1,159 @@ + + + diff --git a/app/components/page/CatalogPage.vue b/app/components/page/CatalogPage.vue index 31c2383..f72358d 100644 --- a/app/components/page/CatalogPage.vue +++ b/app/components/page/CatalogPage.vue @@ -12,6 +12,11 @@