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: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
label:
en: Data folder path
zh: 数据文件夹路径
required: true
type: text
- default: "false"
@@ -20,6 +26,9 @@ additionalProperties:
envKey: REGISTER_SWITCH
labelEn: Enable register (true or false)
labelZh: 启用注册(true/false)
label:
en: Enable register (true or false)
zh: 启用注册(true/false)
required: true
type: text
- default: http://ci.example.com
@@ -27,6 +36,9 @@ additionalProperties:
envKey: WOODPECKER_HOST
labelEn: External URL
labelZh: 外部访问地址
label:
en: External URL
zh: 外部访问地址
required: true
type: text
- default: ''
@@ -34,6 +46,9 @@ additionalProperties:
envKey: WOODPECKER_AGENT_SECRET
labelEn: Github Agent Secret Vaule
labelZh: Github Agent Secret 值
label:
en: Github Agent Secret Vaule
zh: Github Agent Secret 值
required: true
type: text
- default: "true"
@@ -41,6 +56,9 @@ additionalProperties:
envKey: GITHUB_ENABLE_SWITCH
labelEn: Enable Github (true or false)
labelZh: 启用Github(true/false)
label:
en: Enable Github (true or false)
zh: 启用Github(true/false)
required: true
type: text
- default: https://github.com
@@ -48,6 +66,9 @@ additionalProperties:
envKey: WOODPECKER_GITHUB_URL
labelEn: Github URL
labelZh: Github地址
label:
en: Github URL
zh: Github地址
required: false
type: text
- default: ''
@@ -55,6 +76,9 @@ additionalProperties:
envKey: WOODPECKER_GITHUB_CLIENT
labelEn: Github CLIENT Vaule
labelZh: Github CLIENT 值
label:
en: Github CLIENT Vaule
zh: Github CLIENT 值
required: false
type: text
- default: ''
@@ -62,6 +86,9 @@ additionalProperties:
envKey: WOODPECKER_GITHUB_SECRET
labelEn: Github SECRET Vaule
labelZh: Github SECRET 值
label:
en: Github SECRET Vaule
zh: Github SECRET 值
required: false
type: text
- default: "false"
@@ -69,6 +96,9 @@ additionalProperties:
envKey: GITEA_ENABLE_SWITCH
labelEn: Enable Gitea (true or false)
labelZh: 启用Gitea(true/false)
label:
en: Enable Gitea (true or false)
zh: 启用Gitea(true/false)
required: true
type: text
- default: https://try.gitea.io
@@ -76,6 +106,9 @@ additionalProperties:
envKey: WOODPECKER_GITEA_URL
labelEn: Gitea URL
labelZh: Gitea地址
label:
en: Gitea URL
zh: Gitea地址
required: false
type: text
- default: ''
@@ -83,6 +116,9 @@ additionalProperties:
envKey: WOODPECKER_GITEA_CLIENT
labelEn: Gitea CLIENT Vaule
labelZh: Gitea CLIENT 值
label:
en: Gitea CLIENT Vaule
zh: Gitea CLIENT 值
required: false
type: text
- default: ''
@@ -90,6 +126,9 @@ additionalProperties:
envKey: WOODPECKER_GITEA_SECRET
labelEn: Gitea SECRET Vaule
labelZh: Gitea SECRET 值
label:
en: Gitea SECRET Vaule
zh: Gitea SECRET 值
required: false
type: text
- default: "false"
@@ -97,6 +136,9 @@ additionalProperties:
envKey: GITLAB_ENABLE_SWITCH
labelEn: Enable GitLab (true or false)
labelZh: 启用GitLab (true/false)
label:
en: Enable GitLab (true or false)
zh: 启用GitLab (true/false)
required: true
type: text
- default: https://gitlab.com
@@ -104,6 +146,9 @@ additionalProperties:
envKey: WOODPECKER_GITLAB_URL
labelEn: GitLab URL
labelZh: GitLab 地址
label:
en: GitLab URL
zh: GitLab 地址
required: false
type: text
- default: ''
@@ -111,6 +156,9 @@ additionalProperties:
envKey: WOODPECKER_GITLAB_CLIENT
labelEn: GitLab CLIENT Vaule
labelZh: GitLab CLIENT 值
label:
en: GitLab CLIENT Vaule
zh: GitLab CLIENT 值
required: false
type: text
- default: ''
@@ -118,6 +166,9 @@ additionalProperties:
envKey: WOODPECKER_GITLAB_SECRET
labelEn: GitLab SECRET Vaule
labelZh: GitLab SECRET 值
label:
en: GitLab SECRET Vaule
zh: GitLab SECRET 值
required: false
type: text
- default: "false"
@@ -125,6 +176,9 @@ additionalProperties:
envKey: BITBUCKET_ENABLE_SWITCH
labelEn: Enable Bitbucket (true or false)
labelZh: 启用 Bitbucket (true/false)
label:
en: Enable Bitbucket (true or false)
zh: 启用 Bitbucket (true/false)
required: true
type: text
- default: ''
@@ -132,6 +186,9 @@ additionalProperties:
envKey: WOODPECKER_BITBUCKET_CLIENT
labelEn: Bitbucket CLIENT Value
labelZh: Bitbucket CLIENT 值
label:
en: Bitbucket CLIENT Value
zh: Bitbucket CLIENT 值
required: false
type: text
- default: ''
@@ -139,5 +196,8 @@ additionalProperties:
envKey: WOODPECKER_BITBUCKET_SECRET
labelEn: Bitbucket SECRET Value
labelZh: Bitbucket SECRET 值
label:
en: Bitbucket SECRET Value
zh: Bitbucket SECRET 值
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: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
label:
en: Data folder path
zh: 数据文件夹路径
required: true
type: text
- default: "false"
@@ -20,6 +26,9 @@ additionalProperties:
envKey: REGISTER_SWITCH
labelEn: Enable register (true or false)
labelZh: 启用注册(true/false)
label:
en: Enable register (true or false)
zh: 启用注册(true/false)
required: true
type: text
- default: http://ci.example.com
@@ -27,6 +36,9 @@ additionalProperties:
envKey: WOODPECKER_HOST
labelEn: External URL
labelZh: 外部访问地址
label:
en: External URL
zh: 外部访问地址
required: true
type: text
- default: ''
@@ -34,6 +46,9 @@ additionalProperties:
envKey: WOODPECKER_AGENT_SECRET
labelEn: Github Agent Secret Vaule
labelZh: Github Agent Secret 值
label:
en: Github Agent Secret Vaule
zh: Github Agent Secret 值
required: true
type: text
- default: "true"
@@ -41,6 +56,9 @@ additionalProperties:
envKey: GITHUB_ENABLE_SWITCH
labelEn: Enable Github (true or false)
labelZh: 启用Github(true/false)
label:
en: Enable Github (true or false)
zh: 启用Github(true/false)
required: true
type: text
- default: https://github.com
@@ -48,6 +66,9 @@ additionalProperties:
envKey: WOODPECKER_GITHUB_URL
labelEn: Github URL
labelZh: Github地址
label:
en: Github URL
zh: Github地址
required: false
type: text
- default: ''
@@ -55,6 +76,9 @@ additionalProperties:
envKey: WOODPECKER_GITHUB_CLIENT
labelEn: Github CLIENT Vaule
labelZh: Github CLIENT 值
label:
en: Github CLIENT Vaule
zh: Github CLIENT 值
required: false
type: text
- default: ''
@@ -62,6 +86,9 @@ additionalProperties:
envKey: WOODPECKER_GITHUB_SECRET
labelEn: Github SECRET Vaule
labelZh: Github SECRET 值
label:
en: Github SECRET Vaule
zh: Github SECRET 值
required: false
type: text
- default: "false"
@@ -69,6 +96,9 @@ additionalProperties:
envKey: GITEA_ENABLE_SWITCH
labelEn: Enable Gitea (true or false)
labelZh: 启用Gitea(true/false)
label:
en: Enable Gitea (true or false)
zh: 启用Gitea(true/false)
required: true
type: text
- default: https://try.gitea.io
@@ -76,6 +106,9 @@ additionalProperties:
envKey: WOODPECKER_GITEA_URL
labelEn: Gitea URL
labelZh: Gitea地址
label:
en: Gitea URL
zh: Gitea地址
required: false
type: text
- default: ''
@@ -83,6 +116,9 @@ additionalProperties:
envKey: WOODPECKER_GITEA_CLIENT
labelEn: Gitea CLIENT Vaule
labelZh: Gitea CLIENT 值
label:
en: Gitea CLIENT Vaule
zh: Gitea CLIENT 值
required: false
type: text
- default: ''
@@ -90,6 +126,9 @@ additionalProperties:
envKey: WOODPECKER_GITEA_SECRET
labelEn: Gitea SECRET Vaule
labelZh: Gitea SECRET 值
label:
en: Gitea SECRET Vaule
zh: Gitea SECRET 值
required: false
type: text
- default: "false"
@@ -97,6 +136,9 @@ additionalProperties:
envKey: GITLAB_ENABLE_SWITCH
labelEn: Enable GitLab (true or false)
labelZh: 启用GitLab (true/false)
label:
en: Enable GitLab (true or false)
zh: 启用GitLab (true/false)
required: true
type: text
- default: https://gitlab.com
@@ -104,6 +146,9 @@ additionalProperties:
envKey: WOODPECKER_GITLAB_URL
labelEn: GitLab URL
labelZh: GitLab 地址
label:
en: GitLab URL
zh: GitLab 地址
required: false
type: text
- default: ''
@@ -111,6 +156,9 @@ additionalProperties:
envKey: WOODPECKER_GITLAB_CLIENT
labelEn: GitLab CLIENT Vaule
labelZh: GitLab CLIENT 值
label:
en: GitLab CLIENT Vaule
zh: GitLab CLIENT 值
required: false
type: text
- default: ''
@@ -118,6 +166,9 @@ additionalProperties:
envKey: WOODPECKER_GITLAB_SECRET
labelEn: GitLab SECRET Vaule
labelZh: GitLab SECRET 值
label:
en: GitLab SECRET Vaule
zh: GitLab SECRET 值
required: false
type: text
- default: "false"
@@ -125,6 +176,9 @@ additionalProperties:
envKey: BITBUCKET_ENABLE_SWITCH
labelEn: Enable Bitbucket (true or false)
labelZh: 启用 Bitbucket (true/false)
label:
en: Enable Bitbucket (true or false)
zh: 启用 Bitbucket (true/false)
required: true
type: text
- default: ''
@@ -132,6 +186,9 @@ additionalProperties:
envKey: WOODPECKER_BITBUCKET_CLIENT
labelEn: Bitbucket CLIENT Value
labelZh: Bitbucket CLIENT 值
label:
en: Bitbucket CLIENT Value
zh: Bitbucket CLIENT 值
required: false
type: text
- default: ''
@@ -139,5 +196,8 @@ additionalProperties:
envKey: WOODPECKER_BITBUCKET_SECRET
labelEn: Bitbucket SECRET Value
labelZh: Bitbucket SECRET 值
label:
en: Bitbucket SECRET Value
zh: Bitbucket SECRET 值
required: false
type: text

