✨ 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,12 +16,18 @@ additionalProperties:
|
||||
envKey: DATA_PATH
|
||||
labelEn: Data folder path
|
||||
labelZh: 数据文件夹路径
|
||||
label:
|
||||
en: Data folder path
|
||||
zh: 数据文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "https://your-domain.com"
|
||||
envKey: ORIGIN
|
||||
labelEn: External URL (Only https environments can register and login, reverse proxy is required)
|
||||
labelZh: 外部访问地址 (只有 https 环境才能注册登录,需要反向代理)
|
||||
label:
|
||||
en: External URL (Only https environments can register and login, reverse proxy is required)
|
||||
zh: 外部访问地址 (只有 https 环境才能注册登录,需要反向代理)
|
||||
required: true
|
||||
type: text
|
||||
edit: true
|
||||
@@ -26,6 +35,9 @@ additionalProperties:
|
||||
envKey: USER_APPROVAL_REQUIRED
|
||||
labelEn: Whether to require user approval before they can upload images
|
||||
labelZh: 是否需要用户批准才能上传图像
|
||||
label:
|
||||
en: Whether to require user approval before they can upload images
|
||||
zh: 是否需要用户批准才能上传图像
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
@@ -38,6 +50,9 @@ additionalProperties:
|
||||
envKey: USER_ALLOW_UNAUTHENTICATED_ACCESS
|
||||
labelEn: Allow Unauthenticated Access
|
||||
labelZh: 允许未认证访问
|
||||
label:
|
||||
en: Allow Unauthenticated Access
|
||||
zh: 允许未认证访问
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
@@ -50,6 +65,9 @@ additionalProperties:
|
||||
envKey: USER_PASSWORD_MIN_LENGTH
|
||||
labelEn: User Password Minimum Length
|
||||
labelZh: 用户密码最小长度
|
||||
label:
|
||||
en: User Password Minimum Length
|
||||
zh: 用户密码最小长度
|
||||
required: true
|
||||
type: number
|
||||
edit: true
|
||||
@@ -57,6 +75,9 @@ additionalProperties:
|
||||
envKey: USER_PASSWORD_REQUIREMENTS
|
||||
labelEn: User Password Requirements (Sum of the following options:1-numbers, 2-lowercase, 4-uppercase, 8-special characters)
|
||||
labelZh: 用户密码要求 (以下选项的总和:1-数字、2-小写、4-大写、8-特殊字符)
|
||||
label:
|
||||
en: User Password Requirements (Sum of the following options:1-numbers, 2-lowercase, 4-uppercase, 8-special characters)
|
||||
zh: 用户密码要求 (以下选项的总和:1-数字、2-小写、4-大写、8-特殊字符)
|
||||
required: true
|
||||
type: number
|
||||
edit: true
|
||||
@@ -64,6 +85,9 @@ additionalProperties:
|
||||
envKey: IMAGE_MAX_SIZE
|
||||
labelEn: Image Maximum Size (no more than 50M)
|
||||
labelZh: 图片最大尺寸(不超过50M)
|
||||
label:
|
||||
en: Image Maximum Size (no more than 50M)
|
||||
zh: 图片最大尺寸(不超过50M)
|
||||
required: true
|
||||
type: text
|
||||
edit: true
|
||||
@@ -71,6 +95,9 @@ additionalProperties:
|
||||
envKey: IMAGE_STRIP_EXIF_METADATA
|
||||
labelEn: Strip EXIF Metadata
|
||||
labelZh: 剥离 EXIF 元数据
|
||||
label:
|
||||
en: Strip EXIF Metadata
|
||||
zh: 剥离 EXIF 元数据
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
@@ -83,6 +110,9 @@ additionalProperties:
|
||||
envKey: STORAGE_PROVIDER
|
||||
labelEn: Storage Provider
|
||||
labelZh: 存储提供商
|
||||
label:
|
||||
en: Storage Provider
|
||||
zh: 存储提供商
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
@@ -95,6 +125,9 @@ additionalProperties:
|
||||
envKey: SMB_HOST
|
||||
labelEn: SMB Host
|
||||
labelZh: SMB 主机
|
||||
label:
|
||||
en: SMB Host
|
||||
zh: SMB 主机
|
||||
required: false
|
||||
type: text
|
||||
edit: true
|
||||
@@ -102,6 +135,9 @@ additionalProperties:
|
||||
envKey: SMB_USERNAME
|
||||
labelEn: SMB Username
|
||||
labelZh: SMB 用户名
|
||||
label:
|
||||
en: SMB Username
|
||||
zh: SMB 用户名
|
||||
required: false
|
||||
type: text
|
||||
edit: true
|
||||
@@ -109,6 +145,9 @@ additionalProperties:
|
||||
envKey: SMB_PASSWORD
|
||||
labelEn: SMB Password
|
||||
labelZh: SMB 密码
|
||||
label:
|
||||
en: SMB Password
|
||||
zh: SMB 密码
|
||||
required: false
|
||||
type: password
|
||||
edit: true
|
||||
@@ -116,6 +155,9 @@ additionalProperties:
|
||||
envKey: SMB_SHARE
|
||||
labelEn: SMB Share
|
||||
labelZh: SMB 共享
|
||||
label:
|
||||
en: SMB Share
|
||||
zh: SMB 共享
|
||||
required: false
|
||||
type: text
|
||||
edit: true
|
||||
|
||||
@@ -5,6 +5,9 @@ additionalProperties:
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
label:
|
||||
en: Port
|
||||
zh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -13,12 +16,18 @@ additionalProperties:
|
||||
envKey: DATA_PATH
|
||||
labelEn: Data folder path
|
||||
labelZh: 数据文件夹路径
|
||||
label:
|
||||
en: Data folder path
|
||||
zh: 数据文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "https://your-domain.com"
|
||||
envKey: ORIGIN
|
||||
labelEn: External URL (Only https environments can register and login, reverse proxy is required)
|
||||
labelZh: 外部访问地址 (只有 https 环境才能注册登录,需要反向代理)
|
||||
label:
|
||||
en: External URL (Only https environments can register and login, reverse proxy is required)
|
||||
zh: 外部访问地址 (只有 https 环境才能注册登录,需要反向代理)
|
||||
required: true
|
||||
type: text
|
||||
edit: true
|
||||
@@ -26,6 +35,9 @@ additionalProperties:
|
||||
envKey: USER_APPROVAL_REQUIRED
|
||||
labelEn: Whether to require user approval before they can upload images
|
||||
labelZh: 是否需要用户批准才能上传图像
|
||||
label:
|
||||
en: Whether to require user approval before they can upload images
|
||||
zh: 是否需要用户批准才能上传图像
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
@@ -38,6 +50,9 @@ additionalProperties:
|
||||
envKey: USER_ALLOW_UNAUTHENTICATED_ACCESS
|
||||
labelEn: Allow Unauthenticated Access
|
||||
labelZh: 允许未认证访问
|
||||
label:
|
||||
en: Allow Unauthenticated Access
|
||||
zh: 允许未认证访问
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
@@ -50,6 +65,9 @@ additionalProperties:
|
||||
envKey: USER_PASSWORD_MIN_LENGTH
|
||||
labelEn: User Password Minimum Length
|
||||
labelZh: 用户密码最小长度
|
||||
label:
|
||||
en: User Password Minimum Length
|
||||
zh: 用户密码最小长度
|
||||
required: true
|
||||
type: number
|
||||
edit: true
|
||||
@@ -57,6 +75,9 @@ additionalProperties:
|
||||
envKey: USER_PASSWORD_REQUIREMENTS
|
||||
labelEn: User Password Requirements (Sum of the following options:1-numbers, 2-lowercase, 4-uppercase, 8-special characters)
|
||||
labelZh: 用户密码要求 (以下选项的总和:1-数字、2-小写、4-大写、8-特殊字符)
|
||||
label:
|
||||
en: User Password Requirements (Sum of the following options:1-numbers, 2-lowercase, 4-uppercase, 8-special characters)
|
||||
zh: 用户密码要求 (以下选项的总和:1-数字、2-小写、4-大写、8-特殊字符)
|
||||
required: true
|
||||
type: number
|
||||
edit: true
|
||||
@@ -64,6 +85,9 @@ additionalProperties:
|
||||
envKey: IMAGE_MAX_SIZE
|
||||
labelEn: Image Maximum Size (no more than 50M)
|
||||
labelZh: 图片最大尺寸(不超过50M)
|
||||
label:
|
||||
en: Image Maximum Size (no more than 50M)
|
||||
zh: 图片最大尺寸(不超过50M)
|
||||
required: true
|
||||
type: text
|
||||
edit: true
|
||||
@@ -71,6 +95,9 @@ additionalProperties:
|
||||
envKey: IMAGE_STRIP_EXIF_METADATA
|
||||
labelEn: Strip EXIF Metadata
|
||||
labelZh: 剥离 EXIF 元数据
|
||||
label:
|
||||
en: Strip EXIF Metadata
|
||||
zh: 剥离 EXIF 元数据
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
@@ -83,6 +110,9 @@ additionalProperties:
|
||||
envKey: STORAGE_PROVIDER
|
||||
labelEn: Storage Provider
|
||||
labelZh: 存储提供商
|
||||
label:
|
||||
en: Storage Provider
|
||||
zh: 存储提供商
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
@@ -95,6 +125,9 @@ additionalProperties:
|
||||
envKey: SMB_HOST
|
||||
labelEn: SMB Host
|
||||
labelZh: SMB 主机
|
||||
label:
|
||||
en: SMB Host
|
||||
zh: SMB 主机
|
||||
required: false
|
||||
type: text
|
||||
edit: true
|
||||
@@ -102,6 +135,9 @@ additionalProperties:
|
||||
envKey: SMB_USERNAME
|
||||
labelEn: SMB Username
|
||||
labelZh: SMB 用户名
|
||||
label:
|
||||
en: SMB Username
|
||||
zh: SMB 用户名
|
||||
required: false
|
||||
type: text
|
||||
edit: true
|
||||
@@ -109,6 +145,9 @@ additionalProperties:
|
||||
envKey: SMB_PASSWORD
|
||||
labelEn: SMB Password
|
||||
labelZh: SMB 密码
|
||||
label:
|
||||
en: SMB Password
|
||||
zh: SMB 密码
|
||||
required: false
|
||||
type: password
|
||||
edit: true
|
||||
@@ -116,6 +155,9 @@ additionalProperties:
|
||||
envKey: SMB_SHARE
|
||||
labelEn: SMB Share
|
||||
labelZh: SMB 共享
|
||||
label:
|
||||
en: SMB Share
|
||||
zh: SMB 共享
|
||||
required: false
|
||||
type: text
|
||||
edit: true
|
||||
|
||||
Reference in New Issue
Block a user