diff --git a/app/api/galleries/[id]/images/route.ts b/app/api/galleries/[id]/images/route.ts index 9858114..98601e2 100644 --- a/app/api/galleries/[id]/images/route.ts +++ b/app/api/galleries/[id]/images/route.ts @@ -54,8 +54,6 @@ export async function GET( .select('*') .eq('user_id', userId) .single(); - //console.log(subscription) - //console.log(gallery.tier) switch(gallery.tier){ case "Tier 3": if(subscription?.tier!="Tier 3"){ diff --git a/app/api/galleries/route.ts b/app/api/galleries/route.ts index 47ebccf..08664d0 100644 --- a/app/api/galleries/route.ts +++ b/app/api/galleries/route.ts @@ -13,18 +13,15 @@ export async function POST(request: Request) { .from('galleries') .select('*') .ilike('name', `%${search}%`) - //console.log(error) return NextResponse.json(galleries); } else{ // Rest of the code... - console.log(tags) let { data: galleries, error } = await supabase .from('galleries') .select('*') .contains('tags', tags) // Fix: Use contains instead of overlaps .ilike('name', `%${search}%`) - //console.log(error) return NextResponse.json(galleries); } diff --git a/app/gallery/page.tsx b/app/gallery/page.tsx index b6c6fc5..a5d95ae 100644 --- a/app/gallery/page.tsx +++ b/app/gallery/page.tsx @@ -14,7 +14,6 @@ function PageComponent() { useEffect(() => { getData(); - console.log(selectedGallery) }, [selectedGallery]); const closeGallery = () => { @@ -43,7 +42,7 @@ function PageComponent() { aria-hidden="true" >
closeGallery()} >
diff --git a/app/globals.css b/app/globals.css index 552393a..72f0045 100644 --- a/app/globals.css +++ b/app/globals.css @@ -16,23 +16,7 @@ .no-scrollbar::-webkit-scrollbar { display: none; } -.my-masonry-grid { - display: -webkit-box; /* Not needed if autoprefixing */ - display: -ms-flexbox; /* Not needed if autoprefixing */ - display: flex; - margin-left: -30px; /* gutter size offset */ - width: auto; -} -.my-masonry-grid_column { - padding-left: 30px; /* gutter size */ - background-clip: padding-box; -} -/* Style your items */ -.my-masonry-grid_column > div { /* change div to reference your elements you put in */ - background: grey; - margin-bottom: 30px; -} /* Hide scrollbar for IE, Edge and Firefox */ .no-scrollbar { -ms-overflow-style: none; /* IE and Edge */ @@ -63,11 +47,6 @@ } } -@layer base { - * { - @apply border-foreground/20; - } -} .animate-in { animation: animateIn 0.3s ease 0.15s both; diff --git a/app/layout.tsx b/app/layout.tsx index 0a4c0b6..da6ef82 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -26,7 +26,7 @@ export default function RootLayout({
-
+
{children}
diff --git a/app/login/page.tsx b/app/login/page.tsx index ee88e39..d44931b 100644 --- a/app/login/page.tsx +++ b/app/login/page.tsx @@ -30,7 +30,6 @@ export default async function Login({ password, }); - //console.log(error); if (error) { return redirect("/login?message=Could not authenticate user"); } @@ -54,7 +53,6 @@ export default async function Login({ }, }); - //console.log(error); if (error) { return redirect("/login?message=Could not authenticate user"); } @@ -104,14 +102,14 @@ export default async function Login({
Sign In Sign Up diff --git a/components/neroshitron/galleries.tsx b/components/neroshitron/galleries.tsx index c52eeb2..57e90b9 100644 --- a/components/neroshitron/galleries.tsx +++ b/components/neroshitron/galleries.tsx @@ -23,7 +23,6 @@ const Galleries = ({ nsfw, tags, search, gallerySelected }: TagProps) => { gallerySelected(gallery); }; - console.log(tags) const getData = async () => { const galleriesResponse = await fetch(`/api/galleries?search=` + searchState + '&nsfw=' + nsfwState, { @@ -42,7 +41,7 @@ const Galleries = ({ nsfw, tags, search, gallerySelected }: TagProps) => { }, [tagsState]); return ( -
+
{galleries && galleries.map((gallery: any, index) => ( { const renderButtons = () => { return ( -
+
- + {imageCount} {nsfwState && ( - NSFW + NSFW )} {subscription === "Free" && ( - Free + Free )} {subscription === "Tier 1" && ( - Tier 1 + Tier 1 )} {subscription === "Tier 2" && ( - Tier 2 + Tier 2 )} {subscription === "Tier 3" && ( - Tier 3 + Tier 3 )}
-
+ {/*
{tagsState.map((tag, index) => ( @@ -100,11 +100,11 @@ const GalleryThumbnail = ({ id, columns, onSelect, title, showNsfw, nsfw, subscr ))}
-
+
*/}
) : ( -
+
)}
diff --git a/components/neroshitron/navigation_bar.tsx b/components/neroshitron/navigation_bar.tsx index d6c2fc3..653cedb 100644 --- a/components/neroshitron/navigation_bar.tsx +++ b/components/neroshitron/navigation_bar.tsx @@ -22,7 +22,7 @@ export default async function AuthButton() { const heads = headers() const currentPage = heads.get('x-path') - +console.log(currentPage) const getGravatarUrl = () => { if (user == null) { return; @@ -37,12 +37,12 @@ export default async function AuthButton() { const url = getGravatarUrl(); return (
-