From ca7e9050dc94e5011a81fb082b00a50440a67ab3 Mon Sep 17 00:00:00 2001 From: Nikita Galaiko Date: Thu, 25 May 2023 10:56:32 +0200 Subject: [PATCH] player: extract playback component --- .../player/[date]/[sessionId]/+page.svelte | 238 ++++-------------- .../player/[date]/[sessionId]/Playback.svelte | 148 +++++++++++ 2 files changed, 196 insertions(+), 190 deletions(-) create mode 100644 src/routes/projects/[projectId]/player/[date]/[sessionId]/Playback.svelte diff --git a/src/routes/projects/[projectId]/player/[date]/[sessionId]/+page.svelte b/src/routes/projects/[projectId]/player/[date]/[sessionId]/+page.svelte index a8b22e38f..baf83d5bc 100644 --- a/src/routes/projects/[projectId]/player/[date]/[sessionId]/+page.svelte +++ b/src/routes/projects/[projectId]/player/[date]/[sessionId]/+page.svelte @@ -23,18 +23,16 @@ -{#await frame.load()} +{#await richSessions.load()}
Loading...
{:then} - {#if !$frame} + {#if !frame}
Select a playlist
{:else}
@@ -225,7 +152,7 @@
{/if} @@ -241,83 +168,14 @@ border: 0.5px solid rgba(63, 63, 70, 0.50); " > - + -
-
-
- {#if interval} - - {:else} - - {/if} -
- -
- - - -
- - -
- - -
+ deltas)} + bind:value={$value} + bind:context + bind:fullContext + />
{/if} {/await} diff --git a/src/routes/projects/[projectId]/player/[date]/[sessionId]/Playback.svelte b/src/routes/projects/[projectId]/player/[date]/[sessionId]/Playback.svelte new file mode 100644 index 000000000..4c3882c22 --- /dev/null +++ b/src/routes/projects/[projectId]/player/[date]/[sessionId]/Playback.svelte @@ -0,0 +1,148 @@ + + +
+
+
+ {#if interval} + + {:else} + + {/if} +
+ +
+ + + +
+ + +
+ + +