Prototype of web-based preview for subassemblies

This commit is contained in:
IDONTSUDO 2023-06-18 15:27:23 +00:00 committed by Igor Brylyov
parent 6560a4359d
commit 1fb7077774
55 changed files with 33076 additions and 0 deletions

View file

@ -0,0 +1,34 @@
import { render } from "react-dom";
import "./App.css";
import "./index.css";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
import {
AssemblyPreviewInsertVector,
AssemblyPreviewInsertVectorPath,
} from "./features/assembly_preview_insert_vector/Assembly_preview_insert_vector_screen";
import {
ProjectScreen,
ProjectsPath,
} from "./features/all_project/all_project_screen";
import {
AssemblyPreviewSubsequence,
AssemblyPreviewSubsequencePath,
} from "./features/assembly_preview_subsequence/assembly_preview_subsequence_screen";
const rootElement = document.getElementById("root");
const router = createBrowserRouter([
{
path: ProjectsPath,
element: <ProjectScreen />,
},
{
path: AssemblyPreviewSubsequencePath + ":id",
element: <AssemblyPreviewSubsequence />,
},
{
path: AssemblyPreviewInsertVectorPath + ":id",
element: <AssemblyPreviewInsertVector />,
},
]);
render(<RouterProvider router={router} />, rootElement);