Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:流水线变量语法支持两种风格 #10576 #10885

Merged
merged 51 commits into from
Nov 4, 2024

Conversation

useryuyu
Copy link
Collaborator

…o issue_10576

# Reviewed, transaction id: 17783
…o issue_10576

# Reviewed, transaction id: 18626
…o issue_10576

# Reviewed, transaction id: 19919
@vhwweng vhwweng closed this Oct 11, 2024
@vhwweng vhwweng reopened this Oct 11, 2024
const pipelineDialectMap = {
'CLASSIC': t('传统风格'),
'CONSTRAINED': t('制约风格'),
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个可以做为一个公共的常量配置,我看挺多地方会用到的,比如下面这个,后续的话如果改到也好维护,国际化翻译方面,也可以直接用这两个常量CLASSIC,CONSTRAINED用Key就行
image

namingStyle: {
CLASSIC: this.$t('traditionalStyle'),
CONSTRAINED: this.$t('constraintStyle')
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里用的又是不同的国际化key,但是内容是一样的

…o issue_10576

# Reviewed, transaction id: 21385
…o issue_10576

# Reviewed, transaction id: 22284
…o issue_10576

# Reviewed, transaction id: 22718
@bkci-bot bkci-bot merged commit 0a337e6 into TencentBlueKing:master Nov 4, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants