From 5c35ea11c3b89b9fc7ed7b7914cce51c05e6129a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sat, 19 Apr 2025 11:01:06 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fix:=20=E4=BF=AE=E6=8E=89=E6=BC=8F?= =?UTF-8?q?=E6=8E=89=E7=9A=84"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 7a42f8c26ff429d27876d27dde62794f85b28663. --- src/onebot/action/extends/SetSpecialTitle.ts | 2 +- src/onebot/action/extends/TranslateEnWordToZn.ts | 2 +- src/webui/src/types/theme.ts | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/onebot/action/extends/SetSpecialTitle.ts b/src/onebot/action/extends/SetSpecialTitle.ts index 6193f2e2..2efe2727 100644 --- a/src/onebot/action/extends/SetSpecialTitle.ts +++ b/src/onebot/action/extends/SetSpecialTitle.ts @@ -5,7 +5,7 @@ import { z } from 'zod'; const SchemaData = z.object({ group_id: z.union([z.number(), z.string()]), user_id: z.union([z.number(), z.string()]), - special_title: z.string().default(''), + special_title: z.string({ default: '' }), }); type Payload = z.infer; diff --git a/src/onebot/action/extends/TranslateEnWordToZn.ts b/src/onebot/action/extends/TranslateEnWordToZn.ts index 7d360652..46a59408 100644 --- a/src/onebot/action/extends/TranslateEnWordToZn.ts +++ b/src/onebot/action/extends/TranslateEnWordToZn.ts @@ -3,7 +3,7 @@ import { ActionName } from '@/onebot/action/router'; import { z } from 'zod'; const SchemaData = z.object({ - words: z.array(z.string()), + words: Type.Array(z.string()), }); type Payload = z.infer; diff --git a/src/webui/src/types/theme.ts b/src/webui/src/types/theme.ts index 2c224023..f265a0bc 100644 --- a/src/webui/src/types/theme.ts +++ b/src/webui/src/types/theme.ts @@ -2,6 +2,8 @@ import { z } from 'zod'; export const themeType = z.object( { + // dark: Type.Record(Type.String(), Type.String()), + // light: Type.Record(Type.String(), Type.String()), dark: z.record(z.string(), z.string()), light: z.record(z.string(), z.string()), }