index.ts
824 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('designer_config.flows.index.title'),
backgroundColor: '#d6c4f1',
icon: 'material-symbols:settings-ethernet',
description: t('designer_config.flows.index.description'),
};
export const FlowComponents: NodeItemConfigType[] = [
AcknowledgeConfig,
CheckpointConfig,
OutputConfig,
RuleChainConfig,
];