diff --git a/front/package.json b/front/package.json index 335923fd..a8135b5e 100644 --- a/front/package.json +++ b/front/package.json @@ -58,7 +58,7 @@ "test": "TS_NODE_PROJECT=\"tsconfig-for-jasmine.json\" ts-node node_modules/jasmine/bin/jasmine --config=jasmine.json", "lint": "node_modules/.bin/eslint src/ . --ext .ts", "fix": "node_modules/.bin/eslint --fix src/ . --ext .ts", - "svelte-check-watch": "svelte-check --fail-on-warnings --fail-on-hints --compiler-warnings \"a11y-no-onchange:ignore,a11y-autofocus:ignore a11y-media-has-caption:ignore\" --watch", - "svelte-check": "svelte-check --fail-on-warnings --fail-on-hints --compiler-warnings \"a11y-no-onchange:ignore,a11y-autofocus:ignore a11y-media-has-caption:ignore\"" + "svelte-check-watch": "svelte-check --fail-on-warnings --fail-on-hints --compiler-warnings \"a11y-no-onchange:ignore,a11y-autofocus:ignore,a11y-media-has-caption:ignore\" --watch", + "svelte-check": "svelte-check --fail-on-warnings --fail-on-hints --compiler-warnings \"a11y-no-onchange:ignore,a11y-autofocus:ignore,a11y-media-has-caption:ignore\"" } } diff --git a/front/src/Components/SoundMeterWidget.svelte b/front/src/Components/SoundMeterWidget.svelte index 94e0cdd2..74d3f7b3 100644 --- a/front/src/Components/SoundMeterWidget.svelte +++ b/front/src/Components/SoundMeterWidget.svelte @@ -6,8 +6,6 @@ export let stream: MediaStream|null; let volume = 0; - const NB_BARS = 5; - let timeout: ReturnType; const soundMeter = new SoundMeter(); let display = false; diff --git a/front/src/Components/Video/ChatLayout.svelte b/front/src/Components/Video/ChatLayout.svelte index bab13d66..50c9ed2f 100644 --- a/front/src/Components/Video/ChatLayout.svelte +++ b/front/src/Components/Video/ChatLayout.svelte @@ -1,7 +1,8 @@
diff --git a/front/src/Components/Video/LocalStreamMedia.svelte b/front/src/Components/Video/LocalStreamMedia.svelte index 37c59ec7..97b69070 100644 --- a/front/src/Components/Video/LocalStreamMedia.svelte +++ b/front/src/Components/Video/LocalStreamMedia.svelte @@ -1,11 +1,11 @@
+ {#if stream} + {/if}
diff --git a/front/src/Components/Video/Peer.svelte b/front/src/Components/Video/Peer.svelte index 8d5637f6..001df82c 100644 --- a/front/src/Components/Video/Peer.svelte +++ b/front/src/Components/Video/Peer.svelte @@ -4,7 +4,7 @@ import ScreenSharingMedia from "./ScreenSharingMedia.svelte"; import {ScreenSharingPeer} from "../../WebRtc/ScreenSharingPeer"; import LocalStreamMedia from "./LocalStreamMedia.svelte"; - import {DisplayableMedia} from "../../Stores/LayoutStore"; + import type {DisplayableMedia} from "../../Stores/LayoutStore"; export let peer: DisplayableMedia; @@ -15,6 +15,6 @@ {:else if peer instanceof ScreenSharingPeer} {:else} - + {/if}
diff --git a/front/src/Components/Video/PresentationLayout.svelte b/front/src/Components/Video/PresentationLayout.svelte index f7ac5802..3e76865c 100644 --- a/front/src/Components/Video/PresentationLayout.svelte +++ b/front/src/Components/Video/PresentationLayout.svelte @@ -2,6 +2,12 @@ import Peer from "./Peer.svelte"; import {layoutStore} from "../../Stores/LayoutStore"; import {videoFocusStore} from "../../Stores/VideoFocusStore"; + import {afterUpdate} from "svelte"; + import {biggestAvailableArrayStore} from "../../Stores/BiggestAvailableArrayStore"; + + afterUpdate(() => { + biggestAvailableArrayStore.recompute(); + })
diff --git a/front/src/Components/Video/ScreenSharingMedia.svelte b/front/src/Components/Video/ScreenSharingMedia.svelte index 01d43313..5cb84237 100644 --- a/front/src/Components/Video/ScreenSharingMedia.svelte +++ b/front/src/Components/Video/ScreenSharingMedia.svelte @@ -1,5 +1,5 @@