mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-12 23:42:32 -04:00
[web] Rename template slots
This commit is contained in:
parent
9e2c9fddcb
commit
59b680db9b
@ -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,
|
||||
|
@ -34,7 +34,7 @@
|
||||
</template>
|
||||
</list-options>
|
||||
</template>
|
||||
<template #heading-left>
|
||||
<template #heading>
|
||||
<heading-title :content="heading" />
|
||||
</template>
|
||||
<template #content>
|
||||
|
@ -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' }"
|
||||
/>
|
||||
|
@ -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' }"
|
||||
/>
|
||||
|
@ -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' }"
|
||||
/>
|
||||
|
@ -34,7 +34,7 @@
|
||||
</template>
|
||||
</list-options>
|
||||
</template>
|
||||
<template #heading-left>
|
||||
<template #heading>
|
||||
<heading-title :content="heading" />
|
||||
</template>
|
||||
<template #content>
|
||||
|
@ -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>
|
||||
|
@ -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' }"
|
||||
/>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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' }"
|
||||
/>
|
||||
|
@ -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' }"
|
||||
/>
|
||||
|
@ -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>
|
||||
|
@ -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' }"
|
||||
/>
|
||||
|
@ -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' }"
|
||||
/>
|
||||
|
@ -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' }"
|
||||
/>
|
||||
|
@ -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>
|
||||
|
@ -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') }"
|
||||
/>
|
||||
|
@ -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') }"
|
||||
/>
|
||||
|
@ -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') }"
|
||||
/>
|
||||
|
@ -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') }"
|
||||
/>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<tabs-music />
|
||||
<content-with-heading>
|
||||
<template #heading-left>
|
||||
<template #heading>
|
||||
<heading-title :content="heading" />
|
||||
</template>
|
||||
<template #content>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<tabs-music />
|
||||
<content-with-heading>
|
||||
<template #heading-left>
|
||||
<template #heading>
|
||||
<heading-title :content="heading" />
|
||||
</template>
|
||||
<template #content>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<content-with-heading>
|
||||
<template #heading-left>
|
||||
<template #heading>
|
||||
<heading-title :content="heading" />
|
||||
</template>
|
||||
<template #content>
|
||||
|
@ -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' }"
|
||||
/>
|
||||
|
@ -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' }"
|
||||
/>
|
||||
|
@ -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'
|
||||
}"
|
||||
|
@ -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,
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<content-with-heading>
|
||||
<template #heading-left>
|
||||
<template #heading>
|
||||
<heading-title :content="heading" />
|
||||
</template>
|
||||
<template #content>
|
||||
|
@ -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>
|
||||
|
@ -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`) }"
|
||||
/>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<tabs-settings />
|
||||
<content-with-heading>
|
||||
<template #heading-left>
|
||||
<template #heading>
|
||||
<heading-title
|
||||
:content="{ title: $t('page.settings.artwork.title') }"
|
||||
/>
|
||||
|
@ -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>
|
||||
|
@ -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') }"
|
||||
/>
|
||||
|
@ -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') }"
|
||||
/>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user