✨ 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: STORAGE_PATH
|
||||
labelEn: Storage Path
|
||||
labelZh: 存储路径
|
||||
label:
|
||||
en: Storage Path
|
||||
zh: 存储路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "./data/config"
|
||||
@@ -20,6 +26,9 @@ additionalProperties:
|
||||
envKey: CONFIG_PATH
|
||||
labelEn: Config Path
|
||||
labelZh: 配置路径
|
||||
label:
|
||||
en: Config Path
|
||||
zh: 配置路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "./data/plugins"
|
||||
@@ -27,6 +36,9 @@ additionalProperties:
|
||||
envKey: PLUGINS_PATH
|
||||
labelEn: Plugins Path
|
||||
labelZh: 插件路径
|
||||
label:
|
||||
en: Plugins Path
|
||||
zh: 插件路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "/opt/verdaccio"
|
||||
@@ -34,6 +46,9 @@ additionalProperties:
|
||||
envKey: VERDACCIO_APPDIR
|
||||
labelEn: App Directory
|
||||
labelZh: 应用目录
|
||||
label:
|
||||
en: App Directory
|
||||
zh: 应用目录
|
||||
required: true
|
||||
type: text
|
||||
- default: "verdaccio"
|
||||
@@ -41,6 +56,9 @@ additionalProperties:
|
||||
envKey: VERDACCIO_USER_NAME
|
||||
labelEn: User Name
|
||||
labelZh: 用户名
|
||||
label:
|
||||
en: User Name
|
||||
zh: 用户名
|
||||
required: true
|
||||
type: text
|
||||
- default: "10001"
|
||||
@@ -48,6 +66,9 @@ additionalProperties:
|
||||
envKey: VERDACCIO_USER_UID
|
||||
labelEn: User ID
|
||||
labelZh: 用户 ID
|
||||
label:
|
||||
en: User ID
|
||||
zh: 用户 ID
|
||||
required: true
|
||||
type: number
|
||||
- default: "http"
|
||||
@@ -55,5 +76,8 @@ additionalProperties:
|
||||
envKey: VERDACCIO_PROTOCOL
|
||||
labelEn: Protocol
|
||||
labelZh: 协议
|
||||
label:
|
||||
en: Protocol
|
||||
zh: 协议
|
||||
required: true
|
||||
type: text
|
||||
|
||||
@@ -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: STORAGE_PATH
|
||||
labelEn: Storage Path
|
||||
labelZh: 存储路径
|
||||
label:
|
||||
en: Storage Path
|
||||
zh: 存储路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "./data/config"
|
||||
@@ -20,6 +26,9 @@ additionalProperties:
|
||||
envKey: CONFIG_PATH
|
||||
labelEn: Config Path
|
||||
labelZh: 配置路径
|
||||
label:
|
||||
en: Config Path
|
||||
zh: 配置路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "./data/plugins"
|
||||
@@ -27,6 +36,9 @@ additionalProperties:
|
||||
envKey: PLUGINS_PATH
|
||||
labelEn: Plugins Path
|
||||
labelZh: 插件路径
|
||||
label:
|
||||
en: Plugins Path
|
||||
zh: 插件路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "/opt/verdaccio"
|
||||
@@ -34,6 +46,9 @@ additionalProperties:
|
||||
envKey: VERDACCIO_APPDIR
|
||||
labelEn: App Directory
|
||||
labelZh: 应用目录
|
||||
label:
|
||||
en: App Directory
|
||||
zh: 应用目录
|
||||
required: true
|
||||
type: text
|
||||
- default: "verdaccio"
|
||||
@@ -41,6 +56,9 @@ additionalProperties:
|
||||
envKey: VERDACCIO_USER_NAME
|
||||
labelEn: User Name
|
||||
labelZh: 用户名
|
||||
label:
|
||||
en: User Name
|
||||
zh: 用户名
|
||||
required: true
|
||||
type: text
|
||||
- default: "10001"
|
||||
@@ -48,6 +66,9 @@ additionalProperties:
|
||||
envKey: VERDACCIO_USER_UID
|
||||
labelEn: User ID
|
||||
labelZh: 用户 ID
|
||||
label:
|
||||
en: User ID
|
||||
zh: 用户 ID
|
||||
required: true
|
||||
type: number
|
||||
- default: "http"
|
||||
@@ -55,5 +76,8 @@ additionalProperties:
|
||||
envKey: VERDACCIO_PROTOCOL
|
||||
labelEn: Protocol
|
||||
labelZh: 协议
|
||||
label:
|
||||
en: Protocol
|
||||
zh: 协议
|
||||
required: true
|
||||
type: text
|
||||
|
||||
Reference in New Issue
Block a user