From 270f45a0059dd096cab0f0099bc0456a1fb19bcb Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Sat, 24 Feb 2018 14:18:37 +0100 Subject: [PATCH] Update ignores and minified version (#8) Signed-off-by: Wouter Born --- .gitignore | 2 ++ example/html/smarthome-grafana.js | 2 +- web-src/smarthome-grafana.js | 7 +------ web/smarthome-grafana.js | 2 +- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 76b7425..2c261eb 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ .project .settings *.iml +node_modules + diff --git a/example/html/smarthome-grafana.js b/example/html/smarthome-grafana.js index 883eba6..3a93e32 100644 --- a/example/html/smarthome-grafana.js +++ b/example/html/smarthome-grafana.js @@ -1 +1 @@ -"use strict";function queryParams(a){if(!a)return{};var b,c=a.toString(),d=c.indexOf("?"),e=d!==-1?c.substring(d+1):"",f=/([^&=]+)=?([^&]*)/g,g=function(a){return decodeURIComponent(a.replace(/\+/g," "))},h={};do b=f.exec(e),b&&(h[g(b[1])]=g(b[2]));while(b);return h}function resolveParam(a,b){return void 0!==a&&void 0!==a[b]?a[b]:void 0!==urlParams&&void 0!==urlParams[b]?urlParams[b]:void 0!==parentUrlParams&&void 0!==parentUrlParams[b]?parentUrlParams[b]:SMARTHOME_GRAFANA_DEFAULTS[b]}function SmartHomeSubscriber(a){function b(a){var b=a,c="undefined"!=typeof b.type?b.type:"GET",d="undefined"!=typeof b.data?b.data:"",e="undefined"!=typeof b.headers?b.headers:{},f=new XMLHttpRequest;f.open(c,b.url,!0);for(var g in e)f.setRequestHeader(g,e[g]);return f.onload=function(){return f.status<200||f.status>400?void("function"==typeof b.error&&b.error(f)):void("function"==typeof b.callback&&b.callback(f))},f.onerror=function(){"function"==typeof b.error&&b.error(f)},f.send(d),f}function c(){var a=[];for(var b in o)void 0===o[b].value&&a.push(b);return a}function d(){return 0===c().length}function e(){if(!m&&d()){m=!0;for(var a=0;a'+g+""),f.close();else if("true"===c){var s=g.replace(o,n);f.open(),f.write(""),f.write('

'),f.close()}else document.getElementById(l).src!==g&&e.contentWindow.location.replace(g);"true"===c&&d>0?(clearTimeout(j),j=setTimeout(b,d)):void 0!==j&&clearTimeout(j)}function c(){"true"!==p.render.value||"auto"!==q.width.value&&"auto"!==q.height.value?clearTimeout(k):(clearTimeout(k),k=setTimeout(b,500))}function d(a,b,c){for(var d in a)void 0!==a[d].itemName&&a[d].itemName===b&&(a[d].itemFunction&&(c=a[d].itemFunction(c)),a[d].value=c)}function e(a,c){d(p,a,c),d(q,a,c),smartHomeSubscriber.isInitialized()&&b()}function f(a,b){if(void 0===b)throw new Error("Property '"+a+"' is undefined")}function g(a){for(var b in a){var c=a[b].itemName;if(void 0!==c)smartHomeSubscriber.addItemListener(c,e);else if(void 0===a[b].value)throw new Error("Property '"+b+"' requires a default value or itemName to obtain the value from")}}function h(){f("frame",l),f("urlPrefix",m),f("panelPath",n),f("renderPanelPath",o),g(p),g(q),smartHomeSubscriber.addInitializedListener(b),window.addEventListener("resize",c)}var i=a,j=void 0,k=void 0,l=resolveParam(i,"frame"),m=resolveParam(i,"urlPrefix"),n=resolveParam(i,"panelPath"),o=resolveParam(i,"renderPanelPath"),p={debug:{value:resolveParam(i,"debug"),itemName:resolveParam(i,"debugItem"),itemFunction:a.debugItemFunction},render:{value:resolveParam(i,"render"),itemName:resolveParam(i,"renderItem"),itemFunction:a.renderItemFunction},refresh:{value:resolveParam(i,"refresh"),itemName:resolveParam(i,"refreshItem"),itemFunction:a.refreshItemFunction}},q={dashboard:{value:resolveParam(i,"dashboard"),itemName:resolveParam(i,"dashboardItem"),itemFunction:a.dashboardItemFunction},from:{key:"from",value:resolveParam(i,"from"),itemName:resolveParam(i,"fromItem"),itemFunction:a.fromItemFunction},to:{key:"to",value:resolveParam(i,"to"),itemName:resolveParam(i,"toItem"),itemFunction:a.toItemFunction},panel:{key:"panelId",value:resolveParam(i,"panel"),itemName:resolveParam(i,"panelItem"),itemFunction:a.panelItemFunction},theme:{key:"theme",value:resolveParam(i,"theme"),itemName:resolveParam(i,"themeItem"),itemFunction:a.themeItemFunction},width:{key:"width",value:resolveParam(i,"width"),itemName:resolveParam(i,"widthItem"),itemFunction:a.widthItemFunction},height:{key:"height",value:resolveParam(i,"height"),itemName:resolveParam(i,"heightItem"),itemFunction:a.heightItemFunction}};h()}function createGuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0,c="x"===a?b:3&b|8;return c.toString(16)})}function addGrafanaPanel(a,b){void 0===a&&(a=createGuid());var c=document.createElement("div");c.id="panel-"+a+"-container",c.className="panel-container",document.body.appendChild(c);var d=document.createElement("iframe");d.id="panel-"+a+"-frame",d.className="panel-frame",d.scrolling="no",c.appendChild(d),void 0===b&&(b={}),b.frame=d.id;var e=new GrafanaPanel(b);grafanaPanels.push(e)}var SMARTHOME_GRAFANA_DEFAULTS={debug:"false",render:"false",refresh:"0",sitemap:"default",urlPrefix:"http://grafana:3000",panelPath:"/dashboard-solo/db/",renderPanelPath:"/render/dashboard-solo/db/",from:"now-1d",to:"now",theme:"light",width:"auto",height:"auto"},urlParams=queryParams(window.location),parentUrlParams=queryParams(window.parent.location.href),smartHomeSubscriber=new SmartHomeSubscriber,grafanaPanels=[]; \ No newline at end of file +"use strict";function queryParams(a){if(!a)return{};var b,c=a.toString(),d=c.indexOf("?"),e=-1!==d?c.substring(d+1):"",f=/([^&=]+)=?([^&]*)/g,g=function(a){return decodeURIComponent(a.replace(/\+/g," "))},h={};do{(b=f.exec(e))&&(h[g(b[1])]=g(b[2]))}while(b);return h}function resolveParam(a,b){return void 0!==a&&void 0!==a[b]?a[b]:void 0!==urlParams&&void 0!==urlParams[b]?urlParams[b]:void 0!==parentUrlParams&&void 0!==parentUrlParams[b]?parentUrlParams[b]:SMARTHOME_GRAFANA_DEFAULTS[b]}function SmartHomeSubscriber(a){function b(a){var b=a,c=void 0!==b.type?b.type:"GET",d=void 0!==b.data?b.data:"",e=void 0!==b.headers?b.headers:{},f=new XMLHttpRequest;f.open(c,b.url,!0);for(var g in e)f.setRequestHeader(g,e[g]);return f.onload=function(){if(f.status<200||f.status>400)return void("function"==typeof b.error&&b.error(f));"function"==typeof b.callback&&b.callback(f)},f.onerror=function(){"function"==typeof b.error&&b.error(f)},f.send(d),f}function c(){var a=[];for(var b in o)void 0===o[b].value&&a.push(b);return a}function d(){return 0===c().length}function e(){if(!m&&d()){m=!0;for(var a=0;a'+g+""),f.close();else if("true"===c){var s=g.replace(o,n);f.open(),f.write(""),f.write('

'),f.close()}else document.getElementById(l).src!==g&&e.contentWindow.location.replace(g);"true"===c&&d>0?(clearTimeout(j),j=setTimeout(b,d)):void 0!==j&&clearTimeout(j)}function c(){"true"!==p.render.value||"auto"!==q.width.value&&"auto"!==q.height.value?clearTimeout(k):(clearTimeout(k),k=setTimeout(b,500))}function d(a,b,c){for(var d in a)void 0!==a[d].itemName&&a[d].itemName===b&&(a[d].itemFunction&&(c=a[d].itemFunction(c)),a[d].value=c)}function e(a,c){d(p,a,c),d(q,a,c),smartHomeSubscriber.isInitialized()&&b()}function f(a,b){if(void 0===b)throw new Error("Property '"+a+"' is undefined")}function g(a){for(var b in a){var c=a[b].itemName;if(void 0!==c)smartHomeSubscriber.addItemListener(c,e);else if(void 0===a[b].value)throw new Error("Property '"+b+"' requires a default value or itemName to obtain the value from")}}function h(){f("frame",l),f("urlPrefix",m),f("panelPath",n),f("renderPanelPath",o),g(p),g(q),smartHomeSubscriber.addInitializedListener(b),window.addEventListener("resize",c)}var i=a,j=void 0,k=void 0,l=resolveParam(i,"frame"),m=resolveParam(i,"urlPrefix"),n=resolveParam(i,"panelPath"),o=resolveParam(i,"renderPanelPath"),p={debug:{value:resolveParam(i,"debug"),itemName:resolveParam(i,"debugItem"),itemFunction:a.debugItemFunction},render:{value:resolveParam(i,"render"),itemName:resolveParam(i,"renderItem"),itemFunction:a.renderItemFunction},refresh:{value:resolveParam(i,"refresh"),itemName:resolveParam(i,"refreshItem"),itemFunction:a.refreshItemFunction}},q={dashboard:{value:resolveParam(i,"dashboard"),itemName:resolveParam(i,"dashboardItem"),itemFunction:a.dashboardItemFunction},from:{key:"from",value:resolveParam(i,"from"),itemName:resolveParam(i,"fromItem"),itemFunction:a.fromItemFunction},to:{key:"to",value:resolveParam(i,"to"),itemName:resolveParam(i,"toItem"),itemFunction:a.toItemFunction},panel:{key:"panelId",value:resolveParam(i,"panel"),itemName:resolveParam(i,"panelItem"),itemFunction:a.panelItemFunction},theme:{key:"theme",value:resolveParam(i,"theme"),itemName:resolveParam(i,"themeItem"),itemFunction:a.themeItemFunction},width:{key:"width",value:resolveParam(i,"width"),itemName:resolveParam(i,"widthItem"),itemFunction:a.widthItemFunction},height:{key:"height",value:resolveParam(i,"height"),itemName:resolveParam(i,"heightItem"),itemFunction:a.heightItemFunction}};h()}function createGuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"===a?b:3&b|8).toString(16)})}function addGrafanaPanel(a,b){void 0===a&&(a=createGuid());var c=document.createElement("div");c.id="panel-"+a+"-container",c.className="panel-container",document.body.appendChild(c);var d=document.createElement("iframe");d.id="panel-"+a+"-frame",d.className="panel-frame",d.scrolling="no",c.appendChild(d),void 0===b&&(b={}),b.frame=d.id;var e=new GrafanaPanel(b);grafanaPanels.push(e)}var SMARTHOME_GRAFANA_DEFAULTS={debug:"false",render:"false",refresh:"0",sitemap:"default",urlPrefix:"http://grafana:3000",panelPath:"/dashboard-solo/db/",renderPanelPath:"/render/dashboard-solo/db/",from:"now-1d",to:"now",theme:"light",width:"auto",height:"auto"},urlParams=queryParams(window.location),parentUrlParams=queryParams(window.parent.location.href),smartHomeSubscriber=new SmartHomeSubscriber,grafanaPanels=[]; \ No newline at end of file diff --git a/web-src/smarthome-grafana.js b/web-src/smarthome-grafana.js index 6005b7e..29ce8b1 100644 --- a/web-src/smarthome-grafana.js +++ b/web-src/smarthome-grafana.js @@ -37,7 +37,6 @@ var }; function queryParams(param) { - if (!param) { return {}; } @@ -78,7 +77,6 @@ function resolveParam(params, name) { } function SmartHomeSubscriber(params) { - var p = params, initialized = false, @@ -95,7 +93,7 @@ function SmartHomeSubscriber(params) { throw new Error("addItemListener 'listener' is not a function"); } if (items[itemName] !== undefined) { - if( !items[itemName].listeners.includes(listener) ) { + if (!items[itemName].listeners.includes(listener)) { items[itemName].listeners.push(listener); } } else { @@ -173,7 +171,6 @@ function SmartHomeSubscriber(params) { } function updateItem(itemName, value) { - if (items[itemName].value === value) { return; } @@ -230,7 +227,6 @@ function SmartHomeSubscriber(params) { } function ChangeListenerLongpolling() { - var _t = this; @@ -382,7 +378,6 @@ function SmartHomeSubscriber(params) { var smartHomeSubscriber = new SmartHomeSubscriber(); function GrafanaPanel(params) { - var p = params, refreshTimerId = undefined, diff --git a/web/smarthome-grafana.js b/web/smarthome-grafana.js index 883eba6..3a93e32 100644 --- a/web/smarthome-grafana.js +++ b/web/smarthome-grafana.js @@ -1 +1 @@ -"use strict";function queryParams(a){if(!a)return{};var b,c=a.toString(),d=c.indexOf("?"),e=d!==-1?c.substring(d+1):"",f=/([^&=]+)=?([^&]*)/g,g=function(a){return decodeURIComponent(a.replace(/\+/g," "))},h={};do b=f.exec(e),b&&(h[g(b[1])]=g(b[2]));while(b);return h}function resolveParam(a,b){return void 0!==a&&void 0!==a[b]?a[b]:void 0!==urlParams&&void 0!==urlParams[b]?urlParams[b]:void 0!==parentUrlParams&&void 0!==parentUrlParams[b]?parentUrlParams[b]:SMARTHOME_GRAFANA_DEFAULTS[b]}function SmartHomeSubscriber(a){function b(a){var b=a,c="undefined"!=typeof b.type?b.type:"GET",d="undefined"!=typeof b.data?b.data:"",e="undefined"!=typeof b.headers?b.headers:{},f=new XMLHttpRequest;f.open(c,b.url,!0);for(var g in e)f.setRequestHeader(g,e[g]);return f.onload=function(){return f.status<200||f.status>400?void("function"==typeof b.error&&b.error(f)):void("function"==typeof b.callback&&b.callback(f))},f.onerror=function(){"function"==typeof b.error&&b.error(f)},f.send(d),f}function c(){var a=[];for(var b in o)void 0===o[b].value&&a.push(b);return a}function d(){return 0===c().length}function e(){if(!m&&d()){m=!0;for(var a=0;a'+g+""),f.close();else if("true"===c){var s=g.replace(o,n);f.open(),f.write(""),f.write('

'),f.close()}else document.getElementById(l).src!==g&&e.contentWindow.location.replace(g);"true"===c&&d>0?(clearTimeout(j),j=setTimeout(b,d)):void 0!==j&&clearTimeout(j)}function c(){"true"!==p.render.value||"auto"!==q.width.value&&"auto"!==q.height.value?clearTimeout(k):(clearTimeout(k),k=setTimeout(b,500))}function d(a,b,c){for(var d in a)void 0!==a[d].itemName&&a[d].itemName===b&&(a[d].itemFunction&&(c=a[d].itemFunction(c)),a[d].value=c)}function e(a,c){d(p,a,c),d(q,a,c),smartHomeSubscriber.isInitialized()&&b()}function f(a,b){if(void 0===b)throw new Error("Property '"+a+"' is undefined")}function g(a){for(var b in a){var c=a[b].itemName;if(void 0!==c)smartHomeSubscriber.addItemListener(c,e);else if(void 0===a[b].value)throw new Error("Property '"+b+"' requires a default value or itemName to obtain the value from")}}function h(){f("frame",l),f("urlPrefix",m),f("panelPath",n),f("renderPanelPath",o),g(p),g(q),smartHomeSubscriber.addInitializedListener(b),window.addEventListener("resize",c)}var i=a,j=void 0,k=void 0,l=resolveParam(i,"frame"),m=resolveParam(i,"urlPrefix"),n=resolveParam(i,"panelPath"),o=resolveParam(i,"renderPanelPath"),p={debug:{value:resolveParam(i,"debug"),itemName:resolveParam(i,"debugItem"),itemFunction:a.debugItemFunction},render:{value:resolveParam(i,"render"),itemName:resolveParam(i,"renderItem"),itemFunction:a.renderItemFunction},refresh:{value:resolveParam(i,"refresh"),itemName:resolveParam(i,"refreshItem"),itemFunction:a.refreshItemFunction}},q={dashboard:{value:resolveParam(i,"dashboard"),itemName:resolveParam(i,"dashboardItem"),itemFunction:a.dashboardItemFunction},from:{key:"from",value:resolveParam(i,"from"),itemName:resolveParam(i,"fromItem"),itemFunction:a.fromItemFunction},to:{key:"to",value:resolveParam(i,"to"),itemName:resolveParam(i,"toItem"),itemFunction:a.toItemFunction},panel:{key:"panelId",value:resolveParam(i,"panel"),itemName:resolveParam(i,"panelItem"),itemFunction:a.panelItemFunction},theme:{key:"theme",value:resolveParam(i,"theme"),itemName:resolveParam(i,"themeItem"),itemFunction:a.themeItemFunction},width:{key:"width",value:resolveParam(i,"width"),itemName:resolveParam(i,"widthItem"),itemFunction:a.widthItemFunction},height:{key:"height",value:resolveParam(i,"height"),itemName:resolveParam(i,"heightItem"),itemFunction:a.heightItemFunction}};h()}function createGuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0,c="x"===a?b:3&b|8;return c.toString(16)})}function addGrafanaPanel(a,b){void 0===a&&(a=createGuid());var c=document.createElement("div");c.id="panel-"+a+"-container",c.className="panel-container",document.body.appendChild(c);var d=document.createElement("iframe");d.id="panel-"+a+"-frame",d.className="panel-frame",d.scrolling="no",c.appendChild(d),void 0===b&&(b={}),b.frame=d.id;var e=new GrafanaPanel(b);grafanaPanels.push(e)}var SMARTHOME_GRAFANA_DEFAULTS={debug:"false",render:"false",refresh:"0",sitemap:"default",urlPrefix:"http://grafana:3000",panelPath:"/dashboard-solo/db/",renderPanelPath:"/render/dashboard-solo/db/",from:"now-1d",to:"now",theme:"light",width:"auto",height:"auto"},urlParams=queryParams(window.location),parentUrlParams=queryParams(window.parent.location.href),smartHomeSubscriber=new SmartHomeSubscriber,grafanaPanels=[]; \ No newline at end of file +"use strict";function queryParams(a){if(!a)return{};var b,c=a.toString(),d=c.indexOf("?"),e=-1!==d?c.substring(d+1):"",f=/([^&=]+)=?([^&]*)/g,g=function(a){return decodeURIComponent(a.replace(/\+/g," "))},h={};do{(b=f.exec(e))&&(h[g(b[1])]=g(b[2]))}while(b);return h}function resolveParam(a,b){return void 0!==a&&void 0!==a[b]?a[b]:void 0!==urlParams&&void 0!==urlParams[b]?urlParams[b]:void 0!==parentUrlParams&&void 0!==parentUrlParams[b]?parentUrlParams[b]:SMARTHOME_GRAFANA_DEFAULTS[b]}function SmartHomeSubscriber(a){function b(a){var b=a,c=void 0!==b.type?b.type:"GET",d=void 0!==b.data?b.data:"",e=void 0!==b.headers?b.headers:{},f=new XMLHttpRequest;f.open(c,b.url,!0);for(var g in e)f.setRequestHeader(g,e[g]);return f.onload=function(){if(f.status<200||f.status>400)return void("function"==typeof b.error&&b.error(f));"function"==typeof b.callback&&b.callback(f)},f.onerror=function(){"function"==typeof b.error&&b.error(f)},f.send(d),f}function c(){var a=[];for(var b in o)void 0===o[b].value&&a.push(b);return a}function d(){return 0===c().length}function e(){if(!m&&d()){m=!0;for(var a=0;a'+g+""),f.close();else if("true"===c){var s=g.replace(o,n);f.open(),f.write(""),f.write('

'),f.close()}else document.getElementById(l).src!==g&&e.contentWindow.location.replace(g);"true"===c&&d>0?(clearTimeout(j),j=setTimeout(b,d)):void 0!==j&&clearTimeout(j)}function c(){"true"!==p.render.value||"auto"!==q.width.value&&"auto"!==q.height.value?clearTimeout(k):(clearTimeout(k),k=setTimeout(b,500))}function d(a,b,c){for(var d in a)void 0!==a[d].itemName&&a[d].itemName===b&&(a[d].itemFunction&&(c=a[d].itemFunction(c)),a[d].value=c)}function e(a,c){d(p,a,c),d(q,a,c),smartHomeSubscriber.isInitialized()&&b()}function f(a,b){if(void 0===b)throw new Error("Property '"+a+"' is undefined")}function g(a){for(var b in a){var c=a[b].itemName;if(void 0!==c)smartHomeSubscriber.addItemListener(c,e);else if(void 0===a[b].value)throw new Error("Property '"+b+"' requires a default value or itemName to obtain the value from")}}function h(){f("frame",l),f("urlPrefix",m),f("panelPath",n),f("renderPanelPath",o),g(p),g(q),smartHomeSubscriber.addInitializedListener(b),window.addEventListener("resize",c)}var i=a,j=void 0,k=void 0,l=resolveParam(i,"frame"),m=resolveParam(i,"urlPrefix"),n=resolveParam(i,"panelPath"),o=resolveParam(i,"renderPanelPath"),p={debug:{value:resolveParam(i,"debug"),itemName:resolveParam(i,"debugItem"),itemFunction:a.debugItemFunction},render:{value:resolveParam(i,"render"),itemName:resolveParam(i,"renderItem"),itemFunction:a.renderItemFunction},refresh:{value:resolveParam(i,"refresh"),itemName:resolveParam(i,"refreshItem"),itemFunction:a.refreshItemFunction}},q={dashboard:{value:resolveParam(i,"dashboard"),itemName:resolveParam(i,"dashboardItem"),itemFunction:a.dashboardItemFunction},from:{key:"from",value:resolveParam(i,"from"),itemName:resolveParam(i,"fromItem"),itemFunction:a.fromItemFunction},to:{key:"to",value:resolveParam(i,"to"),itemName:resolveParam(i,"toItem"),itemFunction:a.toItemFunction},panel:{key:"panelId",value:resolveParam(i,"panel"),itemName:resolveParam(i,"panelItem"),itemFunction:a.panelItemFunction},theme:{key:"theme",value:resolveParam(i,"theme"),itemName:resolveParam(i,"themeItem"),itemFunction:a.themeItemFunction},width:{key:"width",value:resolveParam(i,"width"),itemName:resolveParam(i,"widthItem"),itemFunction:a.widthItemFunction},height:{key:"height",value:resolveParam(i,"height"),itemName:resolveParam(i,"heightItem"),itemFunction:a.heightItemFunction}};h()}function createGuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"===a?b:3&b|8).toString(16)})}function addGrafanaPanel(a,b){void 0===a&&(a=createGuid());var c=document.createElement("div");c.id="panel-"+a+"-container",c.className="panel-container",document.body.appendChild(c);var d=document.createElement("iframe");d.id="panel-"+a+"-frame",d.className="panel-frame",d.scrolling="no",c.appendChild(d),void 0===b&&(b={}),b.frame=d.id;var e=new GrafanaPanel(b);grafanaPanels.push(e)}var SMARTHOME_GRAFANA_DEFAULTS={debug:"false",render:"false",refresh:"0",sitemap:"default",urlPrefix:"http://grafana:3000",panelPath:"/dashboard-solo/db/",renderPanelPath:"/render/dashboard-solo/db/",from:"now-1d",to:"now",theme:"light",width:"auto",height:"auto"},urlParams=queryParams(window.location),parentUrlParams=queryParams(window.parent.location.href),smartHomeSubscriber=new SmartHomeSubscriber,grafanaPanels=[]; \ No newline at end of file