style: lint and fmt code

This commit is contained in:
ReaJason
2026-08-30 21:05:21 +08:00
parent a26d60d164
commit 0d79143167
24 changed files with 1247 additions and 133 deletions
+15 -4
View File
@@ -1,7 +1,17 @@
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",
@@ -13,19 +23,20 @@ export const siteConfig = {
blog: "https://reajason.eu.org",
navLinks: [
{
text: "MemShellGenerator",
text: <NavLabel translationKey="MemShellGenerator" />,
url: "/memshell",
},
{
text: "ProbeShellGenerator",
text: <NavLabel translationKey="ProbeShellGenerator" />,
url: "/probeshell",
},
{
text: "Documents",
text: <NavLabel translationKey="documents" />,
url: "/docs",
external: true,
},
{
text: "About",
text: <NavLabel translationKey="about" />,
url: "/about",
},
{