mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
feat: Add Command and FileUpload workflow icons, fix SSH provider icon
This commit is contained in:
@ -14,9 +14,11 @@ import {
|
||||
Answer,
|
||||
Assigner,
|
||||
Code,
|
||||
Command,
|
||||
Datasource,
|
||||
DocsExtractor,
|
||||
End,
|
||||
FileUpload,
|
||||
Home,
|
||||
Http,
|
||||
HumanInLoop,
|
||||
@ -34,7 +36,6 @@ import {
|
||||
TemplatingTransform,
|
||||
VariableX,
|
||||
WebhookLine,
|
||||
WindowCursor,
|
||||
} from '@/app/components/base/icons/src/vender/workflow'
|
||||
import { STORAGE_KEYS } from '@/config/storage-keys'
|
||||
import { cn } from '@/utils/classnames'
|
||||
@ -57,8 +58,8 @@ const DEFAULT_ICON_MAP: Record<BlockEnum, React.ComponentType<{ className: strin
|
||||
[BlockEnum.Start]: Home,
|
||||
[BlockEnum.LLM]: Llm,
|
||||
[BlockEnum.Code]: Code,
|
||||
[BlockEnum.Command]: WindowCursor,
|
||||
[BlockEnum.FileUpload]: DocsExtractor,
|
||||
[BlockEnum.Command]: Command,
|
||||
[BlockEnum.FileUpload]: FileUpload,
|
||||
[BlockEnum.End]: End,
|
||||
[BlockEnum.IfElse]: IfElse,
|
||||
[BlockEnum.HttpRequest]: Http,
|
||||
@ -101,7 +102,7 @@ const ICON_CONTAINER_BG_COLOR_MAP: Record<string, string> = {
|
||||
[BlockEnum.LLM]: 'bg-util-colors-indigo-indigo-500',
|
||||
[BlockEnum.Code]: 'bg-util-colors-blue-blue-500',
|
||||
[BlockEnum.Command]: 'bg-util-colors-blue-blue-500',
|
||||
[BlockEnum.FileUpload]: 'bg-util-colors-green-green-500',
|
||||
[BlockEnum.FileUpload]: 'bg-util-colors-blue-blue-500',
|
||||
[BlockEnum.End]: 'bg-util-colors-warning-warning-500',
|
||||
[BlockEnum.IfElse]: 'bg-util-colors-cyan-cyan-500',
|
||||
[BlockEnum.Iteration]: 'bg-util-colors-cyan-cyan-500',
|
||||
|
||||
Reference in New Issue
Block a user