From 49e7dc56e1a95fbdea3e30cdeb945b48415b69e3 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Mon, 2 Dec 2024 16:35:31 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=96=B0=E5=A2=9E=E4=B8=83=E7=89=9B?= =?UTF-8?q?=E4=BA=91=E6=8F=92=E4=BB=B6=E5=88=86=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/pipeline/src/plugin/group.ts | 9 +++++---- .../src/views/certd/pipeline/certd-form/crud.tsx | 7 +++---- .../ui/certd-client/src/views/certd/pipeline/crud.tsx | 5 ++--- .../plugins/plugin-qiniu/plugin/deploy-to-cdn/index.ts | 2 +- .../src/plugins/plugin-qiniu/plugin/upload-cert/index.ts | 2 +- 5 files changed, 12 insertions(+), 13 deletions(-) diff --git a/packages/core/pipeline/src/plugin/group.ts b/packages/core/pipeline/src/plugin/group.ts index 78c56bb5..949f47ec 100644 --- a/packages/core/pipeline/src/plugin/group.ts +++ b/packages/core/pipeline/src/plugin/group.ts @@ -20,8 +20,9 @@ export const pluginGroups = { aliyun: new PluginGroup("aliyun", "阿里云", 2), huawei: new PluginGroup("huawei", "华为云", 3), tencent: new PluginGroup("tencent", "腾讯云", 4), - host: new PluginGroup("host", "主机", 5), - cdn: new PluginGroup("cdn", "CDN", 6), - panel: new PluginGroup("panel", "面板", 7), - other: new PluginGroup("other", "其他", 8), + qiniu: new PluginGroup("qiniu", "七牛云", 5), + host: new PluginGroup("host", "主机", 6), + cdn: new PluginGroup("cdn", "CDN", 7), + panel: new PluginGroup("panel", "面板", 8), + other: new PluginGroup("other", "其他", 9), }; diff --git a/packages/ui/certd-client/src/views/certd/pipeline/certd-form/crud.tsx b/packages/ui/certd-client/src/views/certd/pipeline/certd-form/crud.tsx index eef7c4f0..af92f0ae 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/certd-form/crud.tsx +++ b/packages/ui/certd-client/src/views/certd/pipeline/certd-form/crud.tsx @@ -107,11 +107,10 @@ export default function (certPluginGroup: PluginGroup, formWrapperRef: any): Cre title: "失败通知", type: "text", form: { - value: 0, + value: true, component: { - name: NotificationSelector, - vModel: "modelValue", - useDefault: true + name: "a-switch", + vModel: "checked" }, order: 101, helper: "建议设置,任务执行失败实时提醒" diff --git a/packages/ui/certd-client/src/views/certd/pipeline/crud.tsx b/packages/ui/certd-client/src/views/certd/pipeline/crud.tsx index f0bd5e3f..25a2ba67 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/crud.tsx +++ b/packages/ui/certd-client/src/views/certd/pipeline/crud.tsx @@ -103,12 +103,11 @@ export default function ({ crudExpose, context: { certdFormRef, groupDictRef, se } const notifications = []; if (form.notification) { - const notify = await createNotificationApi().GetSimpleInfo(form.notification); notifications.push({ type: "custom", when: ["error", "turnToSuccess"], - notificationId: form.notification, - title: notify.name + notificationId: 0, + title: "使用默认通知" }); } let pipeline = { diff --git a/packages/ui/certd-server/src/plugins/plugin-qiniu/plugin/deploy-to-cdn/index.ts b/packages/ui/certd-server/src/plugins/plugin-qiniu/plugin/deploy-to-cdn/index.ts index de62a8cf..aa64cf2b 100644 --- a/packages/ui/certd-server/src/plugins/plugin-qiniu/plugin/deploy-to-cdn/index.ts +++ b/packages/ui/certd-server/src/plugins/plugin-qiniu/plugin/deploy-to-cdn/index.ts @@ -8,7 +8,7 @@ import { QiniuAccess, QiniuClient } from '@certd/plugin-plus'; name: 'QiniuDeployCertToCDN', title: '部署证书至七牛CDN', icon: 'svg:icon-qiniuyun', - group: pluginGroups.cdn.key, + group: pluginGroups.qiniu.key, desc: '自动部署域名证书至七牛云CDN', default: { strategy: { diff --git a/packages/ui/certd-server/src/plugins/plugin-qiniu/plugin/upload-cert/index.ts b/packages/ui/certd-server/src/plugins/plugin-qiniu/plugin/upload-cert/index.ts index aed1a1d6..aecacbfb 100644 --- a/packages/ui/certd-server/src/plugins/plugin-qiniu/plugin/upload-cert/index.ts +++ b/packages/ui/certd-server/src/plugins/plugin-qiniu/plugin/upload-cert/index.ts @@ -6,7 +6,7 @@ import { CertInfo } from '@certd/plugin-cert'; name: 'QiniuCertUpload', title: '上传到七牛云', icon: 'svg:icon-qiniuyun', - group: pluginGroups.cdn.key, + group: pluginGroups.qiniu.key, desc: '上传到七牛云', default: { strategy: {