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
ee616ee6
Commit
ee616ee6
authored
Feb 22, 2024
by
StyleZhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
header
parent
5153068a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
183 additions
and
0 deletions
+183
-0
clock-play.svg
...ponents/base/icons/assets/vender/line/time/clock-play.svg
+10
-0
ClockPlay.json
...components/base/icons/src/vender/line/time/ClockPlay.json
+66
-0
ClockPlay.tsx
.../components/base/icons/src/vender/line/time/ClockPlay.tsx
+16
-0
index.ts
web/app/components/base/icons/src/vender/line/time/index.ts
+1
-0
index.tsx
web/app/components/workflow/header/index.tsx
+61
-0
run-and-history.tsx
web/app/components/workflow/header/run-and-history.tsx
+29
-0
No files found.
web/app/components/base/icons/assets/vender/line/time/clock-play.svg
0 → 100644
View file @
ee616ee6
<svg
width=
"16"
height=
"16"
viewBox=
"0 0 16 16"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<g
id=
"Icon"
clip-path=
"url(#clip0_635_10941)"
>
<path
id=
"Vector"
d=
"M14.6334 8.66683C14.6552 8.44756 14.6663 8.22516 14.6663 8.00016C14.6663 4.31826 11.6816 1.3335 7.99967 1.3335C4.31778 1.3335 1.33301 4.31826 1.33301 8.00016C1.33301 11.6821 4.31778 14.6668 7.99967 14.6668C8.11145 14.6668 8.22258 14.6641 8.33301 14.6586C8.44487 14.6531 8.556 14.6449 8.66634 14.6339M7.99967 4.00016V8.00016L5.42265 9.25534M11.853 9.97346L14.4308 11.9068C14.6238 12.0515 14.7203 12.1239 14.7548 12.2126C14.785 12.2904 14.785 12.3766 14.7548 12.4543C14.7203 12.543 14.6238 12.6154 14.4308 12.7601L11.853 14.6935C11.5784 14.8995 11.441 15.0024 11.3261 15.0001C11.226 14.998 11.1322 14.9511 11.0706 14.8723C10.9997 14.7818 10.9997 14.6101 10.9997 14.2668V10.4001C10.9997 10.0568 10.9997 9.88516 11.0706 9.79463C11.1322 9.71585 11.226 9.66895 11.3261 9.66687C11.441 9.66448 11.5784 9.76747 11.853 9.97346Z"
stroke=
"#667085"
stroke-width=
"1.5"
stroke-linecap=
"round"
stroke-linejoin=
"round"
/>
</g>
<defs>
<clipPath
id=
"clip0_635_10941"
>
<rect
width=
"16"
height=
"16"
fill=
"white"
/>
</clipPath>
</defs>
</svg>
web/app/components/base/icons/src/vender/line/time/ClockPlay.json
0 → 100644
View file @
ee616ee6
{
"icon"
:
{
"type"
:
"element"
,
"isRootNode"
:
true
,
"name"
:
"svg"
,
"attributes"
:
{
"width"
:
"16"
,
"height"
:
"16"
,
"viewBox"
:
"0 0 16 16"
,
"fill"
:
"none"
,
"xmlns"
:
"http://www.w3.org/2000/svg"
},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"g"
,
"attributes"
:
{
"id"
:
"Icon"
,
"clip-path"
:
"url(#clip0_635_10941)"
},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"path"
,
"attributes"
:
{
"id"
:
"Vector"
,
"d"
:
"M14.6334 8.66683C14.6552 8.44756 14.6663 8.22516 14.6663 8.00016C14.6663 4.31826 11.6816 1.3335 7.99967 1.3335C4.31778 1.3335 1.33301 4.31826 1.33301 8.00016C1.33301 11.6821 4.31778 14.6668 7.99967 14.6668C8.11145 14.6668 8.22258 14.6641 8.33301 14.6586C8.44487 14.6531 8.556 14.6449 8.66634 14.6339M7.99967 4.00016V8.00016L5.42265 9.25534M11.853 9.97346L14.4308 11.9068C14.6238 12.0515 14.7203 12.1239 14.7548 12.2126C14.785 12.2904 14.785 12.3766 14.7548 12.4543C14.7203 12.543 14.6238 12.6154 14.4308 12.7601L11.853 14.6935C11.5784 14.8995 11.441 15.0024 11.3261 15.0001C11.226 14.998 11.1322 14.9511 11.0706 14.8723C10.9997 14.7818 10.9997 14.6101 10.9997 14.2668V10.4001C10.9997 10.0568 10.9997 9.88516 11.0706 9.79463C11.1322 9.71585 11.226 9.66895 11.3261 9.66687C11.441 9.66448 11.5784 9.76747 11.853 9.97346Z"
,
"stroke"
:
"currentColor"
,
"stroke-width"
:
"1.5"
,
"stroke-linecap"
:
"round"
,
"stroke-linejoin"
:
"round"
},
"children"
:
[]
}
]
},
{
"type"
:
"element"
,
"name"
:
"defs"
,
"attributes"
:
{},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"clipPath"
,
"attributes"
:
{
"id"
:
"clip0_635_10941"
},
"children"
:
[
{
"type"
:
"element"
,
"name"
:
"rect"
,
"attributes"
:
{
"width"
:
"16"
,
"height"
:
"16"
,
"fill"
:
"white"
},
"children"
:
[]
}
]
}
]
}
]
},
"name"
:
"ClockPlay"
}
\ No newline at end of file
web/app/components/base/icons/src/vender/line/time/ClockPlay.tsx
0 → 100644
View file @
ee616ee6
// GENERATE BY script
// DON NOT EDIT IT MANUALLY
import
*
as
React
from
'react'
import
data
from
'./ClockPlay.json'
import
IconBase
from
'@/app/components/base/icons/IconBase'
import
type
{
IconBaseProps
,
IconData
}
from
'@/app/components/base/icons/IconBase'
const
Icon
=
React
.
forwardRef
<
React
.
MutableRefObject
<
SVGElement
>
,
Omit
<
IconBaseProps
,
'data'
>>
((
props
,
ref
,
)
=>
<
IconBase
{
...
props
}
ref=
{
ref
}
data=
{
data
as
IconData
}
/>)
Icon
.
displayName
=
'ClockPlay'
export
default
Icon
web/app/components/base/icons/src/vender/line/time/index.ts
View file @
ee616ee6
export
{
default
as
ClockFastForward
}
from
'./ClockFastForward'
export
{
default
as
ClockPlay
}
from
'./ClockPlay'
web/app/components/workflow/header.tsx
→
web/app/components/workflow/header
/index
.tsx
View file @
ee616ee6
import
type
{
FC
}
from
'react'
import
{
memo
}
from
'react'
import
{
useWorkflowContext
}
from
'../context'
import
RunAndHistory
from
'./run-and-history'
import
{
Edit03
}
from
'@/app/components/base/icons/src/vender/solid/general'
import
{
Grid01
}
from
'@/app/components/base/icons/src/vender/line/layout'
import
Button
from
'@/app/components/base/button'
import
{
ArrowNarrowLeft
}
from
'@/app/components/base/icons/src/vender/line/arrows'
const
Header
:
FC
=
()
=>
{
const
{
mode
}
=
useWorkflowContext
()
const
Header
=
()
=>
{
return
(
<
div
className=
'absolute top-0 left-0 flex items-center justify-between px-3 w-full h-14 z-10'
...
...
@@ -18,7 +26,27 @@ const Header = () => {
</
div
>
</
div
>
</
div
>
<
div
>
<
div
className=
'flex items-center'
>
<
Button
className=
{
`
mr-2 px-3 py-0 h-8 bg-white text-[13px] font-medium text-primary-600
border-[0.5px] border-gray-200 shadow-xs
`
}
>
<
ArrowNarrowLeft
className=
'mr-1 w-4 h-4'
/>
Go back to editor
</
Button
>
<
RunAndHistory
/>
<
div
className=
'mx-2 w-[1px] h-3.5 bg-gray-200'
></
div
>
{
mode
===
'workflow'
&&
(
<
Button
className=
{
`
mr-2 px-3 py-0 h-8 bg-white text-[13px] font-medium text-gray-700
border-[0.5px] border-gray-200 shadow-xs
`
}
>
<
Grid01
className=
'mr-1 w-4 h-4 text-gray-500'
/>
Features
</
Button
>
)
}
<
Button
type=
'primary'
className=
'px-3 py-0 h-8 text-[13px] font-medium'
...
...
@@ -30,4 +58,4 @@ const Header = () => {
)
}
export
default
Header
export
default
memo
(
Header
)
web/app/components/workflow/header/run-and-history.tsx
0 → 100644
View file @
ee616ee6
import
type
{
FC
}
from
'react'
import
{
memo
}
from
'react'
import
{
Play
}
from
'@/app/components/base/icons/src/vender/line/mediaAndDevices'
import
{
ClockPlay
}
from
'@/app/components/base/icons/src/vender/line/time'
import
TooltipPlus
from
'@/app/components/base/tooltip-plus'
const
RunAndHistory
:
FC
=
()
=>
{
return
(
<
div
className=
'flex items-center px-0.5 h-8 rounded-lg border-[0.5px] border-gray-200 bg-white shadow-xs'
>
<
div
className=
{
`
flex items-center px-1.5 h-7 rounded-md text-[13px] font-medium text-primary-600
hover:bg-primary-50 cursor-pointer
`
}
>
<
Play
className=
'mr-1 w-4 h-4'
/>
Run
</
div
>
<
div
className=
'mx-0.5 w-[0.5px] h-8 bg-gray-200'
></
div
>
<
TooltipPlus
popupContent=
'View run history'
>
<
div
className=
'flex items-center justify-center w-7 h-7 rounded-md hover:bg-black/5 cursor-pointer'
>
<
ClockPlay
className=
'w-4 h-4 text-gray-500'
/>
</
div
>
</
TooltipPlus
>
</
div
>
)
}
export
default
memo
(
RunAndHistory
)
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