From 6cce56f0280cd1171d2429ff0b8e2c94ccae652e Mon Sep 17 00:00:00 2001 From: hjlarry Date: Thu, 9 Apr 2026 14:50:46 +0800 Subject: [PATCH] fix: web style error --- web/app/components/base/icons/src/public/other/index.ts | 1 - web/app/components/workflow-app/components/workflow-main.tsx | 3 ++- .../workflow/collaboration/components/user-cursors.tsx | 4 ++-- web/app/components/workflow/collaboration/index.ts | 5 ----- web/app/components/workflow/collaboration/types/index.ts | 3 --- web/app/components/workflow/header/online-users.tsx | 2 +- web/app/components/workflow/hooks/use-workflow-comment.ts | 2 +- web/app/components/workflow/index.tsx | 4 ++-- web/app/components/workflow/panel/comments-panel/index.tsx | 2 +- web/eslint-suppressions.json | 4 ++-- 10 files changed, 11 insertions(+), 19 deletions(-) delete mode 100644 web/app/components/workflow/collaboration/index.ts delete mode 100644 web/app/components/workflow/collaboration/types/index.ts diff --git a/web/app/components/base/icons/src/public/other/index.ts b/web/app/components/base/icons/src/public/other/index.ts index 46677fb5be..167218e524 100644 --- a/web/app/components/base/icons/src/public/other/index.ts +++ b/web/app/components/base/icons/src/public/other/index.ts @@ -1,6 +1,5 @@ export { default as Comment } from './Comment' export { default as DefaultToolIcon } from './DefaultToolIcon' - export { default as Message3Fill } from './Message3Fill' export { default as RowStruct } from './RowStruct' export { default as Slack } from './Slack' diff --git a/web/app/components/workflow-app/components/workflow-main.tsx b/web/app/components/workflow-app/components/workflow-main.tsx index 6fa11810a9..f32b6ed089 100644 --- a/web/app/components/workflow-app/components/workflow-main.tsx +++ b/web/app/components/workflow-app/components/workflow-main.tsx @@ -14,7 +14,8 @@ import { useReactFlow } from 'reactflow' import { useFeaturesStore } from '@/app/components/base/features/hooks' import { FILE_EXTS } from '@/app/components/base/prompt-editor/constants' import { WorkflowWithInnerContext } from '@/app/components/workflow' -import { collaborationManager, useCollaboration } from '@/app/components/workflow/collaboration' +import { collaborationManager } from '@/app/components/workflow/collaboration/core/collaboration-manager' +import { useCollaboration } from '@/app/components/workflow/collaboration/hooks/use-collaboration' import { useWorkflowUpdate } from '@/app/components/workflow/hooks/use-workflow-interactions' import { useStore, useWorkflowStore } from '@/app/components/workflow/store' import { SupportUploadFileTypes } from '@/app/components/workflow/types' diff --git a/web/app/components/workflow/collaboration/components/user-cursors.tsx b/web/app/components/workflow/collaboration/components/user-cursors.tsx index 488de1530d..4fbf491d0e 100644 --- a/web/app/components/workflow/collaboration/components/user-cursors.tsx +++ b/web/app/components/workflow/collaboration/components/user-cursors.tsx @@ -1,5 +1,5 @@ import type { FC } from 'react' -import type { CursorPosition, OnlineUser } from '@/app/components/workflow/collaboration/types' +import type { CursorPosition, OnlineUser } from '@/app/components/workflow/collaboration/types/collaboration' import { useViewport } from 'reactflow' import { getUserColor } from '../utils/user-color' @@ -61,7 +61,7 @@ const UserCursors: FC = ({