feat(project): init
This commit is contained in:
21
app/project/layout.tsx
Normal file
21
app/project/layout.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import AppLayout from "@/components/layout/AppLayout"
|
||||
import { PathnameRecorder } from "@/components/layout/PathnameRecorder"
|
||||
import { componentList, showList } from "@/components/layout/common"
|
||||
|
||||
async function getMenu() {
|
||||
return [...componentList, ...showList]
|
||||
}
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
const menu = await getMenu()
|
||||
return (
|
||||
<AppLayout menu={menu}>
|
||||
{children}
|
||||
<PathnameRecorder menu={menu} />
|
||||
</AppLayout>
|
||||
)
|
||||
}
|
||||
5
app/project/own/page.tsx
Normal file
5
app/project/own/page.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
"use client"
|
||||
|
||||
export default function ProjectOwnPage() {
|
||||
return <>Project Own</>
|
||||
}
|
||||
12
app/project/page.tsx
Normal file
12
app/project/page.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
"use client"
|
||||
|
||||
import { useRouter } from "next/navigation"
|
||||
import { useEffect } from "react"
|
||||
|
||||
export default function ComponentPage() {
|
||||
const router = useRouter()
|
||||
useEffect(() => {
|
||||
router.push("/project/own")
|
||||
}, [router])
|
||||
return <></>
|
||||
}
|
||||
5
app/project/setting/page.tsx
Normal file
5
app/project/setting/page.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
"use client"
|
||||
|
||||
export default function ProjectSettingPage() {
|
||||
return <>Project Setting</>
|
||||
}
|
||||
Reference in New Issue
Block a user