diff --git a/web/app/(humanInputLayout)/form/[token]/form.tsx b/web/app/(humanInputLayout)/form/[token]/form.tsx index 5000f38443..d617b41ff7 100644 --- a/web/app/(humanInputLayout)/form/[token]/form.tsx +++ b/web/app/(humanInputLayout)/form/[token]/form.tsx @@ -16,7 +16,7 @@ import { UserActionButtonType } from '@/app/components/workflow/nodes/human-inpu import type { GeneratedFormInputItem, UserAction } from '@/app/components/workflow/nodes/human-input/types' import { getHumanInputForm, submitHumanInputForm } from '@/service/share' import { asyncRunSafe } from '@/utils' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' export type FormData = { site: any diff --git a/web/app/components/base/chat/chat/answer/human-input-content/human-input-form.tsx b/web/app/components/base/chat/chat/answer/human-input-content/human-input-form.tsx index 5842c0dcdc..4260253c58 100644 --- a/web/app/components/base/chat/chat/answer/human-input-content/human-input-form.tsx +++ b/web/app/components/base/chat/chat/answer/human-input-content/human-input-form.tsx @@ -5,8 +5,6 @@ import Button from '@/app/components/base/button' import ContentItem from './content-item' import type { GeneratedFormInputItem, UserAction } from '@/app/components/workflow/nodes/human-input/types' import { getButtonStyle, initializeInputs, splitByOutputVar } from './utils' -// import { getHumanInputForm, submitHumanInputForm } from '@/service/share' -// import cn from '@/utils/classnames' export type FormData = { form_id: string diff --git a/web/app/components/base/prompt-editor/plugins/draggable-plugin/index.tsx b/web/app/components/base/prompt-editor/plugins/draggable-plugin/index.tsx index 24b6c38e98..7bb4984128 100644 --- a/web/app/components/base/prompt-editor/plugins/draggable-plugin/index.tsx +++ b/web/app/components/base/prompt-editor/plugins/draggable-plugin/index.tsx @@ -3,7 +3,7 @@ import { DraggableBlockPlugin_EXPERIMENTAL } from '@lexical/react/LexicalDraggab import { useEffect, useRef, useState } from 'react' import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext' import { RiDraggable } from '@remixicon/react' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' const DRAGGABLE_BLOCK_MENU_CLASSNAME = 'draggable-block-menu' diff --git a/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx b/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx index 27894328e8..b941ef9962 100644 --- a/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx +++ b/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx @@ -7,7 +7,7 @@ import { Trans, useTranslation } from 'react-i18next' import Textarea from '../../../textarea' import TagLabel from './tag-label' import TypeSwitch from './type-switch' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' type Props = { isVariable?: boolean diff --git a/web/app/components/base/prompt-editor/plugins/hitl-input-block/tag-label.tsx b/web/app/components/base/prompt-editor/plugins/hitl-input-block/tag-label.tsx index c65c2238cc..0eec361920 100644 --- a/web/app/components/base/prompt-editor/plugins/hitl-input-block/tag-label.tsx +++ b/web/app/components/base/prompt-editor/plugins/hitl-input-block/tag-label.tsx @@ -3,7 +3,7 @@ import { RiEditLine } from '@remixicon/react' import type { FC } from 'react' import React from 'react' import { Variable02 } from '../../../icons/src/vender/solid/development' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' type Props = { type: 'edit' | 'variable' diff --git a/web/app/components/base/prompt-editor/plugins/hitl-input-block/type-switch.tsx b/web/app/components/base/prompt-editor/plugins/hitl-input-block/type-switch.tsx index a1a172abe1..9f680cdb18 100644 --- a/web/app/components/base/prompt-editor/plugins/hitl-input-block/type-switch.tsx +++ b/web/app/components/base/prompt-editor/plugins/hitl-input-block/type-switch.tsx @@ -2,7 +2,7 @@ import type { FC } from 'react' import React from 'react' import { Variable02 } from '../../../icons/src/vender/solid/development' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' import { useTranslation } from 'react-i18next' type Props = { diff --git a/web/app/components/base/prompt-editor/plugins/request-url-block/component.tsx b/web/app/components/base/prompt-editor/plugins/request-url-block/component.tsx index 5253f90cd4..8f51ffde41 100644 --- a/web/app/components/base/prompt-editor/plugins/request-url-block/component.tsx +++ b/web/app/components/base/prompt-editor/plugins/request-url-block/component.tsx @@ -4,7 +4,7 @@ import { RiGlobalLine } from '@remixicon/react' import { useSelectOrDelete } from '../../hooks' import { DELETE_REQUEST_URL_BLOCK_COMMAND } from './index' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' type RequestURLBlockComponentProps = { nodeKey: string diff --git a/web/app/components/base/prompt-editor/plugins/shortcuts-popup-plugin/index.tsx b/web/app/components/base/prompt-editor/plugins/shortcuts-popup-plugin/index.tsx index 453607178e..81e75aba89 100644 --- a/web/app/components/base/prompt-editor/plugins/shortcuts-popup-plugin/index.tsx +++ b/web/app/components/base/prompt-editor/plugins/shortcuts-popup-plugin/index.tsx @@ -12,7 +12,7 @@ import { $getSelection, $isRangeSelection, } from 'lexical' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' import { autoUpdate, flip, diff --git a/web/app/components/workflow/nodes/human-input/components/button-style-dropdown.tsx b/web/app/components/workflow/nodes/human-input/components/button-style-dropdown.tsx index 269b147cdf..9d5d39d890 100644 --- a/web/app/components/workflow/nodes/human-input/components/button-style-dropdown.tsx +++ b/web/app/components/workflow/nodes/human-input/components/button-style-dropdown.tsx @@ -11,7 +11,7 @@ import { } from '@/app/components/base/portal-to-follow-elem' import Button from '@/app/components/base/button' import { UserActionButtonType } from '../types' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' const i18nPrefix = 'workflow.nodes.humanInput' diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/mail-body-input.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/mail-body-input.tsx index 5971de1ed6..c88a3b6f36 100644 --- a/web/app/components/workflow/nodes/human-input/components/delivery-method/mail-body-input.tsx +++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/mail-body-input.tsx @@ -6,7 +6,7 @@ import type { NodeOutPutVar, } from '@/app/components/workflow/types' import { BlockEnum } from '@/app/components/workflow/types' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' type MailBodyInputProps = { readOnly?: boolean diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/method-item.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/method-item.tsx index 358c267aec..9385d37741 100644 --- a/web/app/components/workflow/nodes/human-input/components/delivery-method/method-item.tsx +++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/method-item.tsx @@ -19,7 +19,7 @@ import type { Node, NodeOutPutVar, } from '@/app/components/workflow/types' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' import TestEmailSender from './test-email-sender' const i18nPrefix = 'workflow.nodes.humanInput' diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/method-selector.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/method-selector.tsx index 7bebfe7676..c3506af2ca 100644 --- a/web/app/components/workflow/nodes/human-input/components/delivery-method/method-selector.tsx +++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/method-selector.tsx @@ -21,7 +21,7 @@ import type { DeliveryMethod } from '../../types' import { DeliveryMethodType } from '../../types' import { IS_CE_EDITION } from '@/config' import { v4 as uuid4 } from 'uuid' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' const i18nPrefix = 'workflow.nodes.humanInput' diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx index e0d0123df8..30db011adb 100644 --- a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx +++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx @@ -9,7 +9,7 @@ import { PortalToFollowElemContent, PortalToFollowElemTrigger, } from '@/app/components/base/portal-to-follow-elem' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' const i18nPrefix = 'workflow.nodes.humanInput' diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/index.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/index.tsx index 9074aed1a6..394f000785 100644 --- a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/index.tsx +++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/index.tsx @@ -8,7 +8,7 @@ import MemberSelector from './member-selector' import EmailInput from './email-input' import { fetchMembers } from '@/service/common' import type { RecipientData, Recipient as RecipientItem } from '../../../types' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' import { produce } from 'immer' const i18nPrefix = 'workflow.nodes.humanInput' diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-list.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-list.tsx index 53dfab53f5..07a5b2f849 100644 --- a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-list.tsx +++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-list.tsx @@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next' import Input from '@/app/components/base/input' import Avatar from '@/app/components/base/avatar' import type { Member } from '@/models/common' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' const i18nPrefix = 'workflow.nodes.humanInput' diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-selector.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-selector.tsx index 1b5ad92877..277f9c3617 100644 --- a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-selector.tsx +++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/member-selector.tsx @@ -9,7 +9,7 @@ import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigge import Button from '@/app/components/base/button' import MemberList from './member-list' import type { Member } from '@/models/common' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' const i18nPrefix = 'workflow.nodes.humanInput' diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx index 8be6a9df4b..20b80c3f92 100644 --- a/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx +++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx @@ -26,7 +26,7 @@ import { fetchMembers } from '@/service/common' import { useTestEmailSender } from '@/service/use-workflow' import { noop, unionBy } from 'lodash-es' import { isOutput } from '../../utils' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' const i18nPrefix = 'workflow.nodes.humanInput' diff --git a/web/app/components/workflow/nodes/human-input/components/form-content.tsx b/web/app/components/workflow/nodes/human-input/components/form-content.tsx index 01239b32e1..f51e33f610 100644 --- a/web/app/components/workflow/nodes/human-input/components/form-content.tsx +++ b/web/app/components/workflow/nodes/human-input/components/form-content.tsx @@ -12,7 +12,7 @@ import { INSERT_HITL_INPUT_BLOCK_COMMAND } from '@/app/components/base/prompt-ed import type { LexicalCommand } from 'lexical' import { isMac } from '../../../utils' import { useBoolean } from 'ahooks' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' type Props = { nodeId: string diff --git a/web/app/components/workflow/nodes/human-input/components/single-run-form.tsx b/web/app/components/workflow/nodes/human-input/components/single-run-form.tsx index 28227662c8..e995c63b9b 100644 --- a/web/app/components/workflow/nodes/human-input/components/single-run-form.tsx +++ b/web/app/components/workflow/nodes/human-input/components/single-run-form.tsx @@ -7,7 +7,6 @@ import Button from '@/app/components/base/button' import ContentItem from '@/app/components/base/chat/chat/answer/human-input-content/content-item' import { UserActionButtonType } from '@/app/components/workflow/nodes/human-input/types' import type { GeneratedFormInputItem, UserAction } from '@/app/components/workflow/nodes/human-input/types' -// import cn from '@/utils/classnames' type Props = { nodeName: string diff --git a/web/app/components/workflow/nodes/human-input/components/timeout.tsx b/web/app/components/workflow/nodes/human-input/components/timeout.tsx index 1c4196f7df..572fc54c23 100644 --- a/web/app/components/workflow/nodes/human-input/components/timeout.tsx +++ b/web/app/components/workflow/nodes/human-input/components/timeout.tsx @@ -2,7 +2,7 @@ import type { FC } from 'react' import React from 'react' import { useTranslation } from 'react-i18next' import Input from '@/app/components/base/input' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' const i18nPrefix = 'workflow.nodes.humanInput' diff --git a/web/app/components/workflow/nodes/human-input/panel.tsx b/web/app/components/workflow/nodes/human-input/panel.tsx index 5e6ff1fdf3..e9ecf85bca 100644 --- a/web/app/components/workflow/nodes/human-input/panel.tsx +++ b/web/app/components/workflow/nodes/human-input/panel.tsx @@ -27,7 +27,7 @@ import Button from '@/app/components/base/button' import Toast from '@/app/components/base/toast' import copy from 'copy-to-clipboard' import { useBoolean } from 'ahooks' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' import { useStore } from '@/app/components/workflow/store' import FormContentPreview from './components/form-content-preview' diff --git a/web/app/components/workflow/nodes/tool/components/mixed-variable-text-input/placeholder.tsx b/web/app/components/workflow/nodes/tool/components/mixed-variable-text-input/placeholder.tsx index c46d1fc63a..cf9f0fb49b 100644 --- a/web/app/components/workflow/nodes/tool/components/mixed-variable-text-input/placeholder.tsx +++ b/web/app/components/workflow/nodes/tool/components/mixed-variable-text-input/placeholder.tsx @@ -5,7 +5,7 @@ import { FOCUS_COMMAND } from 'lexical' import { $insertNodes } from 'lexical' import { CustomTextNode } from '@/app/components/base/prompt-editor/plugins/custom-text/node' import Badge from '@/app/components/base/badge' -import cn from '@/utils/classnames' +import { cn } from '@/utils/classnames' type PlaceholderProps = { disableVariableInsertion?: boolean