feat: webUI2.0 前端介面更新

1. 剩余登陆注册未完成
2. 剩余插件列表&市场未完成
This commit is contained in:
HYana
2025-03-26 17:01:22 +08:00
committed by Junyan Qin
parent 8511432dee
commit 453237aef8
97 changed files with 9757 additions and 9332 deletions
+36
View File
@@ -0,0 +1,36 @@
"use client"
import '@ant-design/v5-patch-for-react-19';
import styles from "./layout.module.css"
import HomeSidebar from "@/app/home/components/home-sidebar/HomeSidebar";
import HomeTitleBar from "@/app/home/components/home-titlebar/HomeTitleBar";
import React, {useState} from "react";
import {SidebarChildVO} from "@/app/home/components/home-sidebar/HomeSidebarChild";
import { useRouter } from 'next/navigation';
export default function HomeLayout({
children
}: Readonly<{
children: React.ReactNode;
}>) {
const router = useRouter();
const [title, setTitle] = useState<string>("")
const onSelectedChange = (child: SidebarChildVO) => {
setTitle(child.name)
}
return (
<div className={`${styles.homeLayoutContainer}`}>
<HomeSidebar
onSelectedChange={onSelectedChange}
/>
<div className={`${styles.main}`}>
<HomeTitleBar title={title}/>
{/* 主页面 */}
<div className={`${styles.mainContent}`}>
{children}
</div>
</div>
</div>
)
}