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
dbf3b7ad
Commit
dbf3b7ad
authored
Feb 21, 2024
by
Joel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: end node typs and mock
parent
33410775
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
mock.ts
web/app/components/workflow/nodes/end/mock.ts
+18
-0
types.ts
web/app/components/workflow/nodes/end/types.ts
+15
-0
No files found.
web/app/components/workflow/nodes/end/mock.ts
0 → 100644
View file @
dbf3b7ad
import
{
EndVarType
}
from
'./types'
import
type
{
EndNodeType
}
from
'./types'
export
const
mockData
:
EndNodeType
=
{
title
:
'Test'
,
desc
:
'Test'
,
type
:
'Test'
,
outputs
:
{
type
:
EndVarType
.
none
,
plain_text_selector
:
[
'test'
],
structured_variables
:
[
{
variable
:
'test'
,
value_selector
:
[
'aaa'
,
'name'
],
},
],
},
}
web/app/components/workflow/nodes/end/types.ts
0 → 100644
View file @
dbf3b7ad
import
type
{
CommonNodeType
,
Variable
}
from
'@/app/components/workflow/types'
export
enum
EndVarType
{
none
=
'none'
,
plainText
=
'plain-text'
,
structured
=
'structured'
,
}
export
type
EndNodeType
=
CommonNodeType
&
{
outputs
:
{
type
:
EndVarType
plain_text_selector
?:
string
[]
structured_variables
?:
Variable
[]
}
}
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