kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
fix(front): more layout consistency fixes
rodzic
346fdd10c7
commit
d9a54fb9ba
|
@ -69,6 +69,7 @@ fetchData()
|
||||||
v-title="labels.title"
|
v-title="labels.title"
|
||||||
main
|
main
|
||||||
stack
|
stack
|
||||||
|
gap-84
|
||||||
>
|
>
|
||||||
<Header
|
<Header
|
||||||
page-heading
|
page-heading
|
||||||
|
@ -79,33 +80,28 @@ fetchData()
|
||||||
:limit="4"
|
:limit="4"
|
||||||
:title="t('components.library.Home.header.recentlyAdded')"
|
:title="t('components.library.Home.header.recentlyAdded')"
|
||||||
/>
|
/>
|
||||||
<Spacer />
|
|
||||||
<track-widget
|
<track-widget
|
||||||
:title="t('components.library.Home.header.recentlyListened')"
|
:title="t('components.library.Home.header.recentlyListened')"
|
||||||
:url="'history/listenings/'"
|
:url="'history/listenings/'"
|
||||||
:filters="{ scope, ordering: '-creation_date', ...qualityFilters }"
|
:filters="{ scope, ordering: '-creation_date', ...qualityFilters }"
|
||||||
:websocket-handlers="['Listen']"
|
:websocket-handlers="['Listen']"
|
||||||
/>
|
/>
|
||||||
<Spacer />
|
|
||||||
<playlist-widget
|
<playlist-widget
|
||||||
:url="'playlists/'"
|
:url="'playlists/'"
|
||||||
:filters="{scope: scope, playable: true, ordering: '-modification_date', limit: 4}"
|
:filters="{scope: scope, playable: true, ordering: '-modification_date', limit: 4}"
|
||||||
:title="t('components.library.Home.header.playlists')"
|
:title="t('components.library.Home.header.playlists')"
|
||||||
/>
|
/>
|
||||||
<Spacer />
|
|
||||||
<track-widget
|
<track-widget
|
||||||
:title="t('components.library.Home.header.recentlyFavorited')"
|
:title="t('components.library.Home.header.recentlyFavorited')"
|
||||||
:url="'favorites/tracks/'"
|
:url="'favorites/tracks/'"
|
||||||
:filters="{scope: scope, ordering: '-creation_date'}"
|
:filters="{scope: scope, ordering: '-creation_date'}"
|
||||||
/>
|
/>
|
||||||
<Spacer />
|
|
||||||
<channels-widget
|
<channels-widget
|
||||||
:limit="4"
|
:limit="4"
|
||||||
:filters="{ordering: '-creation_date', external: 'false'}"
|
:filters="{ordering: '-creation_date', external: 'false'}"
|
||||||
:title="t('components.library.Home.header.newChannels')"
|
:title="t('components.library.Home.header.newChannels')"
|
||||||
:show-modification-date="true"
|
:show-modification-date="true"
|
||||||
/>
|
/>
|
||||||
<Spacer />
|
|
||||||
<artist-widget
|
<artist-widget
|
||||||
:limit="4"
|
:limit="4"
|
||||||
:filters="{playable: true, ordering: '-creation_date', include_channels: true, content_category: 'podcast'}"
|
:filters="{playable: true, ordering: '-creation_date', include_channels: true, content_category: 'podcast'}"
|
||||||
|
|
|
@ -146,8 +146,6 @@ const { to: upload } = useModal('upload')
|
||||||
stack
|
stack
|
||||||
main
|
main
|
||||||
>
|
>
|
||||||
<!-- TODO: Find out why lint:tsc doesn't like `onClick` while language server does -->
|
|
||||||
<!-- @vue-ignore -->
|
|
||||||
<Header
|
<Header
|
||||||
page-heading
|
page-heading
|
||||||
:h1="t('components.library.Podcasts.header.browse')"
|
:h1="t('components.library.Podcasts.header.browse')"
|
||||||
|
|
|
@ -115,6 +115,7 @@ const paginateOptions = computed(() => sortedUniq([12, 25, 50, paginateBy.value]
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Layout
|
<Layout
|
||||||
|
v-title="labels.title"
|
||||||
main
|
main
|
||||||
stack
|
stack
|
||||||
gap-84
|
gap-84
|
||||||
|
@ -158,9 +159,8 @@ const paginateOptions = computed(() => sortedUniq([12, 25, 50, paginateBy.value]
|
||||||
<Section
|
<Section
|
||||||
:h2="t('components.library.Radios.header.user')"
|
:h2="t('components.library.Radios.header.user')"
|
||||||
align-left
|
align-left
|
||||||
:columns-per-item="3"
|
|
||||||
:action="{
|
:action="{
|
||||||
to: {name: 'library.radios.build'},
|
to: { name: 'library.radios.build' },
|
||||||
text: t('components.library.Radios.button.create'),
|
text: t('components.library.Radios.button.create'),
|
||||||
icon: 'bi-plus',
|
icon: 'bi-plus',
|
||||||
solid: true,
|
solid: true,
|
||||||
|
@ -168,7 +168,6 @@ const paginateOptions = computed(() => sortedUniq([12, 25, 50, paginateBy.value]
|
||||||
disabled: !store.state.auth.authenticated || undefined
|
disabled: !store.state.auth.authenticated || undefined
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<Spacer no-size />
|
|
||||||
<Layout
|
<Layout
|
||||||
flex
|
flex
|
||||||
form
|
form
|
||||||
|
|
|
@ -259,9 +259,7 @@ const handleRemovedNote = (uuid: string) => {
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<template
|
<template v-if="!isCollapsed">
|
||||||
v-if="!isCollapsed"
|
|
||||||
>
|
|
||||||
<Layout flex>
|
<Layout flex>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<h3>
|
<h3>
|
||||||
|
|
|
@ -171,18 +171,13 @@ const showCreateModal = ref(false)
|
||||||
gap-84
|
gap-84
|
||||||
>
|
>
|
||||||
<Spacer no-size />
|
<Spacer no-size />
|
||||||
<!-- TODO: `yarn lint:tsc` doesn't understand the `Prop` type for `Header` while the language server does. It may be a question of typescript version... Investigate and fix! https://dev.funkwhale.audio/funkwhale/funkwhale/-/issues/2437 -->
|
|
||||||
<!-- @vue-ignore -->
|
|
||||||
<Section
|
<Section
|
||||||
v-if="store.state.auth.authenticated"
|
v-if="store.state.auth.authenticated"
|
||||||
:h1="t('views.channels.SubscriptionsList.title')"
|
:h1="t('views.channels.SubscriptionsList.title')"
|
||||||
:action="{
|
:action="{
|
||||||
text: t('views.channels.SubscriptionsList.link.addNew'),
|
text: t('views.channels.SubscriptionsList.link.addNew'),
|
||||||
// @ts-ignore
|
|
||||||
onClick: () => { showSubscribeModal = true },
|
onClick: () => { showSubscribeModal = true },
|
||||||
// @ts-ignore
|
|
||||||
primary: true,
|
primary: true,
|
||||||
// @ts-ignore
|
|
||||||
icon: 'bi-plus'
|
icon: 'bi-plus'
|
||||||
}"
|
}"
|
||||||
large-section-heading
|
large-section-heading
|
||||||
|
|
Ładowanie…
Reference in New Issue