add app version on sidebar
This commit is contained in:
@@ -3,9 +3,10 @@
|
||||
import { Fragment, useEffect, useState } from "react";
|
||||
import Image from "next/image";
|
||||
import { usePathname } from "next/navigation";
|
||||
import { NavItem, SidebarNavItem } from "@/types";
|
||||
import { SidebarNavItem } from "@/types";
|
||||
import { Menu, PanelLeftClose, PanelRightClose } from "lucide-react";
|
||||
import { Link } from "next-view-transitions";
|
||||
import { name, version } from "package.json";
|
||||
|
||||
import { siteConfig } from "@/config/site";
|
||||
import { cn } from "@/lib/utils";
|
||||
@@ -163,25 +164,17 @@ export function DashboardSidebar({ links }: DashboardSidebarProps) {
|
||||
</nav>
|
||||
|
||||
{isSidebarExpanded && (
|
||||
<p className="mx-3 mt-auto pb-3 pt-6 font-mono text-xs text-muted-foreground/70">
|
||||
© 2024{" "}
|
||||
<p className="mx-3 mt-auto flex items-center gap-1 pb-3 pt-6 font-mono text-xs text-muted-foreground/90">
|
||||
© 2024
|
||||
<Link
|
||||
href={siteConfig.links.github}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="font-medium text-primary underline underline-offset-2"
|
||||
className="font-medium underline-offset-2 hover:underline"
|
||||
>
|
||||
oiov
|
||||
{name}
|
||||
</Link>
|
||||
.{/* <br /> Built with{" "} */}
|
||||
{/* <Link
|
||||
href="https://www.cloudflare.com?ref=wrdo"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="font-medium text-primary underline underline-offset-2"
|
||||
>
|
||||
Cloudflare
|
||||
</Link> */}
|
||||
v{version}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
@@ -275,6 +268,19 @@ export function MobileSheetSidebar({ links }: DashboardSidebarProps) {
|
||||
),
|
||||
)}
|
||||
|
||||
<p className="mx-3 mt-auto flex items-center gap-1 pb-3 pt-6 font-mono text-xs text-muted-foreground/90">
|
||||
© 2024
|
||||
<Link
|
||||
href={siteConfig.links.github}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="font-medium underline-offset-2 hover:underline"
|
||||
>
|
||||
{name}
|
||||
</Link>
|
||||
v{version}
|
||||
</p>
|
||||
|
||||
{/* <div className="mt-auto">
|
||||
<UpgradeCard />
|
||||
</div> */}
|
||||
|
||||
+1
-6
@@ -16,7 +16,7 @@ export const sidebarLinks: SidebarNavItem[] = [
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "SCRAPE",
|
||||
title: "OPEN API",
|
||||
items: [
|
||||
{
|
||||
href: "/dashboard/scrape",
|
||||
@@ -85,11 +85,6 @@ export const sidebarLinks: SidebarNavItem[] = [
|
||||
items: [
|
||||
{ href: "/dashboard/settings", icon: "settings", title: "Settings" },
|
||||
{ href: "/docs", icon: "bookOpen", title: "Documentation" },
|
||||
{
|
||||
href: siteConfig.links.oichat,
|
||||
icon: "botMessageSquare",
|
||||
title: "OiChat",
|
||||
},
|
||||
{
|
||||
href: siteConfig.links.feedback,
|
||||
icon: "messageQuoted",
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user