-
Notifications
You must be signed in to change notification settings - Fork 43
/
nuxt.schema.ts
218 lines (217 loc) · 6.91 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
import { field, group } from '@nuxthq/studio/theme'
export default defineNuxtSchema({
appConfig: {
ui: group({
title: 'UI',
description: 'UI Customization.',
icon: 'i-mdi-palette-outline',
fields: {
icons: group({
title: 'Icons',
description: 'Manage icons used in UI Pro.',
icon: 'i-mdi-application-settings-outline',
fields: {
search: field({
type: 'icon',
title: 'Search Bar',
description: 'Icon to display in the search bar.',
icon: 'i-mdi-magnify',
default: 'i-heroicons-magnifying-glass-20-solid'
}),
dark: field({
type: 'icon',
title: 'Dark mode',
description: 'Icon of color mode button for dark mode.',
icon: 'i-mdi-moon-waning-crescent',
default: 'i-heroicons-moon-20-solid'
}),
light: field({
type: 'icon',
title: 'Light mode',
description: 'Icon of color mode button for light mode.',
icon: 'i-mdi-white-balance-sunny',
default: 'i-heroicons-sun-20-solid'
}),
external: field({
type: 'icon',
title: 'External Link',
description: 'Icon for external link.',
icon: 'i-mdi-arrow-top-right',
default: 'i-heroicons-arrow-up-right-20-solid'
}),
chevron: field({
type: 'icon',
title: 'Chevron',
description: 'Icon for chevron.',
icon: 'i-mdi-chevron-down',
default: 'i-heroicons-chevron-down-20-solid'
}),
hash: field({
type: 'icon',
title: 'Hash',
description: 'Icon for hash anchors.',
icon: 'i-ph-hash',
default: 'i-heroicons-hashtag-20-solid'
})
}
}),
primary: field({
type: 'string',
title: 'Primary',
description: 'Primary color of your UI.',
icon: 'i-mdi-palette-outline',
default: 'green',
required: ['sky', 'mint', 'rose', 'amber', 'violet', 'emerald', 'fuchsia', 'indigo', 'lime', 'orange', 'pink', 'purple', 'red', 'teal', 'yellow', 'green', 'blue', 'cyan', 'gray', 'white', 'black']
}),
gray: field({
type: 'string',
title: 'Gray',
description: 'Gray color of your UI.',
icon: 'i-mdi-palette-outline',
default: 'slate',
required: ['slate', 'cool', 'zinc', 'neutral', 'stone']
})
}
}),
seo: group({
title: 'SEO',
description: 'SEO configuration.',
icon: 'i-ph-app-window',
fields: {
siteName: field({
type: 'string',
title: 'Site Name',
description: 'Name used in ogSiteName and used as second part of your page title (My page title - Nuxt UI Pro).',
icon: 'i-mdi-web',
default: []
})
}
}),
header: group({
title: 'Header',
description: 'Header configuration.',
icon: 'i-mdi-page-layout-header',
fields: {
logo: group({
title: 'Logo',
description: 'Header logo configuration.',
icon: 'i-mdi-image-filter-center-focus-strong-outline',
fields: {
light: field({
type: 'media',
title: 'Light Mode Logo',
description: 'Pick an image from your gallery.',
icon: 'i-mdi-white-balance-sunny',
default: ''
}),
dark: field({
type: 'media',
title: 'Dark Mode Logo',
description: 'Pick an image from your gallery.',
icon: 'i-mdi-moon-waning-crescent',
default: ''
}),
alt: field({
type: 'string',
title: 'Alt',
description: 'Alt to display for accessibility.',
icon: 'i-mdi-alphabet-latin',
default: ''
})
}
}),
search: field({
type: 'boolean',
title: 'Search Bar',
description: 'Hide or display the search bar.',
icon: 'i-mdi-magnify',
default: true
}),
colorMode: field({
type: 'boolean',
title: 'Color Mode',
description: 'Hide or display the color mode button in your header.',
icon: 'i-mdi-moon-waning-crescent',
default: true
}),
links: field({
type: 'array',
title: 'Links',
description: 'Array of link object displayed in header.',
icon: 'i-mdi-link-variant',
default: []
})
}
}),
footer: group({
title: 'Footer',
description: 'Footer configuration.',
icon: 'i-mdi-page-layout-footer',
fields: {
credits: field({
type: 'string',
title: 'Footer credits section',
description: 'Text to display as credits in the footer.',
icon: 'i-mdi-circle-edit-outline',
default: ''
}),
colorMode: field({
type: 'boolean',
title: 'Color Mode',
description: 'Hide or display the color mode button in the footer.',
icon: 'i-mdi-moon-waning-crescent',
default: false
}),
links: field({
type: 'array',
title: 'Links',
description: 'Array of link object displayed in footer.',
icon: 'i-mdi-link-variant',
default: []
})
}
}),
toc: group({
title: 'Table of contents',
description: 'TOC configuration.',
icon: 'i-mdi-table-of-contents',
fields: {
title: field({
type: 'string',
title: 'Title',
description: 'Text to display as title of the main toc.',
icon: 'i-mdi-format-title',
default: ''
}),
bottom: group({
title: 'Bottom',
description: 'Bottom TOC configuration.',
icon: 'i-mdi-table-of-contents',
fields: {
title: field({
type: 'string',
title: 'Title',
description: 'Text to display as title of the bottom toc.',
icon: 'i-mdi-format-title',
default: ''
}),
edit: field({
type: 'string',
title: 'Edit Page Link',
description: 'URL of your repository content folder.',
icon: 'i-ph-note-pencil',
default: ''
}),
links: field({
type: 'array',
title: 'Links',
description: 'Array of link object displayed in bottom toc.',
icon: 'i-mdi-link-variant',
default: []
})
}
})
}
})
}
})