Skip to content

Commit

Permalink
fixed security issue with minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
trace2798 committed Jul 1, 2023
1 parent 8cb1b54 commit 7d95248
Show file tree
Hide file tree
Showing 10 changed files with 9,782 additions and 24,298 deletions.
2 changes: 0 additions & 2 deletions docs/.env.example

This file was deleted.

36 changes: 0 additions & 36 deletions docs/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/app/components/Icons.tsx
@@ -1,4 +1,4 @@
import { ChevronLeft, ChevronRight, Moon, Sun, Laptop, ArrowRight } from 'lucide-react'
import { ArrowRight, ChevronLeft, ChevronRight, Laptop, Moon, Sun } from 'lucide-react'

export const Icons = {
ChevronLeft,
Expand Down
1 change: 0 additions & 1 deletion docs/app/components/ThemeToggle.tsx
@@ -1,6 +1,5 @@
'use client'

import * as React from 'react'
import { useTheme } from 'next-themes'

import { Icons } from '../components/Icons'
Expand Down
2 changes: 1 addition & 1 deletion docs/app/components/cards/cardItem.tsx
Expand Up @@ -14,7 +14,7 @@ const CardItem: React.FC<CardItemProps> = ({
description,
}) => {
return (
<a href={href} target="_blank">
<a href={href} target="_blank" rel="noopener noreferrer">
<h1 className="dark:text-neutral-300 dark:hover:text-white font-satoshiBold text-xl">
{title}
</h1>
Expand Down
34 changes: 2 additions & 32 deletions docs/app/docs/[[...slug]]/page.tsx
@@ -1,5 +1,5 @@
import { notFound } from "next/navigation";
import { allDocs } from "contentlayer/generated";
import { notFound } from "next/navigation";

import { getTableOfContents } from "@/lib/toc";

Expand All @@ -10,10 +10,9 @@ import { DashboardTableOfContents } from "@/app/components/toc";
import "@/styles/mdx.css";
import { Metadata } from "next";

import { absoluteUrl } from "@/lib/utils";
import { Mdx } from "@/app/components/mdx-components";
import { absoluteUrl } from "@/lib/utils";
import { env } from "process";
import But from "@/app/components/docsMenu/But";

interface DocPageProps {
params: {
Expand Down Expand Up @@ -82,34 +81,6 @@ export async function generateStaticParams(): Promise<
}));
}

// export default async function DocPage({ params }: DocPageProps) {
// const doc = await getDocFromParams(params);

// if (!doc) {
// notFound();
// }

// const toc = await getTableOfContents(doc.body.raw);

// return (
// <>
// {/* <But/> */}
// <main className="relative lg:gap-10 lg:py-0 xl:grid xl:grid-cols-[1fr_300px] bg-neutral-200 dark:bg-slate-900 text-neutral-900 dark:text-slate-200">
// <div className="w-fit ">
// <DocsPageHeader heading={doc.title} text={doc.description} />
// <Mdx code={doc.body.code} />
// <hr className="my-4 md:my-6 border-slate-800 dark:border-neutral-300" />
// <DocsPager doc={doc} />
// </div>
// <div className="hidden text-sm xl:block">
// <div className="sticky top-16 -mt-10 max-h-[calc(var(--vh)-4rem)] overflow-y-auto pt-10">
// <DashboardTableOfContents toc={toc} />
// </div>
// </div>
// </main>
// </>
// );
// }

export default async function DocPage({ params }: DocPageProps) {
const doc = await getDocFromParams(params)
Expand All @@ -122,7 +93,6 @@ export default async function DocPage({ params }: DocPageProps) {

return (
<>
{/* <But/> */}
<main className="relative max-md:mt-6 py-6 lg:gap-10 lg:py-10 xl:grid xl:grid-cols-[1fr_300px] ">
<div className="mx-auto w-full min-w-0">
<DocsPageHeader heading={doc.title} text={doc.description} />
Expand Down
4 changes: 2 additions & 2 deletions docs/app/page.tsx
@@ -1,8 +1,8 @@
import { siteConfig } from "@/config/site";
import Link from "next/link";
import { Button } from "./components/blocks/Button";
import CodeCopyButton from "./components/CodeCopyButton";
import Icons from "./components/Icons";
import { siteConfig } from "@/config/site";
import { Button } from "./components/blocks/Button";

async function getGitHubStars(): Promise<string | null> {
try {
Expand Down

0 comments on commit 7d95248

Please sign in to comment.