-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathnuxt.schema.ts
96 lines (95 loc) · 2.48 KB
/
nuxt.schema.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import { group, field } from '@nuxthq/studio/theme'
export default defineNuxtSchema({
appConfig: {
app: group({
title: 'App',
description: 'The app configuration.',
icon: 'i-mdi-apps',
fields: {
name: field({
type: 'string',
title: 'Name',
description: 'The name of the app.',
}),
description: field({
type: 'string',
title: 'Description',
description: 'The description of the app.',
}),
},
}),
header: group({
title: 'Header',
description: 'The header configuration.',
icon: 'i-mdi-menu',
fields: {
links: field({
type: 'array',
title: 'Links',
description: 'The links in the header.',
default: [],
}),
},
}),
footer: group({
title: 'Footer',
description: 'The footer configuration.',
icon: 'i-mdi-menu',
fields: {
links: field({
type: 'array',
title: 'Links',
description: 'The links in the footer.',
default: [],
}),
copyrightNotice: field({
type: 'string',
title: 'Copyright Notice',
description: 'The notice of the copyright.',
}),
smallLinks: field({
type: 'array',
title: 'Small Links',
description: 'The small links in the footer.',
default: [],
}),
},
}),
page: group({
title: 'Page',
description: 'The page configuration.',
icon: 'i-mdi-book-open-page-variant',
fields: {
article: group({
title: 'Article',
description: 'The article configuration.',
fields: {
cta: group({
title: 'Call to Action',
description: 'The call to action configuration.',
fields: {
label: field({
type: 'string',
title: 'Label',
description: 'The label of the call to action.',
}),
to: field({
type: 'string',
title: 'To',
description: 'The destination of the call to action.',
}),
},
}),
},
}),
},
}),
socials: field({
type: 'array',
title: 'Socials',
icon: 'i-mdi-share-variant',
description: 'The socials configuration.',
default: [],
}),
},
})