-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
afb908e
commit 6c3c5b3
Showing
5 changed files
with
43 additions
and
7 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
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,20 @@ | ||
<script lang="ts"> | ||
import { presenceService } from "$lib/services/presence.svelte"; | ||
import Card from "../components/Card.svelte"; | ||
</script> | ||
|
||
<div class="flex flex-wrap justify-center"> | ||
{#each presenceService.studentsOnline.value as lo} | ||
<Card | ||
cardDetails={{ | ||
route: lo.loRoute, | ||
title: lo.courseTitle, | ||
type: lo.type, | ||
summary: lo.title, | ||
summaryEx: "(" + lo.type + ")", | ||
img: lo.img, | ||
icon: lo.icon | ||
}} | ||
/> | ||
{/each} | ||
</div> |
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 @@ | ||
<script lang="ts"> | ||
import { presenceService } from "$lib/services/presence.svelte"; | ||
import Course from "$lib/ui/time/Course.svelte"; | ||
interface Props { | ||
data: any; | ||
} | ||
let { data }: Props = $props(); | ||
if (presenceService.listeningTo !== data.courseid) { | ||
presenceService.startPresenceListener(data.courseid); | ||
} | ||
</script> | ||
|
||
<Course /> |
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,6 @@ | ||
export const load = async ({ params, parent, fetch }) => { | ||
// presenceService.startCoursePresenceListener(params.courseid); | ||
return { | ||
courseid: params.courseid | ||
}; | ||
}; |