feat: route structure, providers, layouts, and placeholder pages
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export default function DashboardPage() {
|
||||
return (
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold">管理后台</h1>
|
||||
<p className="mt-2 text-muted-foreground">根据当前身份显示对应的管理面板</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
export default function NewServicePage() {
|
||||
return (
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold">发布服务</h1>
|
||||
<p className="mt-2 text-muted-foreground">创建或编辑陪玩服务</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
export default function ServicesPage() {
|
||||
return (
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold">服务管理</h1>
|
||||
<p className="mt-2 text-muted-foreground">管理已发布的陪玩服务</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
export default function EmployeesPage() {
|
||||
return (
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold">员工管理</h1>
|
||||
<p className="mt-2 text-muted-foreground">邀请、移除打手,设置抽成</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
export default function ShopManagementPage() {
|
||||
return (
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold">店铺管理</h1>
|
||||
<p className="mt-2 text-muted-foreground">店铺信息、活动、订单总览、收入统计</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
export default function ShopTemplatesPage() {
|
||||
return (
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold">店铺模板</h1>
|
||||
<p className="mt-2 text-muted-foreground">编辑店铺主页模板组件</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
export default function DashboardLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<div className="flex min-h-screen">
|
||||
<aside className="w-64 border-r bg-muted/30 p-4">
|
||||
<h2 className="mb-4 text-lg font-semibold">管理后台</h2>
|
||||
<nav className="space-y-2 text-sm text-muted-foreground">
|
||||
<div>服务管理</div>
|
||||
<div>店铺管理</div>
|
||||
<div>员工管理</div>
|
||||
</nav>
|
||||
</aside>
|
||||
<main className="flex-1 p-6">{children}</main>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user