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_DB_TYPE
labelEn: Database Service
labelZh: 数据库服务
label:
en: Database Service
zh: 数据库服务
required: true
type: apps
values:
@@ -18,6 +21,9 @@ additionalProperties:
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
label:
en: Database
zh: 数据库名
random: true
required: true
rule: paramCommon
@@ -26,6 +32,9 @@ additionalProperties:
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
label:
en: User
zh: 数据库用户
random: true
required: true
rule: paramCommon
@@ -34,6 +43,9 @@ additionalProperties:
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
label:
en: Password
zh: 数据库用户密码
random: true
required: true
rule: paramComplexity
@@ -43,6 +55,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_HTTP
labelEn: HTTP Port
labelZh: HTTP 端口
label:
en: HTTP Port
zh: HTTP 端口
required: true
rule: paramPort
type: number
@@ -51,6 +66,9 @@ additionalProperties:
envKey: CHEVERETO_MAX_POST_SIZE
labelEn: Max Post Size
labelZh: 最大 POST 大小
label:
en: Max Post Size
zh: 最大 POST 大小
required: true
type: text
- default: "2G"
@@ -58,6 +76,9 @@ additionalProperties:
envKey: CHEVERETO_MAX_UPLOAD_SIZE
labelEn: Max Upload Size
labelZh: 最大上传大小
label:
en: Max Upload Size
zh: 最大上传大小
required: true
type: text
- default: "docker"
@@ -65,6 +86,9 @@ additionalProperties:
envKey: CHEVERETO_SERVICING
labelEn: Servicing
labelZh: 服务模式
label:
en: Servicing
zh: 服务模式
required: true
type: text
- default: "./data/images"
@@ -72,6 +96,9 @@ additionalProperties:
envKey: CHEVERETO_IMAGES_PATH
labelEn: Images Path
labelZh: 图片路径
label:
en: Images Path
zh: 图片路径
required: true
type: text
- default: "hostname.com"
@@ -79,6 +106,9 @@ additionalProperties:
envKey: CHEVERETO_HOSTNAME
labelEn: Hostname
labelZh: 主机名
label:
en: Hostname
zh: 主机名
required: true
type: text
- default: "/"
@@ -86,6 +116,9 @@ additionalProperties:
envKey: CHEVERETO_HOSTNAME_PATH
labelEn: Hostname Path
labelZh: 主机名路径
label:
en: Hostname Path
zh: 主机名路径
required: true
type: text
- default: "X-Real-IP"
@@ -93,6 +126,9 @@ additionalProperties:
envKey: CHEVERETO_HEADER_CLIENT_IP
labelEn: Client IP Header
labelZh: 客户端 IP 标头
label:
en: Client IP Header
zh: 客户端 IP 标头
required: true
type: text
- default: ""
@@ -100,5 +136,8 @@ additionalProperties:
envKey: ENCRYPTION_KEY
labelEn: Encryption Key
labelZh: 加密密钥
label:
en: Encryption Key
zh: 加密密钥
required: false
type: text

View File

@@ -9,6 +9,9 @@ additionalProperties:
envKey: PANEL_DB_TYPE
labelEn: Database Service
labelZh: 数据库服务
label:
en: Database Service
zh: 数据库服务
required: true
type: apps
values:
@@ -18,6 +21,9 @@ additionalProperties:
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
label:
en: Database
zh: 数据库名
random: true
required: true
rule: paramCommon
@@ -26,6 +32,9 @@ additionalProperties:
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
label:
en: User
zh: 数据库用户
random: true
required: true
rule: paramCommon
@@ -34,6 +43,9 @@ additionalProperties:
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
label:
en: Password
zh: 数据库用户密码
random: true
required: true
rule: paramComplexity
@@ -43,6 +55,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_HTTP
labelEn: HTTP Port
labelZh: HTTP 端口
label:
en: HTTP Port
zh: HTTP 端口
required: true
rule: paramPort
type: number
@@ -51,6 +66,9 @@ additionalProperties:
envKey: CHEVERETO_MAX_POST_SIZE
labelEn: Max Post Size
labelZh: 最大 POST 大小
label:
en: Max Post Size
zh: 最大 POST 大小
required: true
type: text
- default: "2G"
@@ -58,6 +76,9 @@ additionalProperties:
envKey: CHEVERETO_MAX_UPLOAD_SIZE
labelEn: Max Upload Size
labelZh: 最大上传大小
label:
en: Max Upload Size
zh: 最大上传大小
required: true
type: text
- default: "docker"
@@ -65,6 +86,9 @@ additionalProperties:
envKey: CHEVERETO_SERVICING
labelEn: Servicing
labelZh: 服务模式
label:
en: Servicing
zh: 服务模式
required: true
type: text
- default: "./data/images"
@@ -72,6 +96,9 @@ additionalProperties:
envKey: CHEVERETO_IMAGES_PATH
labelEn: Images Path
labelZh: 图片路径
label:
en: Images Path
zh: 图片路径
required: true
type: text
- default: "hostname.com"
@@ -79,6 +106,9 @@ additionalProperties:
envKey: CHEVERETO_HOSTNAME
labelEn: Hostname
labelZh: 主机名
label:
en: Hostname
zh: 主机名
required: true
type: text
- default: "/"
@@ -86,6 +116,9 @@ additionalProperties:
envKey: CHEVERETO_HOSTNAME_PATH
labelEn: Hostname Path
labelZh: 主机名路径
label:
en: Hostname Path
zh: 主机名路径
required: true
type: text
- default: "X-Real-IP"
@@ -93,6 +126,9 @@ additionalProperties:
envKey: CHEVERETO_HEADER_CLIENT_IP
labelEn: Client IP Header
labelZh: 客户端 IP 标头
label:
en: Client IP Header
zh: 客户端 IP 标头
required: true
type: text
- default: ""
@@ -100,5 +136,8 @@ additionalProperties:
envKey: ENCRYPTION_KEY
labelEn: Encryption Key
labelZh: 加密密钥
label:
en: Encryption Key
zh: 加密密钥
required: false
type: text

