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: Web UI 端口
labelEn: Web UI Port
label:
en: Web UI Port
zh: Web UI 端口
required: true
rule: paramPort
type: number
@@ -27,6 +33,9 @@ additionalProperties:
envKey: BASE_URL
labelZh: 访问地址
labelEn: Access URL
label:
en: Access URL
zh: 访问地址
required: true
type: text
- default: "adc19ed6361cb4af0ff5f5bd3c52930cc6b444777d07bdcb76c2e9d623976b648640c4fbdc00cea739f15ef21522240758d747f65c15c6311f7d8678d8fe1ae565b837cdd5eb9d90594a4501dea1e6711ca0eae873302de27f210219188f4420473749fb67103afe64867120d0f7fadaecd2442e96b165c5f1602e701527f2e72188a18d195127f59632247d578d2b9a9a652240026aa5a317c972e5bdb391caab81b2779eebe0a07e28246b78e58ddd49845cf91f29cbb8e9090b2cf0ce4db0f49d52473fd75f9c274dcb5a9cb3c0bf6dd664b2fb1b603955fef325fd0b34043524b0fad2fcd2686ce04225792e267800b9b66a1762d9ebae4416500541dc8d"
@@ -34,6 +43,9 @@ additionalProperties:
envKey: JWT_SECRET
labelZh: 应用密钥
labelEn: App key
label:
en: App key
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: EMAIL_NOREPLY
labelZh: 发件人地址
labelEn: Mailer Sender Address
label:
en: Mailer Sender Address
zh: 发件人地址
required: true
type: text
- default: ""
@@ -87,6 +117,9 @@ additionalProperties:
envKey: EMAIL_SMTP_HOST
labelZh: 主机地址 (SMTP)
labelEn: Mailer Host (SMTP)
label:
en: Mailer Host (SMTP)
zh: 主机地址 (SMTP)
required: false
type: text
- default: 465
@@ -94,6 +127,9 @@ additionalProperties:
envKey: EMAIL_SMTP_PORT
labelZh: 端口 (SMTP)
labelEn: Mailer Port (SMTP)
label:
en: Mailer Port (SMTP)
zh: 端口 (SMTP)
required: true
type: number
- default: ""
@@ -101,6 +137,9 @@ additionalProperties:
envKey: EMAIL_SMTP_USERNAME
labelZh: 用户名 (SMTP)
labelEn: Mailer Username (SMTP)
label:
en: Mailer Username (SMTP)
zh: 用户名 (SMTP)
required: false
type: text
- default: ""
@@ -108,6 +147,9 @@ additionalProperties:
envKey: EMAIL_SMTP_PASSWORD
labelZh: 密码 (SMTP)
labelEn: Mailer Password (SMTP)
label:
en: Mailer Password (SMTP)
zh: 密码 (SMTP)
required: false
type: text
- default: "true"
@@ -115,6 +157,9 @@ additionalProperties:
envKey: EMAIL_SMTP_ENABLE_STARTTLS
labelZh: 启用 STARTTLS (SMTP)
labelEn: Enable STARTTLS (SMTP)
label:
en: Enable STARTTLS (SMTP)
zh: 启用 STARTTLS (SMTP)
required: true
type: select
values:
@@ -127,6 +172,9 @@ additionalProperties:
envKey: EMAIL_MAILGUN_API
labelZh: API 地址 (Mailgun)
labelEn: API URL (Mailgun)
label:
en: API URL (Mailgun)
zh: API 地址 (Mailgun)
required: false
type: text
- default: ""
@@ -134,6 +182,9 @@ additionalProperties:
envKey: EMAIL_MAILGUN_DOMAIN
labelZh: 域名 (Mailgun)
labelEn: Domain (Mailgun)
label:
en: Domain (Mailgun)
zh: 域名 (Mailgun)
required: false
type: text
- default: "US"
@@ -141,6 +192,9 @@ additionalProperties:
envKey: EMAIL_MAILGUN_REGION
labelZh: 区域 (Mailgun)
labelEn: Region (Mailgun)
label:
en: Region (Mailgun)
zh: 区域 (Mailgun)
required: false
type: text
- default: "us-east-1"
@@ -148,6 +202,9 @@ additionalProperties:
envKey: EMAIL_AWSSES_REGION
labelZh: 区域 (AWS SES)
labelEn: Region (AWS SES)
label:
en: Region (AWS SES)
zh: 区域 (AWS SES)
required: false
type: text
- default: ""
@@ -155,6 +212,9 @@ additionalProperties:
envKey: EMAIL_AWSSES_ACCESS_KEY_ID
labelZh: 授权 ID (AWS SES)
labelEn: Access Key ID (AWS SES)
label:
en: Access Key ID (AWS SES)
zh: 授权 ID (AWS SES)
required: false
type: text
- default: ""
@@ -162,5 +222,8 @@ additionalProperties:
envKey: EMAIL_AWSSES_SECRET_ACCESS_KEY
labelZh: 授权密钥 (AWS SES)
labelEn: Access Key Secret (AWS SES)
label:
en: Access Key Secret (AWS SES)
zh: 授权密钥 (AWS SES)
required: false
type: text