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
0b05d293
Commit
0b05d293
authored
Mar 13, 2024
by
JzoNg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add doc for workflow
parent
6f33163f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
867 additions
and
7 deletions
+867
-7
doc.tsx
web/app/components/develop/doc.tsx
+11
-7
template_workflow.en.mdx
web/app/components/develop/template/template_workflow.en.mdx
+428
-0
template_workflow.zh.mdx
web/app/components/develop/template/template_workflow.zh.mdx
+428
-0
No files found.
web/app/components/develop/doc.tsx
View file @
0b05d293
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
import
{
useContext
}
from
'use-context-selector'
import
{
useContext
}
from
'use-context-selector'
import
TemplateEn
from
'./template/template.en.mdx'
import
TemplateEn
from
'./template/template.en.mdx'
import
TemplateZh
from
'./template/template.zh.mdx'
import
TemplateZh
from
'./template/template.zh.mdx'
import
TemplateWorkflowEn
from
'./template/template_workflow.en.mdx'
import
TemplateWorkflowZh
from
'./template/template_workflow.zh.mdx'
import
TemplateChatEn
from
'./template/template_chat.en.mdx'
import
TemplateChatEn
from
'./template/template_chat.en.mdx'
import
TemplateChatZh
from
'./template/template_chat.zh.mdx'
import
TemplateChatZh
from
'./template/template_chat.zh.mdx'
import
I18n
from
'@/context/i18n'
import
I18n
from
'@/context/i18n'
...
@@ -22,13 +24,15 @@ const Doc = ({ appDetail }: IDocProps) => {
...
@@ -22,13 +24,15 @@ const Doc = ({ appDetail }: IDocProps) => {
return
(
return
(
<
article
className=
"prose prose-xl"
>
<
article
className=
"prose prose-xl"
>
{
appDetail
?.
mode
===
'completion'
{
appDetail
?.
mode
===
'workflow'
&&
(
?
(
locale
!==
LanguagesSupported
[
1
]
?
<
TemplateWorkflowEn
appDetail=
{
appDetail
}
variables=
{
variables
}
inputs=
{
inputs
}
/>
:
<
TemplateWorkflowZh
appDetail=
{
appDetail
}
variables=
{
variables
}
inputs=
{
inputs
}
/>
locale
!==
LanguagesSupported
[
1
]
?
<
TemplateEn
appDetail=
{
appDetail
}
variables=
{
variables
}
inputs=
{
inputs
}
/>
:
<
TemplateZh
appDetail=
{
appDetail
}
variables=
{
variables
}
inputs=
{
inputs
}
/>
)
}
)
{
appDetail
?.
mode
===
'completion'
&&
(
:
(
locale
!==
LanguagesSupported
[
1
]
?
<
TemplateEn
appDetail=
{
appDetail
}
variables=
{
variables
}
inputs=
{
inputs
}
/>
:
<
TemplateZh
appDetail=
{
appDetail
}
variables=
{
variables
}
inputs=
{
inputs
}
/>
locale
!==
LanguagesSupported
[
1
]
?
<
TemplateChatEn
appDetail=
{
appDetail
}
variables=
{
variables
}
inputs=
{
inputs
}
/>
:
<
TemplateChatZh
appDetail=
{
appDetail
}
variables=
{
variables
}
inputs=
{
inputs
}
/>
)
}
)
}
{
(
appDetail
?.
mode
!==
'completion'
&&
appDetail
?.
mode
!==
'workflow'
)
&&
(
locale
!==
LanguagesSupported
[
1
]
?
<
TemplateChatEn
appDetail=
{
appDetail
}
variables=
{
variables
}
inputs=
{
inputs
}
/>
:
<
TemplateChatZh
appDetail=
{
appDetail
}
variables=
{
variables
}
inputs=
{
inputs
}
/>
)
}
</
article
>
</
article
>
)
)
}
}
...
...
web/app/components/develop/template/template_workflow.en.mdx
0 → 100644
View file @
0b05d293
This diff is collapsed.
Click to expand it.
web/app/components/develop/template/template_workflow.zh.mdx
0 → 100644
View file @
0b05d293
This diff is collapsed.
Click to expand it.
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