From f1176331be62b3b932fcaf3da569b45242d667fb Mon Sep 17 00:00:00 2001 From: Arvin Xu Date: Mon, 16 Sep 2024 01:03:00 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20rename=20artif?= =?UTF-8?q?acts=20to=20plugins=20in=20portal=20(#3986)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ♻️ refactor: rename to plugins * 💄 style: use another icon --- .../@portal/{Artifacts => Plugins}/Body/ToolRender.tsx | 0 .../(workspace)/@portal/{Artifacts => Plugins}/Body/index.tsx | 0 .../(workspace)/@portal/{Artifacts => Plugins}/Footer.tsx | 0 .../(workspace)/@portal/{Artifacts => Plugins}/Header.tsx | 0 .../chat/(workspace)/@portal/{Artifacts => Plugins}/index.ts | 2 +- .../(workspace)/@portal/{Artifacts => Plugins}/useEnable.ts | 0 src/app/(main)/chat/(workspace)/@portal/router.tsx | 4 ++-- src/features/Conversation/Messages/Tool/Inspector/index.tsx | 4 ++-- 8 files changed, 5 insertions(+), 5 deletions(-) rename src/app/(main)/chat/(workspace)/@portal/{Artifacts => Plugins}/Body/ToolRender.tsx (100%) rename src/app/(main)/chat/(workspace)/@portal/{Artifacts => Plugins}/Body/index.tsx (100%) rename src/app/(main)/chat/(workspace)/@portal/{Artifacts => Plugins}/Footer.tsx (100%) rename src/app/(main)/chat/(workspace)/@portal/{Artifacts => Plugins}/Header.tsx (100%) rename src/app/(main)/chat/(workspace)/@portal/{Artifacts => Plugins}/index.ts (83%) rename src/app/(main)/chat/(workspace)/@portal/{Artifacts => Plugins}/useEnable.ts (100%) diff --git a/src/app/(main)/chat/(workspace)/@portal/Artifacts/Body/ToolRender.tsx b/src/app/(main)/chat/(workspace)/@portal/Plugins/Body/ToolRender.tsx similarity index 100% rename from src/app/(main)/chat/(workspace)/@portal/Artifacts/Body/ToolRender.tsx rename to src/app/(main)/chat/(workspace)/@portal/Plugins/Body/ToolRender.tsx diff --git a/src/app/(main)/chat/(workspace)/@portal/Artifacts/Body/index.tsx b/src/app/(main)/chat/(workspace)/@portal/Plugins/Body/index.tsx similarity index 100% rename from src/app/(main)/chat/(workspace)/@portal/Artifacts/Body/index.tsx rename to src/app/(main)/chat/(workspace)/@portal/Plugins/Body/index.tsx diff --git a/src/app/(main)/chat/(workspace)/@portal/Artifacts/Footer.tsx b/src/app/(main)/chat/(workspace)/@portal/Plugins/Footer.tsx similarity index 100% rename from src/app/(main)/chat/(workspace)/@portal/Artifacts/Footer.tsx rename to src/app/(main)/chat/(workspace)/@portal/Plugins/Footer.tsx diff --git a/src/app/(main)/chat/(workspace)/@portal/Artifacts/Header.tsx b/src/app/(main)/chat/(workspace)/@portal/Plugins/Header.tsx similarity index 100% rename from src/app/(main)/chat/(workspace)/@portal/Artifacts/Header.tsx rename to src/app/(main)/chat/(workspace)/@portal/Plugins/Header.tsx diff --git a/src/app/(main)/chat/(workspace)/@portal/Artifacts/index.ts b/src/app/(main)/chat/(workspace)/@portal/Plugins/index.ts similarity index 83% rename from src/app/(main)/chat/(workspace)/@portal/Artifacts/index.ts rename to src/app/(main)/chat/(workspace)/@portal/Plugins/index.ts index 7fb0b5443c6a9..f35830853735b 100644 --- a/src/app/(main)/chat/(workspace)/@portal/Artifacts/index.ts +++ b/src/app/(main)/chat/(workspace)/@portal/Plugins/index.ts @@ -2,7 +2,7 @@ import Body from './Body'; import Header from './Header'; import { useEnable } from './useEnable'; -export const Artifacts = { +export const Plugins = { Body, Header, useEnable, diff --git a/src/app/(main)/chat/(workspace)/@portal/Artifacts/useEnable.ts b/src/app/(main)/chat/(workspace)/@portal/Plugins/useEnable.ts similarity index 100% rename from src/app/(main)/chat/(workspace)/@portal/Artifacts/useEnable.ts rename to src/app/(main)/chat/(workspace)/@portal/Plugins/useEnable.ts diff --git a/src/app/(main)/chat/(workspace)/@portal/router.tsx b/src/app/(main)/chat/(workspace)/@portal/router.tsx index bb02707bf844d..f5101a776e774 100644 --- a/src/app/(main)/chat/(workspace)/@portal/router.tsx +++ b/src/app/(main)/chat/(workspace)/@portal/router.tsx @@ -2,12 +2,12 @@ import { memo } from 'react'; -import { Artifacts } from './Artifacts'; import { FilePreview } from './FilePreview'; import { HomeBody, HomeHeader } from './Home'; import { MessageDetail } from './MessageDetail'; +import { Plugins } from './Plugins'; -const items = [MessageDetail, Artifacts, FilePreview]; +const items = [MessageDetail, Plugins, FilePreview]; export const PortalHeader = memo(() => { const enabledList: boolean[] = []; diff --git a/src/features/Conversation/Messages/Tool/Inspector/index.tsx b/src/features/Conversation/Messages/Tool/Inspector/index.tsx index 05c6907916bbc..6be69f1a74595 100644 --- a/src/features/Conversation/Messages/Tool/Inspector/index.tsx +++ b/src/features/Conversation/Messages/Tool/Inspector/index.tsx @@ -3,7 +3,7 @@ import { ActionIcon, Highlighter, Icon, Tag } from '@lobehub/ui'; import { Tabs, Typography } from 'antd'; import isEqual from 'fast-deep-equal'; import { - InspectionPanel, + BetweenVerticalStart, LucideBug, LucideBugOff, LucideChevronDown, @@ -113,7 +113,7 @@ const Inspector = memo( {!isMobile && showRightAction && ( { if (!isMessageToolUIOpen) openToolUI(id, identifier); else {