mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-21 22:50:42 +08:00
49 lines
1.3 KiB
TypeScript
49 lines
1.3 KiB
TypeScript
import type { LinkItemType } from "fumadocs-ui/layouts/shared";
|
|
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
import { LanguageSwitcher } from "@/components/language-switcher";
|
|
|
|
type NavLabelKey = "MemShellGenerator" | "ProbeShellGenerator" | "documents" | "about";
|
|
|
|
function NavLabel({ translationKey }: { translationKey: NavLabelKey }) {
|
|
const { t } = useTranslation("common");
|
|
|
|
return t(translationKey);
|
|
}
|
|
|
|
export const siteConfig = {
|
|
name: "MemShellParty",
|
|
url: "https://party.memshell.news",
|
|
github: "https://github.com/ReaJason/MemShellParty",
|
|
latestRelease: "https://github.com/ReaJason/MemShellParty/releases/latest",
|
|
author: "ReaJason",
|
|
authorGithub: "https://github.com/ReaJason",
|
|
authorIntro: "Java RASP Developer",
|
|
blog: "https://reajason.eu.org",
|
|
navLinks: [
|
|
{
|
|
text: <NavLabel translationKey="MemShellGenerator" />,
|
|
url: "/memshell",
|
|
},
|
|
{
|
|
text: <NavLabel translationKey="ProbeShellGenerator" />,
|
|
url: "/probeshell",
|
|
},
|
|
{
|
|
text: <NavLabel translationKey="documents" />,
|
|
url: "/docs",
|
|
external: true,
|
|
},
|
|
{
|
|
text: <NavLabel translationKey="about" />,
|
|
url: "/about",
|
|
},
|
|
{
|
|
type: "custom",
|
|
children: <LanguageSwitcher />,
|
|
secondary: true,
|
|
},
|
|
] as LinkItemType[],
|
|
};
|