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
d8222a15
Commit
d8222a15
authored
Mar 13, 2024
by
JzoNg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove useless comments
parent
17285136
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
20 deletions
+1
-20
index.tsx
web/app/components/app/workflow-log/index.tsx
+1
-18
node.tsx
web/app/components/workflow/run/node.tsx
+0
-1
result-panel.tsx
web/app/components/workflow/run/result-panel.tsx
+0
-1
No files found.
web/app/components/app/workflow-log/index.tsx
View file @
d8222a15
...
...
@@ -9,13 +9,11 @@ import { Trans, useTranslation } from 'react-i18next'
import
Link
from
'next/link'
import
List
from
'./list'
import
Filter
from
'./filter'
import
DetailPanel
from
'./detail'
import
s
from
'./style.module.css'
import
Loading
from
'@/app/components/base/loading'
import
{
fetchWorkflowLogs
}
from
'@/service/log'
import
{
APP_PAGE_LIMIT
}
from
'@/config'
import
type
{
App
,
AppMode
}
from
'@/types/app'
import
Drawer
from
'@/app/components/base/drawer'
export
type
ILogsProps
=
{
appDetail
:
App
...
...
@@ -50,12 +48,6 @@ const EmptyElement: FC<{ appUrl: string }> = ({ appUrl }) => {
}
const
Logs
:
FC
<
ILogsProps
>
=
({
appDetail
})
=>
{
// ###TODO###
const
[
showDrawer
,
setShowDrawer
]
=
useState
<
boolean
>
(
true
)
const
onCloseDrawer
=
()
=>
{
setShowDrawer
(
false
)
}
const
{
t
}
=
useTranslation
()
const
[
queryParams
,
setQueryParams
]
=
useState
<
QueryParam
>
({
status
:
'all'
})
const
[
currPage
,
setCurrPage
]
=
React
.
useState
<
number
>
(
0
)
...
...
@@ -81,7 +73,7 @@ const Logs: FC<ILogsProps> = ({ appDetail }) => {
return
(
<
div
className=
'flex flex-col h-full'
>
<
h1
className=
'text-md font-semibold text-gray-900'
onClick=
{
()
=>
setShowDrawer
(
true
)
}
>
{
t
(
'appLog.workflowTitle'
)
}
</
h1
>
<
h1
className=
'text-md font-semibold text-gray-900'
>
{
t
(
'appLog.workflowTitle'
)
}
</
h1
>
<
p
className=
'flex text-sm font-normal text-gray-500'
>
{
t
(
'appLog.workflowSubtitle'
)
}
</
p
>
<
div
className=
'flex flex-col py-4 flex-1'
>
<
Filter
queryParams=
{
queryParams
}
setQueryParams=
{
setQueryParams
}
/>
...
...
@@ -126,15 +118,6 @@ const Logs: FC<ILogsProps> = ({ appDetail }) => {
</
Pagination
>
:
null
}
</
div
>
<
Drawer
isOpen=
{
showDrawer
}
onClose=
{
onCloseDrawer
}
mask=
{
false
}
footer=
{
null
}
panelClassname=
'mt-16 mx-2 sm:mr-2 mb-3 !p-0 !max-w-[600px] rounded-xl border border-gray-200'
>
<
DetailPanel
onClose=
{
onCloseDrawer
}
runID=
{
'fakerRunID'
}
/>
</
Drawer
>
</
div
>
)
}
...
...
web/app/components/workflow/run/node.tsx
View file @
d8222a15
...
...
@@ -89,7 +89,6 @@ const NodePanel: FC<Props> = ({ nodeInfo, collapsed, collapseHandle }) => {
onChange=
{
()
=>
{}
}
/>
</
div
>
{
/* ###TODO### conditions by type */
}
{
nodeInfo
.
process_data
&&
(
<
div
className=
'px-[10px] py-1'
>
<
CodeEditor
...
...
web/app/components/workflow/run/result-panel.tsx
View file @
d8222a15
...
...
@@ -51,7 +51,6 @@ const ResultPanel: FC<ResultPanelProps> = ({
value=
{
JSON
.
stringify
(
inputs
)
}
onChange=
{
()
=>
{}
}
/>
{
/* ###TODO### */
}
{
process_data
&&
(
<
CodeEditor
readOnly
...
...
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