✨ 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:
@@ -5,6 +5,9 @@ additionalProperties:
|
||||
envKey: READECK_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
label:
|
||||
en: Data persistence path
|
||||
zh: 数据持久化路径
|
||||
required: true
|
||||
type: text
|
||||
- default: 8000
|
||||
@@ -12,6 +15,9 @@ additionalProperties:
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
label:
|
||||
en: WebUI port
|
||||
zh: WebUI 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -20,6 +26,9 @@ additionalProperties:
|
||||
envKey: READECK_SERVER_PREFIX
|
||||
labelZh: 前缀路径
|
||||
labelEn: Prefix path
|
||||
label:
|
||||
en: Prefix path
|
||||
zh: 前缀路径
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
@@ -27,6 +36,9 @@ additionalProperties:
|
||||
envKey: READECK_ALLOWED_HOSTS
|
||||
labelZh: HTTP 请求中允许的主机名列表
|
||||
labelEn: HTTP request allowed host name list
|
||||
label:
|
||||
en: HTTP request allowed host name list
|
||||
zh: HTTP 请求中允许的主机名列表
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
@@ -34,6 +46,9 @@ additionalProperties:
|
||||
envKey: READECK_SERVER_BASE_URL
|
||||
labelZh: 绑定域名
|
||||
labelEn: Binding domain
|
||||
label:
|
||||
en: Binding domain
|
||||
zh: 绑定域名
|
||||
required: false
|
||||
type: text
|
||||
- default: 24
|
||||
@@ -41,6 +56,9 @@ additionalProperties:
|
||||
envKey: READECK_PUBLIC_SHARE_TTL
|
||||
labelZh: 分享有效期
|
||||
labelEn: Share validity period
|
||||
label:
|
||||
en: Share validity period
|
||||
zh: 分享有效期
|
||||
required: true
|
||||
type: number
|
||||
- default: "smtp.qq.com"
|
||||
@@ -48,6 +66,9 @@ additionalProperties:
|
||||
envKey: READECK_MAIL_HOST
|
||||
labelZh: 邮件服务器
|
||||
labelEn: Mail Server
|
||||
label:
|
||||
en: Mail Server
|
||||
zh: 邮件服务器
|
||||
required: false
|
||||
type: text
|
||||
- default: 465
|
||||
@@ -55,6 +76,9 @@ additionalProperties:
|
||||
envKey: READECK_MAIL_PORT
|
||||
labelZh: 邮件服务器 端口
|
||||
labelEn: Mail Server Port
|
||||
label:
|
||||
en: Mail Server Port
|
||||
zh: 邮件服务器 端口
|
||||
required: false
|
||||
type: number
|
||||
- default: ""
|
||||
@@ -62,6 +86,9 @@ additionalProperties:
|
||||
envKey: READECK_MAIL_USERNAME
|
||||
labelZh: 邮件鉴权 用户名
|
||||
labelEn: Mail Username
|
||||
label:
|
||||
en: Mail Username
|
||||
zh: 邮件鉴权 用户名
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
@@ -69,6 +96,9 @@ additionalProperties:
|
||||
envKey: READECK_MAIL_PASSWORD
|
||||
labelZh: 邮件鉴权 密码
|
||||
labelEn: Mail Password
|
||||
label:
|
||||
en: Mail Password
|
||||
zh: 邮件鉴权 密码
|
||||
required: false
|
||||
type: password
|
||||
- default: ""
|
||||
@@ -76,6 +106,9 @@ additionalProperties:
|
||||
envKey: READECK_MAIL_FROM
|
||||
labelZh: 邮件发送者
|
||||
labelEn: Mail Sender
|
||||
label:
|
||||
en: Mail Sender
|
||||
zh: 邮件发送者
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
@@ -83,6 +116,9 @@ additionalProperties:
|
||||
envKey: READECK_MAIL_FROMNOREPLY
|
||||
labelZh: 邮件发送者 (无回复)
|
||||
labelEn: Mail Sender (No Reply)
|
||||
label:
|
||||
en: Mail Sender (No Reply)
|
||||
zh: 邮件发送者 (无回复)
|
||||
required: false
|
||||
type: text
|
||||
- default: "false"
|
||||
@@ -90,6 +126,9 @@ additionalProperties:
|
||||
envKey: READECK_MAIL_INSECURE
|
||||
labelZh: 邮件服务器证书验证
|
||||
labelEn: Server certificate verification
|
||||
label:
|
||||
en: Server certificate verification
|
||||
zh: 邮件服务器证书验证
|
||||
required: false
|
||||
type: select
|
||||
values:
|
||||
@@ -102,6 +141,9 @@ additionalProperties:
|
||||
envKey: READECK_MAIL_ENCRYPTION
|
||||
labelZh: SMTP 主机 加密方式
|
||||
labelEn: SMTP Host Encryption Method
|
||||
label:
|
||||
en: SMTP Host Encryption Method
|
||||
zh: SMTP 主机 加密方式
|
||||
required: false
|
||||
type: select
|
||||
values:
|
||||
@@ -114,5 +156,8 @@ additionalProperties:
|
||||
envKey: HTTP_PROXY
|
||||
labelZh: 网络代理
|
||||
labelEn: Network proxy
|
||||
label:
|
||||
en: Network proxy
|
||||
zh: 网络代理
|
||||
required: false
|
||||
type: text
|
||||
|
||||
Reference in New Issue
Block a user