Initial SFERA platform baseline

This commit is contained in:
2026-05-16 19:03:49 +03:00
commit 3b845c8fce
282 changed files with 55045 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import { redirect } from "next/navigation";
export default async function HomePage({
searchParams
}: Readonly<{
searchParams?: Promise<{ lang?: string; mode?: string; project?: string; routine?: string }>;
}>) {
const params = await searchParams;
const nextParams = new URLSearchParams();
if (params?.lang === "en") {
nextParams.set("lang", "en");
}
for (const key of ["project", "mode", "routine"] as const) {
const value = params?.[key];
if (value) {
nextParams.set(key, value);
}
}
const suffix = nextParams.size > 0 ? `?${nextParams.toString()}` : "";
redirect(`/editor${suffix}`);
}