Added Case Files Event, restructured data files, new servants, etc.
This commit is contained in:
parent
f4ad0fa12d
commit
bee2d59662
26 changed files with 1044 additions and 676 deletions
src/content
|
@ -1,23 +1,28 @@
|
|||
import { z, defineCollection } from 'astro:content'
|
||||
|
||||
const taEntry = z.object({
|
||||
title: z.string(),
|
||||
link: z.string().url(),
|
||||
date: z.string().transform((str) => new Date(str)),
|
||||
servant: z.string(),
|
||||
turns: z.string(),
|
||||
runner: z.string(),
|
||||
})
|
||||
|
||||
const taInfo = defineCollection({
|
||||
type: 'data',
|
||||
schema: z.object({
|
||||
info: z.object({
|
||||
title: z.string(),
|
||||
questReleaseDate: z.string().transform((str) => new Date(str)),
|
||||
releaseDate: z.string().transform((str) => new Date(str)),
|
||||
shortdescription: z.string(),
|
||||
description: z.string(),
|
||||
fightNumber: z.number().default(1),
|
||||
releaseNumber: z.number().default(1),
|
||||
}),
|
||||
data: z.array(
|
||||
quests: z.array(
|
||||
z.object({
|
||||
title: z.string(),
|
||||
link: z.string().url(),
|
||||
date: z.string().transform((str) => new Date(str)),
|
||||
servant: z.string(),
|
||||
turns: z.string(),
|
||||
runner: z.string(),
|
||||
questTitle: z.string(),
|
||||
description: z.string(),
|
||||
data: z.array(taEntry)
|
||||
})
|
||||
),
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue