forked from fictadvisor/fictadvisor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhancement fictadvisor#324: added new viewing rights for the admin p…
…anel - added new viewing rights for the admin panel - added layout.tsx closes fictadvisor#324
- Loading branch information
Showing
51 changed files
with
507 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use client'; | ||
|
||
import { PERMISSION } from '@fictadvisor/utils/security'; | ||
|
||
import AdminPanelAccessLayout from '@/components/common/layout/admin-panel-access-layout/AdminPanelAccessLayout'; | ||
|
||
const Layout = ({ children }: { children: React.ReactNode }) => { | ||
return ( | ||
<AdminPanelAccessLayout permission={PERMISSION.ADMIN_PANEL_COMMENTS_SHOW}> | ||
{children} | ||
</AdminPanelAccessLayout> | ||
); | ||
}; | ||
|
||
export default Layout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
import React from 'react'; | ||
|
||
import AdminPanelLayout from '@/components/common/layout/admin-panel-layout/AdminPanelLayout'; | ||
import CommentsAdminPage from '@/components/pages/admin/admin-comments'; | ||
|
||
const Page = () => { | ||
return ( | ||
<AdminPanelLayout> | ||
<CommentsAdminPage /> | ||
</AdminPanelLayout> | ||
); | ||
return <CommentsAdminPage />; | ||
}; | ||
|
||
export default Page; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
'use client'; | ||
import React from 'react'; | ||
|
||
import AdminPanelLayout from '@/components/common/layout/admin-panel-layout/AdminPanelLayout'; | ||
import AdminDepartmentsCreatePage from '@/components/pages/admin/admin-departments/admin-departments-create-page/AdminDepartmentsCreatePage'; | ||
|
||
const Page = () => { | ||
return ( | ||
<AdminPanelLayout> | ||
<AdminDepartmentsCreatePage /> | ||
</AdminPanelLayout> | ||
); | ||
return <AdminDepartmentsCreatePage />; | ||
}; | ||
|
||
export default Page; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
'use client'; | ||
|
||
import { PERMISSION } from '@fictadvisor/utils/security'; | ||
|
||
import AdminPanelAccessLayout from '@/components/common/layout/admin-panel-access-layout/AdminPanelAccessLayout'; | ||
|
||
const Layout = ({ children }: { children: React.ReactNode }) => { | ||
return ( | ||
<AdminPanelAccessLayout | ||
permission={PERMISSION.ADMIN_PANEL_DEPARTMENTS_SHOW} | ||
> | ||
{children} | ||
</AdminPanelAccessLayout> | ||
); | ||
}; | ||
|
||
export default Layout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
'use client'; | ||
import React from 'react'; | ||
|
||
import AdminPanelLayout from '@/components/common/layout/admin-panel-layout/AdminPanelLayout'; | ||
import AdminDepartmentSearchPage from '@/components/pages/admin/admin-departments/admin-departments-search-page/AdminDepartmentSearchPage'; | ||
|
||
const Page = () => { | ||
return ( | ||
<AdminPanelLayout> | ||
<AdminDepartmentSearchPage /> | ||
</AdminPanelLayout> | ||
); | ||
return <AdminDepartmentSearchPage />; | ||
}; | ||
|
||
export default Page; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
'use client'; | ||
import React from 'react'; | ||
|
||
import AdminPanelLayout from '@/components/common/layout/admin-panel-layout/AdminPanelLayout'; | ||
import DisciplinesAdminCreatePage from '@/components/pages/admin/disciplines-admin-page/pages/disciplines-create-page/DisciplinesAdminCreatePage'; | ||
|
||
const AdminSubjectCreate = () => { | ||
return ( | ||
<AdminPanelLayout> | ||
<DisciplinesAdminCreatePage></DisciplinesAdminCreatePage> | ||
</AdminPanelLayout> | ||
); | ||
return <DisciplinesAdminCreatePage />; | ||
}; | ||
|
||
export default AdminSubjectCreate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
'use client'; | ||
|
||
import { PERMISSION } from '@fictadvisor/utils/security'; | ||
|
||
import AdminPanelAccessLayout from '@/components/common/layout/admin-panel-access-layout/AdminPanelAccessLayout'; | ||
|
||
const Layout = ({ children }: { children: React.ReactNode }) => { | ||
return ( | ||
<AdminPanelAccessLayout | ||
permission={PERMISSION.ADMIN_PANEL_DISCIPLINES_SHOW} | ||
> | ||
{children} | ||
</AdminPanelAccessLayout> | ||
); | ||
}; | ||
|
||
export default Layout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
'use client'; | ||
import React from 'react'; | ||
|
||
import AdminPanelLayout from '@/components/common/layout/admin-panel-layout/AdminPanelLayout'; | ||
import DisciplinesAdminPage from '@/components/pages/admin/disciplines-admin-page/DisciplinesAdminPage'; | ||
|
||
const DisciplinesAdminSearch = () => { | ||
return ( | ||
<AdminPanelLayout> | ||
<DisciplinesAdminPage /> | ||
</AdminPanelLayout> | ||
); | ||
return <DisciplinesAdminPage />; | ||
}; | ||
|
||
export default DisciplinesAdminSearch; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
import React from 'react'; | ||
|
||
import AdminPanelLayout from '@/components/common/layout/admin-panel-layout/AdminPanelLayout'; | ||
import AdminGroupsCreate from '@/components/pages/admin/admin-groups/create-groups-admin-page/AdminGroupsCreate'; | ||
|
||
const AdminCreateStudentPage = () => { | ||
return ( | ||
<AdminPanelLayout> | ||
<AdminGroupsCreate /> | ||
</AdminPanelLayout> | ||
); | ||
return <AdminGroupsCreate />; | ||
}; | ||
|
||
export default AdminCreateStudentPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use client'; | ||
|
||
import { PERMISSION } from '@fictadvisor/utils/security'; | ||
|
||
import AdminPanelAccessLayout from '@/components/common/layout/admin-panel-access-layout/AdminPanelAccessLayout'; | ||
|
||
const Layout = ({ children }: { children: React.ReactNode }) => { | ||
return ( | ||
<AdminPanelAccessLayout permission={PERMISSION.ADMIN_PANEL_GROUPS_SHOW}> | ||
{children} | ||
</AdminPanelAccessLayout> | ||
); | ||
}; | ||
|
||
export default Layout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
import React from 'react'; | ||
|
||
import AdminPanelLayout from '@/components/common/layout/admin-panel-layout/AdminPanelLayout'; | ||
import GroupsAdminPage from '@/components/pages/admin/admin-groups/search-groups-admin-page/AdminGroupsPage'; | ||
|
||
export default async function GroupsAdmin() { | ||
return ( | ||
<AdminPanelLayout> | ||
<GroupsAdminPage /> | ||
</AdminPanelLayout> | ||
); | ||
return <GroupsAdminPage />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import AdminPanelLayout from '@/components/common/layout/admin-panel-layout/AdminPanelLayout'; | ||
|
||
const DashboardLayout = ({ children }: { children: React.ReactNode }) => { | ||
return <AdminPanelLayout>{children}</AdminPanelLayout>; | ||
}; | ||
|
||
export default DashboardLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use client'; | ||
|
||
import { PERMISSION } from '@fictadvisor/utils/security'; | ||
|
||
import AdminPanelAccessLayout from '@/components/common/layout/admin-panel-access-layout/AdminPanelAccessLayout'; | ||
|
||
const Layout = ({ children }: { children: React.ReactNode }) => { | ||
return ( | ||
<AdminPanelAccessLayout permission={PERMISSION.ADMIN_PANEL_MAIN_SHOW}> | ||
{children} | ||
</AdminPanelAccessLayout> | ||
); | ||
}; | ||
|
||
export default Layout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
import React from 'react'; | ||
|
||
import AdminPanelLayout from '@/components/common/layout/admin-panel-layout/AdminPanelLayout'; | ||
import AdminHomePage from '@/components/pages/admin/admin-main/AdminHomePage'; | ||
|
||
const Page = () => { | ||
return ( | ||
<AdminPanelLayout> | ||
<AdminHomePage /> | ||
</AdminPanelLayout> | ||
); | ||
return <AdminHomePage />; | ||
}; | ||
|
||
export default Page; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
'use client'; | ||
import React from 'react'; | ||
|
||
import AdminPanelLayout from '@/components/common/layout/admin-panel-layout/AdminPanelLayout'; | ||
import AdminMainPage from '@/components/pages/admin/admin-default/AdminMainPage'; | ||
|
||
const AdminMain = () => { | ||
return ( | ||
<AdminPanelLayout> | ||
<AdminMainPage /> | ||
</AdminPanelLayout> | ||
); | ||
return <AdminMainPage />; | ||
}; | ||
|
||
export default AdminMain; |
Oops, something went wrong.