forked from rahulsainlll/git-trace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
33ed30d
commit e8c8939
Showing
34 changed files
with
1,050 additions
and
1,851 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,3 @@ yarn-error.log* | |
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
"use server"; | ||
import { db } from "@/db"; | ||
import { auth, currentUser } from "@clerk/nextjs/server"; | ||
import { projects } from "@/db/schema"; | ||
import { redirect } from "next/navigation"; | ||
|
||
export async function createProject(formData: FormData) { | ||
const { userId } = auth(); | ||
|
||
const project = { | ||
name: formData.get("name") as string, | ||
description: formData.get("description") as string, | ||
url: formData.get("url") as string, | ||
userId, | ||
}; | ||
|
||
const [newProject] = await db | ||
.insert(projects) | ||
.values(project) | ||
.returning({ insertedId: projects.id }); | ||
|
||
redirect(`/projects/${newProject.insertedId}/instructions`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default function Page(){ | ||
return ( | ||
<div> | ||
protactive Page | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default function UserLayout ({children} : {children: React.ReactNode}) { | ||
return ( | ||
<div className="container w-full max-w-screen-xl mx-auto py-10 px-2.5 lg:px-20"> | ||
{children} | ||
</div> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,22 @@ | ||
import "@radix-ui/themes/styles.css"; | ||
import { Theme, ThemePanel } from "@radix-ui/themes"; | ||
import type { Metadata } from "next"; | ||
import { Inter } from "next/font/google"; | ||
import { | ||
ClerkProvider, | ||
} from "@clerk/nextjs"; | ||
import "./globals.css"; | ||
import NavBar from "./NavBar"; | ||
|
||
const inter = Inter({ subsets: ["latin"], variable: "--font-inter" }); | ||
|
||
export const metadata: Metadata = { | ||
title: "Trace ↯", | ||
description: "Generated by create next app", | ||
}; | ||
import PageHeader from "@/components/page-header"; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: Readonly<{ | ||
}: { | ||
children: React.ReactNode; | ||
}>) { | ||
}) { | ||
return ( | ||
<html lang="en" data-theme="wireframe"> | ||
<body className={inter.variable}> | ||
<Theme scaling="110%"> | ||
<NavBar /> | ||
<main className="p-5">{children}</main> | ||
</Theme> | ||
</body> | ||
</html> | ||
<ClerkProvider> | ||
<html lang="en"> | ||
<body> | ||
<PageHeader /> | ||
{children} | ||
</body> | ||
</html> | ||
</ClerkProvider> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,27 @@ | ||
import { Input } from "@/components/ui/input"; | ||
import Image from "next/image"; | ||
|
||
export default function Home() { | ||
return ( | ||
<div>yoo</div> | ||
<div className="container w-full max-w-screen-xl mx-auto py-10 px-2.5 lg:px-20"> | ||
<h1 className="font-medium text-3xl text-gray-900 mb-2"> | ||
Find repository | ||
</h1> | ||
<p className="text-base italic max-w-prose text-muted-foreground mb-4"> | ||
Required fields are marked with an asterisk (*). | ||
</p> | ||
|
||
<div className="max-w-xl flex gap-4"> | ||
<div> | ||
<p>Owner Name </p> | ||
<Input /> | ||
</div> | ||
|
||
<div> | ||
<p>Repository Name *</p> | ||
<Input /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.