فهرست منبع

feat(dashboard-v6): 去掉主导航与编辑器右边栏的 AI 入口

只去掉入口;/workspace/ai 路由与 panels/ChatPanel.tsx 保留。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
visuddhinanda 1 روز پیش
والد
کامیت
11433da99e
2فایلهای تغییر یافته به همراه0 افزوده شده و 15 حذف شده
  1. 0 8
      dashboard-v6/src/components/editor/Editor.tsx
  2. 0 7
      dashboard-v6/src/components/navigation/MainMenu.tsx

+ 0 - 8
dashboard-v6/src/components/editor/Editor.tsx

@@ -8,10 +8,8 @@ import {
   ChannelIcon,
   DictIcon,
   GrammarIcon,
-  RobotIcon,
   SuggestionIcon,
 } from "../../assets/icon";
-import ChatPanel from "./panels/ChatPanel";
 import SuggestionPanel from "./panels/SuggestionPanel";
 import GrammarBookPanel from "./panels/GrammarBookPanel";
 import DiscussionBox from "../discussion/DiscussionBox";
@@ -166,12 +164,6 @@ export default function Editor({
         <GrammarBookPanel articleId={articleId} anthologyId={anthologyId} />
       ),
     },
-    {
-      key: "ai",
-      icon: <RobotIcon />,
-      label: "人工智能",
-      content: <ChatPanel articleId={articleId} anthologyId={anthologyId} />,
-    },
   ];
 
   return (

+ 0 - 7
dashboard-v6/src/components/navigation/MainMenu.tsx

@@ -15,7 +15,6 @@ import {
   ChannelIcon,
   CourseOutLinedIcon,
   DocumentIcon,
-  RobotIcon,
   TaskIcon,
   TermIcon,
   TipitakaIcon,
@@ -159,12 +158,6 @@ const Widget = ({ onSearch }: Props) => {
         />
       ),
     },
-    {
-      key: "/workspace/ai",
-      icon: <RobotIcon />,
-      label: "AI",
-      activeId: "workspace.ai",
-    },
     {
       key: "/workspace/tipitaka/lib",
       icon: <TipitakaIcon />,