index.ts
801 Bytes
import type { CategoryConfigType, NodeItemConfigType } from '../../types/node';
import { RuleNodeTypeEnum } from '../index.type';
import { AcknowledgeConfig } from './Acknowledge';
import { CheckpointConfig } from './Checkpoint';
import { RuleChainConfig } from './RuleChain';
import { OutputConfig } from './Output';
import { useI18n } from '/@/hooks/web/useI18n';
const { t } = useI18n(); // 加载国际化
export const FlowCategoryConfig: CategoryConfigType = {
category: RuleNodeTypeEnum.FLOW,
title: t('rule.chain.flow.title'),
backgroundColor: '#d6c4f1',
icon: 'material-symbols:settings-ethernet',
description: t('rule.chain.flow.description'),
};
export const FlowComponents: NodeItemConfigType[] = [
AcknowledgeConfig,
CheckpointConfig,
OutputConfig,
RuleChainConfig,
];