From bf7083effc08b3e46f7b79e72a8741b6d06d1cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Tue, 1 Jun 2021 16:17:36 +0200 Subject: [PATCH] Migrating EnableCameraScene to Svelte --- .../EnableCamera/EnableCameraScene.svelte | 134 ++++++++-- .../HorizontalSoundMeterWidget.svelte | 78 ++++++ .../HelpCameraSettingsPopup.svelte | 2 +- front/src/Components/SoundMeterWidget.svelte | 40 ++- front/src/Phaser/Components/SoundMeter.ts | 4 + .../src/Phaser/Components/SoundMeterSprite.ts | 44 ---- front/src/Phaser/Login/EnableCameraScene.ts | 240 ------------------ front/src/Stores/MediaStore.ts | 44 ++++ front/src/Stores/ScreenSharingStore.ts | 4 +- front/webpack.config.ts | 10 +- 10 files changed, 274 insertions(+), 326 deletions(-) create mode 100644 front/src/Components/EnableCamera/HorizontalSoundMeterWidget.svelte delete mode 100644 front/src/Phaser/Components/SoundMeterSprite.ts diff --git a/front/src/Components/EnableCamera/EnableCameraScene.svelte b/front/src/Components/EnableCamera/EnableCameraScene.svelte index f8b2867e..d0501742 100644 --- a/front/src/Components/EnableCamera/EnableCameraScene.svelte +++ b/front/src/Components/EnableCamera/EnableCameraScene.svelte @@ -1,12 +1,22 @@
-
+

Turn on your camera and microphone

- - + +
+ + +
+ + {#if $cameraListStore.length > 1 } +
+ +
+ {/if} + + {#if $microphoneListStore.length > 1 } +
+ +
+ {/if} + +
+