From ab7accff42f3647aa50296f33b195b8b5f9c36d4 Mon Sep 17 00:00:00 2001 From: vhwweng <1010382269@qq.com> Date: Thu, 14 Sep 2023 14:52:36 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E4=BB=A3=E7=A0=81=E5=BA=93?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=80=E6=9C=9F=E5=8A=9F=E8=83=BD=E7=82=B9?= =?UTF-8?q?=20#9347?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CodeLibDetail/ResetAuthDialog.vue | 328 ++++++++++++++---- .../CodeLibDetail/basic-setting.vue | 3 + .../src/components/CodeLibDetail/index.vue | 7 + .../CodeLibDetail/trigger-event.vue | 87 ++--- .../src/components/CodeLibDialog/Gitlab.vue | 2 +- .../src/components/CodeLibDialog/SVN.vue | 2 +- .../src/components/empty-table-status.vue | 5 +- .../devops-codelib/src/store/actions.js | 10 +- src/frontend/locale/codelib/en-US.json | 32 +- src/frontend/locale/codelib/zh-CN.json | 31 +- 10 files changed, 302 insertions(+), 205 deletions(-) diff --git a/src/frontend/devops-codelib/src/components/CodeLibDetail/ResetAuthDialog.vue b/src/frontend/devops-codelib/src/components/CodeLibDetail/ResetAuthDialog.vue index c5fa9199a96..3704ea687da 100644 --- a/src/frontend/devops-codelib/src/components/CodeLibDetail/ResetAuthDialog.vue +++ b/src/frontend/devops-codelib/src/components/CodeLibDetail/ResetAuthDialog.vue @@ -7,6 +7,7 @@ :quick-close="false" render-directive="if" :show-footer="!isOAUTH" + @value-change="handleClose" >

+ OAUTH + + +
+ + {{ $t('codelib.oauthCert') }} + + +
+

{{ $t('codelib.如需重置,请先点击按钮授权。') }}

+

{{ $t('codelib.此授权用于平台和 Github 进行交互,用于如下场景:') }}

+

1.{{ $t('codelib.回写 Commit statuses 到 Github') }}

+

2.{{ $t('codelib.流水线中 Checkout 代码') }}

+

{{ $t('codelib.需拥有代码库 Push 权限') }}

+
+
+
+ + + + + OAUTH + + SSH {{ $t('codelib.用户名密码+个人token') }} @@ -47,12 +89,12 @@
{{ $t('codelib.oauthCert') }}

{{ $t('codelib.如需重置,请先点击按钮授权。') }}

@@ -62,56 +104,108 @@

3.{{ $t('codelib.流水线中 Checkout 代码') }}

{{ $t('codelib.需拥有代码库 Devloper 及以上权限,建议使用公共账号授权') }}

-
-

{{ $t('codelib.如需重置,请先点击按钮授权。') }}

-

{{ $t('codelib.此授权用于平台和 Github 进行交互,用于如下场景:') }}

-

1.{{ $t('codelib.回写 Commit statuses 到 Github') }}

-

2.{{ $t('codelib.流水线中 Checkout 代码') }}

-

{{ $t('codelib.需拥有代码库 Push 权限') }}

-
+ + - - - - {{option.credentialId}} - - - - - - + SSH + + + {{ $t('codelib.访问令牌') }} + + + + + + - {{ $t('codelib.new') }} - + + SSH + + + {{ $t('codelib.用户名密码') }} + + +