mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:58:04 +08:00
test(web): add and enhance frontend automated tests across multiple modules (#32268)
Co-authored-by: CodingOnStar <hanxujiang@dify.com>
This commit is contained in:
@ -1,6 +1,22 @@
|
||||
import type { ThoughtItem } from '@/app/components/base/chat/chat/type'
|
||||
import type { FileEntity } from '@/app/components/base/file-uploader/types'
|
||||
import type { VisionFile } from '@/types/app'
|
||||
import { ToolTypeEnum } from '../../workflow/block-selector/types'
|
||||
|
||||
export const getToolType = (type: string) => {
|
||||
switch (type) {
|
||||
case 'builtin':
|
||||
return ToolTypeEnum.BuiltIn
|
||||
case 'api':
|
||||
return ToolTypeEnum.Custom
|
||||
case 'workflow':
|
||||
return ToolTypeEnum.Workflow
|
||||
case 'mcp':
|
||||
return ToolTypeEnum.MCP
|
||||
default:
|
||||
return ToolTypeEnum.BuiltIn
|
||||
}
|
||||
}
|
||||
|
||||
export const sortAgentSorts = (list: ThoughtItem[]) => {
|
||||
if (!list)
|
||||
|
||||
Reference in New Issue
Block a user