From 7fd4bc59bcc1234a531545a7f4000a6c55e4a860 Mon Sep 17 00:00:00 2001 From: ditiqi Date: Fri, 21 Feb 2025 08:18:48 +0800 Subject: [PATCH] add --- apps/web/src/app/main/paths/page.tsx | 6 +-- .../components/common/editor/MindEditor.tsx | 49 +++++++++---------- 2 files changed, 27 insertions(+), 28 deletions(-) diff --git a/apps/web/src/app/main/paths/page.tsx b/apps/web/src/app/main/paths/page.tsx index 7b711c6..84e5464 100644 --- a/apps/web/src/app/main/paths/page.tsx +++ b/apps/web/src/app/main/paths/page.tsx @@ -1,6 +1,6 @@ import MindEditor from "@web/src/components/common/editor/MindEditor"; -import MindElixir, { MindElixirInstance } from "mind-elixir"; +// import MindElixir, { MindElixirInstance } from "mind-elixir"; import { useEffect, useRef } from "react"; export default function PathsPage() { - return -} \ No newline at end of file + // return +} diff --git a/apps/web/src/components/common/editor/MindEditor.tsx b/apps/web/src/components/common/editor/MindEditor.tsx index 3f94c77..66583c1 100644 --- a/apps/web/src/components/common/editor/MindEditor.tsx +++ b/apps/web/src/components/common/editor/MindEditor.tsx @@ -1,28 +1,27 @@ -import { MindElixirInstance } from "packages/mind-elixir-core/dist/types"; +// import { MindElixirInstance } from "packages/mind-elixir-core/dist/types"; import { useRef, useEffect } from "react"; -import MindElixir from 'mind-elixir'; +// import MindElixir from "mind-elixir"; export default function MindEditor() { - const me = useRef(); - useEffect(() => { - const instance = new MindElixir({ - el: "#map", - direction: MindElixir.SIDE, - draggable: true, // default true - contextMenu: true, // default true - toolBar: true, // default true - nodeMenu: true, // default true - keypress: true // default true - - }); - // instance.install(NodeMenu); - instance.init(MindElixir.new("新主题")); - me.current = instance; - }, []); - return
-
- 1 -
-
-
-} \ No newline at end of file + // const me = useRef(); + // useEffect(() => { + // const instance = new MindElixir({ + // el: "#map", + // direction: MindElixir.SIDE, + // draggable: true, // default true + // contextMenu: true, // default true + // toolBar: true, // default true + // nodeMenu: true, // default true + // keypress: true, // default true + // }); + // // instance.install(NodeMenu); + // instance.init(MindElixir.new("新主题")); + // me.current = instance; + // }, []); + // return ( + //
+ //
1
+ //
+ //
+ // ); +}