From 0af50e165a2f9ed4644318820c052dd2cef12ccc Mon Sep 17 00:00:00 2001 From: tymurbaniak Date: Fri, 6 Mar 2026 14:31:51 +0100 Subject: [PATCH] feature: loading graph structure --- src/App.tsx | 16 +++++++++- src/components/Graph.tsx | 14 +++++++++ src/stores/LoadStore.ts | 11 +++++++ src/stores/TreeStore.tsx | 9 +++++- src/utils/loadGraph.ts | 64 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 112 insertions(+), 2 deletions(-) create mode 100644 src/stores/LoadStore.ts create mode 100644 src/utils/loadGraph.ts diff --git a/src/App.tsx b/src/App.tsx index 7a8798f..d751c5b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -7,8 +7,10 @@ import { MenuFoldOutlined, MenuUnfoldOutlined, SaveOutlined, + FolderOpenOutlined, } from '@ant-design/icons'; import { saveConceptSketch } from './utils/saveGraph'; +import { loadConceptSketch } from './utils/loadGraph'; import { useGraphLayersTreeStore } from './stores/TreeStore'; const { Header, Content, Sider } = Layout; @@ -72,7 +74,19 @@ const App: React.FC = () => { -
+
+