From 7a74c783d558d77762761b05994445b58c165cdb Mon Sep 17 00:00:00 2001 From: Sohan Rout Date: Thu, 30 Jul 2026 03:24:23 +0530 Subject: [PATCH] Fix : bumped next version --- ._.DS_Store | Bin 4096 -> 0 bytes app/components/ui/DailyDSAEmbed.jsx | 0 app/contexts/UserContext.jsx | 3 +- app/globals.css | 14 +- app/layout.jsx | 16 +- .../linkedList/types/singly/animation.jsx | 39 - .../linkedList/types/singly/content.jsx | 2 + .../linkedList/types/singly/page.jsx | 129 +- .../linkedList/types/singly/quiz.jsx | 3 +- eslint.config.mjs | 13 +- lib/modulesMap.js | 1 + lib/supabase.js | 10 +- package-lock.json | 4566 ++++++++--------- package.json | 68 +- postcss.config.js | 6 - public/sitemap-0.xml | 88 +- tailwind.config.js | 33 - 17 files changed, 2377 insertions(+), 2614 deletions(-) delete mode 100755 ._.DS_Store mode change 100644 => 100755 app/components/ui/DailyDSAEmbed.jsx delete mode 100755 postcss.config.js delete mode 100755 tailwind.config.js diff --git a/._.DS_Store b/._.DS_Store deleted file mode 100755 index 28c42fb20a1f27e695fb64323501fc6476578b13..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIhYCu0iY;W;207T z1d#ygV5q>VXjE`C1V%$(Gz3ONU^E0qLtr!nMnhmU1V%$(Gz3ONU^E1%90H6$^FSC3 z { const [user, setUser] = useState(null); - const supabase = createClientComponentClient(); useEffect(() => { const getSessionAndUser = async () => { diff --git a/app/globals.css b/app/globals.css index 78ce8c8..678bc30 100755 --- a/app/globals.css +++ b/app/globals.css @@ -1,8 +1,16 @@ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap'); +@import "tailwindcss"; +@plugin "@tailwindcss/typography"; -@tailwind base; -@tailwind components; -@tailwind utilities; +@custom-variant dark (&:where(.dark, .dark *)); + +@theme { + --font-poppins: "Poppins", sans-serif; +} + +@source "./**/*.{js,ts,jsx,tsx}"; +@source "../pages/**/*.{js,ts,jsx,tsx}"; +@source "../components/**/*.{js,ts,jsx,tsx}"; body { font-family: 'Poppins', sans-serif; diff --git a/app/layout.jsx b/app/layout.jsx index a72a0a7..e1cdea5 100755 --- a/app/layout.jsx +++ b/app/layout.jsx @@ -4,7 +4,7 @@ import { SpeedInsights } from "@vercel/speed-insights/next" import { AuthProvider } from '@/app/contexts/AuthContext'; import { UserProvider } from '@/app/contexts/UserContext'; import ClientLayoutWrapper from "@/app/components/ui/ClientLayoutWrapper"; -import { createServerComponentClient } from "@supabase/auth-helpers-nextjs"; +import { createServerClient } from "@supabase/ssr"; import { cookies } from "next/headers"; const GA_ID = process.env.NEXT_PUBLIC_GA_ID; @@ -57,7 +57,19 @@ export const metadata = { }; export default async function RootLayout({ children }) { - const supabase = createServerComponentClient({ cookies }); + const cookieStore = await cookies(); + const supabase = createServerClient( + process.env.NEXT_PUBLIC_SUPABASE_URL, + process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY, + { + cookies: { + getAll: () => cookieStore.getAll(), + setAll: () => { + // Server Components can't set cookies; middleware/route handlers refresh the session. + }, + }, + } + ); const { data: { session }, } = await supabase.auth.getSession(); diff --git a/app/visualizer/linkedList/types/singly/animation.jsx b/app/visualizer/linkedList/types/singly/animation.jsx index 42bd79c..c4a520f 100755 --- a/app/visualizer/linkedList/types/singly/animation.jsx +++ b/app/visualizer/linkedList/types/singly/animation.jsx @@ -1,13 +1,6 @@ 'use client'; import React, { useState, useRef, useEffect } from 'react'; -import Footer from '@/app/components/footer'; import ResetButton from '@/app/components/ui/resetButton'; -import ExploreOther from '@/app/components/ui/exploreOther'; -import Content from "@/app/visualizer/linkedList/types/singly/content"; -import Quiz from '@/app/visualizer/linkedList/types/singly/quiz'; -import CodeBlock from "@/app/visualizer/linkedList/types/singly/codeBlock"; -import BackToTop from '@/app/components/ui/backtotop'; -import GoBackButton from "@/app/components/ui/goback"; const SinglyLinkedListVisualizer = () => { const [inputValue, setInputValue] = useState(''); @@ -90,17 +83,6 @@ const SinglyLinkedListVisualizer = () => { return (
- {/* go back block here */} -
- -
- - {/* main logic here */} -

- Singly Linked List -

-
-

Visualize Singly Linked List Operations

@@ -211,28 +193,7 @@ const SinglyLinkedListVisualizer = () => {
)} - -

- Test Your Knowledge before moving forward! -

- - - - - -
-
-
-
- -