Skip to content

Commit b7c51a4

Browse files
authored
Update theme.json
1 parent 7eca712 commit b7c51a4

File tree

1 file changed

+80
-60
lines changed

1 file changed

+80
-60
lines changed

kami/schema/theme.json

Lines changed: 80 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,32 @@
2323
"umami": {
2424
"additionalProperties": false,
2525
"properties": {
26+
"endpoint": {
27+
"type": "string"
28+
},
2629
"id": {
2730
"type": "string"
2831
},
32+
"jsname": {
33+
"type": "string"
34+
},
2935
"url": {
3036
"type": "string"
3137
}
3238
},
3339
"required": [
3440
"url",
35-
"id"
41+
"id",
42+
"jsname"
3643
],
3744
"type": "object"
3845
}
3946
},
4047
"required": [
41-
"enable"
48+
"enable",
49+
"ga",
50+
"baidu",
51+
"umami"
4252
],
4353
"type": "object"
4454
},
@@ -62,11 +72,18 @@
6272
},
6373
"link": {
6474
"type": "string"
75+
},
76+
"qrcode": {
77+
"items": {
78+
"type": "string"
79+
},
80+
"type": "array"
6581
}
6682
},
6783
"required": [
6884
"enable",
69-
"link"
85+
"link",
86+
"qrcode"
7087
],
7188
"type": "object"
7289
},
@@ -86,7 +103,12 @@
86103
"type": "object"
87104
}
88105
},
89-
"required": [],
106+
"required": [
107+
"analyze",
108+
"donate",
109+
"player",
110+
"banDevtool"
111+
],
90112
"type": "object"
91113
},
92114
"name": {
@@ -111,11 +133,17 @@
111133
"type": "string"
112134
}
113135
},
114-
"required": [],
136+
"required": [
137+
"light",
138+
"dark"
139+
],
115140
"type": "object"
116141
}
117142
},
118-
"required": [],
143+
"required": [
144+
"src",
145+
"position"
146+
],
119147
"type": "object"
120148
},
121149
"custom": {
@@ -146,17 +174,10 @@
146174
"type": "string"
147175
},
148176
"figure": {
149-
"anyOf": [
150-
{
151-
"items": {
152-
"type": "string"
153-
},
154-
"type": "array"
155-
},
156-
{
157-
"type": "null"
158-
}
159-
]
177+
"items": {
178+
"type": "string"
179+
},
180+
"type": "array"
160181
},
161182
"footer": {
162183
"additionalProperties": false,
@@ -177,14 +198,20 @@
177198
"type": "string"
178199
}
179200
},
180-
"required": [],
201+
"required": [
202+
"light",
203+
"dark"
204+
],
181205
"type": "object"
182206
}
183207
},
184-
"required": [],
208+
"required": [
209+
"src",
210+
"position"
211+
],
185212
"type": "object"
186213
},
187-
"home_page": {
214+
"homePage": {
188215
"type": "string"
189216
},
190217
"icp": {
@@ -217,7 +244,10 @@
217244
"type": "string"
218245
}
219246
},
220-
"required": [],
247+
"required": [
248+
"content",
249+
"author"
250+
],
221251
"type": "object"
222252
},
223253
"navigation": {
@@ -243,53 +273,32 @@
243273
"type": "array"
244274
}
245275
},
246-
"required": [],
276+
"required": [
277+
"homePage",
278+
"motto",
279+
"icp",
280+
"background",
281+
"navigation"
282+
],
247283
"type": "object"
248284
},
249285
"header": {
250286
"additionalProperties": false,
251287
"properties": {
252288
"menu": {
253289
"items": {
254-
"additionalProperties": false,
255-
"properties": {
256-
"icon": {
257-
"type": "string"
258-
},
259-
"path": {
260-
"type": "string"
261-
},
262-
"subMenu": {
263-
"items": {
264-
"$ref": "#/definitions/interface-types_config.ts-1081-1182-types_config.ts-0-1266"
265-
},
266-
"type": "array"
267-
},
268-
"title": {
269-
"type": "string"
270-
},
271-
"type": {
272-
"type": "string"
273-
}
274-
},
275-
"required": [
276-
"title",
277-
"path",
278-
"icon"
279-
],
280-
"type": "object"
290+
"$ref": "#/definitions/Menu"
281291
},
282292
"type": "array"
283293
}
284294
},
285-
"required": [],
295+
"required": [
296+
"menu"
297+
],
286298
"type": "object"
287299
},
288-
"logo_svg": {
289-
"type": [
290-
"string",
291-
"null"
292-
]
300+
"logoSvg": {
301+
"type": "string"
293302
},
294303
"social": {
295304
"items": {
@@ -319,14 +328,25 @@
319328
"type": "array"
320329
}
321330
},
322-
"required": [],
331+
"required": [
332+
"favicon",
333+
"header",
334+
"social",
335+
"footer",
336+
"custom",
337+
"background"
338+
],
323339
"type": "object"
324340
}
325341
},
326-
"required": [],
342+
"required": [
343+
"name",
344+
"site",
345+
"function"
346+
],
327347
"type": "object"
328348
},
329-
"interface-types_config.ts-1081-1182-types_config.ts-0-1266": {
349+
"Menu": {
330350
"additionalProperties": false,
331351
"properties": {
332352
"icon": {
@@ -337,7 +357,7 @@
337357
},
338358
"subMenu": {
339359
"items": {
340-
"$ref": "#/definitions/interface-types_config.ts-1081-1182-types_config.ts-0-1266"
360+
"$ref": "#/definitions/Menu"
341361
},
342362
"type": "array"
343363
},
@@ -356,4 +376,4 @@
356376
"type": "object"
357377
}
358378
}
359-
}
379+
}

0 commit comments

Comments
 (0)