From e43f18a4cad400e9fc27fcbd6383b62e0d365545 Mon Sep 17 00:00:00 2001 From: matthias Date: Thu, 17 Aug 2023 10:24:02 +0200 Subject: [PATCH] Video Section Component (#1084) * Add VideoSectionAPI; Reutilize ts utilities * Add slidingWindow and Time * Add watchers * Update highlight search * Add back follow sections * Remove old code * Update css * Update mobile css * Small css changes * Uncomment chat --- .../partial/stream/video-sections.gohtml | 158 ++++-------------- web/ts/TUMLiveVjs.ts | 28 ---- web/ts/api/video-sections.ts | 44 +++++ web/ts/components/video-sections.ts | 57 +++++++ web/ts/data-store/video-sections.ts | 45 +---- web/ts/entry/video.ts | 1 + web/ts/global.ts | 52 +----- web/ts/utilities/fetch-wrappers.ts | 30 ++++ web/ts/utilities/paginator.ts | 11 +- web/ts/utilities/sliding-window.ts | 38 +++++ web/ts/utilities/time.ts | 50 ++++++ web/ts/video-sections.ts | 111 +----------- 12 files changed, 274 insertions(+), 351 deletions(-) create mode 100644 web/ts/api/video-sections.ts create mode 100644 web/ts/components/video-sections.ts create mode 100644 web/ts/utilities/sliding-window.ts create mode 100644 web/ts/utilities/time.ts diff --git a/web/template/partial/stream/video-sections.gohtml b/web/template/partial/stream/video-sections.gohtml index 6bf289a0e..363c7b032 100644 --- a/web/template/partial/stream/video-sections.gohtml +++ b/web/template/partial/stream/video-sections.gohtml @@ -1,127 +1,43 @@ {{define "videosections"}} -
- -
- {{template "videosections-mobile" .ID}} -
-
-{{end}} - -{{define "videosections-desktop"}} -
-
-
-
-

Sections

- + +
+