components:galleries :)

This commit is contained in:
lovebird 2025-03-05 09:35:54 +01:00
parent 3b82514a6c
commit 757542610e
3 changed files with 1331 additions and 5 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -139,7 +139,10 @@ export const VersionSchema = z.object({
export const AssetsSchema = z.object({
gallery: z.array(AssetImageSchema).optional(),
renderings: z.array(AssetImageSchema).optional(),
components: z.array(AssetImageSchema).optional()
components: z.array(AssetImageSchema).optional(),
configurations: z.array(AssetImageSchema).optional(),
showcase: z.array(AssetImageSchema).optional(),
samples: z.array(AssetImageSchema).optional()
})
export const ProductionSchema = z.object({
@ -191,7 +194,10 @@ export const ComponentConfigSchema = z.object({
assets: AssetsSchema.default({
gallery: [],
renderings: [],
components: []
components: [],
configurations: [],
showcase: [],
samples: []
}),
resources: z.array(ResourceSchema).default([]),
tests: z.array(ResourceSchema).default([]),
@ -207,6 +213,15 @@ export const ComponentConfigSchema = z.object({
},
components:{
glob: [IMAGES_GLOB]
},
configurations:{
glob: [IMAGES_GLOB]
},
showcase:{
glob: [IMAGES_GLOB]
},
samples:{
glob: [IMAGES_GLOB]
}
}),