[feat] setup supabase + notice and cfgx fetching

This commit is contained in:
Purp1e
2025-03-15 04:18:57 +08:00
parent 815cdb55f1
commit 3c5a354db1
14 changed files with 280 additions and 10 deletions

View File

@@ -0,0 +1,52 @@
"use client"
import { Card, CardBody, CardHeader, CardIcon } from "@/components/window/Card"
import { cn } from "@heroui/react"
import { SettingConfig } from "@icon-park/react"
import { usePathname, useRouter } from "next/navigation"
export default function PreferenceLayout({
children,
}: { children: React.ReactNode }) {
const router = useRouter()
const pathname = usePathname()
return (
<Card className="h-full max-w-full overflow-y-scroll">
<CardHeader>
<CardIcon
type="menu"
onClick={() => router.push("/console/cfgx")}
className={cn(pathname === "/console/cfgx" && "bg-black/5")}
>
<SettingConfig /> CFGX
</CardIcon>
{/* <CardIcon
type="menu"
onClick={() => router.push("/console/path")}
className={cn(pathname === "/console/path" && "bg-black/5")}
>
<AssemblyLine /> 路径
</CardIcon>
<CardIcon
type="menu"
onClick={() => router.push("/console/replay")}
className={cn(pathname === "/console/replay" && "bg-black/5")}
>
<Videocamera /> 录像
</CardIcon> */}
{/* <CardTool>
<ToolButton>
<UploadOne />
云同步
</ToolButton>
<ToolButton>
<HardDisk />
保存
</ToolButton>
</CardTool> */}
</CardHeader>
<CardBody>{children}</CardBody>
</Card>
)
}