✨ 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: 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
|
||||
|
||||
Reference in New Issue
Block a user