1
0

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:
pooneyy
2025-11-06 23:35:02 +08:00
parent 24ed5c9e9d
commit 9779122311
914 changed files with 17477 additions and 886 deletions

View File

@@ -5,6 +5,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_HTTP
labelEn: WebUI Port
labelZh: 网页端口
label:
en: WebUI Port
zh: 网页端口
required: true
rule: paramPort
type: number
@@ -13,6 +16,9 @@ additionalProperties:
envKey: WIREGUARD_PORT
labelEn: Wireguard port
labelZh: Wireguard 端口
label:
en: Wireguard port
zh: Wireguard 端口
required: true
rule: paramPort
type: number
@@ -21,6 +27,9 @@ additionalProperties:
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
label:
en: Data folder path
zh: 数据文件夹路径
required: true
type: text
- default: "$$2a$$12$$0AL3hGeedv8fOfsNtfZY5OO3mMvBqlnZA8QmeBGfWPAQEoZ7LZ/7a"
@@ -28,6 +37,9 @@ additionalProperties:
envKey: PASSWORD_HASH
labelEn: Webui password hash (Note to check the documentation for instructions, the default is `PAssw00rd`)
labelZh: 网页密码 hash (注意查看说明文档,默认为`PAssw00rd`)
label:
en: Webui password hash (Note to check the documentation for instructions, the default is `PAssw00rd`)
zh: 网页密码 hash (注意查看说明文档,默认为`PAssw00rd`)
required: true
type: password
- default: "172.17.0.1"
@@ -35,6 +47,9 @@ additionalProperties:
envKey: HOST_ADDRESS
labelEn: Host address (must change item)
labelZh: 本机地址(必改项)
label:
en: Host address (must change item)
zh: 本机地址(必改项)
required: true
type: text
- default: "10.0.8.x"
@@ -42,6 +57,9 @@ additionalProperties:
envKey: WG_DEFAULT_ADDRESS
labelEn: Default Wireguard Segment
labelZh: 默认 Wireguard 网段
label:
en: Default Wireguard Segment
zh: 默认 Wireguard 网段
required: true
type: text
- default: "119.29.29.29,1.1.1.1"
@@ -49,6 +67,9 @@ additionalProperties:
envKey: WG_DEFAULT_DNS
labelEn: Default Wireguard DNS
labelZh: 默认 Wireguard DNS
label:
en: Default Wireguard DNS
zh: 默认 Wireguard DNS
required: true
type: text
- default: "1420"
@@ -56,6 +77,9 @@ additionalProperties:
envKey: WG_MTU
labelEn: Wireguard MTU
labelZh: Wireguard MTU
label:
en: Wireguard MTU
zh: Wireguard MTU
required: true
type: number
- default: "10.0.8.0/24"
@@ -63,6 +87,9 @@ additionalProperties:
envKey: WG_ALLOWED_IPS
labelEn: Wireguard Allowed IPs
labelZh: Wireguard 允许的 IP 段
label:
en: Wireguard Allowed IPs
zh: Wireguard 允许的 IP 段
required: true
type: text
- default: "25"
@@ -70,5 +97,8 @@ additionalProperties:
envKey: WG_PERSISTENT_KEEPALIVE
labelEn: Wireguard Persistent Keepalive
labelZh: Wireguard 保活间隔
label:
en: Wireguard Persistent Keepalive
zh: Wireguard 保活间隔
required: true
type: number