✨ 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:
@@ -9,6 +9,9 @@ additionalProperties:
|
||||
envKey: PANEL_POSTGRES_TYPE
|
||||
labelZh: Postgres 服务 (前置检查)
|
||||
labelEn: Postgres Service (Pre-check)
|
||||
label:
|
||||
en: Postgres Service (Pre-check)
|
||||
zh: Postgres 服务 (前置检查)
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
@@ -19,6 +22,9 @@ additionalProperties:
|
||||
envKey: METATUBE_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
label:
|
||||
en: Data persistence path
|
||||
zh: 数据持久化路径
|
||||
required: true
|
||||
type: text
|
||||
- default: 8080
|
||||
@@ -26,6 +32,9 @@ additionalProperties:
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
label:
|
||||
en: WebUI port
|
||||
zh: WebUI 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -34,6 +43,9 @@ additionalProperties:
|
||||
envKey: TOKEN
|
||||
labelZh: 访问令牌
|
||||
labelEn: Access Token
|
||||
label:
|
||||
en: Access Token
|
||||
zh: 访问令牌
|
||||
required: true
|
||||
type: password
|
||||
- default: "127.0.0.1"
|
||||
@@ -41,6 +53,9 @@ additionalProperties:
|
||||
envKey: POSTGRES_HOST
|
||||
labelZh: 数据库 主机地址
|
||||
labelEn: Database Host
|
||||
label:
|
||||
en: Database Host
|
||||
zh: 数据库 主机地址
|
||||
required: true
|
||||
type: text
|
||||
- default: 5432
|
||||
@@ -48,6 +63,9 @@ additionalProperties:
|
||||
envKey: POSTGRES_PORT
|
||||
labelZh: 数据库 端口
|
||||
labelEn: Database Port
|
||||
label:
|
||||
en: Database Port
|
||||
zh: 数据库 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -56,6 +74,9 @@ additionalProperties:
|
||||
envKey: POSTGRES_NAME
|
||||
labelZh: 数据库 名称
|
||||
labelEn: Database Name
|
||||
label:
|
||||
en: Database Name
|
||||
zh: 数据库 名称
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
@@ -64,6 +85,9 @@ additionalProperties:
|
||||
envKey: POSTGRES_USER
|
||||
labelZh: 数据库 用户名
|
||||
labelEn: Database Username
|
||||
label:
|
||||
en: Database Username
|
||||
zh: 数据库 用户名
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
@@ -71,6 +95,9 @@ additionalProperties:
|
||||
envKey: POSTGRES_PASSWORD
|
||||
labelZh: 数据库 密码
|
||||
labelEn: Database Password
|
||||
label:
|
||||
en: Database Password
|
||||
zh: 数据库 密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
@@ -80,6 +107,9 @@ additionalProperties:
|
||||
envKey: REQUEST_TIMEOUT
|
||||
labelZh: 请求超时时间
|
||||
labelEn: Request Timeout
|
||||
label:
|
||||
en: Request Timeout
|
||||
zh: 请求超时时间
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
@@ -87,5 +117,8 @@ additionalProperties:
|
||||
envKey: HTTP_PROXY
|
||||
labelZh: 网络代理 (HTTP/Socket5)
|
||||
labelEn: Network Proxy (HTTP/Socket5)
|
||||
label:
|
||||
en: Network Proxy (HTTP/Socket5)
|
||||
zh: 网络代理 (HTTP/Socket5)
|
||||
required: false
|
||||
type: text
|
||||
|
||||
Reference in New Issue
Block a user