-
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.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
10 changed files
with
115 additions
and
32 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
Binary file not shown.
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 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 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 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 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 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,22 @@ | ||
import Link from "next/link"; | ||
import { ArrowLeft } from "lucide-react"; | ||
|
||
export default function ApiLimitCross() { | ||
return ( | ||
<div className="bg-[#0E0A24] min-h-screen flex flex-col"> | ||
<div className="p-4"> | ||
<Link href="/upload" className="text-white"> | ||
<ArrowLeft /> | ||
</Link> | ||
</div> | ||
<div className="flex-grow flex justify-center items-center text-center text-white"> | ||
<div className="border rounded-xl p-14"> | ||
<div className="text-7xl pb-4">404</div> | ||
<div className="md:text-3xl text-xl"> | ||
Exceeded API usage limit<br/> or <br/> Invalid API key. | ||
</div> | ||
</div> | ||
</div> | ||
</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,29 @@ | ||
import { SheetSide } from "@/app/components/SheetSide"; | ||
import { auth } from "../../../../auth"; | ||
import { prisma } from "../../lib/prisma"; | ||
|
||
export async function Sidebar() { | ||
const session = await auth(); | ||
|
||
const user = await prisma.user.findUnique({ | ||
where: { | ||
email: session?.user?.email || "", | ||
}, | ||
include: { | ||
Collection: true, | ||
}, | ||
}); | ||
|
||
const list = user?.Collection || []; | ||
const collectionName = list[0]?.CollectionName; | ||
|
||
return ( | ||
<> | ||
{collectionName === undefined ? ( | ||
<div></div> | ||
) : ( | ||
<SheetSide list={list} collectionName={collectionName} /> | ||
)} | ||
</> | ||
); | ||
} |
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