✨ 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: NGINX_UI_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
label:
|
||||
en: Data persistence path
|
||||
zh: 数据持久化路径
|
||||
required: true
|
||||
type: text
|
||||
- default: 80
|
||||
@@ -12,6 +15,9 @@ additionalProperties:
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: Web UI 端口
|
||||
labelEn: Web UI Port
|
||||
label:
|
||||
en: Web UI Port
|
||||
zh: Web UI 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -20,6 +26,9 @@ additionalProperties:
|
||||
envKey: PANEL_APP_PORT_HTTPS
|
||||
labelZh: Web UI 端口 (HTTPS)
|
||||
labelEn: Web UI Port (HTTPS)
|
||||
label:
|
||||
en: Web UI Port (HTTPS)
|
||||
zh: Web UI 端口 (HTTPS)
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -28,6 +37,9 @@ additionalProperties:
|
||||
envKey: ADMINMAIL
|
||||
labelZh: 管理员邮箱
|
||||
labelEn: Admin Email
|
||||
label:
|
||||
en: Admin Email
|
||||
zh: 管理员邮箱
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
@@ -35,6 +47,9 @@ additionalProperties:
|
||||
envKey: ADMINPASS
|
||||
labelZh: 管理员密码
|
||||
labelEn: Admin Password
|
||||
label:
|
||||
en: Admin Password
|
||||
zh: 管理员密码
|
||||
required: true
|
||||
type: password
|
||||
- default: ""
|
||||
@@ -42,6 +57,9 @@ additionalProperties:
|
||||
envKey: NGINX_UI_SERVER_JWT_SECRET
|
||||
labelZh: JWT 密钥盐
|
||||
labelEn: JWT Secret Salt
|
||||
label:
|
||||
en: JWT Secret Salt
|
||||
zh: JWT 密钥盐
|
||||
required: true
|
||||
type: password
|
||||
- default: "https://mirror.ghproxy.com/"
|
||||
@@ -49,6 +67,9 @@ additionalProperties:
|
||||
envKey: NGINX_UI_SERVER_GITHUB_PROXY
|
||||
labelZh: GitHub 代理地址
|
||||
labelEn: GitHub Proxy
|
||||
label:
|
||||
en: GitHub Proxy
|
||||
zh: GitHub 代理地址
|
||||
required: false
|
||||
type: text
|
||||
- default: "Nginx UI"
|
||||
@@ -56,6 +77,9 @@ additionalProperties:
|
||||
envKey: NGINX_UI_SERVER_NAME
|
||||
labelZh: Nginx UI 显示标题
|
||||
labelEn: Nginx UI Display Title
|
||||
label:
|
||||
en: Nginx UI Display Title
|
||||
zh: Nginx UI 显示标题
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
@@ -63,6 +87,9 @@ additionalProperties:
|
||||
envKey: NGINX_UI_PREDEFINED_USER_NAME
|
||||
labelZh: 预设用户名
|
||||
labelEn: Predefined Username
|
||||
label:
|
||||
en: Predefined Username
|
||||
zh: 预设用户名
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
@@ -70,5 +97,8 @@ additionalProperties:
|
||||
envKey: NGINX_UI_PREDEFINED_USER_PASSWORD
|
||||
labelZh: 预设密码
|
||||
labelEn: Predefined Password
|
||||
label:
|
||||
en: Predefined Password
|
||||
zh: 预设密码
|
||||
required: false
|
||||
type: text
|
||||
|
||||
@@ -5,6 +5,9 @@ additionalProperties:
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Console Port
|
||||
labelZh: 控制台端口
|
||||
label:
|
||||
en: Console Port
|
||||
zh: 控制台端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -13,6 +16,9 @@ additionalProperties:
|
||||
envKey: PANEL_APP_PORT_HTTPS
|
||||
labelEn: HTTPS Port
|
||||
labelZh: HTTPS端口
|
||||
label:
|
||||
en: HTTPS Port
|
||||
zh: HTTPS端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -21,6 +27,9 @@ additionalProperties:
|
||||
envKey: DATA_PATH
|
||||
labelEn: Data folder path
|
||||
labelZh: 数据文件夹路径
|
||||
label:
|
||||
en: Data folder path
|
||||
zh: 数据文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
- default: ./data/www
|
||||
@@ -28,5 +37,8 @@ additionalProperties:
|
||||
envKey: WEB_PATH
|
||||
labelEn: WEB folder path
|
||||
labelZh: 网页文件夹路径
|
||||
label:
|
||||
en: WEB folder path
|
||||
zh: 网页文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
|
||||
Reference in New Issue
Block a user