- Added remote image patterns to the Next.js configuration for enhanced image handling. - Updated TypeScript configuration to exclude the 'implement' directory. - Refactored layout component to fetch initial authentication token and pass it to Providers. - Replaced CanvasToolbar with CanvasSidebar for improved UI layout and functionality. - Enhanced Canvas component with new drag-and-drop file upload capabilities and batch node movement. - Updated various node components to support new status handling and improved user interactions. - Added debounced saving for note and prompt nodes to optimize performance.
40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Manrope } from "next/font/google";
|
|
import "./globals.css";
|
|
import { cn } from "@/lib/utils";
|
|
import { Providers } from "@/components/providers";
|
|
import { Toaster } from "@/components/ui/sonner";
|
|
import { InitUser } from "@/components/init-user";
|
|
import { getToken } from "@/lib/auth-server";
|
|
|
|
const manrope = Manrope({ subsets: ["latin"], variable: "--font-sans" });
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Create Next App",
|
|
description: "Generated by create next app",
|
|
};
|
|
|
|
export default async function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
const initialToken = await getToken();
|
|
|
|
return (
|
|
<html
|
|
lang="de"
|
|
suppressHydrationWarning
|
|
className={cn("h-full", "antialiased", "font-sans", manrope.variable)}
|
|
>
|
|
<body className="min-h-full flex flex-col">
|
|
<Providers initialToken={initialToken}>
|
|
<InitUser />
|
|
{children}
|
|
<Toaster />
|
|
</Providers>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|