[web] Rename template slots

This commit is contained in:
Alain Nussbaumer 2025-03-15 15:06:45 +01:00
parent 9e2c9fddcb
commit 59b680db9b
36 changed files with 64 additions and 68 deletions

View File

@ -1,10 +1,10 @@
<template>
<div>
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title :content="{ title: $t('page.about.library') }" />
</template>
<template #heading-right>
<template #actions>
<control-button
:button="{
handler: openUpdateDialog,

View File

@ -34,7 +34,7 @@
</template>
</list-options>
</template>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #content>

View File

@ -24,10 +24,10 @@
</template>
</list-options>
</template>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #heading-right>
<template #actions>
<control-button
:button="{ handler: openDetails, icon: 'dots-horizontal' }"
/>

View File

@ -1,10 +1,10 @@
<template>
<div>
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #heading-right>
<template #actions>
<control-button
:button="{ handler: openDetails, icon: 'dots-horizontal' }"
/>

View File

@ -25,10 +25,10 @@
</template>
</list-options>
</template>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #heading-right>
<template #actions>
<control-button
:button="{ handler: openDetails, icon: 'dots-horizontal' }"
/>

View File

@ -34,7 +34,7 @@
</template>
</list-options>
</template>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #content>

View File

@ -5,7 +5,7 @@
<template #options>
<index-button-list :indices="albums.indices" />
</template>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #content>

View File

@ -1,10 +1,10 @@
<template>
<div>
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #heading-right>
<template #actions>
<control-button
:button="{ handler: openDetails, icon: 'dots-horizontal' }"
/>

View File

@ -5,7 +5,7 @@
<template #options>
<index-button-list :indices="artists.indices" />
</template>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #content>

View File

@ -5,7 +5,7 @@
<template #options>
<index-button-list :indices="genres.indices" />
</template>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #content>

View File

@ -1,10 +1,10 @@
<template>
<div>
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #heading-right>
<template #actions>
<control-button
:button="{ handler: openDetails, icon: 'dots-horizontal' }"
/>

View File

@ -12,10 +12,10 @@
</template>
</list-options>
</template>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #heading-right>
<template #actions>
<control-button
:button="{ handler: openDetails, icon: 'dots-horizontal' }"
/>

View File

@ -5,7 +5,7 @@
<template #options>
<index-button-list :indices="composers.indices" />
</template>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #content>

View File

@ -1,10 +1,10 @@
<template>
<div>
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title :content="{ title: name }" />
</template>
<template #heading-right>
<template #actions>
<control-button
:button="{ handler: openDetails, icon: 'dots-horizontal' }"
/>

View File

@ -4,10 +4,10 @@
<template #options>
<index-button-list :indices="albums.indices" />
</template>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #heading-right>
<template #actions>
<control-button
:button="{ handler: openDetails, icon: 'dots-horizontal' }"
/>

View File

@ -12,10 +12,10 @@
</template>
</list-options>
</template>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #heading-right>
<template #actions>
<control-button
:button="{ handler: openDetails, icon: 'dots-horizontal' }"
/>

View File

@ -5,7 +5,7 @@
<template #options>
<index-button-list :indices="genres.indices" />
</template>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #content>

View File

@ -2,7 +2,7 @@
<div>
<tabs-music />
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title
:content="{ title: $t('page.music.recently-added.title') }"
/>
@ -20,7 +20,7 @@
</template>
</content-with-heading>
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title
:content="{ title: $t('page.music.recently-played.title') }"
/>

View File

@ -2,7 +2,7 @@
<div>
<tabs-music />
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title
:content="{ title: $t('page.music.recently-added.title') }"
/>

View File

@ -2,7 +2,7 @@
<div>
<tabs-music />
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title
:content="{ title: $t('page.music.recently-played.title') }"
/>

View File

@ -2,7 +2,7 @@
<div>
<tabs-music />
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title
:content="{ title: $t('page.spotify.music.new-releases') }"
/>
@ -20,7 +20,7 @@
</template>
</content-with-heading>
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title
:content="{ title: $t('page.spotify.music.featured-playlists') }"
/>

View File

@ -2,7 +2,7 @@
<div>
<tabs-music />
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #content>

View File

@ -2,7 +2,7 @@
<div>
<tabs-music />
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #content>

View File

@ -1,7 +1,7 @@
<template>
<div>
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #content>

View File

@ -1,10 +1,10 @@
<template>
<div>
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #heading-right>
<template #actions>
<control-button
:button="{ handler: openDetails, icon: 'dots-horizontal' }"
/>

