From a27133d26b974dbc3bbf023639a49de455d8b563 Mon Sep 17 00:00:00 2001 From: "riho.takagi" Date: Mon, 1 Apr 2024 17:33:12 -0400 Subject: [PATCH 1/3] Add video library button on main page --- .../VideoLibraryComponent.svelte | 8 --- src/routes/__layout.svelte | 68 ++++++++++++++----- 2 files changed, 50 insertions(+), 26 deletions(-) diff --git a/src/lib/components/world-layers/videoLibraries/VideoLibraryComponent.svelte b/src/lib/components/world-layers/videoLibraries/VideoLibraryComponent.svelte index fc6bfc1..8e08cda 100644 --- a/src/lib/components/world-layers/videoLibraries/VideoLibraryComponent.svelte +++ b/src/lib/components/world-layers/videoLibraries/VideoLibraryComponent.svelte @@ -22,12 +22,10 @@ function scrollLeft() { function scrollRight() { carousel.scrollBy({ left: 300, behavior: 'smooth' }); } - console.log("lib!!",lib.activeVideos) $: if (lib) { videosByDate = {}; lib.activeVideos.forEach(video => { - console.log("video.startDate",video.startDate) if(video.startDate !== undefined){ const date = video.startDate?.split('T')[0]; @@ -45,17 +43,12 @@ function scrollRight() { } function selectDate(date) { - console.log("selectDate",date) - console.log("videosByDate[date]",videosByDate[date]) selectedDate = date; selectedVideos = videosByDate[date]; - console.log("ted",selectedVideos) } - -
{lib.title} @@ -75,7 +68,6 @@ function scrollRight() {