-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #232 from COS301-SE-2024/update/students
Update/students
- Loading branch information
Showing
36 changed files
with
1,690 additions
and
734 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "dependencies": { "@types/three": "^0.168.0" } } |
Binary file not shown.
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,5 @@ | ||
declare module '*.svelte' { | ||
import type { ComponentType } from 'svelte'; | ||
const component: ComponentType; | ||
export default component; | ||
} |
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
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,58 @@ | ||
<script lang="ts"> | ||
import { Navbar, NavBrand, NavLi, NavUl, NavHamburger } from 'flowbite-svelte'; | ||
export let role: 'lecturer' | 'admin' | 'student'; | ||
export let activeUrl = ''; | ||
const navLinks = { | ||
admin: [ | ||
{ name: 'Dashboard', href: '/dashboard' }, | ||
{ name: 'Announcements', href: '/announcements' }, | ||
{ name: 'Organisation', href: '/organisation' }, | ||
{ name: 'Workspaces', href: '/workspaces' }, | ||
{ name: 'Admins', href: '/admins' }, | ||
{ name: 'Lecturers', href: '/lecturers' }, | ||
{ name: 'Students', href: '/students' } | ||
], | ||
lecturer: [ | ||
{ name: 'Workspaces', href: '/workspaces' }, | ||
{ name: 'Announcements', href: '/announcements' } | ||
], | ||
student: [ | ||
{ name: 'Dashboard', href: '/dashboard' }, | ||
{ name: 'Workspaces', href: '/workspaces' }, | ||
{ name: 'Announcements', href: '/announcements' }, | ||
{ name: 'Grades', href: '/grades' } | ||
] | ||
}; | ||
const commonLinks = [ | ||
{ name: 'Settings', href: '/settings' }, | ||
{ name: 'FAQ', href: '/faq' } | ||
]; | ||
const currentLinks = navLinks[role]; | ||
</script> | ||
|
||
<Navbar class="fixed start-0 top-0 z-20 w-full border-b px-2 py-2.5 sm:px-4"> | ||
<NavBrand href="/"> | ||
<img src="images/class-connect-logo.png" class="mr-3 h-8 sm:h-10" alt="ClassConnect Logo" /> | ||
<span | ||
class="self-center whitespace-nowrap text-xl font-semibold text-gray-800 transition-colors duration-300 dark:text-white" | ||
>ClassConnect</span | ||
> | ||
</NavBrand> | ||
<NavHamburger /> | ||
<NavUl> | ||
{#each currentLinks as { name, href }} | ||
<NavLi {href} active={activeUrl === href}> | ||
{name} | ||
</NavLi> | ||
{/each} | ||
{#each commonLinks as { name, href }} | ||
<NavLi {href} active={activeUrl === href}> | ||
{name} | ||
</NavLi> | ||
{/each} | ||
</NavUl> | ||
</Navbar> |
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
Empty file.
Oops, something went wrong.