kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
chore: address linter
rodzic
76aa05dd59
commit
70ac26dbff
|
@ -79,7 +79,7 @@ watch(
|
|||
<template>
|
||||
<Section
|
||||
align-left
|
||||
columns-per-item=1
|
||||
columns-per-item="1"
|
||||
:h2="title"
|
||||
>
|
||||
<Loader
|
||||
|
|
|
@ -25,15 +25,18 @@ const getRoute = (ac: ArtistCredit) => {
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<Layout flex gap-8>
|
||||
<Layout
|
||||
flex
|
||||
gap-8
|
||||
>
|
||||
<template
|
||||
v-for="ac in props.artistCredit"
|
||||
:key="ac.artist.id"
|
||||
>
|
||||
<router-link
|
||||
:to="{name: 'library.artists.detail', params: {id: ac.artist.id }}"
|
||||
@click.stop.prevent=""
|
||||
class="username"
|
||||
@click.stop.prevent=""
|
||||
>
|
||||
<Pill>
|
||||
<template #image>
|
||||
|
|
|
@ -101,9 +101,9 @@ const { copy, copied } = useClipboard({ source: embedCode })
|
|||
<div class="field">
|
||||
<Button
|
||||
class="right floated"
|
||||
@click="copy()"
|
||||
icon="bi-copy"
|
||||
secondary
|
||||
@click="copy()"
|
||||
>
|
||||
{{ t('components.audio.EmbedWizard.button.copy') }}
|
||||
</Button>
|
||||
|
|
|
@ -280,8 +280,8 @@ const resetField = (fieldId: string) => {
|
|||
<template v-else-if="fieldConfig.type === 'content'">
|
||||
<Textarea
|
||||
:id="fieldConfig.id"
|
||||
:label="fieldConfig.label"
|
||||
v-model="values[fieldConfig.id].text"
|
||||
:label="fieldConfig.label"
|
||||
initial-lines="3"
|
||||
/>
|
||||
</template>
|
||||
|
|
|
@ -27,84 +27,83 @@ const labels = computed(() => ({
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<h1 class="ui header">
|
||||
<span class="funkwhale solid raised secondary pill">
|
||||
<span class="pill-content">
|
||||
{{ labels.title }}
|
||||
</span>
|
||||
<h1 class="ui header">
|
||||
<span class="funkwhale solid raised secondary pill">
|
||||
<span class="pill-content">
|
||||
{{ labels.title }}
|
||||
</span>
|
||||
</h1>
|
||||
<Layout
|
||||
flex
|
||||
class="buttons"
|
||||
</span>
|
||||
</h1>
|
||||
<Layout
|
||||
flex
|
||||
class="buttons"
|
||||
>
|
||||
<radio-button
|
||||
type="tag"
|
||||
:object-id="id"
|
||||
/>
|
||||
<Button
|
||||
v-if="store.state.auth.availablePermissions['library']"
|
||||
icon="bi-wrench"
|
||||
secondary
|
||||
:to="{name: 'manage.library.tags.detail', params: {id: id}}"
|
||||
>
|
||||
<radio-button
|
||||
type="tag"
|
||||
:object-id="id"
|
||||
/>
|
||||
<Button
|
||||
v-if="store.state.auth.availablePermissions['library']"
|
||||
icon="bi-wrench"
|
||||
secondary
|
||||
:to="{name: 'manage.library.tags.detail', params: {id: id}}"
|
||||
>
|
||||
{{ t('components.library.TagDetail.link.moderation') }}
|
||||
</Button>
|
||||
</Layout>
|
||||
{{ t('components.library.TagDetail.link.moderation') }}
|
||||
</Button>
|
||||
</Layout>
|
||||
|
||||
<Spacer :size=64 />
|
||||
<artist-widget
|
||||
:key="'artist' + id"
|
||||
:controls="false"
|
||||
:title="t('components.library.TagDetail.header.artists')"
|
||||
:action="{
|
||||
text: t('components.library.TagDetail.link.artists'),
|
||||
to: {name: 'library.artists.browse', query: {tag: id}},
|
||||
secondary: true,
|
||||
solid: true
|
||||
}"
|
||||
:filters="{playable: true, ordering: '-creation_date', tag: id, include_channels: 'false'}"
|
||||
>
|
||||
</artist-widget>
|
||||
<Spacer :size=64 />
|
||||
<channels-widget
|
||||
:key="'channels' + id"
|
||||
:show-modification-date="true"
|
||||
:limit="12"
|
||||
:title="t('components.library.TagDetail.header.channels')"
|
||||
:action="{
|
||||
text: t('components.library.TagDetail.link.channels'),
|
||||
to: {name: 'library.channels.browse', query: {tag: id}},
|
||||
secondary: true,
|
||||
solid: true
|
||||
}"
|
||||
:filters="{tag: id, ordering: '-creation_date'}"
|
||||
/>
|
||||
<Spacer :size=64 />
|
||||
<album-widget
|
||||
:key="'album' + id"
|
||||
:show-count="true"
|
||||
:controls="false"
|
||||
:filters="{playable: true, ordering: '-creation_date', tag: id}"
|
||||
:title="t('components.library.TagDetail.header.albums')"
|
||||
:action="{
|
||||
text: t('components.library.TagDetail.link.albums'),
|
||||
to: {name: 'library.albums.browse', query: {tag: id}},
|
||||
secondary: true,
|
||||
solid: true
|
||||
}"
|
||||
/>
|
||||
<Spacer :size=64 />
|
||||
<track-widget
|
||||
:key="'track' + id"
|
||||
:show-count="true"
|
||||
:limit="12"
|
||||
item-classes="track-item inline"
|
||||
:url="'/tracks/'"
|
||||
:is-activity="false"
|
||||
:filters="{playable: true, ordering: '-creation_date', tag: id}"
|
||||
:title="t('components.library.TagDetail.header.tracks')"
|
||||
/>
|
||||
<Spacer :size="64" />
|
||||
<artist-widget
|
||||
:key="'artist' + id"
|
||||
:controls="false"
|
||||
:title="t('components.library.TagDetail.header.artists')"
|
||||
:action="{
|
||||
text: t('components.library.TagDetail.link.artists'),
|
||||
to: {name: 'library.artists.browse', query: {tag: id}},
|
||||
secondary: true,
|
||||
solid: true
|
||||
}"
|
||||
:filters="{playable: true, ordering: '-creation_date', tag: id, include_channels: 'false'}"
|
||||
/>
|
||||
<Spacer :size="64" />
|
||||
<channels-widget
|
||||
:key="'channels' + id"
|
||||
:show-modification-date="true"
|
||||
:limit="12"
|
||||
:title="t('components.library.TagDetail.header.channels')"
|
||||
:action="{
|
||||
text: t('components.library.TagDetail.link.channels'),
|
||||
to: {name: 'library.channels.browse', query: {tag: id}},
|
||||
secondary: true,
|
||||
solid: true
|
||||
}"
|
||||
:filters="{tag: id, ordering: '-creation_date'}"
|
||||
/>
|
||||
<Spacer :size="64" />
|
||||
<album-widget
|
||||
:key="'album' + id"
|
||||
:show-count="true"
|
||||
:controls="false"
|
||||
:filters="{playable: true, ordering: '-creation_date', tag: id}"
|
||||
:title="t('components.library.TagDetail.header.albums')"
|
||||
:action="{
|
||||
text: t('components.library.TagDetail.link.albums'),
|
||||
to: {name: 'library.albums.browse', query: {tag: id}},
|
||||
secondary: true,
|
||||
solid: true
|
||||
}"
|
||||
/>
|
||||
<Spacer :size="64" />
|
||||
<track-widget
|
||||
:key="'track' + id"
|
||||
:show-count="true"
|
||||
:limit="12"
|
||||
item-classes="track-item inline"
|
||||
:url="'/tracks/'"
|
||||
:is-activity="false"
|
||||
:filters="{playable: true, ordering: '-creation_date', tag: id}"
|
||||
:title="t('components.library.TagDetail.header.tracks')"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
@ -334,27 +334,30 @@ watch(showDeleteModal, (newValue) => {
|
|||
</Layout>
|
||||
|
||||
<hr>
|
||||
<Layout flex gap-8>
|
||||
<span v-if="track.attributed_to">
|
||||
{{ t('components.library.TrackBase.subtitle.with-uploader') }}
|
||||
</span>
|
||||
<span v-else>
|
||||
{{ t('components.library.TrackBase.subtitle.without-uploader') }}
|
||||
</span>
|
||||
<ActorLink
|
||||
v-if="track.attributed_to"
|
||||
:actor="track.attributed_to"
|
||||
:avatar="false"
|
||||
/>
|
||||
<Layout
|
||||
flex
|
||||
gap-8
|
||||
>
|
||||
<span v-if="track.attributed_to">
|
||||
{{ t('components.library.TrackBase.subtitle.with-uploader') }}
|
||||
</span>
|
||||
<span v-else>
|
||||
{{ t('components.library.TrackBase.subtitle.without-uploader') }}
|
||||
</span>
|
||||
<ActorLink
|
||||
v-if="track.attributed_to"
|
||||
:actor="track.attributed_to"
|
||||
:avatar="false"
|
||||
/>
|
||||
|
||||
<time
|
||||
:title="track.creation_date"
|
||||
:datetime="track.creation_date"
|
||||
>
|
||||
{{ momentFormat(new Date(track.creation_date), 'LL') }}
|
||||
</time>
|
||||
<time
|
||||
:title="track.creation_date"
|
||||
:datetime="track.creation_date"
|
||||
>
|
||||
{{ momentFormat(new Date(track.creation_date), 'LL') }}
|
||||
</time>
|
||||
</Layout>
|
||||
<Spacer :size=16 />
|
||||
<Spacer :size="16" />
|
||||
|
||||
<Modal
|
||||
v-if="isEmbedable"
|
||||
|
|
|
@ -148,7 +148,7 @@ const trackDetails: {
|
|||
flex
|
||||
style="gap: 24px;"
|
||||
>
|
||||
<Spacer />
|
||||
<Spacer />
|
||||
<Layout
|
||||
stack
|
||||
style="flex: 1; gap: 0;"
|
||||
|
|
|
@ -52,10 +52,10 @@ if (import.meta.env.PROD) {
|
|||
</template>
|
||||
|
||||
<PlayButton
|
||||
:icon-only="true"
|
||||
:is-playable="playlist.is_playable"
|
||||
:playlist="playlist"
|
||||
/>
|
||||
:icon-only="true"
|
||||
:is-playable="playlist.is_playable"
|
||||
:playlist="playlist"
|
||||
/>
|
||||
|
||||
<a
|
||||
class="funkwhale link"
|
||||
|
|
|
@ -162,7 +162,7 @@ const submit = async () => {
|
|||
:placeholder="t('components.playlists.Form.placeholder.description')"
|
||||
:rows="3"
|
||||
:max-length="500"
|
||||
/>
|
||||
/>
|
||||
</div>
|
||||
<div class="field">
|
||||
<span id="updatePlaylistLabel" />
|
||||
|
|
|
@ -2866,7 +2866,8 @@
|
|||
"visibility": "Playlist visiblity"
|
||||
},
|
||||
"placeholder": {
|
||||
"name": "My awesome playlist"
|
||||
"name": "My awesome playlist",
|
||||
"description": "Description"
|
||||
}
|
||||
},
|
||||
"PlaylistModal": {
|
||||
|
@ -4070,7 +4071,8 @@
|
|||
"overview": "Overview",
|
||||
"manageUploads": "Manage uploads"
|
||||
},
|
||||
"title": "{username}'s profile"
|
||||
"title": "{username}'s profile",
|
||||
"copyUsername": "Copy federated profile link"
|
||||
},
|
||||
"ProfileOverview": {
|
||||
"button": {
|
||||
|
|
|
@ -147,8 +147,8 @@ const deletePlaylist = async () => {
|
|||
>
|
||||
</div>
|
||||
<Layout
|
||||
stack
|
||||
style="flex: 1; gap: 8px;"
|
||||
stack
|
||||
style="flex: 1; gap: 8px;"
|
||||
>
|
||||
<Spacer />
|
||||
<h1>{{ playlist.name }}</h1>
|
||||
|
@ -158,7 +158,10 @@ const deletePlaylist = async () => {
|
|||
<i class="bi bi-dot" />
|
||||
<Duration :seconds="playlist.duration" />
|
||||
</div>
|
||||
<Layout flex gap-8>
|
||||
<Layout
|
||||
flex
|
||||
gap-8
|
||||
>
|
||||
<!-- TODO: Translations -->
|
||||
by
|
||||
<ActorLink
|
||||
|
|
Ładowanie…
Reference in New Issue