Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

move components to folder

AykutSarac568aab99570c
diff --git a/src/containers/LiveEditor/CustomNode/ObjectNode.tsx b/src/components/CustomNode/ObjectNode.tsx
similarity index 100%
rename from src/containers/LiveEditor/CustomNode/ObjectNode.tsx
rename to src/components/CustomNode/ObjectNode.tsx
diff --git a/src/containers/LiveEditor/CustomNode/TextNode.tsx b/src/components/CustomNode/TextNode.tsx
similarity index 100%
rename from src/containers/LiveEditor/CustomNode/TextNode.tsx
rename to src/components/CustomNode/TextNode.tsx
diff --git a/src/containers/LiveEditor/CustomNode/index.tsx b/src/components/CustomNode/index.tsx
similarity index 100%
rename from src/containers/LiveEditor/CustomNode/index.tsx
rename to src/components/CustomNode/index.tsx
diff --git a/src/containers/LiveEditor/CustomNode/styles.tsx b/src/components/CustomNode/styles.tsx
similarity index 100%
rename from src/containers/LiveEditor/CustomNode/styles.tsx
rename to src/components/CustomNode/styles.tsx
diff --git a/src/containers/JsonEditor/ErrorContainer.tsx b/src/components/ErrorContainer/ErrorContainer.tsx
similarity index 100%
rename from src/containers/JsonEditor/ErrorContainer.tsx
rename to src/components/ErrorContainer/ErrorContainer.tsx
diff --git a/src/containers/JsonEditor/index.tsx b/src/containers/JsonEditor/index.tsx
index 347fb30f..cb08ec0c 100644
--- a/src/containers/JsonEditor/index.tsx
+++ b/src/containers/JsonEditor/index.tsx
@@ -2,7 +2,7 @@ import React from "react";
import AceEditor, { IAceOptions } from "react-ace";
import parseJson from "parse-json";
import styled from "styled-components";
-import { ErrorContainer } from "./ErrorContainer";
+import { ErrorContainer } from "../../components/ErrorContainer/ErrorContainer";
import { ConfigActionType } from "src/reducer/reducer";
import { useConfig } from "src/hocs/config";
require("ace-builds/src-noconflict/mode-json");
diff --git a/src/containers/LiveEditor/index.tsx b/src/containers/LiveEditor/index.tsx
index e7ffde02..947ec849 100644
--- a/src/containers/LiveEditor/index.tsx
+++ b/src/containers/LiveEditor/index.tsx
@@ -5,10 +5,10 @@ import {
TransformComponent,
ReactZoomPanPinchRef,
} from "react-zoom-pan-pinch";
-import { Canvas, ElkRoot } from "reaflow";
+import { Canvas } from "reaflow";
import { getEdgeNodes } from "./helpers";
-import { CustomNode } from "./CustomNode";
+import { CustomNode } from "../../components/CustomNode";
import { useLoading } from "src/hooks/useLoading";
import { useConfig } from "src/hocs/config";
import { Tools } from "../Editor/Tools";