-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.schema.ts
240 lines (236 loc) · 6.81 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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
export default defineNuxtSchema({
appConfig: {
/**
* Arch theme configuration.
*
* @studio-icon material-symbols:docs
*/
arch: {
/**
* General Information
* @studioIcon material-symbols:info-outline
*
*/
general: {
$schema: {
type: 'object',
properties: {
title: {
type: 'string',
default: 'Arch',
required: false,
description: 'Title of the website',
},
description: {
type: 'string',
default: 'Nuxt Arch Template',
description: 'Description of the website',
},
keywords: {
type: 'string',
default: 'nuxt arch template',
description: 'Keywords of the website',
},
image: {
type: 'string',
default: 'https://raw.githubusercontent.com/arashsheyda/arch/main/.playground/public/cover.jpg',
description: 'Image of the website',
},
locale: {
type: 'string',
default: 'en',
description: 'Locale of the website',
},
favicon: {
type: 'string',
default: 'https://raw.githubusercontent.com/arashsheyda/arch/main/.playground/public/favicon.ico',
description: 'Favicon of the website',
},
themeColor: {
type: 'string',
default: '#ffffff',
description: 'Theme color of the website (for mobile)',
},
sponsor: {
type: 'string',
default: null,
description: 'A link to your sponsorship page',
},
},
},
},
/**
* Navigation links
* @studioIcon material-symbols:menu-outline
*
* Will be used in Banner component.
*/
banner: {
$schema: {
type: 'object' | 'boolean',
properties: {
image: {
type: 'string',
default: 'https://raw.githubusercontent.com/arashsheyda/arch/main/.playground/public/images/banner.jpg',
description: 'Image of the banner',
},
alt: {
type: 'string',
default: 'Arch Banner',
description: 'Description of the banner',
},
},
},
},
/**
* Navigation links
* @studioIcon material-symbols:menu-outline
*
* Will be used in Sidebar component.
*
*/
aside: {
$schema: {
type: 'object',
properties: {
name: {
type: 'string',
default: 'John Doe',
description: 'Name of the person',
},
job: {
type: 'string',
default: 'Full Stack Developer',
description: 'Job of the person',
},
image: {
type: 'string',
default: 'https://raw.githubusercontent.com/arashsheyda/arch/main/.playground/public/images/logo.jpg',
description: 'Image of the person',
},
imageHover: {
type: 'string',
default: 'https://raw.githubusercontent.com/arashsheyda/arch/main/.playground/public/images/logo-hover.jpg',
description: 'Image of the person when hovering',
},
email: {
type: 'string',
default: 'arashi.sheyda@gmail.com',
description: 'Email of the person',
},
phone: {
type: 'string',
description: 'Phone of the person',
},
company: {
type: 'string',
description: 'Company of the person',
},
location: {
type: 'string',
description: 'Location of the person',
},
},
},
},
/**
* Navigation links
* @studioIcon material-symbols:menu-outline
*
* Will be used in Footer component.
*/
footer: {
$schema: {
type: 'object',
properties: {
copyright: {
type: 'object',
properties: {
name: {
type: 'string',
default: 'Developer',
description: 'Name of author',
},
link: {
type: 'string',
default: '/',
description: 'link of author',
},
},
},
poweredBy: {
type: 'boolean',
default: true,
description: 'Show powered by Arch & Nuxt',
},
links: {
type: 'array',
items: {
type: 'object',
required: ['title', 'url'],
properties: {
title: {
type: 'string',
description: 'Title of the link',
},
url: {
type: 'string',
description: 'URL when clicking on the link',
},
icon: {
type: 'string',
description: 'check https://icones.js.org/ for icons',
},
target: {
type: 'string',
default: '_blank',
description: 'Target attribute of the link',
},
},
},
},
},
},
},
/**
* Social links
*
* Will be used in AppSocialIcons component.
*
* @studioIcon material-symbols:share-outline
*/
socials: {
$schema: {
type: 'array',
items: {
type: 'object',
required: ['title', 'icon', 'url'],
properties: {
title: {
type: 'string',
description: 'Title of the social network',
},
icon: {
type: 'string',
description: 'check https://icones.js.org/ for icons',
},
url: {
type: 'string',
description: 'URL when clicking on the link',
},
color: {
type: 'string',
description: 'Color when hover on the link',
},
target: {
type: 'string',
default: '_blank',
description: 'Target attribute of the link',
},
},
},
},
},
},
},
})