diff --git a/frontend/bun.lockb b/frontend/bun.lockb index fb59197..5823703 100644 Binary files a/frontend/bun.lockb and b/frontend/bun.lockb differ diff --git a/frontend/package.json b/frontend/package.json index 429b04b..3360e51 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -13,6 +13,7 @@ "dependencies": { "@fontsource/inter": "^5.0.19", "@it-incubator/prettier-config": "^0.1.2", + "@monaco-editor/react": "^4.6.0", "@radix-ui/react-dialog": "^1.1.1", "@radix-ui/react-dropdown-menu": "^2.1.1", "@radix-ui/react-label": "^2.1.0", diff --git a/frontend/src/routeTree.gen.ts b/frontend/src/routeTree.gen.ts index 4f8a674..1566629 100644 --- a/frontend/src/routeTree.gen.ts +++ b/frontend/src/routeTree.gen.ts @@ -12,6 +12,7 @@ import { Route as rootRoute } from './routes/__root' import { Route as IndexImport } from './routes/index' +import { Route as RawIndexImport } from './routes/raw/index' import { Route as DbDbNameTablesIndexImport } from './routes/db/$dbName/tables/index' import { Route as DbDbNameTablesTableNameIndexImport } from './routes/db/$dbName/tables/$tableName/index' import { Route as DbDbNameTablesTableNameDataImport } from './routes/db/$dbName/tables/$tableName/data' @@ -23,6 +24,11 @@ const IndexRoute = IndexImport.update({ getParentRoute: () => rootRoute, } as any) +const RawIndexRoute = RawIndexImport.update({ + path: '/raw/', + getParentRoute: () => rootRoute, +} as any) + const DbDbNameTablesIndexRoute = DbDbNameTablesIndexImport.update({ path: '/db/$dbName/tables/', getParentRoute: () => rootRoute, @@ -51,6 +57,13 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof IndexImport parentRoute: typeof rootRoute } + '/raw/': { + id: '/raw/' + path: '/raw' + fullPath: '/raw' + preLoaderRoute: typeof RawIndexImport + parentRoute: typeof rootRoute + } '/db/$dbName/tables/': { id: '/db/$dbName/tables/' path: '/db/$dbName/tables' @@ -79,6 +92,7 @@ declare module '@tanstack/react-router' { export const routeTree = rootRoute.addChildren({ IndexRoute, + RawIndexRoute, DbDbNameTablesIndexRoute, DbDbNameTablesTableNameDataRoute, DbDbNameTablesTableNameIndexRoute, @@ -93,6 +107,7 @@ export const routeTree = rootRoute.addChildren({ "filePath": "__root.tsx", "children": [ "/", + "/raw/", "/db/$dbName/tables/", "/db/$dbName/tables/$tableName/data", "/db/$dbName/tables/$tableName/" @@ -101,6 +116,9 @@ export const routeTree = rootRoute.addChildren({ "/": { "filePath": "index.tsx" }, + "/raw/": { + "filePath": "raw/index.tsx" + }, "/db/$dbName/tables/": { "filePath": "db/$dbName/tables/index.tsx" }, diff --git a/frontend/src/routes/__root.tsx b/frontend/src/routes/__root.tsx index cb410f6..fb48c19 100644 --- a/frontend/src/routes/__root.tsx +++ b/frontend/src/routes/__root.tsx @@ -61,6 +61,9 @@ function Root() { Home + + Raw +
diff --git a/frontend/src/routes/raw/index.tsx b/frontend/src/routes/raw/index.tsx new file mode 100644 index 0000000..358690b --- /dev/null +++ b/frontend/src/routes/raw/index.tsx @@ -0,0 +1,16 @@ +import Editor from "@monaco-editor/react"; +import { createFileRoute } from "@tanstack/react-router"; + +export const Route = createFileRoute("/raw/")({ + component: Component, +}); + +function Component() { + return ( + + ); +}