mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-02 16:56:39 +00:00
Merge branch 'Hetav21-enhancement-1318' into dev
This commit is contained in:
@@ -7,7 +7,7 @@ import { cn } from "@app/lib/cn";
|
|||||||
import { ListUserOrgsResponse } from "@server/routers/org";
|
import { ListUserOrgsResponse } from "@server/routers/org";
|
||||||
import SupporterStatus from "@app/components/SupporterStatus";
|
import SupporterStatus from "@app/components/SupporterStatus";
|
||||||
import { Button } from "@app/components/ui/button";
|
import { Button } from "@app/components/ui/button";
|
||||||
import { Menu, Server } from "lucide-react";
|
import { ExternalLink, Menu, Server } from "lucide-react";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { usePathname } from "next/navigation";
|
import { usePathname } from "next/navigation";
|
||||||
import { useUserContext } from "@app/hooks/useUserContext";
|
import { useUserContext } from "@app/hooks/useUserContext";
|
||||||
@@ -117,7 +117,15 @@ export function LayoutMobileMenu({
|
|||||||
<SupporterStatus />
|
<SupporterStatus />
|
||||||
{env?.app?.version && (
|
{env?.app?.version && (
|
||||||
<div className="text-xs text-muted-foreground text-center">
|
<div className="text-xs text-muted-foreground text-center">
|
||||||
v{env.app.version}
|
<Link
|
||||||
|
href={`https://github.com/fosrl/pangolin/releases/tag/${env.app.version}`}
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className="flex items-center justify-center gap-1"
|
||||||
|
>
|
||||||
|
v{env.app.version}
|
||||||
|
<ExternalLink size={12} />
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { cn } from "@app/lib/cn";
|
|||||||
import { ListUserOrgsResponse } from "@server/routers/org";
|
import { ListUserOrgsResponse } from "@server/routers/org";
|
||||||
import SupporterStatus from "@app/components/SupporterStatus";
|
import SupporterStatus from "@app/components/SupporterStatus";
|
||||||
import { ExternalLink, Server, BookOpenText, Zap } from "lucide-react";
|
import { ExternalLink, Server, BookOpenText, Zap } from "lucide-react";
|
||||||
|
import { FaDiscord, FaGithub } from "react-icons/fa";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { usePathname } from "next/navigation";
|
import { usePathname } from "next/navigation";
|
||||||
import { useUserContext } from "@app/hooks/useUserContext";
|
import { useUserContext } from "@app/hooks/useUserContext";
|
||||||
@@ -151,7 +152,7 @@ export function LayoutSidebar({
|
|||||||
{!isUnlocked()
|
{!isUnlocked()
|
||||||
? t("communityEdition")
|
? t("communityEdition")
|
||||||
: t("commercialEdition")}
|
: t("commercialEdition")}
|
||||||
<ExternalLink size={12} />
|
<FaGithub size={12} />
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className="text-xs text-muted-foreground ">
|
<div className="text-xs text-muted-foreground ">
|
||||||
@@ -165,9 +166,28 @@ export function LayoutSidebar({
|
|||||||
<BookOpenText size={12} />
|
<BookOpenText size={12} />
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="text-xs text-muted-foreground text-center">
|
||||||
|
<Link
|
||||||
|
href="https://discord.gg/HCJR8Xhme4"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className="flex items-center justify-center gap-1"
|
||||||
|
>
|
||||||
|
Discord
|
||||||
|
<FaDiscord size={12} />
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
{env?.app?.version && (
|
{env?.app?.version && (
|
||||||
<div className="text-xs text-muted-foreground text-center">
|
<div className="text-xs text-muted-foreground text-center">
|
||||||
v{env.app.version}
|
<Link
|
||||||
|
href={`https://github.com/fosrl/pangolin/releases/tag/${env.app.version}`}
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className="flex items-center justify-center gap-1"
|
||||||
|
>
|
||||||
|
v{env.app.version}
|
||||||
|
<ExternalLink size={12} />
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user