✨ 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: PRIVILEGED_MODE
|
||||
labelEn: Privileged Mode
|
||||
labelZh: 特权模式
|
||||
label:
|
||||
en: Privileged Mode
|
||||
zh: 特权模式
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
@@ -17,6 +20,9 @@ additionalProperties:
|
||||
envKey: SHM_SIZE
|
||||
labelEn: Shared Memory Size
|
||||
labelZh: 共享内存大小
|
||||
label:
|
||||
en: Shared Memory Size
|
||||
zh: 共享内存大小
|
||||
required: true
|
||||
type: text
|
||||
- default: "./data/config"
|
||||
@@ -24,6 +30,9 @@ additionalProperties:
|
||||
envKey: CONFIG_PATH
|
||||
labelEn: Config Path
|
||||
labelZh: 配置路径
|
||||
label:
|
||||
en: Config Path
|
||||
zh: 配置路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "./data/storage"
|
||||
@@ -31,6 +40,9 @@ additionalProperties:
|
||||
envKey: STORAGE_PATH
|
||||
labelEn: Storage Path
|
||||
labelZh: 存储路径
|
||||
label:
|
||||
en: Storage Path
|
||||
zh: 存储路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "1000000000"
|
||||
@@ -38,6 +50,9 @@ additionalProperties:
|
||||
envKey: TMPFS_SIZE
|
||||
labelEn: Tmpfs Size
|
||||
labelZh: Tmpfs 大小
|
||||
label:
|
||||
en: Tmpfs Size
|
||||
zh: Tmpfs 大小
|
||||
required: true
|
||||
type: number
|
||||
- default: "8971"
|
||||
@@ -45,6 +60,9 @@ additionalProperties:
|
||||
envKey: PANEL_APP_PORT_HTTPS
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
label:
|
||||
en: Port
|
||||
zh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -53,6 +71,9 @@ additionalProperties:
|
||||
envKey: RTSP_PORT
|
||||
labelEn: RTSP Port
|
||||
labelZh: RTSP 端口
|
||||
label:
|
||||
en: RTSP Port
|
||||
zh: RTSP 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -61,6 +82,9 @@ additionalProperties:
|
||||
envKey: WEBRTC_TCP_PORT
|
||||
labelEn: WebRTC TCP Port
|
||||
labelZh: WebRTC TCP 端口
|
||||
label:
|
||||
en: WebRTC TCP Port
|
||||
zh: WebRTC TCP 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -69,6 +93,9 @@ additionalProperties:
|
||||
envKey: WEBRTC_UDP_PORT
|
||||
labelEn: WebRTC UDP Port
|
||||
labelZh: WebRTC UDP 端口
|
||||
label:
|
||||
en: WebRTC UDP Port
|
||||
zh: WebRTC UDP 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -77,6 +104,9 @@ additionalProperties:
|
||||
envKey: FRIGATE_RTSP_PASSWORD
|
||||
labelEn: RTSP Password
|
||||
labelZh: RTSP 密码
|
||||
label:
|
||||
en: RTSP Password
|
||||
zh: RTSP 密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
|
||||
@@ -5,6 +5,9 @@ additionalProperties:
|
||||
envKey: PRIVILEGED_MODE
|
||||
labelEn: Privileged Mode
|
||||
labelZh: 特权模式
|
||||
label:
|
||||
en: Privileged Mode
|
||||
zh: 特权模式
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
@@ -17,6 +20,9 @@ additionalProperties:
|
||||
envKey: SHM_SIZE
|
||||
labelEn: Shared Memory Size
|
||||
labelZh: 共享内存大小
|
||||
label:
|
||||
en: Shared Memory Size
|
||||
zh: 共享内存大小
|
||||
required: true
|
||||
type: text
|
||||
- default: "./data/config"
|
||||
@@ -24,6 +30,9 @@ additionalProperties:
|
||||
envKey: CONFIG_PATH
|
||||
labelEn: Config Path
|
||||
labelZh: 配置路径
|
||||
label:
|
||||
en: Config Path
|
||||
zh: 配置路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "./data/storage"
|
||||
@@ -31,6 +40,9 @@ additionalProperties:
|
||||
envKey: STORAGE_PATH
|
||||
labelEn: Storage Path
|
||||
labelZh: 存储路径
|
||||
label:
|
||||
en: Storage Path
|
||||
zh: 存储路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "1000000000"
|
||||
@@ -38,6 +50,9 @@ additionalProperties:
|
||||
envKey: TMPFS_SIZE
|
||||
labelEn: Tmpfs Size
|
||||
labelZh: Tmpfs 大小
|
||||
label:
|
||||
en: Tmpfs Size
|
||||
zh: Tmpfs 大小
|
||||
required: true
|
||||
type: number
|
||||
- default: "8971"
|
||||
@@ -45,6 +60,9 @@ additionalProperties:
|
||||
envKey: PANEL_APP_PORT_HTTPS
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
label:
|
||||
en: Port
|
||||
zh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -53,6 +71,9 @@ additionalProperties:
|
||||
envKey: RTSP_PORT
|
||||
labelEn: RTSP Port
|
||||
labelZh: RTSP 端口
|
||||
label:
|
||||
en: RTSP Port
|
||||
zh: RTSP 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -61,6 +82,9 @@ additionalProperties:
|
||||
envKey: WEBRTC_TCP_PORT
|
||||
labelEn: WebRTC TCP Port
|
||||
labelZh: WebRTC TCP 端口
|
||||
label:
|
||||
en: WebRTC TCP Port
|
||||
zh: WebRTC TCP 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -69,6 +93,9 @@ additionalProperties:
|
||||
envKey: WEBRTC_UDP_PORT
|
||||
labelEn: WebRTC UDP Port
|
||||
labelZh: WebRTC UDP 端口
|
||||
label:
|
||||
en: WebRTC UDP Port
|
||||
zh: WebRTC UDP 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -77,6 +104,9 @@ additionalProperties:
|
||||
envKey: FRIGATE_RTSP_PASSWORD
|
||||
labelEn: RTSP Password
|
||||
labelZh: RTSP 密码
|
||||
label:
|
||||
en: RTSP Password
|
||||
zh: RTSP 密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
|
||||
Reference in New Issue
Block a user