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: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
label:
en: WebUI port
zh: WebUI 端口
required: true
rule: paramPort
type: number
@@ -13,6 +16,9 @@ additionalProperties:
envKey: ACCESS_KEY
labelZh: 访问密钥
labelEn: Access key
label:
en: Access key
zh: 访问密钥
required: false
type: password
- default: "memory"
@@ -20,6 +26,9 @@ additionalProperties:
envKey: CACHE_TYPE
labelZh: 缓存类型
labelEn: Cache type
label:
en: Cache type
zh: 缓存类型
required: true
type: select
values:
@@ -32,6 +41,9 @@ additionalProperties:
envKey: REDIS_URL
labelZh: Redis URL 地址 (仅当缓存类型为 Redis 时)
labelEn: Redis URL address (only when the cache type is Redis)
label:
en: Redis URL address (only when the cache type is Redis)
zh: Redis URL 地址 (仅当缓存类型为 Redis 时)
required: false
type: text
- default: 256
@@ -39,6 +51,9 @@ additionalProperties:
envKey: MEMORY_MAX
labelZh: 最大缓存数量 (仅当缓存类型为内存时)
labelEn: Maximum number of caches (only when the cache type is memory)
label:
en: Maximum number of caches (only when the cache type is memory)
zh: 最大缓存数量 (仅当缓存类型为内存时)
required: false
type: number
- default: 300
@@ -46,6 +61,9 @@ additionalProperties:
envKey: CACHE_EXPIRE
labelZh: 路由缓存过期时间 (秒)
labelEn: Route cache expiration time (seconds)
label:
en: Route cache expiration time (seconds)
zh: 路由缓存过期时间 (秒)
required: true
type: number
- default: 300
@@ -53,6 +71,9 @@ additionalProperties:
envKey: CACHE_CONTENT_EXPIRE
labelZh: 内容缓存过期时间 (秒)
labelEn: Content cache expiration time (seconds)
label:
en: Content cache expiration time (seconds)
zh: 内容缓存过期时间 (秒)
required: true
type: number
- default: ""
@@ -60,6 +81,9 @@ additionalProperties:
envKey: PROXY_URI
labelZh: 代理 URL 地址
labelEn: Proxy URL address
label:
en: Proxy URL address
zh: 代理 URL 地址
required: false
type: text
- default: ""
@@ -67,6 +91,9 @@ additionalProperties:
envKey: PROXY_AUTH
labelZh: 代理认证 (仅支持 Basic 认证)
labelEn: Proxy authentication (only supports Basic authentication)
label:
en: Proxy authentication (only supports Basic authentication)
zh: 代理认证 (仅支持 Basic 认证)
required: false
type: text
- default: ".*"
@@ -74,6 +101,9 @@ additionalProperties:
envKey: PROXY_URL_REGEX
labelZh: 代理 URL 正则表达式
labelEn: Proxy URL regular expression
label:
en: Proxy URL regular expression
zh: 代理 URL 正则表达式
required: false
type: text
- default: ""
@@ -81,6 +111,9 @@ additionalProperties:
envKey: FOLLOW_OWNER_USER_ID
labelZh: 用户 ID
labelEn: User id
label:
en: User id
zh: 用户 ID
required: false
type: text
- default: ""
@@ -88,6 +121,9 @@ additionalProperties:
envKey: FOLLOW_DESCRIPTION
labelZh: 服务描述
labelEn: Service description
label:
en: Service description
zh: 服务描述
required: false
type: text
- default: 100
@@ -95,6 +131,9 @@ additionalProperties:
envKey: FOLLOW_PRICE
labelZh: 月度价格
labelEn: Service price
label:
en: Service price
zh: 月度价格
required: true
type: number
- default: 100
@@ -102,5 +141,8 @@ additionalProperties:
envKey: FOLLOW_USER_LIMIT
labelZh: 用户限制
labelEn: User limit
label:
en: User limit
zh: 用户限制
required: true
type: number

View File

@@ -5,6 +5,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
label:
en: Port
zh: 端口
required: true
rule: paramPort
type: number
@@ -14,6 +17,9 @@ additionalProperties:
key: redis
labelEn: Redis Service
labelZh: Redis服务
label:
en: Redis Service
zh: Redis服务
required: true
type: service
- default: "6379"
@@ -21,6 +27,9 @@ additionalProperties:
envKey: REDIS_PORT
labelEn: Redis Service Port
labelZh: Redis服务端口
label:
en: Redis Service Port
zh: Redis服务端口
required: true
rule: paramPort
type: number
@@ -29,6 +38,9 @@ additionalProperties:
envKey: REDIS_PASS
labelEn: Redis Service Password
labelZh: Redis服务密码
label:
en: Redis Service Password
zh: Redis服务密码
required: true
rule: paramCommon
type: password

View File

@@ -5,6 +5,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
label:
en: Port
zh: 端口
required: true
rule: paramPort
type: number
@@ -14,6 +17,9 @@ additionalProperties:
key: redis
labelEn: Redis Service
labelZh: Redis服务
label:
en: Redis Service
zh: Redis服务
required: true
type: service
- default: "6379"
@@ -21,6 +27,9 @@ additionalProperties:
envKey: REDIS_PORT
labelEn: Redis Service Port
labelZh: Redis服务端口
label:
en: Redis Service Port
zh: Redis服务端口
required: true
rule: paramPort
type: number
@@ -29,6 +38,9 @@ additionalProperties:
envKey: REDIS_PASS
labelEn: Redis Service Password
labelZh: Redis服务密码
label:
en: Redis Service Password
zh: Redis服务密码
required: true
rule: paramCommon
type: password