feat(app): add lesson-plans, practice, and grade dashboard routes
- Add admin/lesson-plans, parent/lesson-plans, student/lesson-plans routes - Add student/practice and teacher/practice routes for adaptive practice - Add management/grade/dashboard and management/grade/practice routes - Add teacher/lesson-plans error and loading boundaries - Update existing admin, parent, student, teacher pages with new features - Update globals.css and proxy middleware
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type { Metadata } from "next"
|
||||
import type { JSX } from "react"
|
||||
import { getTranslations } from "next-intl/server"
|
||||
|
||||
import { requirePermission } from "@/shared/lib/auth-guard"
|
||||
import { Permissions } from "@/shared/types/permissions"
|
||||
@@ -7,9 +8,12 @@ import { getSearchParam, type SearchParams } from "@/shared/lib/utils"
|
||||
import { getAdminUsers, getAdminUserRoles } from "@/modules/users/data-access"
|
||||
import { AdminUsersView } from "@/modules/users/components/admin-users-view"
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "用户管理 - Next_Edu",
|
||||
description: "管理系统所有用户",
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
const t = await getTranslations("users")
|
||||
return {
|
||||
title: `${t("title")} - Next_Edu`,
|
||||
description: t("description"),
|
||||
}
|
||||
}
|
||||
|
||||
export const dynamic = "force-dynamic"
|
||||
|
||||
Reference in New Issue
Block a user