mirror of https://github.com/certd/certd
perf: 新增七牛云插件分组
parent
72cc586f88
commit
49e7dc56e1
|
@ -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),
|
||||
};
|
||||
|
|
|
@ -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: "建议设置,任务执行失败实时提醒"
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue