remove heroicons
All checks were successful
Deploy / deploy (ubuntu-latest, 2.44.0) (push) Successful in 1m45s
All checks were successful
Deploy / deploy (ubuntu-latest, 2.44.0) (push) Successful in 1m45s
Took 12 minutes
This commit is contained in:
parent
1f18d6fb45
commit
ed67edde09
@ -14,7 +14,6 @@
|
|||||||
"lint": "next lint"
|
"lint": "next lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@heroicons/react": "^2.1.5",
|
|
||||||
"@radix-ui/react-collapsible": "^1.1.1",
|
"@radix-ui/react-collapsible": "^1.1.1",
|
||||||
"@radix-ui/react-dialog": "^1.1.2",
|
"@radix-ui/react-dialog": "^1.1.2",
|
||||||
"@radix-ui/react-icons": "^1.3.0",
|
"@radix-ui/react-icons": "^1.3.0",
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
import { ReactElement, useEffect, useState } from "react";
|
import { ReactElement, useEffect, useState } from "react";
|
||||||
import { usePathname } from "next/navigation";
|
import { usePathname } from "next/navigation";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { ChevronLeftIcon, ChevronRightIcon } from "@heroicons/react/24/outline";
|
|
||||||
import { Separator } from "@/components/ui/separator";
|
import { Separator } from "@/components/ui/separator";
|
||||||
import { DateTime } from "luxon";
|
import { DateTime } from "luxon";
|
||||||
import SimpleTooltip from "@/components/simple-tooltip";
|
import SimpleTooltip from "@/components/simple-tooltip";
|
||||||
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
||||||
|
|
||||||
const DocsFooter = ({
|
const DocsFooter = ({
|
||||||
pages,
|
pages,
|
||||||
@ -62,7 +62,7 @@ const DocsFooter = ({
|
|||||||
href={`/${previous.slug}` || "#"}
|
href={`/${previous.slug}` || "#"}
|
||||||
draggable={false}
|
draggable={false}
|
||||||
>
|
>
|
||||||
<ChevronLeftIcon className="pb-1 w-4 h-4 group-hover:-translate-x-0.5 transition-all transform-gpu" />
|
<ChevronLeft className="pb-1 w-4 h-4 group-hover:-translate-x-0.5 transition-all transform-gpu" />
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<h1 className="text-sm opacity-75">Previous</h1>
|
<h1 className="text-sm opacity-75">Previous</h1>
|
||||||
<p>{previous.title}</p>
|
<p>{previous.title}</p>
|
||||||
@ -81,7 +81,7 @@ const DocsFooter = ({
|
|||||||
<h1 className="text-sm opacity-75">Next</h1>
|
<h1 className="text-sm opacity-75">Next</h1>
|
||||||
<p>{next.title}</p>
|
<p>{next.title}</p>
|
||||||
</div>
|
</div>
|
||||||
<ChevronRightIcon className="pb-1 w-4 h-4 group-hover:translate-x-0.5 transition-all transform-gpu" />
|
<ChevronRight className="pb-1 w-4 h-4 group-hover:translate-x-0.5 transition-all transform-gpu" />
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,11 +4,8 @@ import { ReactElement, ReactNode } from "react";
|
|||||||
import AnimatedGridPattern from "@/components/ui/animated-grid-pattern";
|
import AnimatedGridPattern from "@/components/ui/animated-grid-pattern";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import {
|
|
||||||
ArrowTopRightOnSquareIcon,
|
|
||||||
EnvelopeIcon,
|
|
||||||
} from "@heroicons/react/24/outline";
|
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
import { ExternalLink, Mail } from "lucide-react";
|
||||||
|
|
||||||
const links = {
|
const links = {
|
||||||
Resources: [
|
Resources: [
|
||||||
@ -69,9 +66,7 @@ const Footer = (): ReactElement => (
|
|||||||
/>
|
/>
|
||||||
<SocialLink
|
<SocialLink
|
||||||
name="Email"
|
name="Email"
|
||||||
logo={
|
logo={<Mail className="opacity-95 w-6 h-6" />}
|
||||||
<EnvelopeIcon className="opacity-95 w-6 h-6" />
|
|
||||||
}
|
|
||||||
href="mailto:support@pulseapp.cc"
|
href="mailto:support@pulseapp.cc"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -187,7 +182,7 @@ const FooterLink = ({
|
|||||||
{name}
|
{name}
|
||||||
</span>
|
</span>
|
||||||
{shortName && <span className="flex sm:hidden">{shortName}</span>}
|
{shortName && <span className="flex sm:hidden">{shortName}</span>}
|
||||||
{external && <ArrowTopRightOnSquareIcon className="w-3.5 h-3.5" />}
|
{external && <ExternalLink className="w-3.5 h-3.5" />}
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -9,10 +9,10 @@ import {
|
|||||||
CommandItem,
|
CommandItem,
|
||||||
CommandList,
|
CommandList,
|
||||||
} from "@/components/ui/command";
|
} from "@/components/ui/command";
|
||||||
import { MagnifyingGlassIcon } from "@heroicons/react/24/outline";
|
|
||||||
import { Input } from "@/components/ui/input";
|
import { Input } from "@/components/ui/input";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import { AppRouterInstance } from "next/dist/shared/lib/app-router-context.shared-runtime";
|
import { AppRouterInstance } from "next/dist/shared/lib/app-router-context.shared-runtime";
|
||||||
|
import { Search } from "lucide-react";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The dialog for quickly searching the docs.
|
* The dialog for quickly searching the docs.
|
||||||
@ -53,7 +53,7 @@ const QuickSearchDialog = ({
|
|||||||
onClick={() => setOpen(true)}
|
onClick={() => setOpen(true)}
|
||||||
>
|
>
|
||||||
<div className="absolute top-2.5 left-3 z-10">
|
<div className="absolute top-2.5 left-3 z-10">
|
||||||
<MagnifyingGlassIcon className="w-[1.15rem] h-[1.15rem]" />
|
<Search className="w-[1.15rem] h-[1.15rem]" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Input
|
<Input
|
||||||
|
@ -1,17 +1,13 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { ReactElement, useEffect, useRef, useState } from "react";
|
import { ReactElement, useEffect, useRef, useState } from "react";
|
||||||
import {
|
|
||||||
ArrowLongRightIcon,
|
|
||||||
ArrowLongUpIcon,
|
|
||||||
Bars3CenterLeftIcon,
|
|
||||||
} from "@heroicons/react/24/outline";
|
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
import { truncateText } from "@/lib/string";
|
import { truncateText } from "@/lib/string";
|
||||||
import { motion, useInView } from "framer-motion";
|
import { motion, useInView } from "framer-motion";
|
||||||
import { Separator } from "@/components/ui/separator";
|
import { Separator } from "@/components/ui/separator";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
|
import { AlignLeftIcon, ArrowUpFromDot, MoveRight } from "lucide-react";
|
||||||
|
|
||||||
type Header = {
|
type Header = {
|
||||||
id: string;
|
id: string;
|
||||||
@ -90,7 +86,7 @@ const OnThisPage = ({ page }: { page: DocsContentMetadata }): ReactElement => {
|
|||||||
>
|
>
|
||||||
{/* Title */}
|
{/* Title */}
|
||||||
<div className="flex gap-2.5 items-center">
|
<div className="flex gap-2.5 items-center">
|
||||||
<Bars3CenterLeftIcon className="w-5 h-5" />
|
<AlignLeftIcon className="w-5 h-5" />
|
||||||
<h1>On This Page</h1>
|
<h1>On This Page</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -157,7 +153,7 @@ const Footer = ({ page }: { page: DocsContentMetadata }): ReactElement => {
|
|||||||
draggable={false}
|
draggable={false}
|
||||||
>
|
>
|
||||||
<span>Edit this page on GitHub</span>
|
<span>Edit this page on GitHub</span>
|
||||||
<ArrowLongRightIcon className="w-4 h-4 group-hover:translate-x-0.5 transition-all transform-gpu" />
|
<MoveRight className="w-4 h-4 group-hover:translate-x-px transition-all transform-gpu" />
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
{/* Scroll to Top */}
|
{/* Scroll to Top */}
|
||||||
@ -177,7 +173,7 @@ const Footer = ({ page }: { page: DocsContentMetadata }): ReactElement => {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<span>Scroll to Top</span>
|
<span>Scroll to Top</span>
|
||||||
<ArrowLongUpIcon className="w-4 h-4 group-hover:translate-x-0.5 transition-all transform-gpu" />
|
<ArrowUpFromDot className="w-4 h-4 group-hover:-translate-y-px transition-all transform-gpu" />
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -11,7 +11,7 @@ import Link from "next/link";
|
|||||||
import { usePathname } from "next/navigation";
|
import { usePathname } from "next/navigation";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
import { AnimatePresence, motion } from "framer-motion";
|
import { AnimatePresence, motion } from "framer-motion";
|
||||||
import { ChevronRightIcon } from "@heroicons/react/24/outline";
|
import { ChevronRight } from "lucide-react";
|
||||||
|
|
||||||
const SidebarLinks = ({
|
const SidebarLinks = ({
|
||||||
pages,
|
pages,
|
||||||
@ -86,7 +86,7 @@ const CategoryItem = ({
|
|||||||
animate={{ rotate: isOpen ? 90 : 180 }}
|
animate={{ rotate: isOpen ? 90 : 180 }}
|
||||||
transition={{ duration: 0.2 }}
|
transition={{ duration: 0.2 }}
|
||||||
>
|
>
|
||||||
<ChevronRightIcon className="w-4 h-4" />
|
<ChevronRight className="w-4 h-4" />
|
||||||
</motion.div>
|
</motion.div>
|
||||||
)}
|
)}
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -5,7 +5,7 @@ import SidebarLinks from "@/components/sidebar/sidebar-links";
|
|||||||
import ThemeSwitcher from "@/components/theme-switcher";
|
import ThemeSwitcher from "@/components/theme-switcher";
|
||||||
import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet";
|
import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet";
|
||||||
import QuickSearchDialog from "@/components/navbar/search-dialog";
|
import QuickSearchDialog from "@/components/navbar/search-dialog";
|
||||||
import { Bars3BottomRightIcon } from "@heroicons/react/24/outline";
|
import { AlignRightIcon } from "lucide-react";
|
||||||
|
|
||||||
const Sidebar = (): ReactElement => (
|
const Sidebar = (): ReactElement => (
|
||||||
<>
|
<>
|
||||||
@ -13,7 +13,7 @@ const Sidebar = (): ReactElement => (
|
|||||||
<div className="xs:hidden">
|
<div className="xs:hidden">
|
||||||
<Sheet>
|
<Sheet>
|
||||||
<SheetTrigger className="flex items-center">
|
<SheetTrigger className="flex items-center">
|
||||||
<Bars3BottomRightIcon className="w-6 h-6" />
|
<AlignRightIcon className="w-6 h-6" />
|
||||||
</SheetTrigger>
|
</SheetTrigger>
|
||||||
<SheetContent className="h-full px-5 pt-11" side="right">
|
<SheetContent className="h-full px-5 pt-11" side="right">
|
||||||
<SidebarContent />
|
<SidebarContent />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user