style(格式化): 改成单引号、一行最长 160,全仓重新格式化
Deploy / deploy (push) Canceled after 0s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-10-26 13:52:24 +08:00
1 parent 530e1a3d5d
commit 195069450f
480 files changed
+15507 -24650

No files matched your search

+4 -4
View File
@@ -1,6 +1,6 @@
import { z } from "zod"
import { z } from 'zod'
export const achievementRaritySchema = z.enum(["bronze", "silver", "gold", "platinum"])
export const achievementRaritySchema = z.enum(['bronze', 'silver', 'gold', 'platinum'])
export const achievementSchema = z.object({
id: z.number().int(),
@@ -10,7 +10,7 @@ export const achievementSchema = z.object({
rarity: achievementRaritySchema,
hidden: z.boolean(),
metric: z.string().nullable(),
operator: z.enum(["gte", "lte"]).nullable(),
operator: z.enum(['gte', 'lte']).nullable(),
threshold: z.number().int().nullable(),
unlocked: z.boolean(),
unlockTime: z.string().nullable(),
@@ -65,7 +65,7 @@ export const pendingAchievementSchema = z.object({
* 题单奖章和成就来自两张表、id 会重叠,前端靠它区分(见 events.ts 的 publishAchievementNotification)。
*/
export const achievementNotificationSchema = pendingAchievementSchema.extend({
kind: z.enum(["achievement", "badge"]),
kind: z.enum(['achievement', 'badge']),
})
export const markAchievementsReadSchema = z.object({