diff --git a/src/client/src/lib/components/lesson/Container.svelte b/src/client/src/lib/components/lesson/Container.svelte index 5233263d..3c4bd3e7 100644 --- a/src/client/src/lib/components/lesson/Container.svelte +++ b/src/client/src/lib/components/lesson/Container.svelte @@ -1,59 +1,59 @@ -
- {#each participants as participant, index} -
- {#if showScreenShare} - - {:else} - - {/if} -
- {/each} -
\ No newline at end of file +
+ {#each participants as participant, index} +
+ {#if showScreenShare} + + {:else} + + {/if} +
+ {/each} +
diff --git a/src/client/src/lib/components/lesson/ControlPanel.svelte b/src/client/src/lib/components/lesson/ControlPanel.svelte index b9d5e351..778c7a4f 100644 --- a/src/client/src/lib/components/lesson/ControlPanel.svelte +++ b/src/client/src/lib/components/lesson/ControlPanel.svelte @@ -2,23 +2,30 @@ import { type Call } from '@stream-io/video-client'; import { goto } from '$app/navigation'; import { Button } from 'flowbite-svelte'; - import { MicrophoneOutline, MicrophoneSlashOutline, VideoCameraOutline, ArrowUpFromBracketOutline, PhoneHangupOutline } from 'flowbite-svelte-icons'; + import { + MicrophoneOutline, + MicrophoneSlashOutline, + VideoCameraOutline, + ArrowUpFromBracketOutline, + PhoneHangupOutline + } from 'flowbite-svelte-icons'; import { writable } from 'svelte/store'; - import {screenShareEnabled} from '$lib/store/index' + import { screenShareEnabled } from '$lib/store/index'; export let call: Call; const microphoneEnabled = writable(false); const cameraEnabled = writable(false); - - let screenShare - screenShareEnabled.subscribe((value:boolean) => { - screenShare = value + + // eslint-disable-next-line @typescript-eslint/no-unused-vars + let screenShare; + screenShareEnabled.subscribe((value: boolean) => { + screenShare = value; }); function toggleMicrophone() { call.microphone.toggle(); - microphoneEnabled.update(enabled => !enabled); + microphoneEnabled.update((enabled) => !enabled); } function toggleCamera() { @@ -27,7 +34,7 @@ function toggleScreenShare() { call.screenShare.toggle(); - screenShareEnabled.update(enabled => !enabled); + screenShareEnabled.update((enabled) => !enabled); } function endCall() { @@ -36,40 +43,65 @@ } -
- - {#if $microphoneEnabled} - - {:else} - - {/if} - - + {/if} {#if $cameraEnabled} - {:else} - {/if} - + {#if $screenShareEnabled} - + {:else} - + {/if} - -
\ No newline at end of file + diff --git a/src/client/src/lib/components/lesson/Participant.svelte b/src/client/src/lib/components/lesson/Participant.svelte index aa575b23..e83818ed 100644 --- a/src/client/src/lib/components/lesson/Participant.svelte +++ b/src/client/src/lib/components/lesson/Participant.svelte @@ -7,7 +7,7 @@ export let participant: StreamVideoParticipant; -
+
\ No newline at end of file +
diff --git a/src/client/src/lib/components/lesson/ScreenShare.svelte b/src/client/src/lib/components/lesson/ScreenShare.svelte index 43b1060e..66d57bd5 100644 --- a/src/client/src/lib/components/lesson/ScreenShare.svelte +++ b/src/client/src/lib/components/lesson/ScreenShare.svelte @@ -1,25 +1,29 @@ -
- -
\ No newline at end of file +
+ +
diff --git a/src/client/src/lib/components/lesson/Video.svelte b/src/client/src/lib/components/lesson/Video.svelte index 3090507a..537af3fc 100644 --- a/src/client/src/lib/components/lesson/Video.svelte +++ b/src/client/src/lib/components/lesson/Video.svelte @@ -1,25 +1,29 @@ -
- -
\ No newline at end of file +
+ +
diff --git a/src/client/src/lib/store/index.ts b/src/client/src/lib/store/index.ts index c72319d7..d6e52a28 100644 --- a/src/client/src/lib/store/index.ts +++ b/src/client/src/lib/store/index.ts @@ -43,4 +43,4 @@ export const userInfo = writable({ workspaces: [] }); -export const screenShareEnabled = writable(false); \ No newline at end of file +export const screenShareEnabled = writable(false); diff --git a/src/client/src/routes/lecturer/classroom/[id]/+page.svelte b/src/client/src/routes/lecturer/classroom/[id]/+page.svelte index d82abd5d..f3546882 100644 --- a/src/client/src/routes/lecturer/classroom/[id]/+page.svelte +++ b/src/client/src/routes/lecturer/classroom/[id]/+page.svelte @@ -1,45 +1,45 @@ -
- {#if call} -
- -
-
- -
- {/if} -
\ No newline at end of file +
+ {#if call} +
+ +
+
+ +
+ {/if} +