feat: release v1.0.0

This commit is contained in:
2026-07-29 22:10:33 +08:00
parent 3abf272e33
commit 97235386ca
98 changed files with 2389 additions and 467 deletions

View File

@@ -18,6 +18,7 @@ export const postSchema = z.object({
published_at: z.string(),
created_at: z.string(),
updated_at: z.string(),
tags: z.array(z.number().int()),
})
export type Post = z.infer<typeof postSchema>
@@ -41,6 +42,7 @@ export const postFormSchema = z
.int()
.optional()
.refine((v) => v !== undefined, '请选择文章分类'),
tags: z.array(z.number().int()).optional(),
})
.transform((data) => {
const { cover, ...rest } = data