mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
Merge branch 'feat/plugins' of https://github.com/langgenius/dify into feat/plugins
This commit is contained in:
@ -4,7 +4,7 @@ const Title = ({
|
|||||||
title: string
|
title: string
|
||||||
}) => {
|
}) => {
|
||||||
return (
|
return (
|
||||||
<div className='max-w-[150px] truncate text-text-secondary system-md-semibold'>
|
<div className='truncate text-text-secondary system-md-semibold'>
|
||||||
{title}
|
{title}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@ -94,7 +94,7 @@ const PluginItem: FC<Props> = ({
|
|||||||
<div className="flex items-center h-5">
|
<div className="flex items-center h-5">
|
||||||
<Title title={label[locale]} />
|
<Title title={label[locale]} />
|
||||||
{verified && <RiVerifiedBadgeLine className="shrink-0 ml-0.5 w-4 h-4 text-text-accent" />}
|
{verified && <RiVerifiedBadgeLine className="shrink-0 ml-0.5 w-4 h-4 text-text-accent" />}
|
||||||
<Badge className='ml-1' text={source === PluginSource.github ? plugin.meta!.version : plugin.version} />
|
<Badge className='shrink-0 ml-1' text={source === PluginSource.github ? plugin.meta!.version : plugin.version} />
|
||||||
</div>
|
</div>
|
||||||
<div className='flex items-center justify-between'>
|
<div className='flex items-center justify-between'>
|
||||||
<Description text={description[locale]} descriptionLineRows={1}></Description>
|
<Description text={description[locale]} descriptionLineRows={1}></Description>
|
||||||
|
|||||||
@ -0,0 +1,14 @@
|
|||||||
|
const STEP_SPLIT = '->'
|
||||||
|
|
||||||
|
/*
|
||||||
|
* : 1 -> 2 -> 3
|
||||||
|
* iteration: (iteration, 1, [2, 3]) -> 4. (1, [2, 3]) means 1 is parent, [2, 3] is children
|
||||||
|
* parallel: 1 -> (parallel, [1,2,3], [4, (parallel: (6,7))]).
|
||||||
|
* retry: (retry, 1, [2,3]). 1 is parent, [2, 3] is retry nodes
|
||||||
|
*/
|
||||||
|
const simpleGraphToLogStruct = (input: string): any[] => {
|
||||||
|
const list = input.split(STEP_SPLIT)
|
||||||
|
return list
|
||||||
|
}
|
||||||
|
|
||||||
|
export default simpleGraphToLogStruct
|
||||||
Reference in New Issue
Block a user