perf: 选项显示图标

This commit is contained in:
xiaojunnuo
2024-11-30 01:57:09 +08:00
parent 7b55337c5e
commit aedc462135
54 changed files with 298 additions and 52 deletions
@@ -8,6 +8,7 @@ import { AliyunAccess, AliyunClient } from '@certd/plugin-lib';
title: '阿里云',
desc: '阿里云DNS解析提供商',
accessType: 'aliyun',
icon: 'ant-design:aliyun-outlined',
})
export class AliyunDnsProvider extends AbstractDnsProvider {
client: any;
@@ -4,6 +4,7 @@ import { AccessInput, BaseAccess, IsAccess } from '@certd/pipeline';
name: 'CacheFly',
title: 'CacheFly',
desc: 'CacheFly',
icon: 'clarity:plugin-line',
})
export class CacheflyAccess extends BaseAccess {
@AccessInput({
@@ -7,6 +7,7 @@ import { IsAccess, AccessInput, BaseAccess } from '@certd/pipeline';
@IsAccess({
name: 'cloudflare',
title: 'cloudflare授权',
icon: 'simple-icons:cloudflare',
desc: '',
})
export class CloudflareAccess extends BaseAccess {
@@ -20,6 +20,7 @@ export type CloudflareRecord = {
name: 'cloudflare',
title: 'cloudflare',
desc: 'cloudflare dns provider',
icon: 'simple-icons:cloudflare',
// 这里是对应的 cloudflare的access类型名称
accessType: 'cloudflare',
})
@@ -8,6 +8,7 @@ import { isDev } from '../../utils/env.js';
@IsAccess({
name: 'demo',
title: '授权插件示例',
icon: 'clarity:plugin-line',
desc: '',
})
export class DemoAccess extends BaseAccess {
@@ -14,6 +14,7 @@ type DemoRecord = {
name: 'demo',
title: 'Dns提供商Demo',
desc: 'dns provider示例',
icon: 'clarity:plugin-line',
// 这里是对应的云平台的access类型名称
accessType: 'demo',
})
@@ -8,6 +8,7 @@ import { IsAccess, AccessInput, BaseAccess } from '@certd/pipeline';
name: 'dogecloud',
title: '多吉云',
desc: '',
icon: 'svg:icon-dogecloud',
})
export class DogeCloudAccess extends BaseAccess {
/**
@@ -4,6 +4,7 @@ import { AccessInput, BaseAccess, IsAccess } from '@certd/pipeline';
name: 'Gcore',
title: 'Gcore',
desc: 'Gcore',
icon: 'clarity:plugin-line',
})
export class GcoreAccess extends BaseAccess {
@AccessInput({
@@ -4,6 +4,7 @@ import { IsAccess, AccessInput, BaseAccess } from '@certd/pipeline';
name: 'huawei',
title: '华为云授权',
desc: '',
icon: 'svg:icon-huawei',
})
export class HuaweiAccess extends BaseAccess {
@AccessInput({
@@ -14,6 +14,7 @@ export type SearchRecordOptions = {
title: '华为云',
desc: '华为云DNS解析提供商',
accessType: 'huawei',
icon: 'svg:icon-huawei',
})
export class HuaweiDnsProvider extends AbstractDnsProvider {
client!: HuaweiYunClient;
@@ -8,6 +8,7 @@ import { IsAccess, AccessInput, BaseAccess } from '@certd/pipeline';
name: 'namesilo',
title: 'namesilo授权',
desc: '',
icon: 'simple-icons:namesilo',
})
export class NamesiloAccess extends BaseAccess {
/**
@@ -12,6 +12,7 @@ export type NamesiloRecord = {
name: 'namesilo',
title: 'namesilo',
desc: 'namesilo dns provider',
icon: 'simple-icons:namesilo',
// 这里是对应的 cloudflare的access类型名称
accessType: 'namesilo',
})
@@ -4,6 +4,7 @@ import { BaseNotification, IsNotification, NotificationBody, NotificationInput }
name: 'anpush',
title: 'AnPush',
desc: 'https://anpush.com',
needPlus: true,
})
export class AnPushNotification extends BaseNotification {
@NotificationInput({
@@ -19,6 +19,7 @@ import { BaseNotification, IsNotification, NotificationBody, NotificationInput }
name: 'bark',
title: 'Bark 通知',
desc: 'Bark 推送通知插件',
needPlus: true,
})
export class BarkNotification extends BaseNotification {
@NotificationInput({
@@ -4,6 +4,7 @@ import { BaseNotification, IsNotification, NotificationBody, NotificationInput }
name: 'discord',
title: 'Discord 通知',
desc: 'Discord 机器人通知',
needPlus: true,
})
export class DiscordNotification extends BaseNotification {
@NotificationInput({
@@ -4,6 +4,7 @@ import { BaseNotification, IsNotification, NotificationBody, NotificationInput }
name: 'iyuu',
title: '爱语飞飞微信通知(iyuu)',
desc: 'https://iyuu.cn/',
needPlus: true,
})
export class IyuuNotification extends BaseNotification {
@NotificationInput({
@@ -4,6 +4,7 @@ import { BaseNotification, IsNotification, NotificationBody, NotificationInput }
name: 'qywx',
title: '企业微信通知',
desc: '企业微信群聊机器人通知',
needPlus: true,
})
export class QywxNotification extends BaseNotification {
@NotificationInput({
@@ -4,6 +4,7 @@ import { BaseNotification, IsNotification, NotificationBody, NotificationInput }
name: 'serverchan',
title: 'Server酱',
desc: 'https://sct.ftqq.com/',
needPlus: true,
})
export class ServerChanNotification extends BaseNotification {
@NotificationInput({
@@ -4,6 +4,7 @@ import { BaseNotification, IsNotification, NotificationBody, NotificationInput }
name: 'slack',
title: 'Slack通知',
desc: 'Slack消息推送通知',
needPlus: true,
})
export class SlackNotification extends BaseNotification {
@NotificationInput({
@@ -4,6 +4,7 @@ import { BaseNotification, IsNotification, NotificationBody, NotificationInput }
name: 'telegram',
title: 'Telegram通知',
desc: 'Telegram Bot推送通知',
needPlus: true,
})
export class TelegramNotification extends BaseNotification {
@NotificationInput({
@@ -4,6 +4,7 @@ import { BaseNotification, IsNotification, NotificationBody, NotificationInput }
name: 'vocechat',
title: 'VoceChat通知',
desc: 'https://voce.chat',
needPlus: true,
})
export class VoceChatNotification extends BaseNotification {
@NotificationInput({
@@ -5,6 +5,7 @@ import { IsAccess, AccessInput, BaseAccess } from '@certd/pipeline';
title: 'dnspod(已废弃)',
desc: '腾讯云的域名解析接口已迁移到dnspod',
deprecated: 'dnspod已废弃,请换成腾讯云',
icon: 'svg:icon-tencentcloud',
})
export class DnspodAccess extends BaseAccess {
@AccessInput({
@@ -10,6 +10,7 @@ import { DnspodAccess } from '../access/index.js';
desc: '已废弃,请尽快换成腾讯云类型',
accessType: 'dnspod',
deprecated: 'dnspod已废弃,请换成腾讯云',
icon: 'svg:icon-tencentcloud',
})
export class DnspodDnsProvider extends AbstractDnsProvider {
@Autowire()
@@ -8,6 +8,7 @@ import { TencentAccess } from '@certd/plugin-plus';
title: '腾讯云',
desc: '腾讯云域名DNS解析提供者',
accessType: 'tencent',
icon: 'svg:icon-tencentcloud',
})
export class TencentDnsProvider extends AbstractDnsProvider {
@Autowire()
@@ -8,6 +8,7 @@ import { IsAccess, AccessInput, BaseAccess } from '@certd/pipeline';
name: 'west',
title: '西部数码授权',
desc: '',
icon: 'tabler:map-west',
})
export class WestAccess extends BaseAccess {
/**
@@ -17,6 +17,7 @@ type westRecord = {
name: 'west',
title: '西部数码',
desc: 'west dns provider',
icon: 'tabler:map-west',
// 这里是对应的云平台的access类型名称
accessType: 'west',
})
@@ -4,6 +4,7 @@ import { AccessInput, BaseAccess, IsAccess } from '@certd/pipeline';
name: 'woai',
title: '我爱云授权',
desc: '我爱云CDN',
icon: 'clarity:plugin-line',
})
export class WoaiAccess extends BaseAccess {
@AccessInput({