View File

@ -1,10 +1,10 @@
<template>
<div>
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #heading-right>
<template #actions>
<control-button
:button="{ handler: openDetails, icon: 'dots-horizontal' }"
/>

View File

@ -1,10 +1,10 @@
<template>
<div>
<content-with-heading v-if="tracks.items.length > 0">
<template #heading-left>
<template #heading>
<heading-title :content="{ title: $t('page.podcasts.new-episodes') }" />
</template>
<template #heading-right>
<template #actions>
<control-button
:button="{
handler: markAllAsPlayed,
@ -22,10 +22,10 @@
</template>
</content-with-heading>
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #heading-right>
<template #actions>
<control-button
v-if="rss.tracks > 0"
:button="{
@ -36,7 +36,7 @@
/>
<control-button
:button="{
handler: 'openAddPodcastDialog',
handler: openAddPodcastDialog,
icon: 'rss',
key: 'actions.add'
}"

View File

@ -1,10 +1,10 @@
<template>
<div>
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #heading-right>
<template #actions>
<control-button
:button="{
handler: uiStore.toggleHideReadItems,

View File

@ -1,7 +1,7 @@
<template>
<div>
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title :content="heading" />
</template>
<template #content>

View File

@ -50,7 +50,7 @@
<tabs-search @search-library="search" @search-spotify="searchSpotify" />
<template v-for="[type, items] in results" :key="type">
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title :content="{ title: $t(`page.search.${type}s`) }" />
</template>
<template #content>

View File

@ -33,7 +33,7 @@
<tabs-search @search-library="searchLibrary" @search-spotify="search" />
<template v-for="[type, items] in results" :key="type">
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title
:content="{ title: $t(`page.spotify.search.${type}s`) }"
/>

View File

@ -2,7 +2,7 @@
<div>
<tabs-settings />
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title
:content="{ title: $t('page.settings.artwork.title') }"
/>

View File

@ -2,15 +2,12 @@
<div>
<tabs-settings />
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title
:content="{ title: $t('page.settings.services.spotify.title') }"
/>
</template>
<template #content>
<div v-if="!spotify.spotify_installed" class="notification help">
<p v-text="$t('page.settings.services.spotify.no-support')" />
</div>
<div v-if="spotify.spotify_installed">
<div>
<p
@ -54,18 +51,16 @@
</div>
</div>
</div>
<div v-else v-text="$t('page.settings.services.spotify.no-support')" />
</template>
</content-with-heading>
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title
:content="{ title: $t('page.settings.services.lastfm.title') }"
/>
</template>
<template #content>
<div v-if="!lastfm.enabled" class="notification is-size-7">
<p v-text="$t('page.settings.services.lastfm.no-support')" />
</div>
<div v-if="lastfm.enabled">
<p
class="content"
@ -118,6 +113,7 @@
</form>
</div>
</div>
<div v-else v-text="$t('page.settings.services.lastfm.no-support')" />
</template>
</content-with-heading>
</div>

View File

@ -2,7 +2,7 @@
<div>
<tabs-settings />
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title
:content="{ title: $t('page.settings.devices.pairing') }"
/>
@ -40,7 +40,7 @@
</template>
</content-with-heading>
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title
:content="{ title: $t('page.settings.devices.speaker-pairing') }"
/>

View File

@ -2,7 +2,7 @@
<div>
<tabs-settings />
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title
:content="{ title: $t('page.settings.general.language') }"
/>
@ -15,7 +15,7 @@
</template>
</content-with-heading>
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title
:content="{ title: $t('page.settings.general.navigation-items') }"
/>
@ -88,7 +88,7 @@
</template>
</content-with-heading>
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title
:content="{ title: $t('page.settings.general.now-playing-page') }"
/>
@ -136,7 +136,7 @@
</template>
</content-with-heading>
<content-with-heading>
<template #heading-left>
<template #heading>
<heading-title
:content="{ title: $t('page.settings.general.recently-added-page') }"
/>

View File

@ -20,16 +20,16 @@
class="level-item is-flex-shrink-1 has-text-centered-mobile"
>
<div>
<slot name="heading-left" />
<slot name="heading" />
</div>
</div>
</div>
<div
v-if="$slots['heading-right']"
v-if="$slots.actions"
class="level-right has-text-centered-mobile"
>
<div class="buttons">
<slot name="heading-right" />
<slot name="actions" />
</div>
</div>
</nav>