| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- /*
- * @Author: liuJie
- * @Date: 2026-01-24 19:23:49
- * @LastEditors: liuJie
- * @LastEditTime: 2026-01-25 21:53:48
- * @Describe: 节点物料管理
- */
- import { startNode } from './start'
- import { endNode } from './end'
- import { httpNode } from './http'
- import { conditionNode } from './condition'
- import { databaseNode } from './database'
- import { codeNode } from './code'
- import { materialTools, type SourceType } from './toolbar'
- import type { INodeType } from '../Interface'
- const nodes = [startNode, endNode, httpNode, conditionNode, databaseNode, codeNode]
- const nodeMap = nodes.reduce(
- (acc, cur) => {
- acc[cur.name] = cur
- return acc
- },
- {} as Record<string, INodeType>
- )
- export {
- startNode,
- endNode,
- httpNode,
- conditionNode,
- databaseNode,
- codeNode,
- materialTools,
- nodes,
- nodeMap,
- type SourceType
- }
|