✨ 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_DB_TYPE
|
||||
labelEn: Database Service
|
||||
labelZh: 数据库服务
|
||||
label:
|
||||
en: Database Service
|
||||
zh: 数据库服务
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
@@ -20,6 +23,9 @@ additionalProperties:
|
||||
envKey: PANEL_DB_NAME
|
||||
labelEn: Database
|
||||
labelZh: 数据库名
|
||||
label:
|
||||
en: Database
|
||||
zh: 数据库名
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
@@ -28,6 +34,9 @@ additionalProperties:
|
||||
envKey: PANEL_DB_USER
|
||||
labelEn: User
|
||||
labelZh: 数据库用户
|
||||
label:
|
||||
en: User
|
||||
zh: 数据库用户
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
@@ -36,6 +45,9 @@ additionalProperties:
|
||||
envKey: PANEL_DB_USER_PASSWORD
|
||||
labelEn: Password
|
||||
labelZh: 数据库用户密码
|
||||
label:
|
||||
en: Password
|
||||
zh: 数据库用户密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
@@ -45,6 +57,9 @@ additionalProperties:
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
label:
|
||||
en: Port
|
||||
zh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -53,6 +68,9 @@ additionalProperties:
|
||||
envKey: SSCMS_SECURITY_KEY
|
||||
labelEn: Communication key (GUID string)
|
||||
labelZh: 通信密钥 (GUID 字符串)
|
||||
label:
|
||||
en: Communication key (GUID string)
|
||||
zh: 通信密钥 (GUID 字符串)
|
||||
required: true
|
||||
type: text
|
||||
- default: ''
|
||||
@@ -60,5 +78,8 @@ additionalProperties:
|
||||
envKey: SSCMS_REDIS_CONNECTION_STRING
|
||||
labelEn: Redis Connection Information (redis:6379,password=123456)
|
||||
labelZh: Redis 连接信息 (redis:6379,password=123456)
|
||||
label:
|
||||
en: Redis Connection Information (redis:6379,password=123456)
|
||||
zh: Redis 连接信息 (redis:6379,password=123456)
|
||||
required: false
|
||||
type: text
|
||||
|
||||
@@ -9,6 +9,9 @@ additionalProperties:
|
||||
envKey: PANEL_DB_TYPE
|
||||
labelEn: Database Service
|
||||
labelZh: 数据库服务
|
||||
label:
|
||||
en: Database Service
|
||||
zh: 数据库服务
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
@@ -20,6 +23,9 @@ additionalProperties:
|
||||
envKey: PANEL_DB_NAME
|
||||
labelEn: Database
|
||||
labelZh: 数据库名
|
||||
label:
|
||||
en: Database
|
||||
zh: 数据库名
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
@@ -28,6 +34,9 @@ additionalProperties:
|
||||
envKey: PANEL_DB_USER
|
||||
labelEn: User
|
||||
labelZh: 数据库用户
|
||||
label:
|
||||
en: User
|
||||
zh: 数据库用户
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
@@ -36,6 +45,9 @@ additionalProperties:
|
||||
envKey: PANEL_DB_USER_PASSWORD
|
||||
labelEn: Password
|
||||
labelZh: 数据库用户密码
|
||||
label:
|
||||
en: Password
|
||||
zh: 数据库用户密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
@@ -45,6 +57,9 @@ additionalProperties:
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
label:
|
||||
en: Port
|
||||
zh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -53,6 +68,9 @@ additionalProperties:
|
||||
envKey: SSCMS_SECURITY_KEY
|
||||
labelEn: Communication key (GUID string)
|
||||
labelZh: 通信密钥 (GUID 字符串)
|
||||
label:
|
||||
en: Communication key (GUID string)
|
||||
zh: 通信密钥 (GUID 字符串)
|
||||
required: true
|
||||
type: text
|
||||
- default: ''
|
||||
@@ -60,5 +78,8 @@ additionalProperties:
|
||||
envKey: SSCMS_REDIS_CONNECTION_STRING
|
||||
labelEn: Redis Connection Information (redis:6379,password=123456)
|
||||
labelZh: Redis 连接信息 (redis:6379,password=123456)
|
||||
label:
|
||||
en: Redis Connection Information (redis:6379,password=123456)
|
||||
zh: Redis 连接信息 (redis:6379,password=123456)
|
||||
required: false
|
||||
type: text
|
||||
|
||||
Reference in New Issue
Block a user