From b913eb8dc6eca787047091300b2e1aabbfab18ae Mon Sep 17 00:00:00 2001 From: ArneBo Date: Mon, 31 Mar 2025 09:56:57 +0200 Subject: [PATCH] fix(front): Actorlink and ArtistLinks consistency. --- front/src/components/Queue.vue | 34 +++--------------- .../components/audio/ArtistCreditLabel.vue | 8 +++++ front/src/components/common/ActorLink.vue | 36 ++++++++++--------- front/src/components/library/TrackBase.vue | 5 ++- front/src/components/playlists/Card.vue | 4 ++- front/src/components/ui/Pill.vue | 7 ++-- front/src/locales/en_GB.json | 15 +++----- front/src/locales/en_US.json | 3 -- 8 files changed, 46 insertions(+), 66 deletions(-) diff --git a/front/src/components/Queue.vue b/front/src/components/Queue.vue index 90a143ca6..13fc6262a 100644 --- a/front/src/components/Queue.vue +++ b/front/src/components/Queue.vue @@ -18,6 +18,7 @@ import { useI18n } from 'vue-i18n' import TrackFavoriteIcon from '~/components/favorites/TrackFavoriteIcon.vue' import TrackPlaylistIcon from '~/components/playlists/TrackPlaylistIcon.vue' import PlayerControls from '~/components/audio/PlayerControls.vue' +import ActorLink from '~/components/audio/ArtistCreditLabel.vue' import VirtualList from '~/components/vui/list/VirtualList.vue' import QueueItem from '~/components/QueueItem.vue' @@ -27,6 +28,7 @@ import Spacer from '~/components/ui/Spacer.vue' import Link from '~/components/ui/Link.vue' import Button from '~/components/ui/Button.vue' import Pill from '~/components/ui/Pill.vue' +import ArtistCreditLabel from '~/components/audio/ArtistCreditLabel.vue' const MilkDrop = defineAsyncComponent(() => import('~/components/audio/visualizer/MilkDrop.vue')) @@ -296,35 +298,9 @@ if (!isWebGLSupported) { - - - +
() +// TODO: Fix getRoute const getRoute = (ac: ArtistCredit) => { return { name: ac.artist.channel ? 'channels.detail' : 'library.artists.detail', @@ -32,6 +33,7 @@ const getRoute = (ac: ArtistCredit) => { + + diff --git a/front/src/components/common/ActorLink.vue b/front/src/components/common/ActorLink.vue index eecba8d01..15c6f2df8 100644 --- a/front/src/components/common/ActorLink.vue +++ b/front/src/components/common/ActorLink.vue @@ -6,6 +6,7 @@ import { computed } from 'vue' import { truncate } from '~/utils/filters' import Link from '~/components/ui/Link.vue' +import Pill from '~/components/ui/Pill.vue' interface Props { actor: Actor @@ -54,29 +55,30 @@ const url = computed(() => { diff --git a/front/src/components/library/TrackBase.vue b/front/src/components/library/TrackBase.vue index 3697ccfef..3fa91ab50 100644 --- a/front/src/components/library/TrackBase.vue +++ b/front/src/components/library/TrackBase.vue @@ -334,8 +334,7 @@ watch(showDeleteModal, (newValue) => {
- -
+ {{ t('components.library.TrackBase.subtitle.with-uploader') }} @@ -354,8 +353,8 @@ watch(showDeleteModal, (newValue) => { > {{ momentFormat(new Date(track.creation_date), 'LL') }} -
+ { const updatedTitle = computed(() => { const date = momentFormat(new Date(props.playlist.modification_date ?? '1970-01-01')) - return t('components.audio.PlaylistCard.title', { date }) + return t('components.playlists.Card.title', { date }) }) const updatedAgo = computed(() => moment(props.playlist.modification_date).fromNow()) @@ -93,6 +94,7 @@ const updatedAgo = computed(() => moment(props.playlist.modification_date).fromN