From c4c065ab6193abb8df773ea6142e152cf4babfff Mon Sep 17 00:00:00 2001 From: Ernest Walzel Date: Fri, 19 Apr 2024 22:29:53 +0200 Subject: [PATCH] SortSelect using radix-vue --- resources/js/app.js | 2 + .../js/components/catalog-new/SortSelect.vue | 88 ++++++++++++++ .../frontend/catalog-new/index.blade.php | 107 +----------------- 3 files changed, 96 insertions(+), 101 deletions(-) create mode 100644 resources/js/components/catalog-new/SortSelect.vue diff --git a/resources/js/app.js b/resources/js/app.js index f1eb3592a..e64682c74 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -44,6 +44,7 @@ import CatalogNewArtworkImageController from './components/catalog-new/ArtworkIm import CatalogNewNumberFormatter from './components/catalog-new/NumberFormatter.vue' import CatalogNewAuthorFormatter from './components/catalog-new/AuthorFormatter.vue' import CatalogNewPopover from './components/catalog-new/Popover.vue' +import CatalogNewSortSelect from './components/catalog-new/SortSelect.vue' import Flickity from './components/Flickity.vue' import HomeShuffleOrchestrator from './components/home/ShuffleOrchestrator.vue' import HomeTransitionInPlace from './components/home/TransitionInPlace.vue' @@ -103,6 +104,7 @@ createApp({ .component('catalog.number-formatter', CatalogNewNumberFormatter) .component('catalog.author-formatter', CatalogNewAuthorFormatter) .component('catalog.popover', CatalogNewPopover) + .component('catalog.sort-select', CatalogNewSortSelect) .component('flickity', Flickity) .component('home.shuffle-orchestrator', HomeShuffleOrchestrator) .component('home.transition-in-place', HomeTransitionInPlace) diff --git a/resources/js/components/catalog-new/SortSelect.vue b/resources/js/components/catalog-new/SortSelect.vue new file mode 100644 index 000000000..2679a3376 --- /dev/null +++ b/resources/js/components/catalog-new/SortSelect.vue @@ -0,0 +1,88 @@ + + diff --git a/resources/views/frontend/catalog-new/index.blade.php b/resources/views/frontend/catalog-new/index.blade.php index 9a30e6976..f31e3c732 100644 --- a/resources/views/frontend/catalog-new/index.blade.php +++ b/resources/views/frontend/catalog-new/index.blade.php @@ -872,108 +872,13 @@ class="tw-capitalize">{{ trans_choice('item.filter.displaying', 5) }} - {{ trans_choice('item.filter.artworks_sorted_by', 5) }} - -
- - - - - - -
+ {{ trans_choice('item.filter.artworks_sorted_by', 5) }}
+ + + {{ utrans('item.filter.try_also') }}