index.ts
1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import type { CategoryConfigType, NodeItemConfigType } from '../../types/node';
import { RuleNodeTypeEnum } from '../index.type';
import { AlarmNoticeConfig } from './AlarmNotice';
import { MqttConfig } from './Mqtt';
import { GcpPubsubConfig } from './GcpPubsub';
import { SendSmsConfig } from './SendSms';
import { AzureIotHubConfig } from './AzureIotHub';
import { RestApiCallConfig } from './RestApiCall';
import { KafkaConfig } from './Kafka';
import { AwsSnsConfig } from './AwsSns';
import { SendEmailConfig } from './SendEmail';
import { RabbitmqConfig } from './Rabbitmq';
import { AwsSqsConfig } from './AwsSqs';
import { useI18n } from '/@/hooks/web/useI18n';
const { t } = useI18n(); //加载国际化
export const ExternalCategoryConfig: CategoryConfigType = {
category: RuleNodeTypeEnum.EXTERNAL,
title: t('designer_config.externals.index.title'),
backgroundColor: '#fbc766',
icon: 'material-symbols:cloud-upload',
description: t('designer_config.externals.index.description'),
};
export const ExternalComponents: NodeItemConfigType[] = [
AlarmNoticeConfig,
AwsSnsConfig,
AwsSqsConfig,
AzureIotHubConfig,
GcpPubsubConfig,
KafkaConfig,
MqttConfig,
RabbitmqConfig,
RestApiCallConfig,
SendEmailConfig,
SendSmsConfig,
];