From 08ef2e0137db378f8074b5940ebbcc72af963e96 Mon Sep 17 00:00:00 2001 From: ArneBo Date: Wed, 29 Jan 2025 23:15:36 +0100 Subject: [PATCH] refactor(front): labels for select input fields --- front/src/components/favorites/List.vue | 91 ++++++++++++--------- front/src/components/library/Albums.vue | 90 ++++++++++++--------- front/src/components/library/Artists.vue | 98 ++++++++++++++--------- front/src/components/library/Podcasts.vue | 90 ++++++++++++--------- front/src/components/library/Radios.vue | 90 ++++++++++++--------- front/src/style/components/_form.scss | 6 ++ front/src/views/playlists/List.vue | 90 ++++++++++++--------- 7 files changed, 321 insertions(+), 234 deletions(-) diff --git a/front/src/components/favorites/List.vue b/front/src/components/favorites/List.vue index ce37e2634..a08b24725 100644 --- a/front/src/components/favorites/List.vue +++ b/front/src/components/favorites/List.vue @@ -126,48 +126,61 @@ const paginateOptions = computed(() => sortedUniq([12, 25, 50, paginateBy.value] stack :class="['ui', { 'loading': isLoading }, 'form']" > + - - {{ sharedLabels.filters[option[1]] }} - - - - + + + + {{ t('components.favorites.List.ordering.direction.label') }} + + + + + + + + + {{ t('components.favorites.List.pagination.results') }} + + + sortedUniq([12, 30, 50, paginateBy.value] :label="t('components.library.Albums.label.tags')" style="max-width: 150px;" /> - - {{ sharedLabels.filters[option[1]] }} - - - - + + + + {{ t('components.library.Albums.ordering.direction.label') }} + + + + + + + + + {{ t('components.library.Albums.pagination.results') }} + + + sortedUniq([12, 30, 50, paginateBy.value] :label="t('components.library.Artists.label.tags')" style="max-width: 150px;" /> - - {{ sharedLabels.filters[option[1]] }} - - - - + + + + {{ t('components.library.Artists.ordering.direction.label') }} + + + + + + + + + {{ t('components.library.Artists.pagination.results') }} + + + sortedUniq([12, 30, 50, paginateBy.value] /> + + diff --git a/front/src/components/library/Podcasts.vue b/front/src/components/library/Podcasts.vue index 08d8afc07..acea53451 100644 --- a/front/src/components/library/Podcasts.vue +++ b/front/src/components/library/Podcasts.vue @@ -165,47 +165,59 @@ const isOpen = computed({ :label="t('components.library.Podcasts.label.tags')" style="max-width: 150px;" /> - - {{ sharedLabels.filters[option[1]] }} - - - - + + + + {{ t('components.library.Podcasts.ordering.direction.label') }} + + + + + + + + + {{ t('components.library.Podcasts.pagination.results') }} + + + sortedUniq([12, 25, 50, paginateBy.value] :label="t('components.library.Radios.label.search')" :placeholder="labels.searchPlaceholder" /> - - {{ sharedLabels.filters[option[1]] }} - - - - + + + + {{ t('components.library.Radios.ordering.direction.label') }} + + + + + + + + + {{ t('components.library.Radios.pagination.results') }} + + + .icon { color: var(--input-color); } diff --git a/front/src/views/playlists/List.vue b/front/src/views/playlists/List.vue index a70d80324..3c0640978 100644 --- a/front/src/views/playlists/List.vue +++ b/front/src/views/playlists/List.vue @@ -134,47 +134,59 @@ const paginateOptions = computed(() => sortedUniq([12, 30, 50, paginateBy.value] :placeholder="labels.searchPlaceholder" > - - {{ sharedLabels.filters[option[1]] }} - - - - + + + + {{ t('views.playlists.List.ordering.direction.label') }} + + + + + + + + + {{ t('views.playlists.List.pagination.results') }} + + +