From 2f87155dee2c8fca5da228c62fb150613b97bc0d Mon Sep 17 00:00:00 2001 From: ArneBo Date: Sat, 25 Jan 2025 16:37:26 +0100 Subject: [PATCH] [WIP] refactor(front): Channels page --- .../src/components/common/InlineSearchBar.vue | 23 ++-- front/src/ui/components/Sidebar.vue | 12 +- .../src/views/channels/SubscriptionsList.vue | 113 +++++++++--------- 3 files changed, 72 insertions(+), 76 deletions(-) diff --git a/front/src/components/common/InlineSearchBar.vue b/front/src/components/common/InlineSearchBar.vue index aba4e0fc2..4c09c78f6 100644 --- a/front/src/components/common/InlineSearchBar.vue +++ b/front/src/components/common/InlineSearchBar.vue @@ -3,6 +3,9 @@ import { useVModel } from '@vueuse/core' import { computed } from 'vue' import { useI18n } from 'vue-i18n' +import Input from '~/components/ui/Input.vue' +import Layout from '~/components/ui/Layout.vue' + interface Events { (e: 'update:modelValue', value: string): void (e: 'search', query: string): void @@ -33,8 +36,7 @@ const search = () => { diff --git a/front/src/ui/components/Sidebar.vue b/front/src/ui/components/Sidebar.vue index 8a465aab2..f80785309 100644 --- a/front/src/ui/components/Sidebar.vue +++ b/front/src/ui/components/Sidebar.vue @@ -138,12 +138,20 @@ const logoUrl = computed(() => store.state.auth.authenticated ? 'library.index' {{ t('components.Sidebar.link.artists') }} + + {{ t('components.Sidebar.link.channels') }} + + store.state.auth.authenticated ? 'library.index' {{ t('components.Sidebar.link.favorites') }} - -

{{ t('components.Sidebar.link.channels') }}

diff --git a/front/src/views/channels/SubscriptionsList.vue b/front/src/views/channels/SubscriptionsList.vue index 7d838f840..af135de4e 100644 --- a/front/src/views/channels/SubscriptionsList.vue +++ b/front/src/views/channels/SubscriptionsList.vue @@ -8,8 +8,9 @@ import axios from 'axios' import ChannelsWidget from '~/components/audio/ChannelsWidget.vue' import RemoteSearchForm from '~/components/RemoteSearchForm.vue' -import SemanticModal from '~/components/semantic/Modal.vue' +import Modal from '~/components/ui/Modal.vue' import Button from '~/components/ui/Button.vue' +import Layout from '~/components/ui/Layout.vue' import useErrorHandler from '~/composables/useErrorHandler' @@ -57,65 +58,63 @@ const showSubscribeModal = ref(false)