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: Port
labelZh: 端口
label:
en: Port
zh: 端口
required: true
rule: paramPort
type: number
@@ -13,6 +16,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_SMB
labelEn: Port
labelZh: 端口
label:
en: Port
zh: 端口
required: true
rule: paramPort
type: number
@@ -21,6 +27,9 @@ additionalProperties:
envKey: HOSTNAME
labelEn: Hostname
labelZh: 主机名
label:
en: Hostname
zh: 主机名
required: true
type: text
- default: "Asia/Shanghai"
@@ -28,6 +37,9 @@ additionalProperties:
envKey: TZ
labelEn: Time Zone
labelZh: 时区
label:
en: Time Zone
zh: 时区
required: true
type: text
- default: "./data"
@@ -35,6 +47,9 @@ additionalProperties:
envKey: DATA_PATH
labelEn: External Data Path
labelZh: 外部数据路径
label:
en: External Data Path
zh: 外部数据路径
required: true
type: text
- default: "/share/data"
@@ -42,6 +57,9 @@ additionalProperties:
envKey: INTERNAL_DATA_PATH
labelEn: Internal container data paths
labelZh: 容器内部数据路径
label:
en: Internal container data paths
zh: 容器内部数据路径
required: true
type: text
- default: "1000:1000:pirate:pirate:put-any-password-here"
@@ -49,6 +67,9 @@ additionalProperties:
envKey: USER_1
labelEn: User 1
labelZh: 用户 1
label:
en: User 1
zh: 用户 1
required: true
type: text
- default: "SmbShare:/share/folder:rw:pirate"
@@ -56,6 +77,9 @@ additionalProperties:
envKey: SHARE_1
labelEn: Share 1
labelZh: 共享 1
label:
en: Share 1
zh: 共享 1
required: true
type: text
- default: ""
@@ -63,6 +87,9 @@ additionalProperties:
envKey: USER_2
labelEn: User 2 (Edit to remove comments in compose.yml to take effect)
labelZh: 用户 2 (编辑去除compose.yml里的注释生效)
label:
en: User 2 (Edit to remove comments in compose.yml to take effect)
zh: 用户 2 (编辑去除compose.yml里的注释生效)
required: false
type: text
- default: ""
@@ -70,6 +97,9 @@ additionalProperties:
envKey: SHARE_2
labelEn: Share 2 (Edit to remove comments in compose.yml to take effect)
labelZh: 共享 2 (编辑去除compose.yml里的注释生效)
label:
en: Share 2 (Edit to remove comments in compose.yml to take effect)
zh: 共享 2 (编辑去除compose.yml里的注释生效)
required: false
type: text
- default: ""
@@ -77,6 +107,9 @@ additionalProperties:
envKey: USER_3
labelEn: User 3 (Edit to remove comments in compose.yml to take effect)
labelZh: 用户 3 (编辑去除compose.yml里的注释生效)
label:
en: User 3 (Edit to remove comments in compose.yml to take effect)
zh: 用户 3 (编辑去除compose.yml里的注释生效)
required: false
type: text
- default: ""
@@ -84,5 +117,8 @@ additionalProperties:
envKey: SHARE_3
labelEn: Share 3 (Edit to remove comments in compose.yml to take effect)
labelZh: 共享 3 (编辑去除compose.yml里的注释生效)
label:
en: Share 3 (Edit to remove comments in compose.yml to take effect)
zh: 共享 3 (编辑去除compose.yml里的注释生效)
required: false
type: text

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
@@ -13,6 +16,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_SMB
labelEn: Port
labelZh: 端口
label:
en: Port
zh: 端口
required: true
rule: paramPort
type: number
@@ -21,6 +27,9 @@ additionalProperties:
envKey: HOSTNAME
labelEn: Hostname
labelZh: 主机名
label:
en: Hostname
zh: 主机名
required: true
type: text
- default: "Asia/Shanghai"
@@ -28,6 +37,9 @@ additionalProperties:
envKey: TZ
labelEn: Time Zone
labelZh: 时区
label:
en: Time Zone
zh: 时区
required: true
type: text
- default: "./data"
@@ -35,6 +47,9 @@ additionalProperties:
envKey: DATA_PATH
labelEn: External Data Path
labelZh: 外部数据路径
label:
en: External Data Path
zh: 外部数据路径
required: true
type: text
- default: "/share/data"
@@ -42,6 +57,9 @@ additionalProperties:
envKey: INTERNAL_DATA_PATH
labelEn: Internal container data paths
labelZh: 容器内部数据路径
label:
en: Internal container data paths
zh: 容器内部数据路径
required: true
type: text
- default: "1000:1000:pirate:pirate:put-any-password-here"
@@ -49,6 +67,9 @@ additionalProperties:
envKey: USER_1
labelEn: User 1
labelZh: 用户 1
label:
en: User 1
zh: 用户 1
required: true
type: text
- default: "SmbShare:/share/folder:rw:pirate"
@@ -56,6 +77,9 @@ additionalProperties:
envKey: SHARE_1
labelEn: Share 1
labelZh: 共享 1
label:
en: Share 1
zh: 共享 1
required: true
type: text
- default: ""
@@ -63,6 +87,9 @@ additionalProperties:
envKey: USER_2
labelEn: User 2 (Edit to remove comments in compose.yml to take effect)
labelZh: 用户 2 (编辑去除compose.yml里的注释生效)
label:
en: User 2 (Edit to remove comments in compose.yml to take effect)
zh: 用户 2 (编辑去除compose.yml里的注释生效)
required: false
type: text
- default: ""
@@ -70,6 +97,9 @@ additionalProperties:
envKey: SHARE_2
labelEn: Share 2 (Edit to remove comments in compose.yml to take effect)
labelZh: 共享 2 (编辑去除compose.yml里的注释生效)
label:
en: Share 2 (Edit to remove comments in compose.yml to take effect)
zh: 共享 2 (编辑去除compose.yml里的注释生效)
required: false
type: text
- default: ""
@@ -77,6 +107,9 @@ additionalProperties:
envKey: USER_3
labelEn: User 3 (Edit to remove comments in compose.yml to take effect)
labelZh: 用户 3 (编辑去除compose.yml里的注释生效)
label:
en: User 3 (Edit to remove comments in compose.yml to take effect)
zh: 用户 3 (编辑去除compose.yml里的注释生效)
required: false
type: text
- default: ""
@@ -84,5 +117,8 @@ additionalProperties:
envKey: SHARE_3
labelEn: Share 3 (Edit to remove comments in compose.yml to take effect)
labelZh: 共享 3 (编辑去除compose.yml里的注释生效)
label:
en: Share 3 (Edit to remove comments in compose.yml to take effect)
zh: 共享 3 (编辑去除compose.yml里的注释生效)
required: false
type: text