View File

@@ -10,6 +10,9 @@ additionalProperties:
default: mysql
labelEn: Database Service
labelZh: 数据库服务
label:
en: Database Service
zh: 数据库服务
params:
- envKey: WOODPECKER_DB_PORT
key: mysql
@@ -31,6 +34,9 @@ additionalProperties:
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
label:
en: Database
zh: 数据库名
random: true
required: true
rule: paramCommon
@@ -39,6 +45,9 @@ additionalProperties:
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
label:
en: User
zh: 数据库用户
random: true
required: true
rule: paramCommon
@@ -47,6 +56,9 @@ additionalProperties:
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
label:
en: Password
zh: 数据库用户密码
random: true
required: true
rule: paramComplexity
@@ -56,6 +68,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
label:
en: Port
zh: 端口
required: true
rule: paramPort
type: number
@@ -64,6 +79,9 @@ additionalProperties:
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
label:
en: Data folder path
zh: 数据文件夹路径
required: true
type: text
- default: "false"
@@ -71,6 +89,9 @@ additionalProperties:
envKey: REGISTER_SWITCH
labelEn: Enable register (true or false)
labelZh: 启用注册(true/false)
label:
en: Enable register (true or false)
zh: 启用注册(true/false)
required: true
type: text
- default: http://ci.example.com
@@ -78,6 +99,9 @@ additionalProperties:
envKey: WOODPECKER_HOST
labelEn: External URL
labelZh: 外部访问地址
label:
en: External URL
zh: 外部访问地址
required: true
type: text
- default: ''
@@ -85,6 +109,9 @@ additionalProperties:
envKey: WOODPECKER_AGENT_SECRET
labelEn: Github Agent Secret Vaule
labelZh: Github Agent Secret 值
label:
en: Github Agent Secret Vaule
zh: Github Agent Secret 值
required: true
type: text
- default: "true"
@@ -92,6 +119,9 @@ additionalProperties:
envKey: GITHUB_ENABLE_SWITCH
labelEn: Enable Github (true or false)
labelZh: 启用Github(true/false)
label:
en: Enable Github (true or false)
zh: 启用Github(true/false)
required: true
type: text
- default: https://github.com
@@ -99,6 +129,9 @@ additionalProperties:
envKey: WOODPECKER_GITHUB_URL
labelEn: Github URL
labelZh: Github地址
label:
en: Github URL
zh: Github地址
required: false
type: text
- default: ''
@@ -106,6 +139,9 @@ additionalProperties:
envKey: WOODPECKER_GITHUB_CLIENT
labelEn: Github CLIENT Vaule
labelZh: Github CLIENT 值
label:
en: Github CLIENT Vaule
zh: Github CLIENT 值
required: false
type: text
- default: ''
@@ -113,6 +149,9 @@ additionalProperties:
envKey: WOODPECKER_GITHUB_SECRET
labelEn: Github SECRET Vaule
labelZh: Github SECRET 值
label:
en: Github SECRET Vaule
zh: Github SECRET 值
required: false
type: text
- default: "false"
@@ -120,6 +159,9 @@ additionalProperties:
envKey: GITEA_ENABLE_SWITCH
labelEn: Enable Gitea (true or false)
labelZh: 启用Gitea(true/false)
label:
en: Enable Gitea (true or false)
zh: 启用Gitea(true/false)
required: true
type: text
- default: https://try.gitea.io
@@ -127,6 +169,9 @@ additionalProperties:
envKey: WOODPECKER_GITEA_URL
labelEn: Gitea URL
labelZh: Gitea地址
label:
en: Gitea URL
zh: Gitea地址
required: false
type: text
- default: ''
@@ -134,6 +179,9 @@ additionalProperties:
envKey: WOODPECKER_GITEA_CLIENT
labelEn: Gitea CLIENT Vaule
labelZh: Gitea CLIENT 值
label:
en: Gitea CLIENT Vaule
zh: Gitea CLIENT 值
required: false
type: text
- default: ''
@@ -141,6 +189,9 @@ additionalProperties:
envKey: WOODPECKER_GITEA_SECRET
labelEn: Gitea SECRET Vaule
labelZh: Gitea SECRET 值
label:
en: Gitea SECRET Vaule
zh: Gitea SECRET 值
required: false
type: text
- default: "false"
@@ -148,6 +199,9 @@ additionalProperties:
envKey: GITLAB_ENABLE_SWITCH
labelEn: Enable GitLab (true or false)
labelZh: 启用GitLab (true/false)
label:
en: Enable GitLab (true or false)
zh: 启用GitLab (true/false)
required: true
type: text
- default: https://gitlab.com
@@ -155,6 +209,9 @@ additionalProperties:
envKey: WOODPECKER_GITLAB_URL
labelEn: GitLab URL
labelZh: GitLab 地址
label:
en: GitLab URL
zh: GitLab 地址
required: false
type: text
- default: ''
@@ -162,6 +219,9 @@ additionalProperties:
envKey: WOODPECKER_GITLAB_CLIENT
labelEn: GitLab CLIENT Vaule
labelZh: GitLab CLIENT 值
label:
en: GitLab CLIENT Vaule
zh: GitLab CLIENT 值
required: false
type: text
- default: ''
@@ -169,6 +229,9 @@ additionalProperties:
envKey: WOODPECKER_GITLAB_SECRET
labelEn: GitLab SECRET Vaule
labelZh: GitLab SECRET 值
label:
en: GitLab SECRET Vaule
zh: GitLab SECRET 值
required: false
type: text
- default: "false"
@@ -176,6 +239,9 @@ additionalProperties:
envKey: BITBUCKET_ENABLE_SWITCH
labelEn: Enable Bitbucket (true or false)
labelZh: 启用 Bitbucket (true/false)
label:
en: Enable Bitbucket (true or false)
zh: 启用 Bitbucket (true/false)
required: true
type: text
- default: ''
@@ -183,6 +249,9 @@ additionalProperties:
envKey: WOODPECKER_BITBUCKET_CLIENT
labelEn: Bitbucket CLIENT Value
labelZh: Bitbucket CLIENT 值
label:
en: Bitbucket CLIENT Value
zh: Bitbucket CLIENT 值
required: false
type: text
- default: ''
@@ -190,5 +259,8 @@ additionalProperties:
envKey: WOODPECKER_BITBUCKET_SECRET
labelEn: Bitbucket SECRET Value
labelZh: Bitbucket SECRET 值
label:
en: Bitbucket SECRET Value
zh: Bitbucket SECRET 值
required: false
type: text