Chore: frontend infrastructure upgrade (#16420)

Co-authored-by: NFish <douxc512@gmail.com>
Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
Co-authored-by: twwu <twwu@dify.ai>
Co-authored-by: jZonG <jzongcode@gmail.com>
This commit is contained in:
Joel
2025-03-21 17:41:03 +08:00
committed by GitHub
parent e61415223b
commit 7709d9df20
1435 changed files with 13372 additions and 11612 deletions

View File

@@ -37,7 +37,7 @@ const IfElseNode: FC<NodeProps<IfElseNodeType>> = (props) => {
return !!condition.value
}
}, [])
const conditionNotSet = (<div className='flex items-center h-6 px-1 space-x-1 text-xs font-normal text-text-secondary bg-workflow-block-parma-bg rounded-md'>
const conditionNotSet = (<div className='flex h-6 items-center space-x-1 rounded-md bg-workflow-block-parma-bg px-1 text-xs font-normal text-text-secondary'>
{t(`${i18nPrefix}.conditionNotSetup`)}
</div>)
@@ -46,8 +46,8 @@ const IfElseNode: FC<NodeProps<IfElseNodeType>> = (props) => {
{
cases.map((caseItem, index) => (
<div key={caseItem.case_id}>
<div className='relative flex items-center h-6 px-1'>
<div className='flex items-center justify-between w-full'>
<div className='relative flex h-6 items-center px-1'>
<div className='flex w-full items-center justify-between'>
<div className='text-[10px] font-semibold text-text-tertiary'>
{casesLength > 1 && `CASE ${index + 1}`}
</div>
@@ -80,7 +80,7 @@ const IfElseNode: FC<NodeProps<IfElseNodeType>> = (props) => {
)
: conditionNotSet}
{i !== caseItem.conditions.length - 1 && (
<div className='absolute z-10 right-1 bottom-[-10px] leading-4 text-[10px] font-medium text-text-accent uppercase'>{t(`${i18nPrefix}.${caseItem.logical_operator}`)}</div>
<div className='absolute bottom-[-10px] right-1 z-10 text-[10px] font-medium uppercase leading-4 text-text-accent'>{t(`${i18nPrefix}.${caseItem.logical_operator}`)}</div>
)}
</div>
))}
@@ -88,8 +88,8 @@ const IfElseNode: FC<NodeProps<IfElseNodeType>> = (props) => {
</div>
))
}
<div className='relative flex items-center h-6 px-1'>
<div className='w-full text-xs font-semibold text-right text-text-secondary'>ELSE</div>
<div className='relative flex h-6 items-center px-1'>
<div className='w-full text-right text-xs font-semibold text-text-secondary'>ELSE</div>
<NodeSourceHandle
{...props}
handleId='false'