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: EXTERNAL_IP
labelEn: External IP
labelZh: 外部访问 IP
label:
en: External IP
zh: 外部访问 IP
required: true
type: text
- default: ""
@@ -12,12 +15,18 @@ additionalProperties:
key: mysql
labelEn: Database Service
labelZh: 数据库服务
label:
en: Database Service
zh: 数据库服务
required: true
type: service
- default: "tsdd"
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
label:
en: Database
zh: 数据库名
random: true
required: true
rule: paramCommon
@@ -26,6 +35,9 @@ additionalProperties:
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
label:
en: User
zh: 数据库用户
random: true
required: true
rule: paramCommon
@@ -34,6 +46,9 @@ additionalProperties:
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
label:
en: Password
zh: 数据库用户密码
random: true
required: true
rule: paramComplexity
@@ -44,12 +59,18 @@ additionalProperties:
key: redis
labelEn: Redis Service
labelZh: 缓存服务
label:
en: Redis Service
zh: 缓存服务
required: true
type: service
- default: 6379
envKey: TS_DB_REDIS_PORT
labelEn: Redis Port
labelZh: Redis 服务端口
label:
en: Redis Port
zh: Redis 服务端口
required: true
rule: paramPort
type: number
@@ -58,6 +79,9 @@ additionalProperties:
envKey: PANEL_REDIS_ROOT_PASSWORD
labelEn: Redis Password
labelZh: Redis 密码
label:
en: Redis Password
zh: Redis 密码
required: true
type: password
- default: ""
@@ -66,12 +90,18 @@ additionalProperties:
key: minio
labelEn: Minio Service
labelZh: minio 对象存储服务
label:
en: Minio Service
zh: minio 对象存储服务
required: true
type: service
- default: 9000
envKey: MINIO_PORT
labelEn: minio port
labelZh: minio 端口
label:
en: minio port
zh: minio 端口
required: true
rule: paramPort
type: number
@@ -80,6 +110,9 @@ additionalProperties:
envKey: MINIO_ROOT_USER
labelEn: minio user
labelZh: minio 用户
label:
en: minio user
zh: minio 用户
required: true
rule: paramCommon
type: text
@@ -88,6 +121,9 @@ additionalProperties:
envKey: MINIO_ROOT_PASSWORD
labelEn: Minio Password
labelZh: minio 用户密码
label:
en: Minio Password
zh: minio 用户密码
required: true
rule: paramComplexity
type: password
@@ -96,6 +132,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_WK_TCP
labelEn: WuKongIM tcp port
labelZh: 悟空 IM TCP 端口
label:
en: WuKongIM tcp port
zh: 悟空 IM TCP 端口
required: true
rule: paramPort
type: number
@@ -104,6 +143,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_WK_WS
labelEn: WuKongIM ws port
labelZh: 悟空 IM WS 端口
label:
en: WuKongIM ws port
zh: 悟空 IM WS 端口
required: true
rule: paramPort
type: number
@@ -112,6 +154,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_WK_WEB_SERVER
labelEn: WuKongIM web port
labelZh: 悟空 IM 监控端口
label:
en: WuKongIM web port
zh: 悟空 IM 监控端口
required: true
rule: paramPort
type: number
@@ -120,6 +165,9 @@ additionalProperties:
envKey: TS_SMSCODE
labelEn: SMS
labelZh: 唐僧叨叨短信验证码
label:
en: SMS
zh: 唐僧叨叨短信验证码
required: true
type: number
- default: "superAdmin"
@@ -127,6 +175,9 @@ additionalProperties:
envKey: TS_ADMIN
labelEn: Super Admin User
labelZh: 唐僧叨叨超级管理员
label:
en: Super Admin User
zh: 唐僧叨叨超级管理员
required: true
type: text
- default: "tsdd@123456"
@@ -134,6 +185,9 @@ additionalProperties:
envKey: TS_ADMINPWD
labelEn: Admin Password
labelZh: 唐僧叨叨超级管理员默认密码
label:
en: Admin Password
zh: 唐僧叨叨超级管理员默认密码
random: true
required: true
rule: paramComplexity
@@ -143,6 +197,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_TS_APP_HTTP
labelEn: TangSengDaoDao port
labelZh: 唐僧叨叨端口
label:
en: TangSengDaoDao port
zh: 唐僧叨叨端口
required: true
rule: paramPort
type: number
@@ -151,6 +208,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_TS_APP_WEB
labelEn: TangSengDaoDao web port
labelZh: 唐僧叨叨 WEB 端口
label:
en: TangSengDaoDao web port
zh: 唐僧叨叨 WEB 端口
required: true
rule: paramPort
type: number
@@ -159,6 +219,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_HTTP
labelEn: TangSengDaoDao Management background port
labelZh: 唐僧叨叨管理后台端口
label:
en: TangSengDaoDao Management background port
zh: 唐僧叨叨管理后台端口
required: true
rule: paramPort
type: number