feature: loading graph structure

This commit is contained in:
2026-03-06 14:31:51 +01:00
parent dcdd4d621e
commit 0af50e165a
5 changed files with 112 additions and 2 deletions

View File

@@ -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 = () => {
</div>
<Breadcrumb items={graphLevel} />
</Space>
<div style={{ background: '#001529' }}>
<div style={{ background: '#001529', display: 'flex' }}>
<Button
type="text"
icon={<FolderOpenOutlined />}
onClick={loadConceptSketch}
title="Load JSON"
style={{
fontSize: '16px',
width: 32,
height: 32,
color: colorBgContainer,
}}
/>
<Button
type="text"
icon={<SaveOutlined />}