From efc6e8a30ed8fa17545727c3a3e650061c364cd1 Mon Sep 17 00:00:00 2001 From: upsiflu Date: Wed, 26 Mar 2025 16:58:35 +0100 Subject: [PATCH] chore(front): cleaning up --- front/src/components/album/Card.vue | 1 + front/src/components/audio/ChannelForm.vue | 17 ++++++++--------- front/src/components/auth/Settings.vue | 2 +- front/src/components/channels/UploadForm.vue | 6 +++--- front/src/components/library/Podcasts.vue | 20 ++++++++++++-------- front/src/ui/modals/Upload.vue | 13 ------------- 6 files changed, 25 insertions(+), 34 deletions(-) diff --git a/front/src/components/album/Card.vue b/front/src/components/album/Card.vue index c8d1d30b5..f5d19cb49 100644 --- a/front/src/components/album/Card.vue +++ b/front/src/components/album/Card.vue @@ -10,6 +10,7 @@ import PlayButton from '~/components/audio/PlayButton.vue' import Card from '~/components/ui/Card.vue' import Link from '~/components/ui/Link.vue' import Spacer from '~/components/ui/Spacer.vue' +import Layout from '~/components/ui/Layout.vue' import { type Album } from '~/types' diff --git a/front/src/components/audio/ChannelForm.vue b/front/src/components/audio/ChannelForm.vue index aaa43e814..5646b1058 100644 --- a/front/src/components/audio/ChannelForm.vue +++ b/front/src/components/audio/ChannelForm.vue @@ -15,21 +15,20 @@ import Alert from '~/components/ui/Alert.vue' import Input from '~/components/ui/Input.vue' import Pills from '~/components/ui/Pills.vue' -interface Events { - (e: 'category', contentCategory: ContentCategory): void - (e: 'submittable', value: boolean): void - (e: 'loading', value: boolean): void - (e: 'errored', errors: string[]): void - (e: 'created', channel: Channel): void - (e: 'updated', channel: Channel): void -} interface Props { object?: Channel | null step?: number } -const emit = defineEmits() +const emit = defineEmits<{ + category: [contentCategory: ContentCategory] + submittable: [value: boolean] + loading: [value: boolean] + errored: [errors: string[]] + created: [channel: Channel] + updated: [channel: Channel] +}>() const props = withDefaults(defineProps(), { object: null, step: 1 diff --git a/front/src/components/auth/Settings.vue b/front/src/components/auth/Settings.vue index cf26c4a3a..c847bc35d 100644 --- a/front/src/components/auth/Settings.vue +++ b/front/src/components/auth/Settings.vue @@ -314,7 +314,7 @@ fetchOwnedApps()