mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-07-05 10:20:52 +00:00
- 移除原有的 user 和 problem API,改为使用 Prisma 直接操作数据库 - 新增 admin、teacher、guest 和 problem 的 CRUD 操作 - 优化用户表格组件,支持角色选择和难度选择 - 重构页面组件,使用 Prisma 查询数据 - 更新数据库迁移,增加 TEACHER 角色
5 lines
240 B
TypeScript
5 lines
240 B
TypeScript
import ProtectedLayout from "../_components/ProtectedLayout";
|
|
|
|
export default function GuestLayout({ children }: { children: React.ReactNode }) {
|
|
return <ProtectedLayout allowedRoles={["ADMIN", "TEACHER"]}>{children}</ProtectedLayout>;
|
|
}
|