View File

@@ -9,6 +9,9 @@ additionalProperties:
envKey: PANEL_DB_TYPE
labelEn: Database Service
labelZh: 数据库服务
label:
en: Database Service
zh: 数据库服务
required: true
type: apps
values:
@@ -18,6 +21,9 @@ additionalProperties:
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
label:
en: Database
zh: 数据库名
random: true
required: true
rule: paramCommon
@@ -26,6 +32,9 @@ additionalProperties:
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
label:
en: User
zh: 数据库用户
random: true
required: true
rule: paramCommon
@@ -34,6 +43,9 @@ additionalProperties:
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
label:
en: Password
zh: 数据库用户密码
random: true
required: true
rule: paramComplexity
@@ -43,6 +55,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_HTTP
labelEn: HTTP Port
labelZh: HTTP 端口
label:
en: HTTP Port
zh: HTTP 端口
required: true
rule: paramPort
type: number
@@ -51,6 +66,9 @@ additionalProperties:
envKey: CHEVERETO_MAX_POST_SIZE
labelEn: Max Post Size
labelZh: 最大 POST 大小
label:
en: Max Post Size
zh: 最大 POST 大小
required: true
type: text
- default: "2G"
@@ -58,6 +76,9 @@ additionalProperties:
envKey: CHEVERETO_MAX_UPLOAD_SIZE
labelEn: Max Upload Size
labelZh: 最大上传大小
label:
en: Max Upload Size
zh: 最大上传大小
required: true
type: text
- default: "server"
@@ -65,6 +86,9 @@ additionalProperties:
envKey: CHEVERETO_SERVICING
labelEn: Servicing
labelZh: 服务模式
label:
en: Servicing
zh: 服务模式
required: true
type: text
- default: "./data/images"
@@ -72,6 +96,9 @@ additionalProperties:
envKey: CHEVERETO_IMAGES_PATH
labelEn: Images Path
labelZh: 图片路径
label:
en: Images Path
zh: 图片路径
required: true
type: text
- default: "hostname.com"
@@ -79,6 +106,9 @@ additionalProperties:
envKey: CHEVERETO_HOSTNAME
labelEn: Hostname
labelZh: 主机名
label:
en: Hostname
zh: 主机名
required: true
type: text
- default: "/"
@@ -86,6 +116,9 @@ additionalProperties:
envKey: CHEVERETO_HOSTNAME_PATH
labelEn: Hostname Path
labelZh: 主机名路径
label:
en: Hostname Path
zh: 主机名路径
required: true
type: text
- default: "X-Real-IP"
@@ -93,6 +126,9 @@ additionalProperties:
envKey: CHEVERETO_HEADER_CLIENT_IP
labelEn: Client IP Header
labelZh: 客户端 IP 标头
label:
en: Client IP Header
zh: 客户端 IP 标头
required: true
type: text
- default: ""
@@ -100,5 +136,8 @@ additionalProperties:
envKey: ENCRYPTION_KEY
labelEn: Encryption Key
labelZh: 加密密钥
label:
en: Encryption Key
zh: 加密密钥
required: false
type: text