refactor: fix bugs

This commit is contained in:
xiaojunnuo
2022-10-31 15:01:50 +08:00
parent 146ac49703
commit 6094a4af79
7 changed files with 41 additions and 16 deletions
@@ -23,6 +23,7 @@ export type CertInfo = {
vModel: "value",
mode: "tags",
},
required: true,
col: {
span: 24,
},
@@ -34,6 +35,7 @@ export type CertInfo = {
name: "a-input",
vModel: "value",
},
required: true,
helper: "请输入邮箱",
},
dnsProviderType: {
@@ -41,6 +43,7 @@ export type CertInfo = {
component: {
name: "pi-dns-provider-selector",
},
required: true,
helper: "请选择dns解析提供商",
},
dnsProviderAccess: {
@@ -48,20 +51,20 @@ export type CertInfo = {
component: {
name: "pi-access-selector",
},
required: true,
helper: "请选择dns解析提供商授权",
},
renewDays: {
title: "更新天数",
value: 20,
component: {
name: "a-input-number",
vModel: "value",
},
required: true,
helper: "到期前多少天后更新证书",
},
forceUpdate: {
title: "强制更新",
value: false,
component: {
name: "a-switch",
vModel: "checked",
@@ -69,6 +72,12 @@ export type CertInfo = {
helper: "是否强制重新申请证书",
},
},
default: {
input: {
renewDays: 20,
forceUpdate: false,
},
},
output: {
cert: {
key: "cert",
@@ -5,6 +5,7 @@ import Core from "@alicloud/pop-core";
import RPCClient from "@alicloud/pop-core";
import { AliyunAccess } from "../../../access";
import { CertInfo } from "../cert-plugin";
import { RunStrategy } from "../../../d.ts";
@IsTask(() => {
return {
@@ -14,16 +15,12 @@ import { CertInfo } from "../cert-plugin";
input: {
domainName: {
title: "CDN加速域名",
component: {
placeholder: "你在阿里云上配置的CDN加速域名,比如certd.docmirror.cn",
},
helper: "你在阿里云上配置的CDN加速域名,比如certd.docmirror.cn",
required: true,
},
certName: {
title: "证书名称",
component: {
placeholder: "上传后将以此名称作为前缀备注",
},
helper: "上传后将以此名称作为前缀备注",
},
cert: {
title: "域名证书",
@@ -44,6 +41,11 @@ import { CertInfo } from "../cert-plugin";
},
},
output: {},
default: {
strategy: {
runStrategy: RunStrategy.SkipWhenSucceed,
},
},
};
})
export class DeployCertToAliyunCDN extends AbstractPlugin implements TaskPlugin {