chore: address linter

This commit is contained in:
jon r 2025-04-03 10:29:24 +02:00
parent 76aa05dd59
commit 70ac26dbff
11 changed files with 120 additions and 110 deletions

View File

@ -79,7 +79,7 @@ watch(
<template> <template>
<Section <Section
align-left align-left
columns-per-item=1 columns-per-item="1"
:h2="title" :h2="title"
> >
<Loader <Loader

View File

@ -25,15 +25,18 @@ const getRoute = (ac: ArtistCredit) => {
</script> </script>
<template> <template>
<Layout flex gap-8> <Layout
flex
gap-8
>
<template <template
v-for="ac in props.artistCredit" v-for="ac in props.artistCredit"
:key="ac.artist.id" :key="ac.artist.id"
> >
<router-link <router-link
:to="{name: 'library.artists.detail', params: {id: ac.artist.id }}" :to="{name: 'library.artists.detail', params: {id: ac.artist.id }}"
@click.stop.prevent=""
class="username" class="username"
@click.stop.prevent=""
> >
<Pill> <Pill>
<template #image> <template #image>

View File

@ -101,9 +101,9 @@ const { copy, copied } = useClipboard({ source: embedCode })
<div class="field"> <div class="field">
<Button <Button
class="right floated" class="right floated"
@click="copy()"
icon="bi-copy" icon="bi-copy"
secondary secondary
@click="copy()"
> >
{{ t('components.audio.EmbedWizard.button.copy') }} {{ t('components.audio.EmbedWizard.button.copy') }}
</Button> </Button>

View File

@ -280,8 +280,8 @@ const resetField = (fieldId: string) => {
<template v-else-if="fieldConfig.type === 'content'"> <template v-else-if="fieldConfig.type === 'content'">
<Textarea <Textarea
:id="fieldConfig.id" :id="fieldConfig.id"
:label="fieldConfig.label"
v-model="values[fieldConfig.id].text" v-model="values[fieldConfig.id].text"
:label="fieldConfig.label"
initial-lines="3" initial-lines="3"
/> />
</template> </template>

View File

@ -52,7 +52,7 @@ const labels = computed(() => ({
</Button> </Button>
</Layout> </Layout>
<Spacer :size=64 /> <Spacer :size="64" />
<artist-widget <artist-widget
:key="'artist' + id" :key="'artist' + id"
:controls="false" :controls="false"
@ -64,9 +64,8 @@ const labels = computed(() => ({
solid: true solid: true
}" }"
:filters="{playable: true, ordering: '-creation_date', tag: id, include_channels: 'false'}" :filters="{playable: true, ordering: '-creation_date', tag: id, include_channels: 'false'}"
> />
</artist-widget> <Spacer :size="64" />
<Spacer :size=64 />
<channels-widget <channels-widget
:key="'channels' + id" :key="'channels' + id"
:show-modification-date="true" :show-modification-date="true"
@ -80,7 +79,7 @@ const labels = computed(() => ({
}" }"
:filters="{tag: id, ordering: '-creation_date'}" :filters="{tag: id, ordering: '-creation_date'}"
/> />
<Spacer :size=64 /> <Spacer :size="64" />
<album-widget <album-widget
:key="'album' + id" :key="'album' + id"
:show-count="true" :show-count="true"
@ -94,7 +93,7 @@ const labels = computed(() => ({
solid: true solid: true
}" }"
/> />
<Spacer :size=64 /> <Spacer :size="64" />
<track-widget <track-widget
:key="'track' + id" :key="'track' + id"
:show-count="true" :show-count="true"

View File

@ -334,7 +334,10 @@ watch(showDeleteModal, (newValue) => {
</Layout> </Layout>
<hr> <hr>
<Layout flex gap-8> <Layout
flex
gap-8
>
<span v-if="track.attributed_to"> <span v-if="track.attributed_to">
{{ t('components.library.TrackBase.subtitle.with-uploader') }} {{ t('components.library.TrackBase.subtitle.with-uploader') }}
</span> </span>
@ -354,7 +357,7 @@ watch(showDeleteModal, (newValue) => {
{{ momentFormat(new Date(track.creation_date), 'LL') }} {{ momentFormat(new Date(track.creation_date), 'LL') }}
</time> </time>
</Layout> </Layout>
<Spacer :size=16 /> <Spacer :size="16" />
<Modal <Modal
v-if="isEmbedable" v-if="isEmbedable"

View File

@ -2866,7 +2866,8 @@
"visibility": "Playlist visiblity" "visibility": "Playlist visiblity"
}, },
"placeholder": { "placeholder": {
"name": "My awesome playlist" "name": "My awesome playlist",
"description": "Description"
} }
}, },
"PlaylistModal": { "PlaylistModal": {
@ -4070,7 +4071,8 @@
"overview": "Overview", "overview": "Overview",
"manageUploads": "Manage uploads" "manageUploads": "Manage uploads"
}, },
"title": "{username}'s profile" "title": "{username}'s profile",
"copyUsername": "Copy federated profile link"
}, },
"ProfileOverview": { "ProfileOverview": {
"button": { "button": {

View File

@ -158,7 +158,10 @@ const deletePlaylist = async () => {
<i class="bi bi-dot" /> <i class="bi bi-dot" />
<Duration :seconds="playlist.duration" /> <Duration :seconds="playlist.duration" />
</div> </div>
<Layout flex gap-8> <Layout
flex
gap-8
>
<!-- TODO: Translations --> <!-- TODO: Translations -->
by by
<ActorLink <ActorLink