perf: 腾讯云插件支持国际版

v2-dev-plugin-config
xiaojunnuo 2025-08-25 16:19:37 +08:00
parent 06d15be43a
commit 58e82d5dbd
21 changed files with 28 additions and 13 deletions

View File

@ -5,6 +5,7 @@ import { IsAccess, AccessInput, BaseAccess } from "@certd/pipeline";
title: "天翼云授权",
desc: "",
icon: "ant-design:aliyun-outlined",
order: 2,
})
export class CtyunAccess extends BaseAccess {
@AccessInput({

View File

@ -6,6 +6,7 @@ import { AccessInput, BaseAccess, IsAccess } from "@certd/pipeline";
desc: "",
icon: "svg:icon-qiniuyun",
input: {},
order: 2,
})
export class QiniuAccess extends BaseAccess {
@AccessInput({

View File

@ -5,6 +5,7 @@ import { AccessInput, BaseAccess, IsAccess } from "@certd/pipeline";
desc: "",
icon: "clarity:host-line",
input: {},
order: 0,
})
export class SshAccess extends BaseAccess {
@AccessInput({

View File

@ -4,6 +4,7 @@ import { IsAccess, AccessInput, BaseAccess } from "@certd/pipeline";
name: "tencent",
title: "腾讯云",
icon: "svg:icon-tencentcloud",
order: 0,
})
export class TencentAccess extends BaseAccess {
@AccessInput({
@ -59,4 +60,8 @@ export class TencentAccess extends BaseAccess {
isIntl() {
return this.accountType === "intl";
}
intlDomain() {
return this.isIntl() ? "intl." : "";
}
}

View File

@ -26,7 +26,7 @@ export class TencentSslClient {
region: this.region,
profile: {
httpProfile: {
endpoint: "ssl.tencentcloudapi.com",
endpoint: this.access.isIntl() ? "ssl.intl.tencentcloudapi.com" : "ssl.tencentcloudapi.com",
},
},
};

View File

@ -16,6 +16,7 @@ type DemoRecord = {
icon: 'clarity:plugin-line',
// 这里是对应的云平台的access类型名称
accessType: 'demo',
order:99,
})
export class DemoDnsProvider extends AbstractDnsProvider<DemoRecord> {
access!: DemoAccess;

View File

@ -5,6 +5,7 @@ import { IsAccess, AccessInput, BaseAccess } from '@certd/pipeline';
title: '华为云授权',
desc: '',
icon: 'svg:icon-huawei',
order: 0,
})
export class HuaweiAccess extends BaseAccess {
@AccessInput({

View File

@ -9,6 +9,7 @@ import {AccessInput, BaseAccess, IsAccess} from '@certd/pipeline';
title: '京东云',
desc: '',
icon: 'svg:icon-jdcloud',
order: 1,
})
export class JDCloudAccess extends BaseAccess {

View File

@ -6,7 +6,8 @@ import { JDCloudAccess } from "./access.js";
title: "京东云",
desc: "京东云DNS解析提供商",
accessType: "jdcloud",
icon: "svg:icon-jdcloud"
icon: "svg:icon-jdcloud",
order:3,
})
export class JDCloudDnsProvider extends AbstractDnsProvider {
access!: JDCloudAccess;

View File

@ -9,7 +9,8 @@ import { CertInfo } from "@certd/plugin-cert";
name: "rainyun",
title: "雨云授权",
desc: "https://app.rainyun.com/",
icon: "svg:icon-lucky"
icon: "svg:icon-lucky",
order: 100
})
export class RainyunAccess extends BaseAccess {

View File

@ -7,7 +7,6 @@ import { RainyunAccess } from "./access.js";
desc: "雨云DNS解析提供商",
accessType: "rainyun",
icon: "svg:icon-lucky",
order: 0
})
export class RainyunDnsProvider extends AbstractDnsProvider {

View File

@ -122,7 +122,7 @@ export class DeployCertToTencentAll extends AbstractTaskPlugin {
region: this.region,
profile: {
httpProfile: {
endpoint: 'ssl.tencentcloudapi.com',
endpoint: `ssl.${access.intlDomain()}tencentcloudapi.com`,
},
},
});

View File

@ -104,7 +104,7 @@ export class TencentDeployCertToCDNv2 extends AbstractTaskPlugin {
region: '',
profile: {
httpProfile: {
endpoint: 'cdn.tencentcloudapi.com',
endpoint: `cdn.${accessProvider.intlDomain()}tencentcloudapi.com`,
},
},
};

View File

@ -80,7 +80,7 @@ export class DeployToCdnPlugin extends AbstractTaskPlugin {
region: '',
profile: {
httpProfile: {
endpoint: 'cdn.tencentcloudapi.com',
endpoint: `cdn.${accessProvider.intlDomain()}tencentcloudapi.com`,
},
},
};

View File

@ -119,7 +119,7 @@ export class DeployCertToTencentCLB extends AbstractTaskPlugin {
region: region,
profile: {
httpProfile: {
endpoint: 'clb.tencentcloudapi.com',
endpoint: `clb.${accessProvider.intlDomain()}tencentcloudapi.com`,
},
},
};

View File

@ -89,7 +89,8 @@ export class DeployCertToTencentEO extends AbstractTaskPlugin {
getClient(accessProvider: TencentAccess) {
const TeoClient = this.Client;
const endpoint = accessProvider.isIntl()?"teo.intl.tencentcloudapi.com": "teo.tencentcloudapi.com";
//teo.intl.tencentcloudapi.com
const endpoint = `teo.${accessProvider.intlDomain()}tencentcloudapi.com`;
const clientConfig = {
credential: {
secretId: accessProvider.secretId,

View File

@ -101,7 +101,7 @@ export class TencentDeployCertToLive extends AbstractTaskPlugin {
region: '',
profile: {
httpProfile: {
endpoint: 'live.tencentcloudapi.com',
endpoint: `live.${accessProvider.intlDomain()}tencentcloudapi.com`,
},
},
};

View File

@ -210,7 +210,7 @@ export class DeployCertToTencentTKEIngressPlugin extends AbstractTaskPlugin {
region,
profile: {
httpProfile: {
endpoint: "tke.tencentcloudapi.com"
endpoint: `tke.${accessProvider.intlDomain()}tencentcloudapi.com`
}
}
};

View File

@ -151,7 +151,7 @@ export class TencentActionInstancesPlugin extends AbstractTaskPlugin {
region: this.region,
profile: {
httpProfile: {
endpoint: 'cvm.tencentcloudapi.com',
endpoint: `cvm.${accessProvider.intlDomain()}tencentcloudapi.com`,
},
},
};

View File

@ -9,6 +9,7 @@ import {AccessInput, BaseAccess, IsAccess} from '@certd/pipeline';
title: '火山引擎',
desc: '',
icon: 'svg:icon-volcengine',
order: 1,
})
export class VolcengineAccess extends BaseAccess {

View File

@ -8,7 +8,8 @@ import { VolcengineAccess } from "./access.js";
title: "火山引擎",
desc: "火山引擎DNS解析提供商",
accessType: "volcengine",
icon: "svg:icon-volcengine"
icon: "svg:icon-volcengine",
order:2,
})
export class VolcengineDnsProvider extends AbstractDnsProvider {
client: VolcengineDnsClient;