mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:28:10 +08:00
refactor(trigger): refactor app mode type to enum
This commit is contained in:
@ -6,6 +6,7 @@ import { RiArrowRightUpLine } from '@remixicon/react'
|
||||
import cn from '@/utils/classnames'
|
||||
import AppIcon from '@/app/components/base/app-icon'
|
||||
import type { RelatedApp } from '@/models/datasets'
|
||||
import { AppModeEnum } from '@/types/app'
|
||||
|
||||
type ILikedItemProps = {
|
||||
appStatus?: boolean
|
||||
@ -14,11 +15,11 @@ type ILikedItemProps = {
|
||||
}
|
||||
|
||||
const appTypeMap = {
|
||||
'chat': 'Chatbot',
|
||||
'completion': 'Completion',
|
||||
'agent-chat': 'Agent',
|
||||
'advanced-chat': 'Chatflow',
|
||||
'workflow': 'Workflow',
|
||||
[AppModeEnum.CHAT]: 'Chatbot',
|
||||
[AppModeEnum.COMPLETION]: 'Completion',
|
||||
[AppModeEnum.AGENT_CHAT]: 'Agent',
|
||||
[AppModeEnum.ADVANCED_CHAT]: 'Chatflow',
|
||||
[AppModeEnum.WORKFLOW]: 'Workflow',
|
||||
}
|
||||
|
||||
const LikedItem = ({
|
||||
|
||||
Reference in New Issue
Block a user