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

@@ -6,6 +6,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_HTTP
labelEn: Application Port
labelZh: 应用端口
label:
en: Application Port
zh: 应用端口
required: true
rule: paramPort
type: number
@@ -14,6 +17,9 @@ additionalProperties:
envKey: CASDOOR_PORT
labelEn: CASDOOR Port
labelZh: CASDOOR 端口
label:
en: CASDOOR Port
zh: CASDOOR 端口
required: true
rule: paramPort
type: number
@@ -22,6 +28,9 @@ additionalProperties:
envKey: MINIO_PORT
labelEn: MinIO Port
labelZh: MinIO端口
label:
en: MinIO Port
zh: MinIO端口
required: true
rule: paramPort
type: number
@@ -30,6 +39,9 @@ additionalProperties:
envKey: APP_URL
labelEn: Application URL
labelZh: 应用地址
label:
en: Application URL
zh: 应用地址
required: true
rule: paramExtUrl
type: text
@@ -38,6 +50,9 @@ additionalProperties:
envKey: AUTH_URL
labelEn: Auth Service URL
labelZh: 认证服务地址
label:
en: Auth Service URL
zh: 认证服务地址
required: true
rule: paramExtUrl
type: text
@@ -47,6 +62,9 @@ additionalProperties:
envKey: LOBE_DB_NAME
labelEn: Database Name
labelZh: 数据库名称
label:
en: Database Name
zh: 数据库名称
random: true
required: true
rule: paramCommon
@@ -56,6 +74,9 @@ additionalProperties:
envKey: POSTGRES_PASSWORD
labelEn: Database Password
labelZh: 数据库密码
label:
en: Database Password
zh: 数据库密码
required: true
rule: paramCommon
type: password
@@ -64,6 +85,9 @@ additionalProperties:
envKey: AUTH_CASDOOR_ISSUER
labelEn: AUTH CASDOOR ISSUER
labelZh: AUTH CASDOOR ISSUER
label:
en: AUTH CASDOOR ISSUER
zh: AUTH CASDOOR ISSUER
required: true
rule: paramExtUrl
type: text
@@ -73,6 +97,9 @@ additionalProperties:
envKey: AUTH_CASDOOR_ID
labelEn: AUTH CASDOOR ID
labelZh: AUTH CASDOOR ID
label:
en: AUTH CASDOOR ID
zh: AUTH CASDOOR ID
required: true
rule: paramCommon
type: text
@@ -81,6 +108,9 @@ additionalProperties:
envKey: AUTH_CASDOOR_SECRET
labelEn: AUTH CASDOOR SECRET
labelZh: AUTH CASDOOR SECRET
label:
en: AUTH CASDOOR SECRET
zh: AUTH CASDOOR SECRET
required: true
rule: paramCommon
type: password
@@ -90,6 +120,9 @@ additionalProperties:
envKey: MINIO_ROOT_USER
labelEn: MinIO ROOT User
labelZh: MinIO ROOT User
label:
en: MinIO ROOT User
zh: MinIO ROOT User
required: true
rule: paramCommon
type: text
@@ -98,6 +131,9 @@ additionalProperties:
envKey: MINIO_ROOT_PASSWORD
labelEn: MinIO ROOT Password
labelZh: MinIO ROOT Password
label:
en: MinIO ROOT Password
zh: MinIO ROOT Password
required: true
rule: paramCommon
type: password
@@ -107,6 +143,9 @@ additionalProperties:
envKey: S3_ENDPOINT
labelEn: S3 Endpoint
labelZh: S3 Endpoint
label:
en: S3 Endpoint
zh: S3 Endpoint
required: true
rule: paramExtUrl
type: text
@@ -115,6 +154,9 @@ additionalProperties:
envKey: S3_PUBLIC_DOMAIN
labelEn: S3 PUBLIC DOMAIN
labelZh: S3 PUBLIC DOMAIN
label:
en: S3 PUBLIC DOMAIN
zh: S3 PUBLIC DOMAIN
required: true
rule: paramExtUrl
type: text
@@ -123,6 +165,9 @@ additionalProperties:
envKey: MINIO_LOBE_BUCKET
labelEn: MINIO LOBE BUCKET
labelZh: MINIO LOBE BUCKET
label:
en: MINIO LOBE BUCKET
zh: MINIO LOBE BUCKET
required: true
rule: paramCommon
type: text
@@ -132,6 +177,9 @@ additionalProperties:
envKey: origin
labelEn: origin
labelZh: origin
label:
en: origin
zh: origin
required: true
rule: paramExtUrl
type: text
type: text