mirror of
https://github.com/ershisan99/db-studio.git
synced 2025-12-18 12:33:07 +00:00
add monaco editor placeholder
This commit is contained in:
@@ -61,6 +61,9 @@ function Root() {
|
||||
<Link to="/" className="[&.active]:font-bold">
|
||||
Home
|
||||
</Link>
|
||||
<Link to="/raw" className="[&.active]:font-bold">
|
||||
Raw
|
||||
</Link>
|
||||
</div>
|
||||
<div className={"flex items-center gap-2"}>
|
||||
<ModeToggle />
|
||||
|
||||
16
frontend/src/routes/raw/index.tsx
Normal file
16
frontend/src/routes/raw/index.tsx
Normal file
@@ -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 (
|
||||
<Editor
|
||||
height="90vh"
|
||||
defaultLanguage="sql"
|
||||
defaultValue="SELECT * FROM table"
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user