-
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.
Merge pull request #114 from COS301-SE-2024/experiment/merge-of-live-…
…session-styling Experiment/merge of live session styling
- Loading branch information
Showing
5 changed files
with
124 additions
and
31 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,57 @@ | ||
import { writable } from 'svelte/store'; | ||
import { type StreamVideoParticipant } from '@stream-io/video-client'; | ||
|
||
export const admins = writable<any>([]); | ||
export const students = writable<any>([]); | ||
export const lecturers = writable<any>([]); | ||
|
||
export const lessons = writable<any>([ | ||
{ topic: 'Science', date: '16 June', time: '10:30' }, | ||
{ topic: 'History', date: '17 June', time: '11:30' }, | ||
{ topic: 'Geography', date: '18 June', time: '12:30' }, | ||
{ topic: 'Technology', date: '19 June', time: '13:30' } | ||
]); | ||
|
||
export const organisationName = writable('Organisation'); | ||
//export const materialTitle = writable('Material'); | ||
export const materialsInfo = writable<any[]>([]); | ||
|
||
export const lecChange = writable('change'); | ||
export const stuChange = writable('change'); | ||
export const admChange = writable('change'); | ||
export const workChange = writable('change'); | ||
|
||
export const wrkspcs = writable<any>([]); | ||
export const orgID = writable(''); | ||
|
||
export const user = writable('eugene'); | ||
export const email = writable('eugene.mpande@tuks.co.za'); | ||
export const file = writable(''); | ||
export const module = writable(''); | ||
|
||
export const user_details = writable({}); | ||
export const module_details = writable({}); | ||
export const username = 'e241198014'; | ||
|
||
export const userInfo = writable<any>({ | ||
name: 'James', | ||
surname: 'Guy', | ||
username: 'e241198014', | ||
email: 'bond@gg.moc', | ||
image: 'https://www.pngkey.com/png/full/73-730477_first-name-profile-image-placeholder-png.png', | ||
role: 'lecturer', | ||
organisation: '665c341781a011b727589f4c', | ||
workspaces: [] | ||
}); | ||
|
||
export const screenShareEnabled = writable(false); | ||
export const screenShareParticipant = writable<StreamVideoParticipant | null>(null); | ||
export const cameraEnabled = writable(false); | ||
|
||
export const participantsThere = writable<StreamVideoParticipant[]>([]); | ||
|
||
export const participantsCount = writable<number>(0); | ||
|
||
participantsThere.subscribe((participants) => { | ||
participantsCount.set(participants.length); | ||
}); |
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 @@ | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="currentColor" | ||
stroke-width="2" | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
class="lucide lucide-screen-share" | ||
><path d="M13 3H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-3" /><path d="M8 21h8" /><path | ||
d="M12 17v4" | ||
/><path d="m17 8 5-5" /><path d="M17 3h5v5" /></svg | ||
> |
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 @@ | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="currentColor" | ||
stroke-width="2" | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
class="lucide lucide-screen-share-off" | ||
><path d="M13 3H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-3" /><path d="M8 21h8" /><path | ||
d="M12 17v4" | ||
/><path d="m22 3-5 5" /><path d="m17 3 5 5" /></svg | ||
> |