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
labelEn: WebUI Port
labelZh: 网页端口
label:
en: WebUI Port
zh: 网页端口
required: true
rule: paramPort
type: number
@@ -13,6 +16,9 @@ additionalProperties:
envKey: ACCESS_TOKEN
labelEn: OPENAI ACCESS TOKEN (fill in at least one with OPENAI API KEY)(https://chat.openai.com/api/auth/session)
labelZh: OPENAI ACCESS TOKEN(与OPENAI API KEY至少填一个)(https://chat.openai.com/api/auth/session)
label:
en: OPENAI ACCESS TOKEN (fill in at least one with OPENAI API KEY)(https://chat.openai.com/api/auth/session)
zh: OPENAI ACCESS TOKEN(与OPENAI API KEY至少填一个)(https://chat.openai.com/api/auth/session)
required: false
type: text
- default: https://bypass.duti.tech/api/conversation
@@ -20,6 +26,9 @@ additionalProperties:
envKey: REVERSE_PROXY
labelEn: API reverse proxy, optional (enabled by default when OPENAI ACCESS TOKEN, need to pay attention to availability)
labelZh: API反向代理可选(OPENAI ACCESS TOKEN时默认启用,需要注意可用性)
label:
en: API reverse proxy, optional (enabled by default when OPENAI ACCESS TOKEN, need to pay attention to availability)
zh: API反向代理可选(OPENAI ACCESS TOKEN时默认启用,需要注意可用性)
required: false
type: text
- default: ''
@@ -27,6 +36,9 @@ additionalProperties:
envKey: API_KEY
labelEn: OPENAI API KEY (fill in at least one with OPENAI ACCESS TOKEN)
labelZh: OPENAI API KEY(与OPENAI ACCESS TOKEN至少填一个)
label:
en: OPENAI API KEY (fill in at least one with OPENAI ACCESS TOKEN)
zh: OPENAI API KEY(与OPENAI ACCESS TOKEN至少填一个)
required: false
type: text
- default: gpt-3.5-turbo
@@ -34,6 +46,9 @@ additionalProperties:
envKey: API_MODEL
labelEn: API model, optional, available when setting OPENAI API KEY(https://platform.openai.com/docs/models)
labelZh: API模型可选设置OPENAI API KEY时可用(https://platform.openai.com/docs/models)
label:
en: API model, optional, available when setting OPENAI API KEY(https://platform.openai.com/docs/models)
zh: API模型可选设置OPENAI API KEY时可用(https://platform.openai.com/docs/models)
required: false
type: text
- default: https://api.openai.com
@@ -41,6 +56,9 @@ additionalProperties:
envKey: API_BASE_URL
labelEn: API interface address, optional, available when setting OPENAI API KEY
labelZh: API接口地址可选设置OPENAI API KEY时可用
label:
en: API interface address, optional, available when setting OPENAI API KEY
zh: API接口地址可选设置OPENAI API KEY时可用
required: false
type: text
- default: chatgptweb
@@ -48,6 +66,9 @@ additionalProperties:
envKey: SECRET_KEY
labelEn: Access rights key, optional (recommended)
labelZh: 访问权限密钥,可选(强烈建议填写)
label:
en: Access rights key, optional (recommended)
zh: 访问权限密钥,可选(强烈建议填写)
random: true
required: false
rule: paramComplexity
@@ -57,6 +78,9 @@ additionalProperties:
envKey: REQUEST_LIMIT
labelEn: Maximum number of requests per hour, optional, default unlimited
labelZh: 每小时最大请求次数,可选,默认无限
label:
en: Maximum number of requests per hour, optional, default unlimited
zh: 每小时最大请求次数,可选,默认无限
required: false
type: text
- default: '60000'
@@ -64,6 +88,9 @@ additionalProperties:
envKey: TIMEOUT
labelEn: Timeout, in milliseconds, optional
labelZh: 超时,单位毫秒,可选
label:
en: Timeout, in milliseconds, optional
zh: 超时,单位毫秒,可选
required: false
type: text
- default: ''
@@ -71,6 +98,9 @@ additionalProperties:
envKey: PROXY_HOST
labelEn: Socks proxy address, optional, effective when combined with Socks proxy port
labelZh: Socks代理地址可选和Socks代理端口一起时生效
label:
en: Socks proxy address, optional, effective when combined with Socks proxy port
zh: Socks代理地址可选和Socks代理端口一起时生效
required: false
type: text
- default: ''
@@ -78,6 +108,9 @@ additionalProperties:
envKey: PROXY_PORT
labelEn: Socks proxy port, optional, effective when combined with Socks proxy address
labelZh: Socks代理端口可选和Socks代理地址一起时生效
label:
en: Socks proxy port, optional, effective when combined with Socks proxy address
zh: Socks代理端口可选和Socks代理地址一起时生效
required: false
type: text
- default: ''
@@ -85,6 +118,9 @@ additionalProperties:
envKey: PROXY_USERNAME
labelEn: Socks proxy user name, optional, effective when combined with Socks proxy address
labelZh: Socks代理用户名可选和Socks代理地址一起时生效
label:
en: Socks proxy user name, optional, effective when combined with Socks proxy address
zh: Socks代理用户名可选和Socks代理地址一起时生效
required: false
type: text
- default: ''
@@ -92,6 +128,9 @@ additionalProperties:
envKey: PROXY_PASSWORD
labelEn: Socks proxy password, optional, effective when combined with Socks proxy address
labelZh: Socks代理密码可选和Socks代理地址一起时生效
label:
en: Socks proxy password, optional, effective when combined with Socks proxy address
zh: Socks代理密码可选和Socks代理地址一起时生效
required: false
type: text
- default: ''
@@ -99,5 +138,8 @@ additionalProperties:
envKey: HTTPS_PROXY
labelEn: HTTPS proxy, optional, supports http, https, socks5
labelZh: HTTPS代理可选支持httphttpssocks5
label:
en: HTTPS proxy, optional, supports http, https, socks5
zh: HTTPS代理可选支持httphttpssocks5
required: false
type: text

View File

@@ -5,6 +5,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_HTTP
labelEn: WebUI Port
labelZh: 网页端口
label:
en: WebUI Port
zh: 网页端口
required: true
rule: paramPort
type: number
@@ -13,6 +16,9 @@ additionalProperties:
envKey: ACCESS_TOKEN
labelEn: OPENAI ACCESS TOKEN (fill in at least one with OPENAI API KEY)(https://chat.openai.com/api/auth/session)
labelZh: OPENAI ACCESS TOKEN(与OPENAI API KEY至少填一个)(https://chat.openai.com/api/auth/session)
label:
en: OPENAI ACCESS TOKEN (fill in at least one with OPENAI API KEY)(https://chat.openai.com/api/auth/session)
zh: OPENAI ACCESS TOKEN(与OPENAI API KEY至少填一个)(https://chat.openai.com/api/auth/session)
required: false
type: text
- default: https://bypass.duti.tech/api/conversation
@@ -20,6 +26,9 @@ additionalProperties:
envKey: REVERSE_PROXY
labelEn: API reverse proxy, optional (enabled by default when OPENAI ACCESS TOKEN, need to pay attention to availability)
labelZh: API反向代理可选(OPENAI ACCESS TOKEN时默认启用,需要注意可用性)
label:
en: API reverse proxy, optional (enabled by default when OPENAI ACCESS TOKEN, need to pay attention to availability)
zh: API反向代理可选(OPENAI ACCESS TOKEN时默认启用,需要注意可用性)
required: false
type: text
- default: ''
@@ -27,6 +36,9 @@ additionalProperties:
envKey: API_KEY
labelEn: OPENAI API KEY (fill in at least one with OPENAI ACCESS TOKEN)
labelZh: OPENAI API KEY(与OPENAI ACCESS TOKEN至少填一个)
label:
en: OPENAI API KEY (fill in at least one with OPENAI ACCESS TOKEN)
zh: OPENAI API KEY(与OPENAI ACCESS TOKEN至少填一个)
required: false
type: text
- default: gpt-3.5-turbo
@@ -34,6 +46,9 @@ additionalProperties:
envKey: API_MODEL
labelEn: API model, optional, available when setting OPENAI API KEY(https://platform.openai.com/docs/models)
labelZh: API模型可选设置OPENAI API KEY时可用(https://platform.openai.com/docs/models)
label:
en: API model, optional, available when setting OPENAI API KEY(https://platform.openai.com/docs/models)
zh: API模型可选设置OPENAI API KEY时可用(https://platform.openai.com/docs/models)
required: false
type: text
- default: https://api.openai.com
@@ -41,6 +56,9 @@ additionalProperties:
envKey: API_BASE_URL
labelEn: API interface address, optional, available when setting OPENAI API KEY
labelZh: API接口地址可选设置OPENAI API KEY时可用
label:
en: API interface address, optional, available when setting OPENAI API KEY
zh: API接口地址可选设置OPENAI API KEY时可用
required: false
type: text
- default: chatgptweb
@@ -48,6 +66,9 @@ additionalProperties:
envKey: SECRET_KEY
labelEn: Access rights key, optional (recommended)
labelZh: 访问权限密钥,可选(强烈建议填写)
label:
en: Access rights key, optional (recommended)
zh: 访问权限密钥,可选(强烈建议填写)
random: true
required: false
rule: paramComplexity
@@ -57,6 +78,9 @@ additionalProperties:
envKey: REQUEST_LIMIT
labelEn: Maximum number of requests per hour, optional, default unlimited
labelZh: 每小时最大请求次数,可选,默认无限
label:
en: Maximum number of requests per hour, optional, default unlimited
zh: 每小时最大请求次数,可选,默认无限
required: false
type: text
- default: '60000'
@@ -64,6 +88,9 @@ additionalProperties:
envKey: TIMEOUT
labelEn: Timeout, in milliseconds, optional
labelZh: 超时,单位毫秒,可选
label:
en: Timeout, in milliseconds, optional
zh: 超时,单位毫秒,可选
required: false
type: text
- default: ''
@@ -71,6 +98,9 @@ additionalProperties:
envKey: PROXY_HOST
labelEn: Socks proxy address, optional, effective when combined with Socks proxy port
labelZh: Socks代理地址可选和Socks代理端口一起时生效
label:
en: Socks proxy address, optional, effective when combined with Socks proxy port
zh: Socks代理地址可选和Socks代理端口一起时生效
required: false
type: text
- default: ''
@@ -78,6 +108,9 @@ additionalProperties:
envKey: PROXY_PORT
labelEn: Socks proxy port, optional, effective when combined with Socks proxy address
labelZh: Socks代理端口可选和Socks代理地址一起时生效
label:
en: Socks proxy port, optional, effective when combined with Socks proxy address
zh: Socks代理端口可选和Socks代理地址一起时生效
required: false
type: text
- default: ''
@@ -85,6 +118,9 @@ additionalProperties:
envKey: PROXY_USERNAME
labelEn: Socks proxy user name, optional, effective when combined with Socks proxy address
labelZh: Socks代理用户名可选和Socks代理地址一起时生效
label:
en: Socks proxy user name, optional, effective when combined with Socks proxy address
zh: Socks代理用户名可选和Socks代理地址一起时生效
required: false
type: text
- default: ''
@@ -92,6 +128,9 @@ additionalProperties:
envKey: PROXY_PASSWORD
labelEn: Socks proxy password, optional, effective when combined with Socks proxy address
labelZh: Socks代理密码可选和Socks代理地址一起时生效
label:
en: Socks proxy password, optional, effective when combined with Socks proxy address
zh: Socks代理密码可选和Socks代理地址一起时生效
required: false
type: text
- default: ''
@@ -99,5 +138,8 @@ additionalProperties:
envKey: HTTPS_PROXY
labelEn: HTTPS proxy, optional, supports http, https, socks5
labelZh: HTTPS代理可选支持httphttpssocks5
label:
en: HTTPS proxy, optional, supports http, https, socks5
zh: HTTPS代理可选支持httphttpssocks5
required: false
type: text