chore: cleanup

This commit is contained in:
Bereket Engida
2025-01-06 14:30:39 +03:00
parent 753f930e88
commit 9f2e45b8c7
525 changed files with 218 additions and 1357 deletions

View File

@@ -1,4 +1,3 @@
import React from "react";
import { useId } from "react";
export function Features() {

View File

@@ -1,7 +1,7 @@
"use client";
import React, { useState } from "react";
import { Highlight, themes } from "prism-react-renderer";
import { useState } from "react";
import { Highlight } from "prism-react-renderer";
import { Check, Copy } from "lucide-react";
import { Button } from "@/components/ui/button";
import theme from "./theme";

View File

@@ -1,4 +1,3 @@
import React from "react";
import { cn } from "@/lib/utils";
import { X } from "lucide-react";

View File

@@ -1,4 +1,4 @@
import React, { useState } from "react";
import { useState } from "react";
import { TabBar } from "./tab-bar";
import { CodeEditor } from "./code-editor";
import { useAtom } from "jotai";

View File

@@ -1,4 +1,3 @@
import React from "react";
import { CodeTab } from "./code-tabs";
interface File {

View File

@@ -1,4 +1,4 @@
import { ChevronLeft, Copy, Mail, Moon, PlusIcon, Sun } from "lucide-react";
import { Moon, PlusIcon, Sun } from "lucide-react";
import {
Dialog,
DialogContent,
@@ -28,8 +28,6 @@ import { useAtom } from "jotai";
import { optionsAtom } from "./store";
import { useTheme } from "next-themes";
import { ScrollArea } from "../ui/scroll-area";
import { Button } from "../ui/button";
import Link from "next/link";
const frameworks = [
{
title: "Next.js",

View File

@@ -12,10 +12,8 @@ import {
import { Checkbox } from "@/components/ui/checkbox";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { Key, Loader2 } from "lucide-react";
import { Key } from "lucide-react";
import Link from "next/link";
import { useRouter } from "next/navigation";
import { useState } from "react";
import { useAtom } from "jotai";
import { optionsAtom } from "./store";
import { socialProviders } from "./social-provider";

View File

@@ -14,7 +14,6 @@ import { Label } from "@/components/ui/label";
import { useState } from "react";
import Image from "next/image";
import { Loader2, X } from "lucide-react";
import { toast } from "sonner";
import { useRouter } from "next/navigation";
export function SignUp() {

View File

@@ -1,5 +1,4 @@
"use client";
import React from "react";
import {
Globe2Icon,

View File

@@ -11,7 +11,6 @@ import { Highlight, themes } from "prism-react-renderer";
import { AnimatePresence, motion, MotionConfig } from "framer-motion";
import { Builder } from "../builder";
import { Spotlight } from "./spotlight";
import { DropdownMenu, DropdownMenuTrigger } from "../ui/dropdown-menu";
import { GradientBG } from "./gradient-bg";
const tabs: { name: "auth.ts" | "client.ts"; code: string }[] = [

View File

@@ -1,4 +1,3 @@
import React from "react";
import { cn } from "@/lib/utils";
type SpotlightProps = {

View File

@@ -1,4 +1,3 @@
import { Card, CardContent } from "@/components/ui/card";
import {
Table,
TableBody,
@@ -8,8 +7,7 @@ import {
TableRow,
} from "@/components/ui/table";
import { Badge } from "@/components/ui/badge";
import { CircleDot, Key, Link } from "lucide-react";
import { Label } from "../ui/label";
import { Key, Link } from "lucide-react";
import {
Tooltip,
TooltipContent,

View File

@@ -1,4 +1,3 @@
import React from "react";
import Link from "next/link";
import { ThemeToggle } from "@/components/theme-toggler";
import { NavbarMobile, NavbarMobileBtn } from "./nav-mobile";

View File

@@ -1,13 +1,7 @@
"use client";
import { Menu, Sun, X } from "lucide-react";
import { Menu } from "lucide-react";
import Link from "next/link";
import {
Fragment,
createContext,
useContext,
useEffect,
useState,
} from "react";
import { Fragment, createContext, useContext, useState } from "react";
import {
Accordion,
AccordionContent,
@@ -16,7 +10,7 @@ import {
} from "@/components/ui/accordion";
import { AnimatePresence, FadeIn } from "@/components/ui/fade-in";
import { contents, examples } from "./sidebar-content";
import { MobileThemeToggle, ThemeToggle } from "./theme-toggler";
import { MobileThemeToggle } from "./theme-toggler";
import { usePathname } from "next/navigation";
interface NavbarMobileContextProps {

View File

@@ -17,10 +17,6 @@ import {
} from "./ui/select";
import { loglib } from "@loglib/tracker";
import { cn } from "@/lib/utils";
import { GitHubIcon } from "@/app/changelogs/_components/icons";
import Link from "next/link";
import { Button } from "./ui/button";
import { Separator } from "./ui/separator";
export default function ArticleLayout() {
const [currentOpen, setCurrentOpen] = useState<number>(0);

View File

@@ -1,13 +1,10 @@
import {
Chrome,
CircleHelp,
Key,
LucideAArrowDown,
LucideIcon,
Mail,
Mailbox,
MailboxIcon,
Mails,
Phone,
ScanFace,
ShieldCheck,

View File

@@ -1,8 +1,7 @@
"use client";
import { Moon, MoonIcon, Sun } from "lucide-react";
import { Moon, Sun } from "lucide-react";
import { useTheme } from "next-themes";
import * as React from "react";
import { Button } from "@/components/ui/button";
import {
DropdownMenu,

View File

@@ -2,11 +2,6 @@
import * as React from "react";
import * as RechartsPrimitive from "recharts";
import {
NameType,
Payload,
ValueType,
} from "recharts/types/component/DefaultTooltipContent";
import { cn } from "@/lib/utils";

View File

@@ -1,5 +1,5 @@
"use client";
import React, { useId, useMemo } from "react";
import { useId } from "react";
import { useEffect, useState } from "react";
import Particles, { initParticlesEngine } from "@tsparticles/react";
import type { Container, SingleOrMultiple } from "@tsparticles/engine";