From f8ae3b92e5771e11c37038a44adddda27b4c414a Mon Sep 17 00:00:00 2001 From: logan Date: Fri, 22 May 2026 23:21:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=84=B1=E6=95=8F=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E4=B8=80=E9=94=AE=E5=A1=AB=E5=85=A5=20+=20=E5=AE=9E=E4=BE=8B?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E5=B7=B2=E8=84=B1=E6=95=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 脱敏字段支持标签化选择: 16个预设字段标签点击即添加 - 一键填入: 将全部预设字段填入 textarea - 复制全部: 复制预设字段列表到剪贴板 - 预设字段: mobile, concat_mobile, email_alias, email, password, ga_key, private_key, secret, secret_key, key_snow, telephone, username, real_name, token, two_factor_secret, content - 后端 InstanceResponse 不含 password 字段 (已脱敏) - 前端构建零错误, 后端202测试通过 --- frontend/src/pages/InstancePage.tsx | 41 +++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/InstancePage.tsx b/frontend/src/pages/InstancePage.tsx index 187a680..34262ab 100644 --- a/frontend/src/pages/InstancePage.tsx +++ b/frontend/src/pages/InstancePage.tsx @@ -318,6 +318,12 @@ function InstanceDetail({ instance, onBack, config, canEdit, canDelete, onDelete } /* ---------- CreateInstanceForm ---------- */ +const PRESET_MASK_FIELDS = [ + 'mobile', 'concat_mobile', 'email_alias', 'email', 'password', + 'ga_key', 'private_key', 'secret', 'secret_key', 'key_snow', + 'telephone', 'username', 'real_name', 'token', 'two_factor_secret', 'content', +]; + interface WorkflowStep { stage: string; role: string; @@ -507,8 +513,39 @@ function CreateInstanceForm({ defaultType, onCancel, onCreated }: { defaultType: setExcludedDbs(e.target.value)} className={inputCls} placeholder="以逗号分隔,如:sys, information_schema, mysql" />
- -