beeeeg update
Some checks failed
Test and deploy staging / staging (push) Has been cancelled

This commit is contained in:
2026-09-23 04:15:10 +00:00
parent 487eff5bb2
commit d0c7b6548b
135 changed files with 9531 additions and 1777 deletions

View File

@@ -6,5 +6,18 @@ export const createArticleSchema = z.object({
export const updateArticleSchema = z.object({
title: z.string().min(1).max(256),
content: z.string().max(50000)
slug: z.string().min(1).max(120),
content: z.string().max(50000),
tags: z.array(z.string().min(1).max(32)).max(8)
});
export function parseArticleTags(value: string) {
return [
...new Set(
value
.split(',')
.map((tag) => tag.trim().toLowerCase())
.filter(Boolean)
)
];
}