initiation librodrome
This commit is contained in:
30
app/composables/useSiteContent.ts
Normal file
30
app/composables/useSiteContent.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
interface NavItem {
|
||||
label: string
|
||||
to: string
|
||||
}
|
||||
|
||||
interface SiteContent {
|
||||
identity: {
|
||||
name: string
|
||||
description: string
|
||||
url: string
|
||||
}
|
||||
navigation: NavItem[]
|
||||
footer: {
|
||||
credits: string
|
||||
links: NavItem[]
|
||||
}
|
||||
gratewizard: {
|
||||
url: string
|
||||
popup: {
|
||||
width: number
|
||||
height: number
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function useSiteContent() {
|
||||
return useAsyncData<SiteContent>('site-content', () =>
|
||||
$fetch('/api/content/site'),
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user