Prototype of web-based preview for subassemblies
This commit is contained in:
parent
6560a4359d
commit
1fb7077774
55 changed files with 33076 additions and 0 deletions
34
asp-review-app/ui/src/index.tsx
Normal file
34
asp-review-app/ui/src/index.tsx
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue