From 51f29d609347e987a960f06d7822d7325efdd929 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Sun, 29 Sep 2024 14:57:20 +0800 Subject: [PATCH] chore: --- .../core/pipeline/src/registry/registry.ts | 4 +++ .../src/plugin/cert-plugin/index.ts | 3 ++ .../src/components/tutorial/index.vue | 3 +- .../components/tutorial/tutorial-steps.vue | 31 ++++++++++++++----- .../pipeline/controller/access-controller.ts | 5 ++- .../controller/dns-provider-controller.ts | 2 +- .../pipeline/service/plugin-service.ts | 3 ++ .../plugin-tencent/access/dnspod-access.ts | 3 +- .../dns-provider/dnspod-dns-provider.ts | 3 +- 9 files changed, 45 insertions(+), 12 deletions(-) diff --git a/packages/core/pipeline/src/registry/registry.ts b/packages/core/pipeline/src/registry/registry.ts index c4d4271c3..91a74ef33 100644 --- a/packages/core/pipeline/src/registry/registry.ts +++ b/packages/core/pipeline/src/registry/registry.ts @@ -5,6 +5,7 @@ export type Registrable = { title: string; desc?: string; group?: string; + deprecated?: string; }; export type RegistryItem = { @@ -67,6 +68,9 @@ export class Registry { for (const key in this.storage) { const define = this.getDefine(key); if (define) { + if (define?.deprecated) { + continue; + } list.push({ ...define, key }); } } diff --git a/packages/plugins/plugin-cert/src/plugin/cert-plugin/index.ts b/packages/plugins/plugin-cert/src/plugin/cert-plugin/index.ts index 162ce9576..630da3c2b 100644 --- a/packages/plugins/plugin-cert/src/plugin/cert-plugin/index.ts +++ b/packages/plugins/plugin-cert/src/plugin/cert-plugin/index.ts @@ -174,6 +174,9 @@ export class CertApplyPlugin extends CertApplyBasePlugin { const dnsProviderPlugin = dnsProviderRegistry.get(dnsProviderType); const DnsProviderClass = dnsProviderPlugin.target; const dnsProviderDefine = dnsProviderPlugin.define as DnsProviderDefine; + if (dnsProviderDefine.deprecated) { + throw new Error(dnsProviderDefine.deprecated); + } const access = await this.accessService.getById(dnsProviderAccessId); // @ts-ignore diff --git a/packages/ui/certd-client/src/components/tutorial/index.vue b/packages/ui/certd-client/src/components/tutorial/index.vue index f91cc9993..017bce213 100644 --- a/packages/ui/certd-client/src/components/tutorial/index.vue +++ b/packages/ui/certd-client/src/components/tutorial/index.vue @@ -30,8 +30,9 @@ function next() { diff --git a/packages/ui/certd-client/src/components/tutorial/tutorial-steps.vue b/packages/ui/certd-client/src/components/tutorial/tutorial-steps.vue index b9adcfa56..548b01106 100644 --- a/packages/ui/certd-client/src/components/tutorial/tutorial-steps.vue +++ b/packages/ui/certd-client/src/components/tutorial/tutorial-steps.vue @@ -11,7 +11,7 @@
- +
@@ -22,7 +22,7 @@ -