From 3b433d8572057a1b522ef9056275e0ca8b31bb22 Mon Sep 17 00:00:00 2001 From: shmyga Date: Wed, 9 Sep 2026 19:16:00 +0300 Subject: [PATCH] refactor(static): add base component types --- .../route/view/common/templates/base.html | 1 - gallery/easel/route/view/schedule/route.py | 2 +- .../route/view/schedule/templates/index.html | 36 ++-- gallery/easel/route/view/weather/route.py | 2 +- .../route/view/weather/templates/index.html | 21 +- static/src/app/base/component.ts | 199 ++++++++++++++++++ static/src/app/schedule/component.ts | 139 ++++-------- static/src/app/schedule/index.ts | 50 +++-- static/src/app/weather/component.ts | 81 +++---- static/src/app/weather/index.ts | 45 +++- 10 files changed, 371 insertions(+), 205 deletions(-) create mode 100644 static/src/app/base/component.ts diff --git a/gallery/easel/route/view/common/templates/base.html b/gallery/easel/route/view/common/templates/base.html index baf4b6f..3d7e10e 100644 --- a/gallery/easel/route/view/common/templates/base.html +++ b/gallery/easel/route/view/common/templates/base.html @@ -23,7 +23,6 @@
{% if not is_widget %}
-
{{request.query_params.widget}}
{% if channels %} -
    - {% for channel in channels %} - - {% endfor %} -
-
+
+ +
+
{% endif %} -
    -
-
    - {% for group in groups %} - - {% endfor %} -
+
+

Stored channels

+ +
+
+

Channel groups

+
    + {% for group in groups %} + + {% endfor %} +
+