From 243e56b19435fad39214dfdc3669cdb2b1807aa8 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 23 Nov 2020 00:44:31 +0100 Subject: [PATCH] Added support for rows on dashboard and music widget --- platypush/backend/http/webapp/src/Events.vue | 5 +- .../http/webapp/src/style/themes/light.scss | 14 +- .../http/webapp/src/views/Dashboard.vue | 77 ++-- .../http/webapp/src/widgets/Music/Index.vue | 398 ++++++++++++++++++ .../backend/http/webapp/src/widgets/Row.vue | 38 ++ .../http/webapp/src/widgets/Widget.vue | 32 +- 6 files changed, 531 insertions(+), 33 deletions(-) create mode 100644 platypush/backend/http/webapp/src/widgets/Music/Index.vue create mode 100644 platypush/backend/http/webapp/src/widgets/Row.vue diff --git a/platypush/backend/http/webapp/src/Events.vue b/platypush/backend/http/webapp/src/Events.vue index 47deb49c0a..afbbfba0db 100644 --- a/platypush/backend/http/webapp/src/Events.vue +++ b/platypush/backend/http/webapp/src/Events.vue @@ -58,7 +58,10 @@ export default { handlers.push(...this.handlers[event.args.type]) } - for (const [handler] of handlers) { + for (let handler of handlers) { + if (handler instanceof Array) + handler = handler[0] + handler(event.args) } }, diff --git a/platypush/backend/http/webapp/src/style/themes/light.scss b/platypush/backend/http/webapp/src/style/themes/light.scss index 3ae3929f23..12e86b0a22 100644 --- a/platypush/backend/http/webapp/src/style/themes/light.scss +++ b/platypush/backend/http/webapp/src/style/themes/light.scss @@ -20,4 +20,16 @@ $notification-error-icon-color: #8b0000 !default; $loading-bg: #909090; //// Dashboard -$dashboard-bg: url('/img/dashboard-bg-light.jpg') +$dashboard-bg: url('/img/dashboard-bg-light.jpg'); + +//// Borders +$default-border: 1px solid #e1e4e8 !default; +$default-border-2: 1px solid #dddddd !default; +$default-border-3: 1px solid #cccccc !default; + +//// Hover +$default-hover-fg: #35b870 !default; +$default-hover-fg-2: #38cf80 !default; + +//// General-purpose colors +$selected-bg: #c8ffd0 !default; diff --git a/platypush/backend/http/webapp/src/views/Dashboard.vue b/platypush/backend/http/webapp/src/views/Dashboard.vue index fa308cdb36..61f24bffc3 100644 --- a/platypush/backend/http/webapp/src/views/Dashboard.vue +++ b/platypush/backend/http/webapp/src/views/Dashboard.vue @@ -1,10 +1,12 @@