Initial commit

This commit is contained in:
Rami Bitar
2026-05-02 09:18:15 -04:00
commit 7348e430c0
96 changed files with 15753 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import { readSchema } from "~/lib/schema.server";
import EditorClient from "~/components/EditorClient";
export const dynamic = "force-dynamic";
export default async function EditPage({
params,
}: {
params: Promise<{ path?: string[] }>;
}) {
const { path } = await params;
const segments = (path ?? []).filter(Boolean);
const route = segments.length === 0 ? "/" : "/" + segments.join("/");
const schema = await readSchema();
return (
<div style={{ height: "100vh", width: "100vw" }}>
<EditorClient initialSchema={schema} initialPath={route} />
</div>
);
}