feat(protect): 验证界面扩到 7 套差异化设计(老 DuiLib 实现)
Docker Build / Build and Push Docker Image (push) Successful in 1m2s
Docker Build / Deploy to Server (push) Successful in 3s

按「结构不同」而不是「换色」来做,避免同质化:
- dark      竖排紧凑(深灰 + 顶部条)
- light     浅色办公
- industrial 工业蓝 · 横向卡密行 + 双按钮
- compact   极简横幅 640x132:左程序名/设备指纹,右输入框 + 激活(单行)
- split     左右分栏 580x320:左 168px 品牌竖栏(VFY/软件授权/版本),右表单
- card      宽扁卡片 620x290:顶部 74px 强调色条 + 双列(左说明/右表单)
- terminal  终端风 560x300:vfy@local 提示符、> 输入前缀、[ 执行激活 ]

壳侧改为皮肤表驱动(SkinDef{kSkins[]}),新增导出 VerifyShellThemes() 返回主题清单;
后端 ShellThemes 同步扩到 8 项,前端加壳页下拉 8 项 + zh/en i18n。
e2e 实测 8 套:classic 走 332KB 原壳,其余 7 套走 710656B DuiLib 壳,cfg 主题各自正确。
This commit is contained in:
Hermes Agent
2026-11-23 01:15:22 +08:00
parent 871c68e3b6
commit 2575473f6c
5 changed files with 19 additions and 3 deletions
Binary file not shown.
+5 -1
View File
@@ -32,9 +32,13 @@ const (
// ShellThemes 可选的验证界面皮肤。classic = 原 Direct2D 壳,其余是 DuiLib 壳
var ShellThemes = map[string]string{
"classic": "经典(Direct2D 原版)",
"dark": "深色 · 卡密登录",
"dark": "深色 · 竖排紧凑",
"light": "浅色 · 办公风",
"industrial": "工业蓝 · 设备授权",
"compact": "极简横幅 · 单行激活",
"split": "左右分栏 · 品牌竖栏",
"card": "宽扁卡片 · 双列说明",
"terminal": "终端风 · 命令行",
}
// NormalizeTheme 校验并归一化主题名
@@ -80,6 +80,10 @@ const themeOptions = computed(() => [
{ value: 'dark', label: t('admin.protect.themeDark') },
{ value: 'light', label: t('admin.protect.themeLight') },
{ value: 'industrial', label: t('admin.protect.themeIndustrial') },
{ value: 'compact', label: t('admin.protect.themeCompact') },
{ value: 'split', label: t('admin.protect.themeSplit') },
{ value: 'card', label: t('admin.protect.themeCard') },
{ value: 'terminal', label: t('admin.protect.themeTerminal') },
])
// DuiLib 壳目前只有 64 位构建;32 位程序产物会回落到 classic 壳(服务端处理)
const themeDisabled = computed(() => false)
+5 -1
View File
@@ -2657,7 +2657,11 @@
"themeDark": "Dark · card key login",
"themeLight": "Light · office style",
"themeIndustrial": "Industrial blue · device licensing",
"themeHint": "DuiLib skins apply to 64-bit builds; 32-bit binaries keep the classic shell."
"themeHint": "DuiLib skins apply to 64-bit builds; 32-bit binaries keep the classic shell.",
"themeCompact": "Compact banner · single row",
"themeSplit": "Split · brand sidebar",
"themeCard": "Wide card · two columns",
"themeTerminal": "Terminal style"
},
"signProfiles": {
"title": "Signing certificates",
+5 -1
View File
@@ -2676,7 +2676,11 @@
"themeDark": "深色 · 卡密登录",
"themeLight": "浅色 · 办公风",
"themeIndustrial": "工业蓝 · 设备授权",
"themeHint": "DuiLib 皮肤目前 64 位生效;32 位程序仍用经典壳。选好皮肤后加壳,产物弹窗就按该皮肤渲染。"
"themeHint": "DuiLib 皮肤目前 64 位生效;32 位程序仍用经典壳。选好皮肤后加壳,产物弹窗就按该皮肤渲染。",
"themeCompact": "极简横幅 · 单行激活",
"themeSplit": "左右分栏 · 品牌竖栏",
"themeCard": "宽扁卡片 · 双列说明",
"themeTerminal": "终端风 · 命令行"
},
"signProfiles": {
"title": "签名证书",