-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
71 lines (68 loc) · 1.39 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import React from 'react';
import ReactDOM from 'react-dom';
import GraphNavigator from './components/GraphNavigator';
import './assets/App.scss';
import fakeData from './connectables.json';
import LeftList from './components/LeftList';
import BottomList from './components/BottomList';
const fakeConnectable = [
{
'@id': '/nodes/99',
'@type': 'Node',
label: null,
id: 99,
name: '',
description: '',
color: null,
posX: 0,
posY: 0,
posZ: 262,
outputLinks: [],
inputLinks: [],
mediaType: '/media_types/2',
graphPos: {
x: 0,
y: 0,
},
isRoot: true,
idx: 0,
tokenUpdate: 0,
},
{
'@id': '/nodes/100',
'@type': 'Node',
label: null,
id: 100,
name: '',
description: '',
color: null,
posX: 1000,
posY: 800,
posZ: 260,
outputLinks: [],
inputLinks: [],
mediaType: '/media_types/2',
graphPos: {
x: 100,
y: 100,
},
isRoot: false,
idx: 1,
tokenUpdate: 0,
},
];
const App = () => {
return (
<div>
{/* <div style={{height: 80, backgroundColor: 'tomato'}}></div> */}
<div className="App">
{/* <LeftList /> */}
<div className="MainContainer">
<GraphNavigator connectables={fakeData.connectables} />
{/* <BottomList /> */}
</div>
</div>
</div>
);
}
ReactDOM.render(<App />, document.querySelector('#root'));