mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
feat: add default and utils
This commit is contained in:
14
web/app/components/workflow/nodes/code/default.ts
Normal file
14
web/app/components/workflow/nodes/code/default.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import type { NodeDefault } from '../../types'
|
||||
import type { CodeNodeType } from './types'
|
||||
|
||||
const nodeDefault: NodeDefault<CodeNodeType> = {
|
||||
defaultValue: {},
|
||||
getAvailablePrevNodes() {
|
||||
return []
|
||||
},
|
||||
getAvailableNextNodes() {
|
||||
return []
|
||||
},
|
||||
}
|
||||
|
||||
export default nodeDefault
|
||||
5
web/app/components/workflow/nodes/code/utils.ts
Normal file
5
web/app/components/workflow/nodes/code/utils.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import type { CodeNodeType } from './types'
|
||||
|
||||
export const checkNodeValid = (payload: CodeNodeType) => {
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user