mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: add icon to graph nodes #918 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -2,6 +2,7 @@ import {
|
||||
MergeCellsOutlined,
|
||||
RocketOutlined,
|
||||
SendOutlined,
|
||||
SlidersOutlined,
|
||||
} from '@ant-design/icons';
|
||||
|
||||
export enum Operator {
|
||||
@ -11,10 +12,26 @@ export enum Operator {
|
||||
Answer = 'Answer',
|
||||
}
|
||||
|
||||
export const operatorIconMap = {
|
||||
[Operator.Retrieval]: RocketOutlined,
|
||||
[Operator.Generate]: MergeCellsOutlined,
|
||||
[Operator.Answer]: SendOutlined,
|
||||
[Operator.Begin]: SlidersOutlined,
|
||||
};
|
||||
|
||||
export const componentList = [
|
||||
{ name: Operator.Retrieval, icon: <RocketOutlined />, description: '' },
|
||||
{ name: Operator.Generate, icon: <MergeCellsOutlined />, description: '' },
|
||||
{ name: Operator.Answer, icon: <SendOutlined />, description: '' },
|
||||
{
|
||||
name: Operator.Retrieval,
|
||||
description: '',
|
||||
},
|
||||
{
|
||||
name: Operator.Generate,
|
||||
description: '',
|
||||
},
|
||||
{
|
||||
name: Operator.Answer,
|
||||
description: '',
|
||||
},
|
||||
];
|
||||
|
||||
export const initialRetrievalValues = {
|
||||
|
||||
Reference in New Issue
Block a user