Add channels management to Sidebar and API index; update MaterialSubjects for icon handling

This commit is contained in:
lafay
2026-03-26 01:27:59 +08:00
parent 2910dd6ccf
commit c71e6c6587
8 changed files with 553 additions and 33 deletions

View File

@@ -103,6 +103,7 @@ const Roles = lazy(() => import('@/pages/Roles'))
const Posts = lazy(() => import('@/pages/Posts'))
const Comments = lazy(() => import('@/pages/Comments'))
const Groups = lazy(() => import('@/pages/Groups'))
const Channels = lazy(() => import('@/pages/Channels'))
const MaterialSubjects = lazy(() => import('@/pages/MaterialSubjects'))
const Materials = lazy(() => import('@/pages/Materials'))
const Forbidden = lazy(() => import('@/pages/Forbidden'))
@@ -193,6 +194,16 @@ export const router = createBrowserRouter([
</ModeratorGuard>
),
},
{
path: 'channels',
element: (
<AdminGuard>
<Suspense fallback={<PageLoader />}>
<Channels />
</Suspense>
</AdminGuard>
),
},
{
path: 'materials/subjects',
element: (