From 9ff144387815b5ab0d255cb364cd3bffbd4c9ef0 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 13 Dec 2017 22:44:20 -0700 Subject: [PATCH] Refactor how widgets are created/edited in the frontend Creating and editing widgets is now done against the `dimension` object on a widget. This special object is used to translate the widget between the dirty and persisted states. --- .../custom_widget-config.component.html | 6 +- .../custom_widget-config.component.ts | 7 +- .../etherpad/etherpad-config.component.html | 8 +- .../etherpad/etherpad-config.component.ts | 23 +- .../googlecalendar-config.component.html | 4 +- .../googlecalendar-config.component.ts | 46 +-- .../googledocs-config.component.html | 8 +- .../googledocs/googledocs-config.component.ts | 17 +- .../widget/jitsi/jitsi-config.component.html | 8 +- .../widget/jitsi/jitsi-config.component.ts | 111 +++--- .../twitch/twitch-config.component.html | 6 +- .../widget/twitch/twitch-config.component.ts | 57 +-- web/app/configs/widget/widget.component.ts | 370 +++++++++++++----- .../youtube/youtube-config.component.html | 6 +- .../youtube/youtube-config.component.ts | 26 +- web/app/integration/integration.component.ts | 3 +- web/app/shared/integration.service.ts | 26 +- web/app/shared/models/widget.ts | 93 +++-- web/app/shared/scalar.service.ts | 6 +- 19 files changed, 515 insertions(+), 316 deletions(-) diff --git a/web/app/configs/widget/custom_widget/custom_widget-config.component.html b/web/app/configs/widget/custom_widget/custom_widget-config.component.html index 527df32..a0fd44f 100644 --- a/web/app/configs/widget/custom_widget/custom_widget-config.component.html +++ b/web/app/configs/widget/custom_widget/custom_widget-config.component.html @@ -18,7 +18,7 @@
-
+
- {{ widget.data.dimOriginalConferenceUrl }} (added by {{ widget.ownerId }}) + {{ widget.data.conferenceUrl }} (added by {{ widget.ownerId }})