From a84868e1df13f9833ab6a329575050ccfaf8870c Mon Sep 17 00:00:00 2001 From: ArneBo Date: Wed, 15 Jan 2025 16:18:31 +0100 Subject: [PATCH] fix(ui): artist and album detail and edit pages --- .../components/audio/ArtistCreditLabel.vue | 8 +- front/src/components/audio/track/Table.vue | 23 +- front/src/components/common/ActorAvatar.vue | 13 + front/src/components/common/ActorLink.vue | 11 +- .../src/components/common/AttachmentInput.vue | 14 +- front/src/components/common/ContentForm.vue | 104 ++++--- front/src/components/common/CopyInput.vue | 54 +++- .../src/components/common/DangerousButton.vue | 24 +- front/src/components/common/HumanDate.vue | 9 +- front/src/components/library/AlbumBase.vue | 30 +- front/src/components/library/AlbumDetail.vue | 3 +- .../src/components/library/AlbumDropdown.vue | 8 +- front/src/components/library/AlbumEdit.vue | 42 ++- front/src/components/library/ArtistBase.vue | 180 ++++++------ front/src/components/library/ArtistEdit.vue | 47 ++- front/src/components/library/EditCard.vue | 267 ++++++++++-------- front/src/components/library/EditForm.vue | 126 ++++----- front/src/components/library/EditList.vue | 55 ++-- front/src/views/content/remote/Card.vue | 65 +++-- 19 files changed, 577 insertions(+), 506 deletions(-) diff --git a/front/src/components/audio/ArtistCreditLabel.vue b/front/src/components/audio/ArtistCreditLabel.vue index 008ff9b47..4b634ff37 100644 --- a/front/src/components/audio/ArtistCreditLabel.vue +++ b/front/src/components/audio/ArtistCreditLabel.vue @@ -2,6 +2,8 @@ import type { ArtistCredit } from '~/types' import { useStore } from '~/store' +import Link from '~/components/ui/Link.vue' + const store = useStore() interface Props { @@ -26,7 +28,7 @@ const getRoute = (ac: ArtistCredit) => { v-for="ac in props.artistCredit" :key="ac.artist.id" > - { > {{ ac.credit }} - + {{ ac.joinphrase }} diff --git a/front/src/components/audio/track/Table.vue b/front/src/components/audio/track/Table.vue index 38c761ab0..e4f0c9d2a 100644 --- a/front/src/components/audio/track/Table.vue +++ b/front/src/components/audio/track/Table.vue @@ -10,10 +10,11 @@ import { useStore } from '~/store' import axios from 'axios' import TrackMobileRow from '~/components/audio/track/MobileRow.vue' -import Pagination from '~/components/vui/Pagination.vue' +import Pagination from '~/components/ui/Pagination.vue' import TrackRow from '~/components/audio/track/Row.vue' import Input from '~/components/ui/Input.vue' import Spacer from '~/components/ui/Spacer.vue' +import Loader from '~/components/ui/Loader.vue' import useErrorHandler from '~/composables/useErrorHandler' @@ -175,18 +176,13 @@ const updatePage = (page: number) => {
-
-
-
+
- +
{ class="meta right floated column" >
@@ -263,12 +259,7 @@ const updatePage = (page: number) => {
-
-
-
+ @@ -289,7 +280,7 @@ const updatePage = (page: number) => { v-if="tracks && paginateResults && totalTracks > paginateBy" class="ui center aligned basic segment tablet-and-below" > - ({ backgroundColor: `#${actorColor.val class="ui avatar circular label" >{{ actor.preferred_username?.[0] || "" }} + + \ No newline at end of file diff --git a/front/src/components/common/ActorLink.vue b/front/src/components/common/ActorLink.vue index 49c819744..2518eaa66 100644 --- a/front/src/components/common/ActorLink.vue +++ b/front/src/components/common/ActorLink.vue @@ -5,6 +5,8 @@ import { toRefs } from '@vueuse/core' import { computed } from 'vue' import { truncate } from '~/utils/filters' +import Link from '~/components/ui/Link.vue' + interface Props { actor: Actor avatar?: boolean @@ -50,15 +52,18 @@ const url = computed(() => { diff --git a/front/src/components/common/AttachmentInput.vue b/front/src/components/common/AttachmentInput.vue index 2836bfaa7..681dcc5df 100644 --- a/front/src/components/common/AttachmentInput.vue +++ b/front/src/components/common/AttachmentInput.vue @@ -8,6 +8,9 @@ import { useStore } from '~/store' import { useI18n } from 'vue-i18n' import useFormData from '~/composables/useFormData' +import Button from '~/components/ui/Button.vue' +import Alert from '~/components/ui/Alert.vue' + interface Events { (e: 'update:modelValue', value: string | null): void (e: 'delete'): void @@ -104,10 +107,9 @@ const getAttachmentUrl = (uuid: string) => {