mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-23 15:06:50 +08:00
### What problem does this PR solve? Feat: Translate the splitter operator field #9869 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
import { IconFont } from '@/components/icon-font';
|
||||
import { cn } from '@/lib/utils';
|
||||
import {
|
||||
Blocks,
|
||||
FileChartColumnIncreasing,
|
||||
Grid3x3,
|
||||
Heading,
|
||||
HousePlus,
|
||||
ListMinus,
|
||||
} from 'lucide-react';
|
||||
@ -14,26 +15,15 @@ interface IProps {
|
||||
}
|
||||
|
||||
export const OperatorIconMap = {
|
||||
[Operator.Retrieval]: 'KR',
|
||||
[Operator.Begin]: 'house-plus',
|
||||
[Operator.Categorize]: 'a-QuestionClassification',
|
||||
[Operator.Message]: 'reply',
|
||||
[Operator.Iteration]: 'loop',
|
||||
[Operator.Switch]: 'condition',
|
||||
[Operator.Code]: 'code-set',
|
||||
[Operator.Agent]: 'agent-ai',
|
||||
[Operator.UserFillUp]: 'await',
|
||||
[Operator.StringTransform]: 'a-textprocessing',
|
||||
[Operator.Note]: 'notebook-pen',
|
||||
[Operator.ExeSQL]: 'executesql-0',
|
||||
[Operator.Invoke]: 'httprequest-0',
|
||||
[Operator.Email]: 'sendemail-0',
|
||||
};
|
||||
|
||||
export const SVGIconMap = {
|
||||
[Operator.Parser]: FileChartColumnIncreasing,
|
||||
[Operator.Chunker]: Grid3x3,
|
||||
[Operator.Tokenizer]: ListMinus,
|
||||
[Operator.Splitter]: Blocks,
|
||||
[Operator.HierarchicalMerger]: Heading,
|
||||
};
|
||||
|
||||
const Empty = () => {
|
||||
|
||||
Reference in New Issue
Block a user