Skip to content

Commit a1ef48a

Browse files
authored
Merge pull request #7 from openpatch/copilot/create-gui-for-json-editor
Add clean graphical user interface for defining klasses and setting options
2 parents 196a98b + d4730a8 commit a1ef48a

5 files changed

Lines changed: 932 additions & 59 deletions

File tree

src/App.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ button {
1313
color: grey;
1414
cursor: pointer;
1515
border: 0;
16-
flex: 1;
1716
border-radius: 10px;
1817
padding: 8px;
1918
}
@@ -91,11 +90,11 @@ input {
9190
}
9291

9392
.react-flow__edge.selected .react-flow__edge-path {
94-
stroke: red!important;
93+
stroke: red !important;
9594
}
9695

9796
.react-flow__node.selected {
98-
outline: 2px solid red!important;
97+
outline: 2px solid red !important;
9998
}
10099

101100
.react-flow__edge.previous-method-call .react-flow__edge-path {
@@ -150,6 +149,7 @@ input {
150149
.react-flow__node-object .react-flow__handle-left {
151150
transform: translate(-8px, 0);
152151
}
152+
153153
.react-flow__node-method-call .react-flow__handle-right,
154154
.react-flow__node-object .react-flow__handle-right {
155155
transform: translate(8px, 0);

src/App.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import '@xyflow/react/dist/style.css';
33
import useStore, { RFState } from './store';
44
import { shallow } from 'zustand/shallow';
55
import { MemoryView } from "./MemoryView";
6-
import { EditView } from "./EditView";
6+
import { ConfigView } from "./ConfigView";
77

88
const selector = (state: RFState) => ({
99
route: state.route
@@ -16,10 +16,10 @@ function App() {
1616
);
1717

1818
return (
19-
<div style={{ width: "100dvw", height: "100dvh" }}>
19+
<div style={{ height: "100dvh" }}>
2020
{route === "view" &&
21-
<MemoryView />}
22-
{route === "edit" && <EditView />}
21+
<MemoryView />}
22+
{route === "config" && <ConfigView />}
2323
</div>
2424
);
2525
}

0 commit comments

Comments
 (0)