From 1f3f300eb3ff640eef448cbc0678aed92a72c0a4 Mon Sep 17 00:00:00 2001 From: Arghya Ghosh <71373838+arghyaxcodes@users.noreply.github.com> Date: Wed, 22 Apr 2026 04:24:11 +0530 Subject: [PATCH 1/5] feat(project): formatted code and minor updates --- src/app/api/releases/route.ts | 2 +- src/app/api/search/route.ts | 2 +- src/app/docs/layout.tsx | 4 +- src/app/layout.config.tsx | 3 +- src/app/robots.ts | 2 +- src/app/static.json/route.ts | 6 +- src/components/Particles.tsx | 5 +- src/components/footer.tsx | 4 +- src/components/home/background-section.tsx | 9 +-- src/components/home/bento-grid-section.tsx | 30 +++---- src/components/home/feature-card.tsx | 2 +- src/components/home/features-section.tsx | 4 +- src/components/home/hero-section.tsx | 4 +- src/components/home/home-tabs.tsx | 8 +- src/components/home/index.ts | 13 ++-- src/components/home/underline-tabs.tsx | 4 +- src/components/icons.tsx | 2 +- src/components/logo.tsx | 3 +- src/components/magicui/ripple.tsx | 7 +- src/components/providers/lenis-provider.tsx | 5 +- src/components/ui/accordion.tsx | 4 +- src/components/ui/animated-counter.tsx | 2 +- src/components/ui/button.tsx | 2 +- src/components/ui/card.tsx | 10 +-- src/components/ui/input.tsx | 2 +- src/components/ui/tabs.tsx | 6 +- src/components/ui/textarea.tsx | 2 +- src/hooks/index.ts | 2 +- src/hooks/useGitHubStats.ts | 86 +++++++++++---------- src/lib/github.ts | 76 ++++++++++++++++++ src/lib/utils.ts | 2 +- src/mdx-components.tsx | 27 ++++++- 32 files changed, 218 insertions(+), 122 deletions(-) diff --git a/src/app/api/releases/route.ts b/src/app/api/releases/route.ts index 530f6101..493858e8 100644 --- a/src/app/api/releases/route.ts +++ b/src/app/api/releases/route.ts @@ -1,5 +1,5 @@ +import { type NextRequest, NextResponse } from "next/server"; import { fetchGitHubReleases } from "@/lib/github"; -import { NextResponse, NextRequest } from "next/server"; export const revalidate = 86400; // Revalidate every 24 hours diff --git a/src/app/api/search/route.ts b/src/app/api/search/route.ts index 89faa89c..ab1399bf 100644 --- a/src/app/api/search/route.ts +++ b/src/app/api/search/route.ts @@ -1,5 +1,5 @@ -import { programsSource, source } from "@/lib/source"; import { createSearchAPI } from "fumadocs-core/search/server"; +import { programsSource, source } from "@/lib/source"; export const { GET } = createSearchAPI("advanced", { language: "english", diff --git a/src/app/docs/layout.tsx b/src/app/docs/layout.tsx index 7fe91ff7..1e6ebc0b 100644 --- a/src/app/docs/layout.tsx +++ b/src/app/docs/layout.tsx @@ -1,7 +1,7 @@ +import { DocsLayout, type DocsLayoutProps } from "fumadocs-ui/layouts/notebook"; +import type { ReactNode } from "react"; import { baseOptions } from "@/app/layout.config"; import { source } from "@/lib/source"; -import { DocsLayout, DocsLayoutProps } from "fumadocs-ui/layouts/notebook"; -import type { ReactNode } from "react"; const docsLayoutOptions: DocsLayoutProps = { tree: source.pageTree, diff --git a/src/app/layout.config.tsx b/src/app/layout.config.tsx index 2a5662fd..013335d5 100644 --- a/src/app/layout.config.tsx +++ b/src/app/layout.config.tsx @@ -1,6 +1,6 @@ -import Logo from "@/components/logo"; import type { BaseLayoutProps, LinkItemType } from "fumadocs-ui/layouts/shared"; import { AlbumIcon, HeartIcon } from "lucide-react"; +import Logo from "@/components/logo"; /** * Shared layout configurations @@ -14,6 +14,7 @@ export const baseOptions: BaseLayoutProps = { title: ( <> + Javaistic ), }, diff --git a/src/app/robots.ts b/src/app/robots.ts index f8661304..be501ff8 100644 --- a/src/app/robots.ts +++ b/src/app/robots.ts @@ -1,5 +1,5 @@ -import { baseUrl } from "@/lib/metadata"; import type { MetadataRoute } from "next"; +import { baseUrl } from "@/lib/metadata"; export default function robots(): MetadataRoute.Robots { return { diff --git a/src/app/static.json/route.ts b/src/app/static.json/route.ts index 88dfda3a..d03bdf74 100644 --- a/src/app/static.json/route.ts +++ b/src/app/static.json/route.ts @@ -1,7 +1,7 @@ -import { programsSource, source } from "@/lib/source"; -import { StructuredData } from "fumadocs-core/mdx-plugins"; -import { type DocumentRecord } from "fumadocs-core/search/algolia"; +import type { StructuredData } from "fumadocs-core/mdx-plugins"; +import type { DocumentRecord } from "fumadocs-core/search/algolia"; import { NextResponse } from "next/server"; +import { programsSource, source } from "@/lib/source"; export const revalidate = false; diff --git a/src/components/Particles.tsx b/src/components/Particles.tsx index c59abf18..00f4f25e 100644 --- a/src/components/Particles.tsx +++ b/src/components/Particles.tsx @@ -1,5 +1,6 @@ -import React, { useEffect, useRef } from "react"; -import { Renderer, Camera, Geometry, Program, Mesh } from "ogl"; +import { Camera, Geometry, Mesh, Program, Renderer } from "ogl"; +import type React from "react"; +import { useEffect, useRef } from "react"; interface ParticlesProps { particleCount?: number; diff --git a/src/components/footer.tsx b/src/components/footer.tsx index b20e994b..9ec41900 100644 --- a/src/components/footer.tsx +++ b/src/components/footer.tsx @@ -1,4 +1,6 @@ "use client"; +import Image from "next/image"; +import Link from "next/link"; import { DiscordIcon, GitHubIcon, @@ -6,8 +8,6 @@ import { TwitterIcon, } from "@/components/icons"; import Logo from "@/components/logo"; -import Link from "next/link"; -import Image from "next/image"; const footerNav = { "Getting Started": [ diff --git a/src/components/home/background-section.tsx b/src/components/home/background-section.tsx index b7b5d028..665b3e18 100644 --- a/src/components/home/background-section.tsx +++ b/src/components/home/background-section.tsx @@ -10,16 +10,9 @@ export function BackgroundSection({ children }: BackgroundSectionProps) { return (
- {/* Development theme indicator */} - {process.env.NODE_ENV === "development" && mounted && ( -
- Theme: {isDarkMode ? "Dark" : "Light"} -
- )} - {/* Background */}
- + @@ -55,7 +55,7 @@ export function BentoGridSection() { ) : ( -
+
)} @@ -202,7 +202,7 @@ export function BentoGridSection() { }} transition={{ duration: 0.3, ease: "easeOut" }} > - + - + -