✨ feat(apps): add structured label field to all application configurations
- add nested label field with en and zh translations for all parameters - maintain existing labelEn and labelZh fields for backward compatibility - apply consistent internationalization structure across all apps - improve localization support for multi-language user interfaces
This commit is contained in:
@@ -5,6 +5,9 @@ additionalProperties:
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
label:
|
||||
en: Port
|
||||
zh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -13,6 +16,9 @@ additionalProperties:
|
||||
envKey: DATA_PATH
|
||||
labelEn: Data Path
|
||||
labelZh: 数据路径
|
||||
label:
|
||||
en: Data Path
|
||||
zh: 数据路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "3389"
|
||||
@@ -20,6 +26,9 @@ additionalProperties:
|
||||
envKey: RDP_PORT
|
||||
labelEn: RDP Port
|
||||
labelZh: RDP 远程端口
|
||||
label:
|
||||
en: RDP Port
|
||||
zh: RDP 远程端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -28,6 +37,9 @@ additionalProperties:
|
||||
envKey: IMAGE_ISO_FILE
|
||||
labelEn: Windows ISO File
|
||||
labelZh: Windows ISO 文件路径
|
||||
label:
|
||||
en: Windows ISO File
|
||||
zh: Windows ISO 文件路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "Y"
|
||||
@@ -35,6 +47,9 @@ additionalProperties:
|
||||
envKey: MANUAL
|
||||
labelEn: Manual Install
|
||||
labelZh: 手动安装
|
||||
label:
|
||||
en: Manual Install
|
||||
zh: 手动安装
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
@@ -47,6 +62,9 @@ additionalProperties:
|
||||
envKey: DISK_SIZE
|
||||
labelEn: Disk Size
|
||||
labelZh: 磁盘大小
|
||||
label:
|
||||
en: Disk Size
|
||||
zh: 磁盘大小
|
||||
required: true
|
||||
type: text
|
||||
- default: "4GB"
|
||||
@@ -54,6 +72,9 @@ additionalProperties:
|
||||
envKey: RAM_SIZE
|
||||
labelEn: RAM Size
|
||||
labelZh: 内存大小
|
||||
label:
|
||||
en: RAM Size
|
||||
zh: 内存大小
|
||||
required: true
|
||||
type: text
|
||||
- default: "2"
|
||||
@@ -61,6 +82,9 @@ additionalProperties:
|
||||
envKey: CPU_CORES
|
||||
labelEn: CPU Cores
|
||||
labelZh: CPU 核心数
|
||||
label:
|
||||
en: CPU Cores
|
||||
zh: CPU 核心数
|
||||
required: true
|
||||
type: number
|
||||
- default: "docker"
|
||||
@@ -68,6 +92,9 @@ additionalProperties:
|
||||
envKey: USERNAME
|
||||
labelEn: Login Username (This setting is not valid for non-matching system images)
|
||||
labelZh: 登录用户名 (非匹配的系统镜像则此设置无效)
|
||||
label:
|
||||
en: Login Username (This setting is not valid for non-matching system images)
|
||||
zh: 登录用户名 (非匹配的系统镜像则此设置无效)
|
||||
required: true
|
||||
type: text
|
||||
- default: "password"
|
||||
@@ -75,6 +102,9 @@ additionalProperties:
|
||||
envKey: PASSWORD
|
||||
labelEn: Login Password (This setting is not valid for non-matching system images)
|
||||
labelZh: 登录密码 (非匹配的系统镜像则此设置无效)
|
||||
label:
|
||||
en: Login Password (This setting is not valid for non-matching system images)
|
||||
zh: 登录密码 (非匹配的系统镜像则此设置无效)
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
@@ -84,6 +114,9 @@ additionalProperties:
|
||||
envKey: RESTART_POLICY
|
||||
labelEn: Restart Policy
|
||||
labelZh: 重启策略
|
||||
label:
|
||||
en: Restart Policy
|
||||
zh: 重启策略
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
|
||||
@@ -5,6 +5,9 @@ additionalProperties:
|
||||
envKey: VERSION
|
||||
labelEn: Windows version for online download (also available at https://example.com/win.iso)
|
||||
labelZh: 在线下载的 Windows 版本 (也可 https://example.com/win.iso)
|
||||
label:
|
||||
en: Windows version for online download (also available at https://example.com/win.iso)
|
||||
zh: 在线下载的 Windows 版本 (也可 https://example.com/win.iso)
|
||||
required: true
|
||||
type: text
|
||||
- default: "40286"
|
||||
@@ -12,6 +15,9 @@ additionalProperties:
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
label:
|
||||
en: Port
|
||||
zh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -20,6 +26,9 @@ additionalProperties:
|
||||
envKey: DATA_PATH
|
||||
labelEn: Data Path
|
||||
labelZh: 数据路径
|
||||
label:
|
||||
en: Data Path
|
||||
zh: 数据路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "3389"
|
||||
@@ -27,6 +36,9 @@ additionalProperties:
|
||||
envKey: RDP_PORT
|
||||
labelEn: RDP Port
|
||||
labelZh: RDP 远程端口
|
||||
label:
|
||||
en: RDP Port
|
||||
zh: RDP 远程端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -35,6 +47,9 @@ additionalProperties:
|
||||
envKey: MANUAL
|
||||
labelEn: Manual Install
|
||||
labelZh: 手动安装
|
||||
label:
|
||||
en: Manual Install
|
||||
zh: 手动安装
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
@@ -47,6 +62,9 @@ additionalProperties:
|
||||
envKey: DISK_SIZE
|
||||
labelEn: Disk Size
|
||||
labelZh: 磁盘大小
|
||||
label:
|
||||
en: Disk Size
|
||||
zh: 磁盘大小
|
||||
required: true
|
||||
type: text
|
||||
- default: "4GB"
|
||||
@@ -54,6 +72,9 @@ additionalProperties:
|
||||
envKey: RAM_SIZE
|
||||
labelEn: RAM Size
|
||||
labelZh: 内存大小
|
||||
label:
|
||||
en: RAM Size
|
||||
zh: 内存大小
|
||||
required: true
|
||||
type: text
|
||||
- default: "2"
|
||||
@@ -61,6 +82,9 @@ additionalProperties:
|
||||
envKey: CPU_CORES
|
||||
labelEn: CPU Cores
|
||||
labelZh: CPU 核心数
|
||||
label:
|
||||
en: CPU Cores
|
||||
zh: CPU 核心数
|
||||
required: true
|
||||
type: number
|
||||
- default: "docker"
|
||||
@@ -68,6 +92,9 @@ additionalProperties:
|
||||
envKey: USERNAME
|
||||
labelEn: Login Username (This setting is not valid for non-matching system images)
|
||||
labelZh: 登录用户名 (非匹配的系统镜像则此设置无效)
|
||||
label:
|
||||
en: Login Username (This setting is not valid for non-matching system images)
|
||||
zh: 登录用户名 (非匹配的系统镜像则此设置无效)
|
||||
required: true
|
||||
type: text
|
||||
- default: "password"
|
||||
@@ -75,6 +102,9 @@ additionalProperties:
|
||||
envKey: PASSWORD
|
||||
labelEn: Login Password (This setting is not valid for non-matching system images)
|
||||
labelZh: 登录密码 (非匹配的系统镜像则此设置无效)
|
||||
label:
|
||||
en: Login Password (This setting is not valid for non-matching system images)
|
||||
zh: 登录密码 (非匹配的系统镜像则此设置无效)
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
@@ -84,6 +114,9 @@ additionalProperties:
|
||||
envKey: RESTART_POLICY
|
||||
labelEn: Restart Policy
|
||||
labelZh: 重启策略
|
||||
label:
|
||||
en: Restart Policy
|
||||
zh: 重启策略
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
@@ -98,6 +131,9 @@ additionalProperties:
|
||||
envKey: LANGUAGE
|
||||
labelEn: Language
|
||||
labelZh: 语言
|
||||
label:
|
||||
en: Language
|
||||
zh: 语言
|
||||
required: true
|
||||
type: text
|
||||
- default: "SG"
|
||||
@@ -105,6 +141,9 @@ additionalProperties:
|
||||
envKey: REGION
|
||||
labelEn: Region
|
||||
labelZh: 区域
|
||||
label:
|
||||
en: Region
|
||||
zh: 区域
|
||||
required: true
|
||||
type: text
|
||||
- default: "zh-CN"
|
||||
@@ -112,5 +151,8 @@ additionalProperties:
|
||||
envKey: KEYBOARD
|
||||
labelEn: Keyboard Layout
|
||||
labelZh: 键盘布局
|
||||
label:
|
||||
en: Keyboard Layout
|
||||
zh: 键盘布局
|
||||
required: true
|
||||
type: text
|
||||
|
||||
@@ -5,6 +5,9 @@ additionalProperties:
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
label:
|
||||
en: Port
|
||||
zh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -13,6 +16,9 @@ additionalProperties:
|
||||
envKey: DATA_PATH
|
||||
labelEn: Data Path
|
||||
labelZh: 数据路径
|
||||
label:
|
||||
en: Data Path
|
||||
zh: 数据路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "3389"
|
||||
@@ -20,6 +26,9 @@ additionalProperties:
|
||||
envKey: RDP_PORT
|
||||
labelEn: RDP Port
|
||||
labelZh: RDP 远程端口
|
||||
label:
|
||||
en: RDP Port
|
||||
zh: RDP 远程端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -28,6 +37,9 @@ additionalProperties:
|
||||
envKey: IMAGE_ISO_FILE
|
||||
labelEn: Windows ISO File
|
||||
labelZh: Windows ISO 文件路径
|
||||
label:
|
||||
en: Windows ISO File
|
||||
zh: Windows ISO 文件路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "Y"
|
||||
@@ -35,6 +47,9 @@ additionalProperties:
|
||||
envKey: MANUAL
|
||||
labelEn: Manual Install
|
||||
labelZh: 手动安装
|
||||
label:
|
||||
en: Manual Install
|
||||
zh: 手动安装
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
@@ -47,6 +62,9 @@ additionalProperties:
|
||||
envKey: DISK_SIZE
|
||||
labelEn: Disk Size
|
||||
labelZh: 磁盘大小
|
||||
label:
|
||||
en: Disk Size
|
||||
zh: 磁盘大小
|
||||
required: true
|
||||
type: text
|
||||
- default: "4GB"
|
||||
@@ -54,6 +72,9 @@ additionalProperties:
|
||||
envKey: RAM_SIZE
|
||||
labelEn: RAM Size
|
||||
labelZh: 内存大小
|
||||
label:
|
||||
en: RAM Size
|
||||
zh: 内存大小
|
||||
required: true
|
||||
type: text
|
||||
- default: "2"
|
||||
@@ -61,6 +82,9 @@ additionalProperties:
|
||||
envKey: CPU_CORES
|
||||
labelEn: CPU Cores
|
||||
labelZh: CPU 核心数
|
||||
label:
|
||||
en: CPU Cores
|
||||
zh: CPU 核心数
|
||||
required: true
|
||||
type: number
|
||||
- default: "docker"
|
||||
@@ -68,6 +92,9 @@ additionalProperties:
|
||||
envKey: USERNAME
|
||||
labelEn: Login Username (This setting is not valid for non-matching system images)
|
||||
labelZh: 登录用户名 (非匹配的系统镜像则此设置无效)
|
||||
label:
|
||||
en: Login Username (This setting is not valid for non-matching system images)
|
||||
zh: 登录用户名 (非匹配的系统镜像则此设置无效)
|
||||
required: true
|
||||
type: text
|
||||
- default: "password"
|
||||
@@ -75,6 +102,9 @@ additionalProperties:
|
||||
envKey: PASSWORD
|
||||
labelEn: Login Password (This setting is not valid for non-matching system images)
|
||||
labelZh: 登录密码 (非匹配的系统镜像则此设置无效)
|
||||
label:
|
||||
en: Login Password (This setting is not valid for non-matching system images)
|
||||
zh: 登录密码 (非匹配的系统镜像则此设置无效)
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
@@ -84,6 +114,9 @@ additionalProperties:
|
||||
envKey: RESTART_POLICY
|
||||
labelEn: Restart Policy
|
||||
labelZh: 重启策略
|
||||
label:
|
||||
en: Restart Policy
|
||||
zh: 重启策略
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
|
||||
Reference in New Issue
Block a user