-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
210 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* prettier-ignore-start */ | ||
|
||
/* eslint-disable */ | ||
|
||
// @ts-nocheck | ||
|
||
// noinspection JSUnusedGlobalSymbols | ||
|
||
// This file is auto-generated by TanStack Router | ||
|
||
import { createFileRoute } from '@tanstack/react-router' | ||
|
||
// Import Routes | ||
|
||
import { Route as rootRoute } from './routes/__root' | ||
|
||
// Create Virtual Routes | ||
|
||
const IndexLazyImport = createFileRoute('/')() | ||
|
||
// Create/Update Routes | ||
|
||
const IndexLazyRoute = IndexLazyImport.update({ | ||
path: '/', | ||
getParentRoute: () => rootRoute, | ||
} as any).lazy(() => import('./routes/index.lazy').then((d) => d.Route)) | ||
|
||
// Populate the FileRoutesByPath interface | ||
|
||
declare module '@tanstack/react-router' { | ||
interface FileRoutesByPath { | ||
'/': { | ||
preLoaderRoute: typeof IndexLazyImport | ||
parentRoute: typeof rootRoute | ||
} | ||
} | ||
} | ||
|
||
// Create and export the route tree | ||
|
||
export const routeTree = rootRoute.addChildren([IndexLazyRoute]) | ||
|
||
/* prettier-ignore-end */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { createRootRoute, Outlet } from "@tanstack/react-router" | ||
import { TanStackRouterDevtools } from "@tanstack/router-devtools" | ||
|
||
export const Route = createRootRoute({ | ||
component: () => ( | ||
<> | ||
<Outlet /> | ||
<TanStackRouterDevtools /> | ||
</> | ||
), | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { createLazyFileRoute } from "@tanstack/react-router" | ||
import { ReactFlowProvider } from "reactflow" | ||
|
||
import "@/blocks/types/schema" | ||
|
||
import { Canvas } from "@/canvas/Canvas" | ||
import { SlashCommand } from "@/canvas/components/SlashCommand" | ||
import { Toolbar } from "@/toolbar/Toolbar" | ||
|
||
export const Route = createLazyFileRoute("/")({ | ||
component: () => <Index />, | ||
}) | ||
|
||
const Index = () => { | ||
return ( | ||
<ReactFlowProvider> | ||
<main className="relative bg-stone"> | ||
<Toolbar /> | ||
<Canvas /> | ||
<SlashCommand /> | ||
</main> | ||
</ReactFlowProvider> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters