✨ 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: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
label:
|
||||
en: Port
|
||||
zh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -13,6 +16,9 @@ additionalProperties:
|
||||
envKey: API_KEY
|
||||
labelEn: OPENAI API KEY
|
||||
labelZh: OPENAI API KEY
|
||||
label:
|
||||
en: OPENAI API KEY
|
||||
zh: OPENAI API KEY
|
||||
required: true
|
||||
type: text
|
||||
- default: "chatgptnextweb"
|
||||
@@ -20,6 +26,12 @@ additionalProperties:
|
||||
envKey: SECRET_KEY
|
||||
labelEn: Access rights key, optional (recommended)
|
||||
labelZh: 访问权限密钥,可选(强烈建议填写)
|
||||
label:
|
||||
en: Access rights key
|
||||
zh: 访问权限密钥
|
||||
description:
|
||||
en: optional (recommended)
|
||||
zh: 可选(强烈建议填写)
|
||||
random: true
|
||||
required: false
|
||||
rule: paramComplexity
|
||||
@@ -29,6 +41,12 @@ additionalProperties:
|
||||
envKey: PROXY
|
||||
labelEn: Proxy (example:http://127.0.0.1:7890 user password)
|
||||
labelZh: 代理地址(例子:http://127.0.0.1:7890 user password)
|
||||
label:
|
||||
en: Proxy
|
||||
zh: 代理地址
|
||||
description:
|
||||
en: example:http://127.0.0.1:7890 user password
|
||||
zh: 例子:http://127.0.0.1:7890 user password
|
||||
required: false
|
||||
type: text
|
||||
- default: "https://api.openai.com"
|
||||
@@ -36,5 +54,8 @@ additionalProperties:
|
||||
envKey: API_BASE_URL
|
||||
labelEn: API interface address
|
||||
labelZh: API接口地址
|
||||
label:
|
||||
en: API interface address
|
||||
zh: API接口地址
|
||||
required: true
|
||||
type: text
|
||||
|
||||
Reference in New Issue
Block a user