3D Public Preview Initial Test
This commit is contained in:
@@ -80,6 +80,26 @@ export const announcements = defineCollection({
|
||||
}),
|
||||
});
|
||||
|
||||
export const publics = defineCollection({
|
||||
type: "data",
|
||||
schema: ({image}) => z.object({
|
||||
"name": z.string(),
|
||||
"description": z.string(),
|
||||
"id": z.number().positive(),
|
||||
"creator": z.string().array().optional(),
|
||||
"showcase": z.string().url().optional(),
|
||||
"camera": z.object({
|
||||
"fov": z.number().optional(),
|
||||
"near": z.number().optional(),
|
||||
"far": z.number().optional(),
|
||||
"distance": z.number().optional(),
|
||||
}).optional(),
|
||||
"image": image(),
|
||||
"xray": image().optional(),
|
||||
"gamemode": reference("modes"),
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = {
|
||||
"pages": pages,
|
||||
"help": help,
|
||||
@@ -87,4 +107,5 @@ export const collections = {
|
||||
"rules": rules,
|
||||
"downloads": downloads,
|
||||
"announcements": announcements,
|
||||
"publics": publics,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user