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

@@ -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: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
label:
en: WebUI port
zh: WebUI 端口
required: true
rule: paramPort
type: number
@@ -27,6 +33,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_API
labelZh: API 端口
labelEn: API port
label:
en: API port
zh: API 端口
required: true
rule: paramPort
type: number
@@ -35,6 +44,9 @@ additionalProperties:
envKey: ENDPOINT
labelZh: OIDC 发行者域名
labelEn: OIDC Issuer Domain
label:
en: OIDC Issuer Domain
zh: OIDC 发行者域名
required: true
type: text
- default: "http://127.0.0.1:3002"
@@ -42,6 +54,9 @@ additionalProperties:
envKey: ADMIN_ENDPOINT
labelZh: 控制台重定向地址
labelEn: Admin Redirect URL
label:
en: Admin Redirect URL
zh: 控制台重定向地址
required: true
type: text
- default: "false"
@@ -49,6 +64,9 @@ additionalProperties:
envKey: ADMIN_DISABLE_LOCALHOST
labelZh: 禁用后台访问
labelEn: Disable Admin Access
label:
en: Disable Admin Access
zh: 禁用后台访问
required: true
type: select
values:
@@ -61,6 +79,9 @@ additionalProperties:
envKey: POSTGRES_HOST
labelZh: 数据库 主机地址
labelEn: Database Host
label:
en: Database Host
zh: 数据库 主机地址
required: true
type: text
- default: 5432
@@ -68,6 +89,9 @@ additionalProperties:
envKey: POSTGRES_PORT
labelZh: 数据库 端口
labelEn: Database Port
label:
en: Database Port
zh: 数据库 端口
required: true
rule: paramPort
type: number
@@ -76,6 +100,9 @@ additionalProperties:
envKey: POSTGRES_NAME
labelZh: 数据库 名称
labelEn: Database Name
label:
en: Database Name
zh: 数据库 名称
required: true
rule: paramCommon
type: text
@@ -84,6 +111,9 @@ additionalProperties:
envKey: POSTGRES_USER
labelZh: 数据库 用户名
labelEn: Database Username
label:
en: Database Username
zh: 数据库 用户名
required: true
type: text
- default: ""
@@ -91,6 +121,9 @@ additionalProperties:
envKey: POSTGRES_PASSWORD
labelZh: 数据库 密码
labelEn: Database Password
label:
en: Database Password
zh: 数据库 密码
random: true
required: true
rule: paramComplexity
@@ -100,5 +133,8 @@ additionalProperties:
envKey: REDIS_URL
labelZh: 中央缓存 Redis
labelEn: Central Cache Redis
label:
en: Central Cache Redis
zh: 中央缓存 Redis
required: false
type: text