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:代码库优化一期功能点 #9347 #9584

Closed
wants to merge 943 commits into from
Closed
Show file tree
Hide file tree
Changes from 52 commits
Commits
Show all changes
943 commits
Select commit Hold shift + click to select a range
9dd0804
Merge pull request #9330 from lockiechen/issue_9262
stubenhuang Aug 15, 2023
dabe7ae
Merge remote-tracking branch 'origin/master' into rbac
Aug 16, 2023
7df1dd0
Merge remote-tracking branch 'origin/master' into rbac
Aug 16, 2023
ff9e2cf
Merge remote-tracking branch 'origin/master' into rbac
Aug 16, 2023
fdc17ab
Merge remote-tracking branch 'origin/master' into rbac
irwinsun Aug 16, 2023
badf79b
Merge remote-tracking branch 'origin/master' into rbac
irwinsun Aug 16, 2023
9419b4c
bug: 权限事务一致性优化 #9290
vhwweng Aug 18, 2023
08bf990
fix: 蓝盾v2.0.0问题修复 #9343
vhwweng Aug 18, 2023
0a2d2fa
fix: 蓝盾v2.0.0问题修复 #9343
vhwweng Aug 18, 2023
ac26a48
Merge pull request #9342 from vhwweng/issue_9290
bkci-bot Aug 18, 2023
2bab2d6
bug: 权限事务一致性优化 #9290
vhwweng Aug 18, 2023
0648373
feat:屏蔽公共构建机登录调试入口 issue #9349
terlinhe Aug 18, 2023
c42ffae
feat:屏蔽公共构建机登录调试入口 issue #9349
terlinhe Aug 18, 2023
51963bf
feat:屏蔽公共构建机登录调试入口 issue #9349
terlinhe Aug 18, 2023
8dc691a
bug: 权限事务一致性优化 #9290
vhwweng Aug 18, 2023
ef278d7
bug: 权限事务一致性优化 #9290
vhwweng Aug 18, 2023
98e8304
Merge pull request #9350 from terlinhe/feat_rabcConsole
lockiechen Aug 18, 2023
38e632b
Merge pull request #9348 from vhwweng/issue_9290
bkci-bot Aug 18, 2023
6b0859a
fix: 蓝盾v2.0.0问题修复 #9343
vhwweng Aug 21, 2023
030e649
Merge remote-tracking branch 'github/master' into rbac
lockiechen Aug 21, 2023
0769c7b
conflit resolved
lockiechen Aug 21, 2023
34a3620
Merge remote-tracking branch 'origin/master' into rbac
Aug 21, 2023
84e0cf8
Merge remote-tracking branch 'origin/master' into rbac
Aug 22, 2023
90f5cdf
fix: 蓝盾v2.0.0问题修复 #9343
vhwweng Aug 22, 2023
3c56169
Merge pull request #9344 from vhwweng/hw_github_rbac_i18n
lockiechen Aug 22, 2023
9953d89
fix: 蓝盾v2.0.0问题修复 #9343
vhwweng Aug 22, 2023
76ef57e
feat:屏蔽公共构建机登录调试入口 issue #9349
terlinhe Aug 18, 2023
effa47e
feat:屏蔽公共构建机登录调试入口 issue #9349
terlinhe Aug 18, 2023
26fd0ed
feat:屏蔽公共构建机登录调试入口 issue #9349
terlinhe Aug 18, 2023
62c3199
Merge remote-tracking branch 'origin/master' into rbac
mingshewhe Aug 23, 2023
3ff10a7
fix: 蓝盾v2.0.0问题修复 #9343
vhwweng Aug 18, 2023
2ea7fa1
fix: 蓝盾v2.0.0问题修复 #9343
vhwweng Aug 18, 2023
a3fe82c
fix: 蓝盾v2.0.0问题修复 #9343
vhwweng Aug 21, 2023
8ff5330
fix: 蓝盾v2.0.0问题修复 #9343
vhwweng Aug 22, 2023
7cd69e6
feat: 修复macos的jdk #9362
stubenhuang Aug 22, 2023
cc7834b
Merge remote-tracking branch 'origin/master' into rbac
Aug 23, 2023
814346d
Merge remote-tracking branch 'origin/master' into rbac
mingshewhe Aug 24, 2023
98338c8
fix: 归档插件页面下载制品获取下载链接错误 #9368
yaoxuwan Aug 23, 2023
8e87ff3
feat:代码库优化一期功能点 #9347
vhwweng Aug 24, 2023
b07d25d
Merge remote-tracking branch 'origin/master' into rbac
Aug 24, 2023
d3fd67a
pref:插件统计数据来源切换至从metrics获取 #9281
stubenhuang Aug 25, 2023
1bc37f2
Merge remote-tracking branch 'origin/master' into rbac
irwinsun Aug 25, 2023
13aeab2
pref:研发商店工作台插件管理优化 #9359
stubenhuang Aug 25, 2023
7b6db06
feat: 在bkrepo模式下默认启动bkrepo入口 #9377
stubenhuang Aug 25, 2023
f391d1d
Merge pull request #9378 from stubenhuang/issue-bkrepo-9377
stubenhuang Aug 25, 2023
a98fa3e
feat: 在bkrepo模式下默认启动bkrepo入口 #9377
stubenhuang Aug 25, 2023
4b12635
feat: 在bkrepo模式下默认启动bkrepo入口 #9377
stubenhuang Aug 25, 2023
430c4c8
feat: 在bkrepo模式下默认启动bkrepo入口 #9377
stubenhuang Aug 25, 2023
0f67f7f
fix: 蓝盾v2.0.0问题修复 #9343
vhwweng Aug 25, 2023
d4e269c
bug:选择插件历史版本修复升级后再取消版本校验优化 #9380
carlyin0801 Aug 25, 2023
d9f494a
Merge pull request #9384 from vhwweng/hw_7.1
stubenhuang Aug 25, 2023
2216648
feat: 在bkrepo模式下默认启动bkrepo入口 #9377
stubenhuang Aug 25, 2023
52906af
feat: 在bkrepo模式下默认启动bkrepo入口 #9377
stubenhuang Aug 25, 2023
9b987ff
Merge pull request #9387 from carlyin0801/issue_9380_atom_hisVersion_…
stubenhuang Aug 25, 2023
1336d7d
Merge pull request #9382 from stubenhuang/issue-bkrepo-9377
stubenhuang Aug 25, 2023
5dc9638
Merge remote-tracking branch 'origin/master' into rbac
irwinsun Aug 28, 2023
c0a9df2
Merge remote-tracking branch 'origin/master' into rbac
Aug 29, 2023
9bcb3e5
Merge remote-tracking branch 'origin/master' into rbac
mingshewhe Aug 29, 2023
02a5b0a
feat:权限入口优化 #9390
vhwweng Aug 30, 2023
8e5c942
feat:权限入口优化 #9390
vhwweng Aug 30, 2023
33e30f0
feat:权限入口优化 #9390
vhwweng Aug 30, 2023
4ee7b0e
feat:权限入口优化 #9390
vhwweng Aug 30, 2023
8fdf452
Merge remote-tracking branch 'origin/master' into rbac
Aug 30, 2023
884c4ff
feat:权限入口优化 #9390
vhwweng Aug 30, 2023
aa37ab9
feat:权限入口优化 #9390
vhwweng Aug 30, 2023
2aa9347
feat:权限入口优化 #9390
vhwweng Aug 31, 2023
8493754
feat:权限入口优化 #9390
vhwweng Aug 31, 2023
f9ef752
Merge branch 'rbac' of https://github.com/Tencent/bk-ci into hw_nav_fix
vhwweng Aug 31, 2023
09fad04
feat:权限入口优化 #9390
vhwweng Aug 31, 2023
a74f0f9
Merge pull request #9395 from vhwweng/hw_nav_fix
bkci-bot Aug 31, 2023
9d961f4
Merge remote-tracking branch 'origin/master' into rbac
Aug 31, 2023
d0c1326
feat:权限入口优化 #9390
vhwweng Aug 31, 2023
f913751
feat:权限入口优化 #9390
vhwweng Sep 4, 2023
def08ce
Merge remote-tracking branch 'origin/master' into rbac
Sep 4, 2023
60d381b
feat:完善权限申请单内容 #9394
vhwweng Sep 4, 2023
2946eb9
feat:完善权限申请单内容 #9394
vhwweng Sep 4, 2023
dca97e3
Merge branch 'rbac' of https://github.com/TencentBlueKing/bk-ci into …
zhanxu33 Sep 4, 2023
35ec0a7
feat:完善权限申请单内容 #9394
zhanxu33 Sep 4, 2023
a1c434c
feat:完善权限申请单内容 #9394
vhwweng Sep 5, 2023
6c4c5ad
feat:完善权限申请单内容 #9394
vhwweng Sep 5, 2023
1409dc1
Merge branch 'rbac' of https://github.com/Tencent/bk-ci into issue_9394
vhwweng Sep 5, 2023
1299d9f
feat:完善权限申请单内容 #9394
vhwweng Sep 5, 2023
60af900
Merge branch 'master' of https://github.com/Tencent/bk-ci into hw_cod…
vhwweng Sep 5, 2023
5e16eb5
feat:代码库优化一期功能点 #9347
vhwweng Sep 7, 2023
11fcee9
Merge remote-tracking branch 'origin/master' into rbac
mingshewhe Sep 7, 2023
5344793
bug: 权限分组和描述都是英文的 #9420
mingshewhe Sep 7, 2023
9c84842
pref:增加国际化初始化配置 #9413
yjieliang Sep 5, 2023
06f0781
pref:增加国际化初始化配置 #9413
yjieliang Sep 5, 2023
7b29e13
pref:增加国际化初始化配置 #9413
yjieliang Sep 5, 2023
4f0deb7
pref:增加国际化初始化配置 #9413
yjieliang Sep 6, 2023
55b7fed
pref:增加国际化初始化配置 #9413
yjieliang Sep 6, 2023
4f69f51
Merge pull request #9429 from mingshewhe/bug_9420
mingshewhe Sep 7, 2023
199b4ad
pref:增加国际化初始化配置 #9413
yjieliang Sep 7, 2023
1eda151
fix: 蓝盾v2.0.0问题修复 #9343
vhwweng Sep 7, 2023
e128c3a
Merge pull request #9430 from vhwweng/hw_7.1
stubenhuang Sep 7, 2023
2ee04ab
Merge pull request #9431 from yjieliang/9413
stubenhuang Sep 7, 2023
dbb835b
pref:增加国际化初始化配置 #9413
yjieliang Sep 7, 2023
49c5667
Merge pull request #9435 from yjieliang/9413
stubenhuang Sep 7, 2023
de4fe3c
feat: Demo项目隐藏 #9438
stubenhuang Sep 7, 2023
efc1849
Merge pull request #9439 from stubenhuang/issue-9438
stubenhuang Sep 7, 2023
449adfc
fix: 蓝盾v2.0.0问题修复 #9343
vhwweng Sep 7, 2023
221df23
pref:增加国际化初始化配置 #9413
yjieliang Sep 7, 2023
d2ce69d
pref:增加国际化初始化配置 #9413
yjieliang Sep 7, 2023
e46dd7f
Merge branch 'blueking-7.1' of https://github.com/Tencent/bk-ci into …
vhwweng Sep 7, 2023
f275fa1
fix: 蓝盾v2.0.0问题修复 #9343
vhwweng Sep 7, 2023
f5e4935
Merge pull request #9440 from vhwweng/hw_7.1
stubenhuang Sep 7, 2023
12ee606
Merge pull request #9441 from yjieliang/9413
stubenhuang Sep 7, 2023
f9fd762
Merge pull request #9411 from vhwweng/hw_nav_fix
mingshewhe Sep 8, 2023
c9b1b02
feat:完善权限申请单内容 #9394
vhwweng Sep 8, 2023
afb3d3e
feat:从流水线下载内部测试版本APP时交互优化 issue #9404
lockiechen Sep 8, 2023
0446f2d
Merge branch 'rbac' into blueking-7.1
lockiechen Sep 11, 2023
42f55a9
feat:从流水线下载内部测试版本APP时交互优化 issue #9404
lockiechen Sep 11, 2023
5938675
conflict resolved
lockiechen Sep 11, 2023
4b392e8
feat:完善权限申请单内容 #9394
zhanxu33 Sep 11, 2023
0c35d4d
feat:完善权限申请单内容 #9394
zhanxu33 Sep 12, 2023
cd0aaec
Merge pull request #9442 from TencentBlueKing/blueking-7.1
bkci-bot Sep 12, 2023
47e1c71
feat: 独立用户管理页面,支持云研发控制台可以嵌入 #9448
zhanxu33 Sep 4, 2023
2fa72bc
feat:从流水线下载内部测试版本APP时交互优化 issue #9404
lockiechen Sep 13, 2023
ab7accf
feat:代码库优化一期功能点 #9347
vhwweng Sep 14, 2023
1e1f024
Merge pull request #9449 from vhwweng/issue_9448
bkci-bot Sep 15, 2023
b0a7936
Merge branch 'rbac' of https://github.com/Tencent/bk-ci into issue_9394
vhwweng Sep 18, 2023
efdbcc6
feat:代码库优化一期功能点 #9347
vhwweng Sep 18, 2023
c8c0e3f
Merge pull request #9417 from vhwweng/issue_9394
bkci-bot Sep 18, 2023
b0c8592
feat:代码库优化一期功能点 #9347
vhwweng Sep 18, 2023
f743869
feat:代码库优化一期功能点 #9347
vhwweng Sep 18, 2023
2a7925a
feat:代码库优化一期功能点 #9347
vhwweng Sep 20, 2023
cfa932b
feat:从流水线下载内部测试版本APP时交互优化 issue #9404
lockiechen Sep 21, 2023
27d8929
feat:代码库优化一期功能点 #9347
vhwweng Sep 21, 2023
3a5fb72
feat:代码库优化一期功能点 #9347
vhwweng Sep 22, 2023
0b8b91c
feat:代码库优化一期功能点 #9347
vhwweng Sep 22, 2023
117c37b
Merge remote-tracking branch 'github/master' into rbac
lockiechen Sep 25, 2023
ac853e2
Merge remote-tracking branch 'origin/master' into rbac
Sep 26, 2023
ef61417
bug:申请加入组bug修复 #9512
zhanxu33 Sep 26, 2023
8c474f1
Merge remote-tracking branch 'origin/master' into rbac
Oct 8, 2023
2c5413d
Merge pull request #9514 from zhanxu33/rbac
bkci-bot Oct 8, 2023
b7e99d3
Merge remote-tracking branch 'origin/master' into rbac
Oct 8, 2023
968f149
Merge remote-tracking branch 'origin/master' into rbac
Oct 8, 2023
06ab8bf
feat:代码库优化一期功能点 #9347
vhwweng Oct 9, 2023
c82553d
Merge remote-tracking branch 'origin/master' into rbac
Oct 9, 2023
4ea7d75
feat:支持开通蓝盾项目权限的同时开通对应的监控空间权限 #8935
vhwweng Oct 10, 2023
a99343a
feat:代码库优化一期功能点 #9347
vhwweng Oct 10, 2023
17e3f67
feat:远程触发的 url http 协议,和当前环境支持的http协议对齐 #9540
vhwweng Oct 10, 2023
e2b0d71
feat:代码库优化一期功能点 #9347
vhwweng Oct 11, 2023
336fa1d
feat:从流水线下载内部测试版本APP时交互优化 issue #9404
lockiechen Oct 11, 2023
9969f80
Merge branch 'rbac' of https://github.com/Tencent/bk-ci into issue_9404
lockiechen Oct 11, 2023
4e05229
feat:从流水线下载内部测试版本APP时交互优化 issue #9404
lockiechen Oct 12, 2023
cbbfaa1
feat:支持开通蓝盾项目权限的同时开通对应的监控空间权限 #8935
vhwweng Oct 12, 2023
5c42849
feat:从流水线下载内部测试版本APP时交互优化 issue #9404
lockiechen Oct 12, 2023
8f445ef
feat:从流水线下载内部测试版本APP时交互优化 issue #9404
lockiechen Oct 12, 2023
1ea33d0
Merge pull request #9462 from lockiechen/issue_9404
bkci-bot Oct 12, 2023
691756e
bugfix: 流水线执行重复调用权限校验接口 #9554
zhanxu33 Oct 12, 2023
dac025c
Merge pull request #9555 from zhanxu33/bugfix_9554_perm
bkci-bot Oct 12, 2023
d60d412
feat:支持开通蓝盾项目权限的同时开通对应的监控空间权限 #8935
vhwweng Oct 16, 2023
abe09a3
bugfix: 流水线镜像构件去制品库按钮链接错误 issue #9561
lockiechen Oct 16, 2023
d387f7b
Merge pull request #9565 from lockiechen/issue_9561
bkci-bot Oct 16, 2023
9df32fd
feat:支持开通蓝盾项目权限的同时开通对应
vhwweng Oct 16, 2023
fd72e0e
feat:流水线名称长度放开到 128 个字符 #9536
vhwweng Oct 16, 2023
7d67198
Merge pull request #9551 from vhwweng/issue_8935
bkci-bot Oct 17, 2023
9714dd9
feat:记忆住用户选择的流水线列表条数 #9535
vhwweng Oct 17, 2023
acd1df7
feat: 流水线组侧边栏支持调整宽度 #9559
vhwweng Oct 17, 2023
9831c13
feat: 流水线组侧边栏支持调整宽度 #9559
vhwweng Oct 17, 2023
6907926
feat:代码库优化一期功能点 #9347
vhwweng Oct 17, 2023
d1b47c6
Merge pull request #9568 from vhwweng/issue_9535
bkci-bot Oct 18, 2023
966d30e
feat: 流水线组侧边栏支持调整宽度 #9559
vhwweng Oct 18, 2023
a6df263
Merge pull request #9577 from vhwweng/issue_9535
bkci-bot Oct 18, 2023
a7e98c2
feat: 流水线组侧边栏支持调整宽度 #9559
vhwweng Oct 18, 2023
afcf5e7
Merge pull request #9578 from vhwweng/issue_9535
bkci-bot Oct 18, 2023
4265941
feat:代码库优化一期功能点 #9347
vhwweng Oct 18, 2023
c10ccf7
feat:代码库优化一期功能点 #9347
vhwweng Oct 19, 2023
bd01729
feat:代码库优化一期功能点 #9347
vhwweng Oct 19, 2023
5298243
feat:代码库优化一期功能点-触发器 #9347
vhwweng Oct 20, 2023
95f953d
feat:代码库优化一期功能点-触发器 #9347
vhwweng Oct 23, 2023
3d6197c
feat:代码库优化一期功能点-触发器 #9347
vhwweng Oct 23, 2023
cd436f8
feat:代码库优化一期功能点 #9347
vhwweng Oct 23, 2023
3f8f32d
feat:代码库优化一期功能点 #9347
vhwweng Oct 23, 2023
a102565
feat:代码库优化一期功能点-触发器 #9347
vhwweng Oct 23, 2023
1f84778
feat:代码库优化一期功能点-触发器 #9347
vhwweng Oct 23, 2023
3a1e705
feat:代码库优化一期功能点-触发器 #9347
vhwweng Oct 23, 2023
1890df5
feat:代码库优化一期功能点-触发器 #9347
vhwweng Oct 23, 2023
221c835
feat:代码库优化一期功能点-触发器 #9347
vhwweng Oct 24, 2023
0865ab1
Merge branch 'hw_codelib' into hw_codelib_trigger
vhwweng Oct 24, 2023
766729d
feat:代码库优化一期功能点 #9347
vhwweng Oct 24, 2023
8763c75
feat:申请权限时搜索项目问题优化 #9556
vhwweng Oct 25, 2023
4726615
Merge remote-tracking branch 'github/master' into rbac
mingshewhe Oct 25, 2023
d6b69e1
feat:代码库优化一期功能点 #9347
vhwweng Oct 26, 2023
ab7ee55
Merge remote-tracking branch 'origin/master' into rbac
Oct 26, 2023
1d93dda
feat: 代码库优化一期功能点 #9347
vhwweng Oct 26, 2023
f8c1bbd
feat:代码库优化一期功能点 #9347
vhwweng Oct 26, 2023
b2c120c
Merge remote-tracking branch 'origin/master' into rbac
mingshewhe Oct 27, 2023
3fec051
feat:代码库优化一期功能点 #9347
vhwweng Oct 27, 2023
c48b0cf
Merge remote-tracking branch 'origin/master' into rbac
Oct 30, 2023
e36edfc
feat:代码库优化一期功能点 #9347
vhwweng Oct 30, 2023
f9b0a3a
feat:代码库优化一期功能点 #9347
vhwweng Oct 30, 2023
0692ad7
feat:代码库优化一期功能点 #9347
vhwweng Oct 30, 2023
a98ecc6
feat:代码库优化一期功能点 #9347
vhwweng Oct 30, 2023
528bdd6
feat:代码库优化一期功能点 #9347
vhwweng Oct 30, 2023
0c6edfe
feat:代码库优化一期功能点 #9347
vhwweng Oct 30, 2023
2b093fc
Merge remote-tracking branch 'origin/master' into rbac
Oct 31, 2023
ddeae61
feat: 构建制品页面查询仓库下的一级目录接口按需进行加载, 只有点击复制至按钮后才进行加载 issue #9629
lockiechen Oct 31, 2023
f17200d
feat: 代码库优化一期功能点 #9347
vhwweng Nov 2, 2023
2e13d7f
feat: 代码库优化一期功能点 #9347
vhwweng Nov 2, 2023
30dfc05
feat: 代码库优化一期功能点 #9347
vhwweng Nov 2, 2023
a5320df
feat: 代码库优化一期功能点 #9347
vhwweng Nov 3, 2023
000b289
feat: 代码库优化一期功能点 #9347
vhwweng Nov 3, 2023
f525639
Merge remote-tracking branch 'origin/master' into rbac
Nov 3, 2023
44177c7
Merge remote-tracking branch 'origin/master' into rbac
mingshewhe Nov 3, 2023
911353b
feat:流水线支持归档目录 #9320
vhwweng Nov 4, 2023
db5eab9
feat:流水线支持归档目录 #9320
vhwweng Nov 4, 2023
acb6bbf
feat:流水线支持归档目录 #9320
vhwweng Nov 4, 2023
10b47b7
feat: 流水线运行完毕通知方式增加语音 #9647
vhwweng Nov 4, 2023
1d81c1e
Merge remote-tracking branch 'origin/master' into rbac
Nov 6, 2023
00e6f3c
Merge remote-tracking branch 'origin/master' into rbac
Nov 6, 2023
80dc9b5
Merge remote-tracking branch 'origin/master' into rbac
Nov 6, 2023
a331a09
feat:代码库优化一期功能点 #9347
vhwweng Nov 6, 2023
54e0a9b
feat:代码库优化一期功能点 #9347
vhwweng Nov 7, 2023
627d019
Merge remote-tracking branch 'origin/master' into rbac
Nov 7, 2023
2a7e127
Merge remote-tracking branch 'origin/master' into rbac
Nov 7, 2023
759d3c7
feat:代码库优化一期功能点 #9347
vhwweng Nov 7, 2023
ba7094b
Merge pull request #9646 from vhwweng/issue_9320_fix
bkci-bot Nov 7, 2023
ea82991
Merge pull request #9598 from vhwweng/issue_9556
bkci-bot Nov 7, 2023
4f386cc
Merge pull request #9542 from vhwweng/issue_9540
bkci-bot Nov 7, 2023
84be7a5
Merge pull request #9630 from lockiechen/issue_9629
bkci-bot Nov 7, 2023
3814673
feat:代码库优化一期功能点 #9347
vhwweng Nov 7, 2023
3523594
feat:代码库优化一期功能点 #9347
vhwweng Nov 7, 2023
1d58fb5
feat:代码库优化一期功能点 #9347
vhwweng Nov 7, 2023
794942f
feat:代码库优化一期功能点 #9347
vhwweng Nov 7, 2023
a24a7ad
Merge remote-tracking branch 'origin/master' into rbac
Nov 9, 2023
cdf7b09
Merge remote-tracking branch 'origin/master' into rbac
Nov 9, 2023
bd75c6b
Merge remote-tracking branch 'origin/master' into rbac
Nov 10, 2023
6cbad28
Merge remote-tracking branch 'origin/master' into rbac
Nov 13, 2023
6689d5e
Merge remote-tracking branch 'origin/master' into rbac
Nov 13, 2023
1f44f47
feat: 代码库优化一期功能点 #9347
vhwweng Nov 13, 2023
d2c5ead
Merge remote-tracking branch 'origin/master' into rbac
Nov 13, 2023
8a4d0fa
Merge remote-tracking branch 'origin/master' into rbac
Nov 13, 2023
922796f
feat: 代码库优化一期功能点 #9347
vhwweng Nov 14, 2023
89c17fb
Merge remote-tracking branch 'origin/master' into rbac
Nov 14, 2023
7726808
Merge remote-tracking branch 'github/master' into rbac
mingshewhe Nov 14, 2023
b4b6b26
Merge remote-tracking branch 'origin/master' into rbac
Nov 16, 2023
142ad61
feat: 代码库优化一期功能点 #9347
vhwweng Nov 16, 2023
01e2163
Merge remote-tracking branch 'origin/master' into rbac
mingshewhe Nov 16, 2023
8be3a9d
Merge remote-tracking branch 'origin/master' into rbac
mingshewhe Nov 20, 2023
050c4bc
Merge pull request #9648 from vhwweng/issue_9647
bkci-bot Nov 20, 2023
6f0339e
fix: 权限升级为rbac issue #9697
lockiechen Nov 21, 2023
061cdbb
Merge remote-tracking branch 'github/master' into rbac
mingshewhe Nov 21, 2023
5017ac9
Merge remote-tracking branch 'origin/master' into rbac
irwinsun Nov 21, 2023
82d730a
Merge remote-tracking branch 'origin/master' into rbac
Nov 23, 2023
fa686a4
Merge remote-tracking branch 'origin/master' into rbac
Nov 24, 2023
7c82fb4
feat: 代码库优化一期功能点 #9347
vhwweng Nov 24, 2023
e3a9559
feat: 代码库优化一期功能点 #9347
vhwweng Nov 25, 2023
75132fc
Merge branch 'rbac' of https://github.com/Tencent/bk-ci into hw_codel…
vhwweng Nov 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/frontend/devops-codelib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"vue-property-decorator": "^6.0.0",
"vue-style-loader": "^3.0.3",
"vue-template-compiler": "2.6.12",
"webpack": "^5.58.1"
"webpack": "^5.58.1",
"lodash": "^4.17.21"
},
"scripts": {
"dev": "cross-env NODE_ENV=dev webpack-dev-server --mode development",
Expand Down
5 changes: 5 additions & 0 deletions src/frontend/devops-codelib/src/assets/scss/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@
cursor: pointer;
color: $primaryColor;
}
}
a {
color: #3c96ff;
cursor: pointer;
text-decoration: none;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<template>
<div class="bk-form bk-form-vertical">
<template v-for="(obj, key) in atomPropsModel">
<form-field v-if="!obj.hidden && rely(obj, element)" :key="key" :desc="obj.desc" :desc-link="obj.descLink" :desc-link-text="obj.descLinkText" :required="obj.required" :label="obj.label" :is-error="errors.has(key)" :error-msg="errors.first(key)">
<component
:is="obj.component"
:name="key"
:value="element[key]"
disabled
v-bind="obj">
</component>
</form-field>
</template>
<form-field v-if="Object.keys(customTriggerControlModel).length">
<accordion show-checkbox :show-content="enableThirdFilter" key="customTriggerControl" :is-version="true">
<header class="var-header" style="height: 16px;" slot="header">
<span>
{{ $t('codelib.自定义触发控制') }}
<i class="bk-icon icon-info-circle ml5" v-bk-tooltips="$t('codelib.满足基础过滤条件后,根据第三方接口返回判断是否能够触发')"></i>
<a class="title-link" target="blink" :href="customTriggerDocsLink">{{ $t('codelib.查看使用指引和示例') }}</a>
</span>
<input class="accordion-checkbox" disabled :checked="enableThirdFilter" type="checkbox" />
</header>
<div slot="content" class="bk-form bk-form-vertical">
<template v-for="(obj, key) in customTriggerControlModel">
<form-field :key="key" :desc="obj.desc" :desc-link="obj.descLink" :desc-link-text="obj.descLinkText" :required="obj.required" :label="obj.label" :is-error="errors.has(key)" :error-msg="errors.first(key)">
<component
:is="obj.component"
:name="key"
:value="element[key]"
v-bind="obj">
</component>
</form-field>
</template>
</div>
</accordion>
</form-field>
</div>
</template>

<script>
import atomMixin from './atomMixin'
export default {
name: 'code-git-web-hook-trigger',
mixins: [atomMixin],
props: {
element: Object,
atomPropsModel: Object
},
data () {
return {
customTriggerControlModel: {},
enableThirdFilter: true,
customTriggerDocsLink: 'https://github.com/Tencent/bk-ci/issues/7743#issue-1391717634'
}
},
watch: {
element: {
handler (val) {
if (this.element.repositoryType === 'NAME') {
this.atomPropsModel.repositoryName.hidden = false
this.atomPropsModel.repositoryHashId.hidden = true
} else {
this.atomPropsModel.repositoryName.hidden = true
this.atomPropsModel.repositoryHashId.hidden = false
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里的逻辑有点复杂了,可以简单一点,这里两个主要的关联就是this.element.repositoryType === 'NAME'
可以简化一下,例如:
const showName = this.element.repositoryType === 'NAME'
this.atomPropsModel.repositoryName.hidden = !showName
this.atomPropsModel.repositoryHashId.hidden = showName

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

已修改

},
deep: true,
immediate: true
}
},
created () {
this.customTriggerControlModel = {}
Copy link
Collaborator

Choose a reason for hiding this comment

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

上面data的默认值就已经是空对象了,没必要再在这里初始化了

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

已修改

const { thirdUrl, thirdSecretToken } = this.atomPropsModel
if (thirdUrl && thirdSecretToken) {
this.customTriggerControlModel.thirdUrl = thirdUrl
this.customTriggerControlModel.thirdSecretToken = thirdSecretToken
this.atomPropsModel.thirdUrl.hidden = true
this.atomPropsModel.thirdSecretToken.hidden = true
}
}
}
</script>

<style lang="scss" scoped>
.title-link {
cursor: pointer;
margin-left: 10px;
color: #3c96ff;
}
::v-deep .bk-label,
::v-deep .bk-form-content,
::v-deep .bk-form-radio {
font-size: 12px !important;
}
</style>
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<template>
<div class="bk-form bk-form-vertical">
<template v-for="(obj, key) in atomPropsModel">
<form-field
v-if="!obj.hidden && rely(obj, element)"
:key="key"
:desc="obj.desc"
:desc-link="obj.descLink"
:desc-link-text="obj.descLinkText"
:required="obj.required"
:label="obj.label">
<component
:disabled="true"
:is="obj.component || obj.type"
:name="key"
:value="element[key]"
v-bind="obj"
></component>
</form-field>
</template>
</div>
</template>

<script>
import atomMixin from './atomMixin'
export default {
name: 'normal-atom',
mixins: [atomMixin],
props: {
element: Object,
atomPropsModel: Object
},
watch: {
element: {
handler () {
if (this.element.repositoryType === 'NAME') {
this.atomPropsModel.repositoryName.hidden = false
this.atomPropsModel.repositoryHashId.hidden = true
} else {
this.atomPropsModel.repositoryName.hidden = true
this.atomPropsModel.repositoryHashId.hidden = false
}
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里跟上面是一样的

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

已修改

deep: true,
immediate: true
}
}
}
</script>

<style lang="scss" scoped>
::v-deep .bk-label,
::v-deep .bk-form-content,
::v-deep .bk-form-radio {
font-size: 12px !important;
}
</style>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import AtomCheckbox from '../AtomFormField/AtomCheckbox'
import EnumInput from '../AtomFormField/EnumInput'
import FormField from '../AtomFormField/FormField'
import Selector from '../AtomFormField/Selector'
import VuexInput from '../AtomFormField/VuexInput'
import RequestSelector from '../AtomFormField/RequestSelector'
import StaffInput from '../AtomFormField/StaffInput'
import Accordion from '../AtomFormField/Accordion'
import Tips from '../AtomFormField/Tips'
import { rely } from './utils.js'

const atomMixin = {
components: {
FormField,
VuexInput,
EnumInput,
Selector,
RequestSelector,
AtomCheckbox,
StaffInput,
Accordion,
Tips
},
methods: {
rely (obj, element) {
return rely(obj, element)
}
}
}

export default atomMixin
49 changes: 49 additions & 0 deletions src/frontend/devops-codelib/src/components/AtomContent/utils.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/**
* 判断两个数组是否有交集
* @param {Array} arr1
* @param {Array} arr2
*/
export function hasIntersection (arr1, arr2) {
try {
return arr2.some(item => arr1.includes(item))
} catch (e) {
return false
}
}

/**
* 根据插件字段rely配置决定是否显示
* @param {Object} fieldProps 插件字段配置
* @param {Object} values 插件表单值
*/
export function rely (fieldProps, values) {
try {
const { rely: { expression = [], operation = 'AND' } } = fieldProps
const cb = item => {
const { key, value, regex } = item
if (Array.isArray(value)) {
if (Array.isArray(values[key])) {
return hasIntersection(value, values[key])
}
return typeof values[key] !== 'undefined' && value.includes(values[key])
} else if (regex) {
const reg = new RegExp(regex, 'i')
return Array.isArray(values[key]) ? values[key].some(item => reg.test(item)) : reg.test(values[key])
} else {
return Array.isArray(values[key]) ? values[key].some(item => item === value) : values[key] === value
}
}
switch (operation) {
case 'AND':
return expression.every(cb)
case 'OR':
return expression.length > 0 ? expression.some(cb) : true
case 'NOT':
return expression.length > 0 ? !expression.some(cb) : true
default:
return true
}
} catch (e) {
return true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
<template>
<div :class="{ 'devops-accordion': true, 'is-danger': isError, 'showCheckbox': showCheckbox }">
<header :active="isShow" @click="toggleContent" class="header">
<i class="devops-icon icon-angle-right" />
<slot name="header"></slot>
</header>
<transition name="slideLeft">
<section v-if="condition">
<section v-if="isShow" class="content">
<slot name="content"></slot>
</section>
</section>
<section v-else>
<section v-show="isShow" class="content">
<slot name="content"></slot>
</section>
</section>
</transition>
</div>
</template>

<script>
export default {
name: 'accordion',
props: {
afterToggle: Function,
showContent: {
type: Boolean,
default: false
},
showCheckbox: {
type: Boolean,
default: false
},
isError: {
type: Boolean,
default: false
},
isVersion: {
type: Boolean,
default: false
},
condition: {
type: Boolean,
default: false
}
},
data () {
return {
isShow: this.showContent
}
},
watch: {
showContent (val) {
this.isShow = val
}
},
methods: {
toggleContent: function () {
if (this.isVersion) {
this.isShow = this.showContent ? !this.isShow : this.isShow
} else {
this.isShow = !this.isShow
}
if (typeof this.afterToggle === 'function') {
this.afterToggle(this.$el, this.isShow)
}
}
}
}
</script>

<style lang="scss">
@import '../../scss/conf.scss';
.devops-accordion {
border: 1px solid $borderColor;
border-radius: 3px;
margin: 12px 0;
font-size: 12px;

&.is-danger {
color: $dangerColor;
border-color: $dangerColor;

.header {
color: $dangerColor;
}
}
.header {
display: flex;
color: $fontColor;
background-color: white;
padding: 10px 15px;
align-items: center;
cursor: pointer;

.icon-angle-right {
display: block;
margin: 2px 12px 0 0;
transition: all 0.3s ease;
}
&[active] {
.icon-angle-right {
transform: rotate(90deg)
}
}
}
.content {
padding: 10px 15px;
}

&.showCheckbox {
> .header {
background-color: $fontWeightColor;
color: white;
.devops-icon {
display: none;
}
.var-header {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}

}
}
}

</style>
Loading