Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
925964ac
Commit
925964ac
authored
Feb 27, 2024
by
Joel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add default and utils
parent
4d4d3bb9
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
210 additions
and
1 deletion
+210
-1
default.ts
web/app/components/workflow/nodes/code/default.ts
+14
-0
utils.ts
web/app/components/workflow/nodes/code/utils.ts
+5
-0
default.ts
web/app/components/workflow/nodes/direct-answer/default.ts
+14
-0
utils.ts
web/app/components/workflow/nodes/direct-answer/utils.ts
+5
-0
default.ts
web/app/components/workflow/nodes/end/default.ts
+14
-0
utils.ts
web/app/components/workflow/nodes/end/utils.ts
+5
-0
default.ts
web/app/components/workflow/nodes/http/default.ts
+14
-0
utils.ts
web/app/components/workflow/nodes/http/utils.ts
+5
-0
default.ts
web/app/components/workflow/nodes/if-else/default.ts
+14
-0
utils.ts
web/app/components/workflow/nodes/if-else/utils.ts
+5
-0
default.ts
.../components/workflow/nodes/knowledge-retrieval/default.ts
+14
-0
utils.ts
...pp/components/workflow/nodes/knowledge-retrieval/utils.ts
+5
-0
default.ts
web/app/components/workflow/nodes/llm/default.ts
+14
-0
utils.ts
web/app/components/workflow/nodes/llm/utils.ts
+5
-0
default.ts
.../components/workflow/nodes/question-classifier/default.ts
+14
-0
utils.ts
...pp/components/workflow/nodes/question-classifier/utils.ts
+5
-0
default.ts
web/app/components/workflow/nodes/start/default.ts
+14
-0
utils.ts
web/app/components/workflow/nodes/start/utils.ts
+5
-0
default.ts
...p/components/workflow/nodes/template-transform/default.ts
+14
-0
utils.ts
...app/components/workflow/nodes/template-transform/utils.ts
+5
-0
default.ts
web/app/components/workflow/nodes/tool/default.ts
+14
-0
utils.ts
web/app/components/workflow/nodes/tool/utils.ts
+5
-0
utils.ts
web/app/components/workflow/nodes/variable-assigner/utils.ts
+1
-1
No files found.
web/app/components/workflow/nodes/code/default.ts
0 → 100644
View file @
925964ac
import
type
{
NodeDefault
}
from
'../../types'
import
type
{
CodeNodeType
}
from
'./types'
const
nodeDefault
:
NodeDefault
<
CodeNodeType
>
=
{
defaultValue
:
{},
getAvailablePrevNodes
()
{
return
[]
},
getAvailableNextNodes
()
{
return
[]
},
}
export
default
nodeDefault
web/app/components/workflow/nodes/code/utils.ts
0 → 100644
View file @
925964ac
import
type
{
CodeNodeType
}
from
'./types'
export
const
checkNodeValid
=
(
payload
:
CodeNodeType
)
=>
{
return
true
}
web/app/components/workflow/nodes/direct-answer/default.ts
0 → 100644
View file @
925964ac
import
type
{
NodeDefault
}
from
'../../types'
import
type
{
DirectAnswerNodeType
}
from
'./types'
const
nodeDefault
:
NodeDefault
<
DirectAnswerNodeType
>
=
{
defaultValue
:
{},
getAvailablePrevNodes
()
{
return
[]
},
getAvailableNextNodes
()
{
return
[]
},
}
export
default
nodeDefault
web/app/components/workflow/nodes/direct-answer/utils.ts
0 → 100644
View file @
925964ac
import
type
{
DirectAnswerNodeType
}
from
'./types'
export
const
checkNodeValid
=
(
payload
:
DirectAnswerNodeType
)
=>
{
return
true
}
web/app/components/workflow/nodes/end/default.ts
0 → 100644
View file @
925964ac
import
type
{
NodeDefault
}
from
'../../types'
import
type
{
EndNodeType
}
from
'./types'
const
nodeDefault
:
NodeDefault
<
EndNodeType
>
=
{
defaultValue
:
{},
getAvailablePrevNodes
()
{
return
[]
},
getAvailableNextNodes
()
{
return
[]
},
}
export
default
nodeDefault
web/app/components/workflow/nodes/end/utils.ts
0 → 100644
View file @
925964ac
import
type
{
EndNodeType
}
from
'./types'
export
const
checkNodeValid
=
(
payload
:
EndNodeType
)
=>
{
return
true
}
web/app/components/workflow/nodes/http/default.ts
0 → 100644
View file @
925964ac
import
type
{
NodeDefault
}
from
'../../types'
import
type
{
HttpNodeType
}
from
'./types'
const
nodeDefault
:
NodeDefault
<
HttpNodeType
>
=
{
defaultValue
:
{},
getAvailablePrevNodes
()
{
return
[]
},
getAvailableNextNodes
()
{
return
[]
},
}
export
default
nodeDefault
web/app/components/workflow/nodes/http/utils.ts
0 → 100644
View file @
925964ac
import
type
{
HttpNodeType
}
from
'./types'
export
const
checkNodeValid
=
(
payload
:
HttpNodeType
)
=>
{
return
true
}
web/app/components/workflow/nodes/if-else/default.ts
0 → 100644
View file @
925964ac
import
type
{
NodeDefault
}
from
'../../types'
import
type
{
IfElseNodeType
}
from
'./types'
const
nodeDefault
:
NodeDefault
<
IfElseNodeType
>
=
{
defaultValue
:
{},
getAvailablePrevNodes
()
{
return
[]
},
getAvailableNextNodes
()
{
return
[]
},
}
export
default
nodeDefault
web/app/components/workflow/nodes/if-else/utils.ts
View file @
925964ac
import
type
{
IfElseNodeType
}
from
'./types'
import
{
ComparisonOperator
}
from
'./types'
export
const
isEmptyRelatedOperator
=
(
operator
:
ComparisonOperator
)
=>
{
return
[
ComparisonOperator
.
empty
,
ComparisonOperator
.
notEmpty
,
ComparisonOperator
.
isNull
,
ComparisonOperator
.
isNotNull
].
includes
(
operator
)
}
export
const
checkNodeValid
=
(
payload
:
IfElseNodeType
)
=>
{
return
true
}
web/app/components/workflow/nodes/knowledge-retrieval/default.ts
0 → 100644
View file @
925964ac
import
type
{
NodeDefault
}
from
'../../types'
import
type
{
KnowledgeRetrievalNodeType
}
from
'./types'
const
nodeDefault
:
NodeDefault
<
KnowledgeRetrievalNodeType
>
=
{
defaultValue
:
{},
getAvailablePrevNodes
()
{
return
[]
},
getAvailableNextNodes
()
{
return
[]
},
}
export
default
nodeDefault
web/app/components/workflow/nodes/knowledge-retrieval/utils.ts
0 → 100644
View file @
925964ac
import
type
{
KnowledgeRetrievalNodeType
}
from
'./types'
export
const
checkNodeValid
=
(
payload
:
KnowledgeRetrievalNodeType
)
=>
{
return
true
}
web/app/components/workflow/nodes/llm/default.ts
0 → 100644
View file @
925964ac
import
type
{
NodeDefault
}
from
'../../types'
import
type
{
LLMNodeType
}
from
'./types'
const
nodeDefault
:
NodeDefault
<
LLMNodeType
>
=
{
defaultValue
:
{},
getAvailablePrevNodes
()
{
return
[]
},
getAvailableNextNodes
()
{
return
[]
},
}
export
default
nodeDefault
web/app/components/workflow/nodes/llm/utils.ts
0 → 100644
View file @
925964ac
import
type
{
LLMNodeType
}
from
'./types'
export
const
checkNodeValid
=
(
payload
:
LLMNodeType
)
=>
{
return
true
}
web/app/components/workflow/nodes/question-classifier/default.ts
0 → 100644
View file @
925964ac
import
type
{
NodeDefault
}
from
'../../types'
import
type
{
QuestionClassifierNodeType
}
from
'./types'
const
nodeDefault
:
NodeDefault
<
QuestionClassifierNodeType
>
=
{
defaultValue
:
{},
getAvailablePrevNodes
()
{
return
[]
},
getAvailableNextNodes
()
{
return
[]
},
}
export
default
nodeDefault
web/app/components/workflow/nodes/question-classifier/utils.ts
0 → 100644
View file @
925964ac
import
type
{
QuestionClassifierNodeType
}
from
'./types'
export
const
checkNodeValid
=
(
payload
:
QuestionClassifierNodeType
)
=>
{
return
true
}
web/app/components/workflow/nodes/start/default.ts
0 → 100644
View file @
925964ac
import
type
{
NodeDefault
}
from
'../../types'
import
type
{
StartNodeType
}
from
'./types'
const
nodeDefault
:
NodeDefault
<
StartNodeType
>
=
{
defaultValue
:
{},
getAvailablePrevNodes
()
{
return
[]
},
getAvailableNextNodes
()
{
return
[]
},
}
export
default
nodeDefault
web/app/components/workflow/nodes/start/utils.ts
0 → 100644
View file @
925964ac
import
type
{
StartNodeType
}
from
'./types'
export
const
checkNodeValid
=
(
payload
:
StartNodeType
)
=>
{
return
true
}
web/app/components/workflow/nodes/template-transform/default.ts
0 → 100644
View file @
925964ac
import
type
{
NodeDefault
}
from
'../../types'
import
type
{
TemplateTransformNodeType
}
from
'./types'
const
nodeDefault
:
NodeDefault
<
TemplateTransformNodeType
>
=
{
defaultValue
:
{},
getAvailablePrevNodes
()
{
return
[]
},
getAvailableNextNodes
()
{
return
[]
},
}
export
default
nodeDefault
web/app/components/workflow/nodes/template-transform/utils.ts
0 → 100644
View file @
925964ac
import
type
{
TemplateTransformNodeType
}
from
'./types'
export
const
checkNodeValid
=
(
payload
:
TemplateTransformNodeType
)
=>
{
return
true
}
web/app/components/workflow/nodes/tool/default.ts
0 → 100644
View file @
925964ac
import
type
{
NodeDefault
}
from
'../../types'
import
type
{
ToolNodeType
}
from
'./types'
const
nodeDefault
:
NodeDefault
<
ToolNodeType
>
=
{
defaultValue
:
{},
getAvailablePrevNodes
()
{
return
[]
},
getAvailableNextNodes
()
{
return
[]
},
}
export
default
nodeDefault
web/app/components/workflow/nodes/tool/utils.ts
0 → 100644
View file @
925964ac
import
type
{
ToolNodeType
}
from
'./types'
export
const
checkNodeValid
=
(
payload
:
ToolNodeType
)
=>
{
return
true
}
web/app/components/workflow/nodes/variable-assigner/utils.ts
View file @
925964ac
import
type
{
VariableAssignerNodeType
}
from
'./types'
export
const
checkNodeValid
=
(
node
:
VariableAssignerNodeType
)
=>
{
export
const
checkNodeValid
=
(
payload
:
VariableAssignerNodeType
)
=>
{
return
true
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment