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: Port
labelZh: 端口
label:
en: Port
zh: 端口
required: true
rule: paramPort
type: number
@@ -13,6 +16,9 @@ additionalProperties:
envKey: LISTEN_ADDR
labelEn: Listening address
labelZh: 监听地址
label:
en: Listening address
zh: 监听地址
required: true
type: text
- default: "./data"
@@ -20,6 +26,9 @@ additionalProperties:
envKey: DATA_PATH
labelEn: Data Path
labelZh: 数据路径
label:
en: Data Path
zh: 数据路径
required: true
type: text
- default: "Asia/Shanghai"
@@ -27,6 +36,9 @@ additionalProperties:
envKey: TIME_ZONE
labelEn: Time Zone
labelZh: 时区
label:
en: Time Zone
zh: 时区
required: true
type: text
- default: "@every 10s"
@@ -34,6 +46,9 @@ additionalProperties:
envKey: UPSNAP_INTERVAL
labelEn: Scan Interval
labelZh: 扫描间隔
label:
en: Scan Interval
zh: 扫描间隔
required: true
type: text
- default: "192.168.1.0/24"
@@ -41,6 +56,9 @@ additionalProperties:
envKey: UPSNAP_SCAN_RANGE
labelEn: Scan Range
labelZh: 扫描网段范围
label:
en: Scan Range
zh: 扫描网段范围
required: true
type: text
- default: "500ms"
@@ -48,6 +66,9 @@ additionalProperties:
envKey: UPSNAP_SCAN_TIMEOUT
labelEn: Scan Timeout
labelZh: 扫描超时
label:
en: Scan Timeout
zh: 扫描超时
required: true
type: text
- default: "true"
@@ -55,6 +76,9 @@ additionalProperties:
envKey: UPSNAP_PING_PRIVILEGED
labelEn: Ping Privileged
labelZh: 使用特权权限进行 Ping
label:
en: Ping Privileged
zh: 使用特权权限进行 Ping
required: true
type: select
values:
@@ -67,6 +91,9 @@ additionalProperties:
envKey: UPSNAP_WEBSITE_TITLE
labelEn: Website Title
labelZh: 网站标题
label:
en: Website Title
zh: 网站标题
required: true
type: text
- default: "119.29.29.29"
@@ -74,6 +101,9 @@ additionalProperties:
envKey: DNS_SERVER_1
labelEn: DNS Server 1
labelZh: DNS 服务器 1
label:
en: DNS Server 1
zh: DNS 服务器 1
required: true
type: text
- default: "223.5.5.5"
@@ -81,5 +111,8 @@ additionalProperties:
envKey: DNS_SERVER_2
labelEn: DNS Server 2
labelZh: DNS 服务器 2
label:
en: DNS Server 2
zh: DNS 服务器 2
required: true
type: text

View File

@@ -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: LISTEN_ADDR
labelEn: Listening address
labelZh: 监听地址
label:
en: Listening address
zh: 监听地址
required: true
type: text
- default: "./data"
@@ -20,6 +26,9 @@ additionalProperties:
envKey: DATA_PATH
labelEn: Data Path
labelZh: 数据路径
label:
en: Data Path
zh: 数据路径
required: true
type: text
- default: "Asia/Shanghai"
@@ -27,6 +36,9 @@ additionalProperties:
envKey: TIME_ZONE
labelEn: Time Zone
labelZh: 时区
label:
en: Time Zone
zh: 时区
required: true
type: text
- default: "@every 10s"
@@ -34,6 +46,9 @@ additionalProperties:
envKey: UPSNAP_INTERVAL
labelEn: Scan Interval
labelZh: 扫描间隔
label:
en: Scan Interval
zh: 扫描间隔
required: true
type: text
- default: "192.168.1.0/24"
@@ -41,6 +56,9 @@ additionalProperties:
envKey: UPSNAP_SCAN_RANGE
labelEn: Scan Range
labelZh: 扫描网段范围
label:
en: Scan Range
zh: 扫描网段范围
required: true
type: text
- default: "500ms"
@@ -48,6 +66,9 @@ additionalProperties:
envKey: UPSNAP_SCAN_TIMEOUT
labelEn: Scan Timeout
labelZh: 扫描超时
label:
en: Scan Timeout
zh: 扫描超时
required: true
type: text
- default: "true"
@@ -55,6 +76,9 @@ additionalProperties:
envKey: UPSNAP_PING_PRIVILEGED
labelEn: Ping Privileged
labelZh: 使用特权权限进行 Ping
label:
en: Ping Privileged
zh: 使用特权权限进行 Ping
required: true
type: select
values:
@@ -67,6 +91,9 @@ additionalProperties:
envKey: UPSNAP_WEBSITE_TITLE
labelEn: Website Title
labelZh: 网站标题
label:
en: Website Title
zh: 网站标题
required: true
type: text
- default: "119.29.29.29"
@@ -74,6 +101,9 @@ additionalProperties:
envKey: DNS_SERVER_1
labelEn: DNS Server 1
labelZh: DNS 服务器 1
label:
en: DNS Server 1
zh: DNS 服务器 1
required: true
type: text
- default: "223.5.5.5"
@@ -81,5 +111,8 @@ additionalProperties:
envKey: DNS_SERVER_2
labelEn: DNS Server 2
labelZh: DNS 服务器 2
label:
en: DNS Server 2
zh: DNS 服务器 2
required: true
type: text