From 340dde4e0586bc8cbeb4ff94866ee21ec92c8d11 Mon Sep 17 00:00:00 2001 From: Raditya Harya Date: Wed, 8 May 2024 16:37:27 +0000 Subject: [PATCH] Landing & footer --- src/app/api/workflow/[id]/delete/route.ts | 3 - src/app/layout.tsx | 2 + src/app/page.tsx | 4 +- src/app/utils/reactFlowToWorkflow.ts | 2 + src/app/utils/runWorkflow.ts | 2 +- src/app/workflow/Builder.tsx | 9 +- src/app/workflow/Flow.tsx | 14 +- src/app/workflows/WorkflowGrid.tsx | 19 +- src/app/workflows/page.tsx | 2 +- src/components/LandingPage/BuilderDemo.tsx | 427 ++++++++++++++++++ src/components/LandingPage/page-header.tsx | 25 +- src/components/main-footer.tsx | 155 +++++++ src/components/main-nav.tsx | 17 +- src/components/nodes/Library/Playlist.tsx | 2 +- .../nodes/Library/SaveAsReplace.tsx | 2 +- src/hooks/useBasicNodeState.ts | 1 - src/server/db/schema.ts | 6 +- 17 files changed, 632 insertions(+), 60 deletions(-) create mode 100644 src/components/LandingPage/BuilderDemo.tsx create mode 100644 src/components/main-footer.tsx diff --git a/src/app/api/workflow/[id]/delete/route.ts b/src/app/api/workflow/[id]/delete/route.ts index 56711af..04accc1 100644 --- a/src/app/api/workflow/[id]/delete/route.ts +++ b/src/app/api/workflow/[id]/delete/route.ts @@ -1,12 +1,9 @@ import { Logger } from "@/lib/log"; import { authOptions } from "@/server/auth"; -import { db } from "@/server/db"; -import { eq } from "drizzle-orm"; import { getServerSession } from "next-auth"; import { type NextRequest, NextResponse } from "next/server"; import { isUUID } from "validator"; import { deleteWorkflowJob } from "~/lib/workflow/utils/workflowQueue"; -import { workflowJobs } from "~/server/db/schema"; const log = new Logger("/api/workflow/[id]"); diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 623b305..be9ed9d 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -3,6 +3,7 @@ import "~/styles/globals.css"; import { Toaster } from "@/components/ui/sonner"; import { getServerSession } from "next-auth"; import { Inter } from "next/font/google"; +import Footer from "~/components/main-footer"; import { SiteNav } from "~/components/main-nav"; import NextAuthProvider from "~/providers/NextAuthProvider"; import SWRCacheProvider from "~/providers/SWRCacheProvider"; @@ -34,6 +35,7 @@ export default async function RootLayout({ {children} +