From d5318272099d39455c539a3abebfffb57a7b8973 Mon Sep 17 00:00:00 2001 From: StyleZhang Date: Tue, 10 Sep 2024 14:35:55 +0800 Subject: [PATCH] remove if regex --- .../workflow/nodes/_base/components/next-step/line.tsx | 8 ++++---- web/app/components/workflow/nodes/if-else/types.ts | 1 - web/app/components/workflow/nodes/if-else/utils.ts | 1 - web/i18n/en-US/workflow.ts | 1 - web/i18n/zh-Hans/workflow.ts | 1 - 5 files changed, 4 insertions(+), 8 deletions(-) diff --git a/web/app/components/workflow/nodes/_base/components/next-step/line.tsx b/web/app/components/workflow/nodes/_base/components/next-step/line.tsx index ed0df8fa72177f..3a4430cb5de9e3 100644 --- a/web/app/components/workflow/nodes/_base/components/next-step/line.tsx +++ b/web/app/components/workflow/nodes/_base/components/next-step/line.tsx @@ -33,14 +33,14 @@ const Line = ({ d='M0,18 L24,18' strokeWidth={1} fill='none' - className='stroke-divider-soild' + className='stroke-divider-solid' /> ) @@ -51,7 +51,7 @@ const Line = ({ d={`M0,18 Q12,18 12,28 L12,${space - 10 + 2} Q12,${space + 2} 24,${space + 2}`} strokeWidth={1} fill='none' - className='stroke-divider-soild' + className='stroke-divider-solid' /> ) } @@ -60,7 +60,7 @@ const Line = ({ y={space} width={1} height={4} - className='fill-divider-soild-alt' + className='fill-divider-solid-alt' /> ) diff --git a/web/app/components/workflow/nodes/if-else/types.ts b/web/app/components/workflow/nodes/if-else/types.ts index e67bee2fdccc09..693dce1784e87c 100644 --- a/web/app/components/workflow/nodes/if-else/types.ts +++ b/web/app/components/workflow/nodes/if-else/types.ts @@ -28,7 +28,6 @@ export enum ComparisonOperator { lessThanOrEqual = '≤', isNull = 'is null', isNotNull = 'is not null', - regexMatch = 'regex match', } export type Condition = { diff --git a/web/app/components/workflow/nodes/if-else/utils.ts b/web/app/components/workflow/nodes/if-else/utils.ts index b71a3a57ca7f0f..ffb6758bba5391 100644 --- a/web/app/components/workflow/nodes/if-else/utils.ts +++ b/web/app/components/workflow/nodes/if-else/utils.ts @@ -30,7 +30,6 @@ export const getOperators = (type?: VarType) => { ComparisonOperator.isNot, ComparisonOperator.empty, ComparisonOperator.notEmpty, - ComparisonOperator.regexMatch, ] case VarType.number: return [ diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts index e7b3284da7fb7e..b83d213cb851d7 100644 --- a/web/i18n/en-US/workflow.ts +++ b/web/i18n/en-US/workflow.ts @@ -428,7 +428,6 @@ const translation = { 'not empty': 'is not empty', 'null': 'is null', 'not null': 'is not null', - 'regex match': 'regex match', }, enterValue: 'Enter value', addCondition: 'Add Condition', diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts index 7655cc58732dff..39311649f44f69 100644 --- a/web/i18n/zh-Hans/workflow.ts +++ b/web/i18n/zh-Hans/workflow.ts @@ -428,7 +428,6 @@ const translation = { 'not empty': '不为空', 'null': '空', 'not null': '不为空', - 'regex match': '正则匹配', }, enterValue: '输入值', addCondition: '添加条件',