Add page titles
This commit is contained in:
1 parent
e2e2fc7755
commit
cc0623ef4a
17 files changed
+38
-2
No files matched your search
@@ -2,6 +2,7 @@
|
||||
definePageMeta({
|
||||
layout: "admin",
|
||||
})
|
||||
useHead({ title: "Admin" })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -137,6 +137,7 @@ const show = (id?: string) => {
|
||||
|
||||
showModal.value = true
|
||||
}
|
||||
useHead({ title: "Admin - Albums" })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -87,6 +87,7 @@ const show = (id?: string) => {
|
||||
|
||||
showModal.value = true
|
||||
}
|
||||
useHead({ title: "Admin - Artists" })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -79,6 +79,7 @@ const show = (id?: string) => {
|
||||
|
||||
showModal.value = true
|
||||
}
|
||||
useHead({ title: "Admin - Genres" })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<script setup lang="ts"></script>
|
||||
<script setup lang="ts">useHead({ title: "Admin" })
|
||||
</script>
|
||||
|
||||
<template></template>
|
||||
@@ -219,6 +219,7 @@ const show = (id?: string) => {
|
||||
|
||||
showModal.value = true
|
||||
}
|
||||
useHead({ title: "Admin - Songs" })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -9,6 +9,7 @@ const { data: tracksData } = await useApiFetch<Track[]>(
|
||||
)
|
||||
|
||||
const { playAlbum, playShuffledAlbum, playAlbumAtIndex } = usePlayer()
|
||||
useHead({ title: computed(() => albumData.value ? `${albumData.value.name} - Album` : "Album") })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -36,6 +36,7 @@ const scrollWidth = () => {
|
||||
}
|
||||
|
||||
const { playAlbum, playShuffledAlbum, playAlbumAtIndex } = usePlayer()
|
||||
useHead({ title: computed(() => artistData.value ? `${artistData.value.name} - Artist` : "Artist") })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -7,6 +7,7 @@ const { data: tracksData } = await useApiFetch<Track[]>(
|
||||
)
|
||||
|
||||
const { playAlbumAtIndex } = usePlayer()
|
||||
useHead({ title: "Artist Songs" })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
definePageMeta({
|
||||
layout: false,
|
||||
})
|
||||
useHead({ title: "Sign In" })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -15,6 +15,7 @@ const submit = async (e: any) => {
|
||||
toast.show(e, "error")
|
||||
}
|
||||
}
|
||||
useHead({ title: "Sign In" })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts"></script>
|
||||
<script setup lang="ts">useHead({ title: "Home" })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<h1>Home</h1>
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
useHead({ title: "Albums" })
|
||||
</script>
|
||||
|
||||
<template></template>
|
||||
@@ -1 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
useHead({ title: "Artists" })
|
||||
</script>
|
||||
|
||||
<template></template>
|
||||
@@ -1 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
useHead({ title: "Songs" })
|
||||
</script>
|
||||
|
||||
<template></template>
|
||||
@@ -80,6 +80,7 @@ watch(currentSong, (track) => {
|
||||
const playResult = (result: SearchResult | Track) => {
|
||||
if ("album" in result && result.album) playAlbum([result as Track])
|
||||
}
|
||||
useHead({ title: computed(() => query.value ? `Search: ${query.value}` : "Search") })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in new issue
Block a user