mirror of
https://github.com/open-gitagent/langship.sh.git
synced 2026-08-03 07:21:04 +02:00
- Introduced NodePalette component to display draggable nodes categorized by type. - Implemented PipelineCanvas component to manage the flow of nodes and connections. - Integrated drag-and-drop functionality for adding nodes to the canvas. - Created a catalog of node types with associated metadata for rendering in the palette. - Established conversion functions between pipeline definitions and React Flow state. - Added inspector for editing node properties and managing connections. - Updated Next.js configuration for production and development environments. - Removed obsolete embed.go file and added nginx configuration for serving the app. - Updated package dependencies including @xyflow/react for enhanced functionality. - Added TypeScript definitions for CSS imports to support styling in components.
32 lines
843 B
TypeScript
32 lines
843 B
TypeScript
import type { Metadata } from "next";
|
|
import "./globals.css";
|
|
|
|
import { AppSidebar } from "@/components/app-sidebar";
|
|
import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "flow",
|
|
description: "Durable n8n-compatible workflow engine",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<body className="min-h-screen bg-background font-sans antialiased">
|
|
<SidebarProvider
|
|
style={{ "--sidebar-width": "17rem" } as React.CSSProperties}
|
|
>
|
|
<AppSidebar />
|
|
<SidebarInset>
|
|
<div className="flex min-h-0 flex-1 flex-col">{children}</div>
|
|
</SidebarInset>
|
|
</SidebarProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|