fix: 后端代码格式化

This commit is contained in:
Tim
2025-09-18 14:42:25 +08:00
parent 70f7442f0c
commit 72b2b82e02
325 changed files with 15341 additions and 12370 deletions

View File

@@ -1,10 +1,10 @@
import { DocsLayout } from 'fumadocs-ui/layouts/docs';
import { baseOptions } from '@/lib/layout.shared';
import { source } from '@/lib/source';
import { CodeXmlIcon, CompassIcon, ServerIcon } from 'lucide-react';
import { DocsLayout } from "fumadocs-ui/layouts/docs";
import { baseOptions } from "@/lib/layout.shared";
import { source } from "@/lib/source";
import { CodeXmlIcon, CompassIcon, ServerIcon } from "lucide-react";
function TabIcon({
color = 'var(--color-fd-foreground)',
color = "var(--color-fd-foreground)",
children,
}: {
color?: string;
@@ -15,7 +15,7 @@ function TabIcon({
className="[&_svg]:size-full rounded-lg size-full text-(--tab-color) max-md:bg-(--tab-color)/10 max-md:border max-md:p-1.5"
style={
{
'--tab-color': color,
"--tab-color": color,
} as React.CSSProperties
}
>
@@ -28,7 +28,7 @@ function TabTitle({ children }: { children: React.ReactNode }) {
return <span className="text-[11px]">{children}</span>;
}
export default function Layout({ children }: LayoutProps<'/'>) {
export default function Layout({ children }: LayoutProps<"/">) {
return (
// @ts-ignore
<DocsLayout
@@ -38,9 +38,9 @@ export default function Layout({ children }: LayoutProps<'/'>) {
prefetch: true,
tabs: [
{
title: 'OpenIsle 前端',
title: "OpenIsle 前端",
description: <TabTitle></TabTitle>,
url: '/frontend',
url: "/frontend",
icon: (
<TabIcon color="#4ca154">
<CompassIcon />
@@ -48,9 +48,9 @@ export default function Layout({ children }: LayoutProps<'/'>) {
),
},
{
title: 'OpenIsle 后端',
title: "OpenIsle 后端",
description: <TabTitle></TabTitle>,
url: '/backend',
url: "/backend",
icon: (
<TabIcon color="#1f66f4">
<ServerIcon />
@@ -58,9 +58,9 @@ export default function Layout({ children }: LayoutProps<'/'>) {
),
},
{
title: 'OpenIsle API',
title: "OpenIsle API",
description: <TabTitle> API </TabTitle>,
url: '/openapi',
url: "/openapi",
icon: (
<TabIcon color="#677489">
<CodeXmlIcon />