perf: 新增七牛云插件分组

pull/265/head
xiaojunnuo 2024-12-02 16:35:31 +08:00
parent 72cc586f88
commit 49e7dc56e1
5 changed files with 12 additions and 13 deletions

View File

@ -20,8 +20,9 @@ export const pluginGroups = {
aliyun: new PluginGroup("aliyun", "阿里云", 2), aliyun: new PluginGroup("aliyun", "阿里云", 2),
huawei: new PluginGroup("huawei", "华为云", 3), huawei: new PluginGroup("huawei", "华为云", 3),
tencent: new PluginGroup("tencent", "腾讯云", 4), tencent: new PluginGroup("tencent", "腾讯云", 4),
host: new PluginGroup("host", "主机", 5), qiniu: new PluginGroup("qiniu", "七牛云", 5),
cdn: new PluginGroup("cdn", "CDN", 6), host: new PluginGroup("host", "主机", 6),
panel: new PluginGroup("panel", "面板", 7), cdn: new PluginGroup("cdn", "CDN", 7),
other: new PluginGroup("other", "其他", 8), panel: new PluginGroup("panel", "面板", 8),
other: new PluginGroup("other", "其他", 9),
}; };

View File

@ -107,11 +107,10 @@ export default function (certPluginGroup: PluginGroup, formWrapperRef: any): Cre
title: "失败通知", title: "失败通知",
type: "text", type: "text",
form: { form: {
value: 0, value: true,
component: { component: {
name: NotificationSelector, name: "a-switch",
vModel: "modelValue", vModel: "checked"
useDefault: true
}, },
order: 101, order: 101,
helper: "建议设置,任务执行失败实时提醒" helper: "建议设置,任务执行失败实时提醒"

View File

@ -103,12 +103,11 @@ export default function ({ crudExpose, context: { certdFormRef, groupDictRef, se
} }
const notifications = []; const notifications = [];
if (form.notification) { if (form.notification) {
const notify = await createNotificationApi().GetSimpleInfo(form.notification);
notifications.push({ notifications.push({
type: "custom", type: "custom",
when: ["error", "turnToSuccess"], when: ["error", "turnToSuccess"],
notificationId: form.notification, notificationId: 0,
title: notify.name title: "使用默认通知"
}); });
} }
let pipeline = { let pipeline = {

View File

@ -8,7 +8,7 @@ import { QiniuAccess, QiniuClient } from '@certd/plugin-plus';
name: 'QiniuDeployCertToCDN', name: 'QiniuDeployCertToCDN',
title: '部署证书至七牛CDN', title: '部署证书至七牛CDN',
icon: 'svg:icon-qiniuyun', icon: 'svg:icon-qiniuyun',
group: pluginGroups.cdn.key, group: pluginGroups.qiniu.key,
desc: '自动部署域名证书至七牛云CDN', desc: '自动部署域名证书至七牛云CDN',
default: { default: {
strategy: { strategy: {

View File

@ -6,7 +6,7 @@ import { CertInfo } from '@certd/plugin-cert';
name: 'QiniuCertUpload', name: 'QiniuCertUpload',
title: '上传到七牛云', title: '上传到七牛云',
icon: 'svg:icon-qiniuyun', icon: 'svg:icon-qiniuyun',
group: pluginGroups.cdn.key, group: pluginGroups.qiniu.key,
desc: '上传到七牛云', desc: '上传到七牛云',
default: { default: {
strategy: { strategy: {