Use a font-awesome spinner instead of an animated gif when loading entities

This commit is contained in:
Fabio Manganiello 2023-04-25 16:42:01 +02:00
parent cb288deb71
commit ee54e0edbf
Signed by: blacklight
GPG key ID: D90FBA7F76362774
92 changed files with 130 additions and 129 deletions

View file

@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><link rel="stylesheet" href="/fonts/poppins.css"><title>platypush</title><script defer="defer" type="module" src="/static/js/chunk-vendors.95bedba1.js"></script><script defer="defer" type="module" src="/static/js/app.6a5f1fbc.js"></script><link href="/static/css/chunk-vendors.0fcd36f0.css" rel="stylesheet"><link href="/static/css/app.11a00465.css" rel="stylesheet"><script defer="defer" src="/static/js/chunk-vendors-legacy.79dede0c.js" nomodule></script><script defer="defer" src="/static/js/app-legacy.4538d5dd.js" nomodule></script></head><body><noscript><strong>We're sorry but platypush doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html> <!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><link rel="stylesheet" href="/fonts/poppins.css"><title>platypush</title><script defer="defer" type="module" src="/static/js/chunk-vendors.95bedba1.js"></script><script defer="defer" type="module" src="/static/js/app.9381dbaf.js"></script><link href="/static/css/chunk-vendors.0fcd36f0.css" rel="stylesheet"><link href="/static/css/app.11a00465.css" rel="stylesheet"><script defer="defer" src="/static/js/chunk-vendors-legacy.79dede0c.js" nomodule></script><script defer="defer" src="/static/js/app-legacy.5d55c8be.js" nomodule></script></head><body><noscript><strong>We're sorry but platypush doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1897],{1897:function(l,e,a){a.r(e),a.d(e,{default:function(){return ll}});a(8309);var n=a(6252),t=a(3577),s=a(9963),c=function(l){return(0,n.dD)("data-v-2344dc1c"),l=l(),(0,n.Cn)(),l},i={class:"col-1 icon"},v={class:"col-8 label"},o=["textContent"],d=["textContent"],u={key:0,class:"body children attributes fade-in"},r={key:0,class:"child"},_=c((function(){return(0,n._)("div",{class:"col-s-12 col-m-6 label"},[(0,n._)("div",{class:"name"},"Total")],-1)})),C={class:"value"},m=["textContent"],f={key:1,class:"child"},k=c((function(){return(0,n._)("div",{class:"col-s-12 col-m-6 label"},[(0,n._)("div",{class:"name"},"Available")],-1)})),h={class:"value"},p=["textContent"],w={key:2,class:"child"},x=c((function(){return(0,n._)("div",{class:"col-s-12 col-m-6 label"},[(0,n._)("div",{class:"name"},"Used")],-1)})),y={class:"value"},z=["textContent"],b={key:3,class:"child"},g=c((function(){return(0,n._)("div",{class:"col-s-12 col-m-6 label"},[(0,n._)("div",{class:"name"},"Free")],-1)})),D={class:"value"},S=["textContent"],q={key:4,class:"child"},I=c((function(){return(0,n._)("div",{class:"col-s-12 col-m-6 label"},[(0,n._)("div",{class:"name"},"Active")],-1)})),M={class:"value"},A=["textContent"],E={key:5,class:"child"},B=c((function(){return(0,n._)("div",{class:"col-s-12 col-m-6 label"},[(0,n._)("div",{class:"name"},"Inactive")],-1)})),F={class:"value"},T=["textContent"],U={key:6,class:"child"},W=c((function(){return(0,n._)("div",{class:"col-s-12 col-m-6 label"},[(0,n._)("div",{class:"name"},"Buffers")],-1)})),Z={class:"value"},j=["textContent"],G={key:7,class:"child"},H=c((function(){return(0,n._)("div",{class:"col-s-12 col-m-6 label"},[(0,n._)("div",{class:"name"},"Cached")],-1)})),J={class:"value"},K=["textContent"],L={key:8,class:"child"},N=c((function(){return(0,n._)("div",{class:"col-s-12 col-m-6 label"},[(0,n._)("div",{class:"name"},"Shared")],-1)})),O={class:"value"},P=["textContent"];function Q(l,e,a,c,Q,R){var V=(0,n.up)("EntityIcon");return(0,n.wg)(),(0,n.iD)("div",{class:(0,t.C_)(["entity memory-stats-container",{expanded:!Q.isCollapsed}])},[(0,n._)("div",{class:"head",onClick:e[1]||(e[1]=(0,s.iM)((function(l){return Q.isCollapsed=!Q.isCollapsed}),["stop"]))},[(0,n._)("div",i,[(0,n.Wm)(V,{entity:l.value,loading:l.loading,error:l.error},null,8,["entity","loading","error"])]),(0,n._)("div",v,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.value.name)},null,8,o)]),(0,n._)("div",{class:"col-2 value",textContent:(0,t.zw)(Math.round(100*l.value.percent,1)+"%")},null,8,d),(0,n._)("div",{class:"col-1 collapse-toggler",onClick:e[0]||(e[0]=(0,s.iM)((function(l){return Q.isCollapsed=!Q.isCollapsed}),["stop"]))},[(0,n._)("i",{class:(0,t.C_)(["fas",{"fa-chevron-down":Q.isCollapsed,"fa-chevron-up":!Q.isCollapsed}])},null,2)])]),Q.isCollapsed?(0,n.kq)("",!0):((0,n.wg)(),(0,n.iD)("div",u,[null!=l.value.total?((0,n.wg)(),(0,n.iD)("div",r,[_,(0,n._)("div",C,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.total))},null,8,m)])])):(0,n.kq)("",!0),null!=l.value.available?((0,n.wg)(),(0,n.iD)("div",f,[k,(0,n._)("div",h,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.available))},null,8,p)])])):(0,n.kq)("",!0),null!=l.value.used?((0,n.wg)(),(0,n.iD)("div",w,[x,(0,n._)("div",y,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.used))},null,8,z)])])):(0,n.kq)("",!0),null!=l.value.free?((0,n.wg)(),(0,n.iD)("div",b,[g,(0,n._)("div",D,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.free))},null,8,S)])])):(0,n.kq)("",!0),null!=l.value.active?((0,n.wg)(),(0,n.iD)("div",q,[I,(0,n._)("div",M,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.active))},null,8,A)])])):(0,n.kq)("",!0),null!=l.value.inactive?((0,n.wg)(),(0,n.iD)("div",E,[B,(0,n._)("div",F,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.inactive))},null,8,T)])])):(0,n.kq)("",!0),null!=l.value.buffers?((0,n.wg)(),(0,n.iD)("div",U,[W,(0,n._)("div",Z,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.buffers))},null,8,j)])])):(0,n.kq)("",!0),null!=l.value.cached?((0,n.wg)(),(0,n.iD)("div",G,[H,(0,n._)("div",J,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.cached))},null,8,K)])])):(0,n.kq)("",!0),null!=l.value.shared?((0,n.wg)(),(0,n.iD)("div",L,[N,(0,n._)("div",O,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.shared))},null,8,P)])])):(0,n.kq)("",!0)]))],2)}var R=a(7909),V=a(3459),X={name:"MemoryStats",components:{EntityIcon:V["default"]},mixins:[R["default"]],data:function(){return{isCollapsed:!0}}},Y=a(3744);const $=(0,Y.Z)(X,[["render",Q],["__scopeId","data-v-2344dc1c"]]);var ll=$}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1897],{1897:function(l,e,a){a.r(e),a.d(e,{default:function(){return ll}});a(8309);var n=a(6252),t=a(3577),s=a(9963),c=function(l){return(0,n.dD)("data-v-2344dc1c"),l=l(),(0,n.Cn)(),l},i={class:"col-1 icon"},v={class:"col-8 label"},o=["textContent"],d=["textContent"],u={key:0,class:"body children attributes fade-in"},r={key:0,class:"child"},_=c((function(){return(0,n._)("div",{class:"col-s-12 col-m-6 label"},[(0,n._)("div",{class:"name"},"Total")],-1)})),C={class:"value"},m=["textContent"],f={key:1,class:"child"},k=c((function(){return(0,n._)("div",{class:"col-s-12 col-m-6 label"},[(0,n._)("div",{class:"name"},"Available")],-1)})),h={class:"value"},p=["textContent"],w={key:2,class:"child"},x=c((function(){return(0,n._)("div",{class:"col-s-12 col-m-6 label"},[(0,n._)("div",{class:"name"},"Used")],-1)})),y={class:"value"},z=["textContent"],b={key:3,class:"child"},g=c((function(){return(0,n._)("div",{class:"col-s-12 col-m-6 label"},[(0,n._)("div",{class:"name"},"Free")],-1)})),D={class:"value"},S=["textContent"],q={key:4,class:"child"},I=c((function(){return(0,n._)("div",{class:"col-s-12 col-m-6 label"},[(0,n._)("div",{class:"name"},"Active")],-1)})),M={class:"value"},A=["textContent"],E={key:5,class:"child"},B=c((function(){return(0,n._)("div",{class:"col-s-12 col-m-6 label"},[(0,n._)("div",{class:"name"},"Inactive")],-1)})),F={class:"value"},T=["textContent"],U={key:6,class:"child"},W=c((function(){return(0,n._)("div",{class:"col-s-12 col-m-6 label"},[(0,n._)("div",{class:"name"},"Buffers")],-1)})),Z={class:"value"},j=["textContent"],G={key:7,class:"child"},H=c((function(){return(0,n._)("div",{class:"col-s-12 col-m-6 label"},[(0,n._)("div",{class:"name"},"Cached")],-1)})),J={class:"value"},K=["textContent"],L={key:8,class:"child"},N=c((function(){return(0,n._)("div",{class:"col-s-12 col-m-6 label"},[(0,n._)("div",{class:"name"},"Shared")],-1)})),O={class:"value"},P=["textContent"];function Q(l,e,a,c,Q,R){var V=(0,n.up)("EntityIcon");return(0,n.wg)(),(0,n.iD)("div",{class:(0,t.C_)(["entity memory-stats-container",{expanded:!Q.isCollapsed}])},[(0,n._)("div",{class:"head",onClick:e[1]||(e[1]=(0,s.iM)((function(l){return Q.isCollapsed=!Q.isCollapsed}),["stop"]))},[(0,n._)("div",i,[(0,n.Wm)(V,{entity:l.value,loading:l.loading,error:l.error},null,8,["entity","loading","error"])]),(0,n._)("div",v,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.value.name)},null,8,o)]),(0,n._)("div",{class:"col-2 value",textContent:(0,t.zw)(Math.round(100*l.value.percent,1)+"%")},null,8,d),(0,n._)("div",{class:"col-1 collapse-toggler",onClick:e[0]||(e[0]=(0,s.iM)((function(l){return Q.isCollapsed=!Q.isCollapsed}),["stop"]))},[(0,n._)("i",{class:(0,t.C_)(["fas",{"fa-chevron-down":Q.isCollapsed,"fa-chevron-up":!Q.isCollapsed}])},null,2)])]),Q.isCollapsed?(0,n.kq)("",!0):((0,n.wg)(),(0,n.iD)("div",u,[null!=l.value.total?((0,n.wg)(),(0,n.iD)("div",r,[_,(0,n._)("div",C,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.total))},null,8,m)])])):(0,n.kq)("",!0),null!=l.value.available?((0,n.wg)(),(0,n.iD)("div",f,[k,(0,n._)("div",h,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.available))},null,8,p)])])):(0,n.kq)("",!0),null!=l.value.used?((0,n.wg)(),(0,n.iD)("div",w,[x,(0,n._)("div",y,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.used))},null,8,z)])])):(0,n.kq)("",!0),null!=l.value.free?((0,n.wg)(),(0,n.iD)("div",b,[g,(0,n._)("div",D,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.free))},null,8,S)])])):(0,n.kq)("",!0),null!=l.value.active?((0,n.wg)(),(0,n.iD)("div",q,[I,(0,n._)("div",M,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.active))},null,8,A)])])):(0,n.kq)("",!0),null!=l.value.inactive?((0,n.wg)(),(0,n.iD)("div",E,[B,(0,n._)("div",F,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.inactive))},null,8,T)])])):(0,n.kq)("",!0),null!=l.value.buffers?((0,n.wg)(),(0,n.iD)("div",U,[W,(0,n._)("div",Z,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.buffers))},null,8,j)])])):(0,n.kq)("",!0),null!=l.value.cached?((0,n.wg)(),(0,n.iD)("div",G,[H,(0,n._)("div",J,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.cached))},null,8,K)])])):(0,n.kq)("",!0),null!=l.value.shared?((0,n.wg)(),(0,n.iD)("div",L,[N,(0,n._)("div",O,[(0,n._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.shared))},null,8,P)])])):(0,n.kq)("",!0)]))],2)}var R=a(7909),V=a(5017),X={name:"MemoryStats",components:{EntityIcon:V["default"]},mixins:[R["default"]],data:function(){return{isCollapsed:!0}}},Y=a(3744);const $=(0,Y.Z)(X,[["render",Q],["__scopeId","data-v-2344dc1c"]]);var ll=$}}]);
//# sourceMappingURL=1897-legacy.78fe295f.js.map //# sourceMappingURL=1897-legacy.d7f7dde3.js.map

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1897],{1897:function(l,e,a){a.r(e),a.d(e,{default:function(){return ll}});var s=a(6252),t=a(3577),n=a(9963);const c=l=>((0,s.dD)("data-v-2344dc1c"),l=l(),(0,s.Cn)(),l),i={class:"col-1 icon"},v={class:"col-8 label"},d=["textContent"],o=["textContent"],u={key:0,class:"body children attributes fade-in"},r={key:0,class:"child"},_=c((()=>(0,s._)("div",{class:"col-s-12 col-m-6 label"},[(0,s._)("div",{class:"name"},"Total")],-1))),C={class:"value"},m=["textContent"],k={key:1,class:"child"},h=c((()=>(0,s._)("div",{class:"col-s-12 col-m-6 label"},[(0,s._)("div",{class:"name"},"Available")],-1))),p={class:"value"},w=["textContent"],x={key:2,class:"child"},f=c((()=>(0,s._)("div",{class:"col-s-12 col-m-6 label"},[(0,s._)("div",{class:"name"},"Used")],-1))),y={class:"value"},z=["textContent"],b={key:3,class:"child"},g=c((()=>(0,s._)("div",{class:"col-s-12 col-m-6 label"},[(0,s._)("div",{class:"name"},"Free")],-1))),D={class:"value"},S=["textContent"],q={key:4,class:"child"},I=c((()=>(0,s._)("div",{class:"col-s-12 col-m-6 label"},[(0,s._)("div",{class:"name"},"Active")],-1))),M={class:"value"},A=["textContent"],E={key:5,class:"child"},B=c((()=>(0,s._)("div",{class:"col-s-12 col-m-6 label"},[(0,s._)("div",{class:"name"},"Inactive")],-1))),F={class:"value"},T=["textContent"],U={key:6,class:"child"},W=c((()=>(0,s._)("div",{class:"col-s-12 col-m-6 label"},[(0,s._)("div",{class:"name"},"Buffers")],-1))),Z={class:"value"},j=["textContent"],G={key:7,class:"child"},H=c((()=>(0,s._)("div",{class:"col-s-12 col-m-6 label"},[(0,s._)("div",{class:"name"},"Cached")],-1))),J={class:"value"},K=["textContent"],L={key:8,class:"child"},N=c((()=>(0,s._)("div",{class:"col-s-12 col-m-6 label"},[(0,s._)("div",{class:"name"},"Shared")],-1))),O={class:"value"},P=["textContent"];function Q(l,e,a,c,Q,R){const V=(0,s.up)("EntityIcon");return(0,s.wg)(),(0,s.iD)("div",{class:(0,t.C_)(["entity memory-stats-container",{expanded:!Q.isCollapsed}])},[(0,s._)("div",{class:"head",onClick:e[1]||(e[1]=(0,n.iM)((l=>Q.isCollapsed=!Q.isCollapsed),["stop"]))},[(0,s._)("div",i,[(0,s.Wm)(V,{entity:l.value,loading:l.loading,error:l.error},null,8,["entity","loading","error"])]),(0,s._)("div",v,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.value.name)},null,8,d)]),(0,s._)("div",{class:"col-2 value",textContent:(0,t.zw)(Math.round(100*l.value.percent,1)+"%")},null,8,o),(0,s._)("div",{class:"col-1 collapse-toggler",onClick:e[0]||(e[0]=(0,n.iM)((l=>Q.isCollapsed=!Q.isCollapsed),["stop"]))},[(0,s._)("i",{class:(0,t.C_)(["fas",{"fa-chevron-down":Q.isCollapsed,"fa-chevron-up":!Q.isCollapsed}])},null,2)])]),Q.isCollapsed?(0,s.kq)("",!0):((0,s.wg)(),(0,s.iD)("div",u,[null!=l.value.total?((0,s.wg)(),(0,s.iD)("div",r,[_,(0,s._)("div",C,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.total))},null,8,m)])])):(0,s.kq)("",!0),null!=l.value.available?((0,s.wg)(),(0,s.iD)("div",k,[h,(0,s._)("div",p,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.available))},null,8,w)])])):(0,s.kq)("",!0),null!=l.value.used?((0,s.wg)(),(0,s.iD)("div",x,[f,(0,s._)("div",y,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.used))},null,8,z)])])):(0,s.kq)("",!0),null!=l.value.free?((0,s.wg)(),(0,s.iD)("div",b,[g,(0,s._)("div",D,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.free))},null,8,S)])])):(0,s.kq)("",!0),null!=l.value.active?((0,s.wg)(),(0,s.iD)("div",q,[I,(0,s._)("div",M,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.active))},null,8,A)])])):(0,s.kq)("",!0),null!=l.value.inactive?((0,s.wg)(),(0,s.iD)("div",E,[B,(0,s._)("div",F,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.inactive))},null,8,T)])])):(0,s.kq)("",!0),null!=l.value.buffers?((0,s.wg)(),(0,s.iD)("div",U,[W,(0,s._)("div",Z,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.buffers))},null,8,j)])])):(0,s.kq)("",!0),null!=l.value.cached?((0,s.wg)(),(0,s.iD)("div",G,[H,(0,s._)("div",J,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.cached))},null,8,K)])])):(0,s.kq)("",!0),null!=l.value.shared?((0,s.wg)(),(0,s.iD)("div",L,[N,(0,s._)("div",O,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.shared))},null,8,P)])])):(0,s.kq)("",!0)]))],2)}var R=a(7909),V=a(3459),X={name:"MemoryStats",components:{EntityIcon:V["default"]},mixins:[R["default"]],data(){return{isCollapsed:!0}}},Y=a(3744);const $=(0,Y.Z)(X,[["render",Q],["__scopeId","data-v-2344dc1c"]]);var ll=$}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1897],{1897:function(l,e,a){a.r(e),a.d(e,{default:function(){return ll}});var s=a(6252),t=a(3577),n=a(9963);const c=l=>((0,s.dD)("data-v-2344dc1c"),l=l(),(0,s.Cn)(),l),i={class:"col-1 icon"},v={class:"col-8 label"},d=["textContent"],o=["textContent"],u={key:0,class:"body children attributes fade-in"},r={key:0,class:"child"},_=c((()=>(0,s._)("div",{class:"col-s-12 col-m-6 label"},[(0,s._)("div",{class:"name"},"Total")],-1))),C={class:"value"},m=["textContent"],k={key:1,class:"child"},h=c((()=>(0,s._)("div",{class:"col-s-12 col-m-6 label"},[(0,s._)("div",{class:"name"},"Available")],-1))),p={class:"value"},w=["textContent"],x={key:2,class:"child"},f=c((()=>(0,s._)("div",{class:"col-s-12 col-m-6 label"},[(0,s._)("div",{class:"name"},"Used")],-1))),y={class:"value"},z=["textContent"],b={key:3,class:"child"},g=c((()=>(0,s._)("div",{class:"col-s-12 col-m-6 label"},[(0,s._)("div",{class:"name"},"Free")],-1))),D={class:"value"},S=["textContent"],q={key:4,class:"child"},I=c((()=>(0,s._)("div",{class:"col-s-12 col-m-6 label"},[(0,s._)("div",{class:"name"},"Active")],-1))),M={class:"value"},A=["textContent"],E={key:5,class:"child"},B=c((()=>(0,s._)("div",{class:"col-s-12 col-m-6 label"},[(0,s._)("div",{class:"name"},"Inactive")],-1))),F={class:"value"},T=["textContent"],U={key:6,class:"child"},W=c((()=>(0,s._)("div",{class:"col-s-12 col-m-6 label"},[(0,s._)("div",{class:"name"},"Buffers")],-1))),Z={class:"value"},j=["textContent"],G={key:7,class:"child"},H=c((()=>(0,s._)("div",{class:"col-s-12 col-m-6 label"},[(0,s._)("div",{class:"name"},"Cached")],-1))),J={class:"value"},K=["textContent"],L={key:8,class:"child"},N=c((()=>(0,s._)("div",{class:"col-s-12 col-m-6 label"},[(0,s._)("div",{class:"name"},"Shared")],-1))),O={class:"value"},P=["textContent"];function Q(l,e,a,c,Q,R){const V=(0,s.up)("EntityIcon");return(0,s.wg)(),(0,s.iD)("div",{class:(0,t.C_)(["entity memory-stats-container",{expanded:!Q.isCollapsed}])},[(0,s._)("div",{class:"head",onClick:e[1]||(e[1]=(0,n.iM)((l=>Q.isCollapsed=!Q.isCollapsed),["stop"]))},[(0,s._)("div",i,[(0,s.Wm)(V,{entity:l.value,loading:l.loading,error:l.error},null,8,["entity","loading","error"])]),(0,s._)("div",v,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.value.name)},null,8,d)]),(0,s._)("div",{class:"col-2 value",textContent:(0,t.zw)(Math.round(100*l.value.percent,1)+"%")},null,8,o),(0,s._)("div",{class:"col-1 collapse-toggler",onClick:e[0]||(e[0]=(0,n.iM)((l=>Q.isCollapsed=!Q.isCollapsed),["stop"]))},[(0,s._)("i",{class:(0,t.C_)(["fas",{"fa-chevron-down":Q.isCollapsed,"fa-chevron-up":!Q.isCollapsed}])},null,2)])]),Q.isCollapsed?(0,s.kq)("",!0):((0,s.wg)(),(0,s.iD)("div",u,[null!=l.value.total?((0,s.wg)(),(0,s.iD)("div",r,[_,(0,s._)("div",C,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.total))},null,8,m)])])):(0,s.kq)("",!0),null!=l.value.available?((0,s.wg)(),(0,s.iD)("div",k,[h,(0,s._)("div",p,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.available))},null,8,w)])])):(0,s.kq)("",!0),null!=l.value.used?((0,s.wg)(),(0,s.iD)("div",x,[f,(0,s._)("div",y,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.used))},null,8,z)])])):(0,s.kq)("",!0),null!=l.value.free?((0,s.wg)(),(0,s.iD)("div",b,[g,(0,s._)("div",D,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.free))},null,8,S)])])):(0,s.kq)("",!0),null!=l.value.active?((0,s.wg)(),(0,s.iD)("div",q,[I,(0,s._)("div",M,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.active))},null,8,A)])])):(0,s.kq)("",!0),null!=l.value.inactive?((0,s.wg)(),(0,s.iD)("div",E,[B,(0,s._)("div",F,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.inactive))},null,8,T)])])):(0,s.kq)("",!0),null!=l.value.buffers?((0,s.wg)(),(0,s.iD)("div",U,[W,(0,s._)("div",Z,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.buffers))},null,8,j)])])):(0,s.kq)("",!0),null!=l.value.cached?((0,s.wg)(),(0,s.iD)("div",G,[H,(0,s._)("div",J,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.cached))},null,8,K)])])):(0,s.kq)("",!0),null!=l.value.shared?((0,s.wg)(),(0,s.iD)("div",L,[N,(0,s._)("div",O,[(0,s._)("div",{class:"name",textContent:(0,t.zw)(l.convertSize(l.value.shared))},null,8,P)])])):(0,s.kq)("",!0)]))],2)}var R=a(7909),V=a(5017),X={name:"MemoryStats",components:{EntityIcon:V["default"]},mixins:[R["default"]],data(){return{isCollapsed:!0}}},Y=a(3744);const $=(0,Y.Z)(X,[["render",Q],["__scopeId","data-v-2344dc1c"]]);var ll=$}}]);
//# sourceMappingURL=1897.8d867f67.js.map //# sourceMappingURL=1897.9b3e3df1.js.map

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2306],{2306:function(e,t,l){l.r(t),l.d(t,{default:function(){return x}});l(8309),l(1539),l(3948);var n=l(6252),a=l(3577),u=l(9963),i={class:"entity switch-container"},s={class:"col-1 icon"},o={class:"col-s-8 col-m-9 label"},r=["textContent"],c={class:"col-s-3 col-m-2 buttons pull-right"},v=["textContent"],d={class:"row"},p={class:"input"},f=["disabled"],h={key:0,value:"",selected:""},g=["value","selected","textContent"];function w(e,t,l,w,y,k){var m,_=(0,n.up)("EntityIcon");return(0,n.wg)(),(0,n.iD)("div",i,[(0,n._)("div",{class:(0,a.C_)(["head",{collapsed:e.collapsed}])},[(0,n._)("div",s,[(0,n.Wm)(_,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,n._)("div",o,[(0,n._)("div",{class:"name",textContent:(0,a.zw)(e.value.name)},null,8,r)]),(0,n._)("div",c,[null!=(null===(m=e.value)||void 0===m?void 0:m.value)?((0,n.wg)(),(0,n.iD)("span",{key:0,class:"value",textContent:(0,a.zw)(e.value.values[e.value.value]||e.value.value)},null,8,v)):(0,n.kq)("",!0),k.hasValues?((0,n.wg)(),(0,n.iD)("button",{key:1,onClick:t[0]||(t[0]=(0,u.iM)((function(t){return e.collapsed=!e.collapsed}),["stop"]))},[(0,n._)("i",{class:(0,a.C_)(["fas",{"fa-angle-up":!e.collapsed,"fa-angle-down":e.collapsed}])},null,2)])):(0,n.kq)("",!0)])],2),e.collapsed?(0,n.kq)("",!0):((0,n.wg)(),(0,n.iD)("div",{key:0,class:"body",onClick:t[2]||(t[2]=(0,u.iM)((function(){return k.prevent&&k.prevent.apply(k,arguments)}),["stop"]))},[(0,n._)("div",d,[(0,n._)("div",p,[(0,n._)("select",{onInput:t[1]||(t[1]=function(){return k.setValue&&k.setValue.apply(k,arguments)}),ref:"values",disabled:e.loading},[e.value.is_write_only?((0,n.wg)(),(0,n.iD)("option",h,"--")):(0,n.kq)("",!0),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(k.displayValues,(function(t,l){return(0,n.wg)(),(0,n.iD)("option",{value:l,selected:l==e.value.value,key:l,textContent:(0,a.zw)(t)},null,8,g)})),128))],40,f)])])]))])}var y=l(8534),k=(l(5666),l(2479),l(7909)),m=l(3459),_={name:"EnumSwitch",components:{EntityIcon:m["default"]},mixins:[k["default"]],computed:{hasValues:function(){var e;return!!Object.values((null===this||void 0===this||null===(e=this.value)||void 0===e?void 0:e.values)||{}).length},displayValues:function(){var e,t;return(null===(e=this.value)||void 0===e?void 0:e.values)instanceof Array?this.value.values.reduce((function(e,t){return e[t]=t,e}),{}):(null===(t=this.value)||void 0===t?void 0:t.values)||{}}},methods:{prevent:function(e){return e.stopPropagation(),!1},setValue:function(e){var t=this;return(0,y.Z)(regeneratorRuntime.mark((function l(){var n,a;return regeneratorRuntime.wrap((function(l){while(1)switch(l.prev=l.next){case 0:if(null!==(n=e.target.value)&&void 0!==n&&n.length){l.next=2;break}return l.abrupt("return");case 2:return t.$emit("loading",!0),t.value.is_write_only&&(a=t,setTimeout((function(){a.$refs.values.value=""}),1e3)),l.prev=4,l.next=7,t.request("entities.execute",{id:t.value.id,action:"set",value:e.target.value});case 7:return l.prev=7,t.$emit("loading",!1),l.finish(7);case 10:case"end":return l.stop()}}),l,null,[[4,,7,10]])})))()}}},b=l(3744);const C=(0,b.Z)(_,[["render",w],["__scopeId","data-v-1bc82e80"]]);var x=C}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2306],{2306:function(e,t,l){l.r(t),l.d(t,{default:function(){return x}});l(8309),l(1539),l(3948);var n=l(6252),a=l(3577),u=l(9963),i={class:"entity switch-container"},s={class:"col-1 icon"},o={class:"col-s-8 col-m-9 label"},r=["textContent"],c={class:"col-s-3 col-m-2 buttons pull-right"},v=["textContent"],d={class:"row"},p={class:"input"},f=["disabled"],h={key:0,value:"",selected:""},g=["value","selected","textContent"];function w(e,t,l,w,y,k){var m,_=(0,n.up)("EntityIcon");return(0,n.wg)(),(0,n.iD)("div",i,[(0,n._)("div",{class:(0,a.C_)(["head",{collapsed:e.collapsed}])},[(0,n._)("div",s,[(0,n.Wm)(_,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,n._)("div",o,[(0,n._)("div",{class:"name",textContent:(0,a.zw)(e.value.name)},null,8,r)]),(0,n._)("div",c,[null!=(null===(m=e.value)||void 0===m?void 0:m.value)?((0,n.wg)(),(0,n.iD)("span",{key:0,class:"value",textContent:(0,a.zw)(e.value.values[e.value.value]||e.value.value)},null,8,v)):(0,n.kq)("",!0),k.hasValues?((0,n.wg)(),(0,n.iD)("button",{key:1,onClick:t[0]||(t[0]=(0,u.iM)((function(t){return e.collapsed=!e.collapsed}),["stop"]))},[(0,n._)("i",{class:(0,a.C_)(["fas",{"fa-angle-up":!e.collapsed,"fa-angle-down":e.collapsed}])},null,2)])):(0,n.kq)("",!0)])],2),e.collapsed?(0,n.kq)("",!0):((0,n.wg)(),(0,n.iD)("div",{key:0,class:"body",onClick:t[2]||(t[2]=(0,u.iM)((function(){return k.prevent&&k.prevent.apply(k,arguments)}),["stop"]))},[(0,n._)("div",d,[(0,n._)("div",p,[(0,n._)("select",{onInput:t[1]||(t[1]=function(){return k.setValue&&k.setValue.apply(k,arguments)}),ref:"values",disabled:e.loading},[e.value.is_write_only?((0,n.wg)(),(0,n.iD)("option",h,"--")):(0,n.kq)("",!0),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(k.displayValues,(function(t,l){return(0,n.wg)(),(0,n.iD)("option",{value:l,selected:l==e.value.value,key:l,textContent:(0,a.zw)(t)},null,8,g)})),128))],40,f)])])]))])}var y=l(8534),k=(l(5666),l(2479),l(7909)),m=l(5017),_={name:"EnumSwitch",components:{EntityIcon:m["default"]},mixins:[k["default"]],computed:{hasValues:function(){var e;return!!Object.values((null===this||void 0===this||null===(e=this.value)||void 0===e?void 0:e.values)||{}).length},displayValues:function(){var e,t;return(null===(e=this.value)||void 0===e?void 0:e.values)instanceof Array?this.value.values.reduce((function(e,t){return e[t]=t,e}),{}):(null===(t=this.value)||void 0===t?void 0:t.values)||{}}},methods:{prevent:function(e){return e.stopPropagation(),!1},setValue:function(e){var t=this;return(0,y.Z)(regeneratorRuntime.mark((function l(){var n,a;return regeneratorRuntime.wrap((function(l){while(1)switch(l.prev=l.next){case 0:if(null!==(n=e.target.value)&&void 0!==n&&n.length){l.next=2;break}return l.abrupt("return");case 2:return t.$emit("loading",!0),t.value.is_write_only&&(a=t,setTimeout((function(){a.$refs.values.value=""}),1e3)),l.prev=4,l.next=7,t.request("entities.execute",{id:t.value.id,action:"set",value:e.target.value});case 7:return l.prev=7,t.$emit("loading",!1),l.finish(7);case 10:case"end":return l.stop()}}),l,null,[[4,,7,10]])})))()}}},b=l(3744);const C=(0,b.Z)(_,[["render",w],["__scopeId","data-v-1bc82e80"]]);var x=C}}]);
//# sourceMappingURL=2306-legacy.8182246b.js.map //# sourceMappingURL=2306-legacy.ac52efe1.js.map

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2306],{2306:function(e,l,t){t.r(l),t.d(l,{default:function(){return b}});var a=t(6252),s=t(3577),n=t(9963);const i={class:"entity switch-container"},u={class:"col-1 icon"},o={class:"col-s-8 col-m-9 label"},c=["textContent"],v={class:"col-s-3 col-m-2 buttons pull-right"},d=["textContent"],r={class:"row"},p={class:"input"},h=["disabled"],g={key:0,value:"",selected:""},y=["value","selected","textContent"];function w(e,l,t,w,f,_){const k=(0,a.up)("EntityIcon");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a._)("div",{class:(0,s.C_)(["head",{collapsed:e.collapsed}])},[(0,a._)("div",u,[(0,a.Wm)(k,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,a._)("div",o,[(0,a._)("div",{class:"name",textContent:(0,s.zw)(e.value.name)},null,8,c)]),(0,a._)("div",v,[null!=e.value?.value?((0,a.wg)(),(0,a.iD)("span",{key:0,class:"value",textContent:(0,s.zw)(e.value.values[e.value.value]||e.value.value)},null,8,d)):(0,a.kq)("",!0),_.hasValues?((0,a.wg)(),(0,a.iD)("button",{key:1,onClick:l[0]||(l[0]=(0,n.iM)((l=>e.collapsed=!e.collapsed),["stop"]))},[(0,a._)("i",{class:(0,s.C_)(["fas",{"fa-angle-up":!e.collapsed,"fa-angle-down":e.collapsed}])},null,2)])):(0,a.kq)("",!0)])],2),e.collapsed?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",{key:0,class:"body",onClick:l[2]||(l[2]=(0,n.iM)(((...e)=>_.prevent&&_.prevent(...e)),["stop"]))},[(0,a._)("div",r,[(0,a._)("div",p,[(0,a._)("select",{onInput:l[1]||(l[1]=(...e)=>_.setValue&&_.setValue(...e)),ref:"values",disabled:e.loading},[e.value.is_write_only?((0,a.wg)(),(0,a.iD)("option",g,"--")):(0,a.kq)("",!0),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(_.displayValues,((l,t)=>((0,a.wg)(),(0,a.iD)("option",{value:t,selected:t==e.value.value,key:t,textContent:(0,s.zw)(l)},null,8,y)))),128))],40,h)])])]))])}var f=t(7909),_=t(3459),k={name:"EnumSwitch",components:{EntityIcon:_["default"]},mixins:[f["default"]],computed:{hasValues(){return!!Object.values(this?.value?.values||{}).length},displayValues(){return this.value?.values instanceof Array?this.value.values.reduce(((e,l)=>(e[l]=l,e)),{}):this.value?.values||{}}},methods:{prevent(e){return e.stopPropagation(),!1},async setValue(e){if(e.target.value?.length){if(this.$emit("loading",!0),this.value.is_write_only){const e=this;setTimeout((()=>{e.$refs.values.value=""}),1e3)}try{await this.request("entities.execute",{id:this.value.id,action:"set",value:e.target.value})}finally{this.$emit("loading",!1)}}}}},m=t(3744);const C=(0,m.Z)(k,[["render",w],["__scopeId","data-v-1bc82e80"]]);var b=C}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2306],{2306:function(e,l,t){t.r(l),t.d(l,{default:function(){return b}});var a=t(6252),s=t(3577),n=t(9963);const i={class:"entity switch-container"},u={class:"col-1 icon"},o={class:"col-s-8 col-m-9 label"},c=["textContent"],v={class:"col-s-3 col-m-2 buttons pull-right"},d=["textContent"],r={class:"row"},p={class:"input"},h=["disabled"],g={key:0,value:"",selected:""},y=["value","selected","textContent"];function w(e,l,t,w,f,_){const k=(0,a.up)("EntityIcon");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a._)("div",{class:(0,s.C_)(["head",{collapsed:e.collapsed}])},[(0,a._)("div",u,[(0,a.Wm)(k,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,a._)("div",o,[(0,a._)("div",{class:"name",textContent:(0,s.zw)(e.value.name)},null,8,c)]),(0,a._)("div",v,[null!=e.value?.value?((0,a.wg)(),(0,a.iD)("span",{key:0,class:"value",textContent:(0,s.zw)(e.value.values[e.value.value]||e.value.value)},null,8,d)):(0,a.kq)("",!0),_.hasValues?((0,a.wg)(),(0,a.iD)("button",{key:1,onClick:l[0]||(l[0]=(0,n.iM)((l=>e.collapsed=!e.collapsed),["stop"]))},[(0,a._)("i",{class:(0,s.C_)(["fas",{"fa-angle-up":!e.collapsed,"fa-angle-down":e.collapsed}])},null,2)])):(0,a.kq)("",!0)])],2),e.collapsed?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",{key:0,class:"body",onClick:l[2]||(l[2]=(0,n.iM)(((...e)=>_.prevent&&_.prevent(...e)),["stop"]))},[(0,a._)("div",r,[(0,a._)("div",p,[(0,a._)("select",{onInput:l[1]||(l[1]=(...e)=>_.setValue&&_.setValue(...e)),ref:"values",disabled:e.loading},[e.value.is_write_only?((0,a.wg)(),(0,a.iD)("option",g,"--")):(0,a.kq)("",!0),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(_.displayValues,((l,t)=>((0,a.wg)(),(0,a.iD)("option",{value:t,selected:t==e.value.value,key:t,textContent:(0,s.zw)(l)},null,8,y)))),128))],40,h)])])]))])}var f=t(7909),_=t(5017),k={name:"EnumSwitch",components:{EntityIcon:_["default"]},mixins:[f["default"]],computed:{hasValues(){return!!Object.values(this?.value?.values||{}).length},displayValues(){return this.value?.values instanceof Array?this.value.values.reduce(((e,l)=>(e[l]=l,e)),{}):this.value?.values||{}}},methods:{prevent(e){return e.stopPropagation(),!1},async setValue(e){if(e.target.value?.length){if(this.$emit("loading",!0),this.value.is_write_only){const e=this;setTimeout((()=>{e.$refs.values.value=""}),1e3)}try{await this.request("entities.execute",{id:this.value.id,action:"set",value:e.target.value})}finally{this.$emit("loading",!1)}}}}},m=t(3744);const C=(0,m.Z)(k,[["render",w],["__scopeId","data-v-1bc82e80"]]);var b=C}}]);
//# sourceMappingURL=2306.c228cea9.js.map //# sourceMappingURL=2306.6e2c77fc.js.map

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2745],{2745:function(n,t,e){e.r(t),e.d(t,{default:function(){return C}});e(8309);var a=e(6252),l=e(3577),c={class:"entity cpu-container"},o={class:"head"},u={class:"col-1 icon"},r={class:"col-9 label"},i=["textContent"],s=["textContent"];function d(n,t,e,d,v,p){var f=(0,a.up)("EntityIcon");return(0,a.wg)(),(0,a.iD)("div",c,[(0,a._)("div",o,[(0,a._)("div",u,[(0,a.Wm)(f,{entity:n.value,loading:n.loading,error:n.error},null,8,["entity","loading","error"])]),(0,a._)("div",r,[(0,a._)("div",{class:"name",textContent:(0,l.zw)(n.value.name)},null,8,i)]),(0,a._)("div",{class:"col-2 value",textContent:(0,l.zw)(Math.round(100*n.value.percent,1)+"%")},null,8,s)])])}var v=e(7909),p=e(3459),f={name:"Cpu",components:{EntityIcon:p["default"]},mixins:[v["default"]]},h=e(3744);const y=(0,h.Z)(f,[["render",d],["__scopeId","data-v-3ba7dce2"]]);var C=y}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2745],{2745:function(n,t,e){e.r(t),e.d(t,{default:function(){return C}});e(8309);var a=e(6252),l=e(3577),c={class:"entity cpu-container"},o={class:"head"},u={class:"col-1 icon"},r={class:"col-9 label"},i=["textContent"],s=["textContent"];function d(n,t,e,d,v,p){var f=(0,a.up)("EntityIcon");return(0,a.wg)(),(0,a.iD)("div",c,[(0,a._)("div",o,[(0,a._)("div",u,[(0,a.Wm)(f,{entity:n.value,loading:n.loading,error:n.error},null,8,["entity","loading","error"])]),(0,a._)("div",r,[(0,a._)("div",{class:"name",textContent:(0,l.zw)(n.value.name)},null,8,i)]),(0,a._)("div",{class:"col-2 value",textContent:(0,l.zw)(Math.round(100*n.value.percent,1)+"%")},null,8,s)])])}var v=e(7909),p=e(5017),f={name:"Cpu",components:{EntityIcon:p["default"]},mixins:[v["default"]]},h=e(3744);const y=(0,h.Z)(f,[["render",d],["__scopeId","data-v-3ba7dce2"]]);var C=y}}]);
//# sourceMappingURL=2745-legacy.7fb48703.js.map //# sourceMappingURL=2745-legacy.0ca790d1.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/2745-legacy.7fb48703.js","mappings":"kMACOA,MAAM,wB,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,e,2GATf,QAeM,MAfN,EAeM,EAdJ,OAaM,MAbN,EAaM,EAZJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,aAGF,OAA6E,OAAxEL,MAAM,c,aAAc,QAAiD,KAApCM,MAAmB,IAAb,EAAAJ,MAAMK,QAAO,SAAzD,a,yBASN,GACEF,KAAM,MACNG,WAAY,CAACC,WAAAA,EAAA,YACbC,OAAQ,CAACC,EAAA,a,UCnBX,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Cpu.vue","webpack://platypush/./src/components/panels/Entities/Cpu.vue?2542"],"sourcesContent":["<template>\n <div class=\"entity cpu-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-2 value\" v-text=\"Math.round(value.percent * 100, 1) + '%'\" />\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'Cpu',\n components: {EntityIcon},\n mixins: [EntityMixin],\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.cpu-container {\n .head {\n .value {\n text-align: right;\n font-weight: bold;\n }\n }\n}\n</style>\n","import { render } from \"./Cpu.vue?vue&type=template&id=3ba7dce2&scoped=true\"\nimport script from \"./Cpu.vue?vue&type=script&lang=js\"\nexport * from \"./Cpu.vue?vue&type=script&lang=js\"\n\nimport \"./Cpu.vue?vue&type=style&index=0&id=3ba7dce2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3ba7dce2\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","round","percent","components","EntityIcon","mixins","EntityMixin","__exports__","render"],"sourceRoot":""} {"version":3,"file":"static/js/2745-legacy.0ca790d1.js","mappings":"kMACOA,MAAM,wB,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,e,2GATf,QAeM,MAfN,EAeM,EAdJ,OAaM,MAbN,EAaM,EAZJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,aAGF,OAA6E,OAAxEL,MAAM,c,aAAc,QAAiD,KAApCM,MAAmB,IAAb,EAAAJ,MAAMK,QAAO,SAAzD,a,yBASN,GACEF,KAAM,MACNG,WAAY,CAACC,WAAAA,EAAA,YACbC,OAAQ,CAACC,EAAA,a,UCnBX,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Cpu.vue","webpack://platypush/./src/components/panels/Entities/Cpu.vue?2542"],"sourcesContent":["<template>\n <div class=\"entity cpu-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-2 value\" v-text=\"Math.round(value.percent * 100, 1) + '%'\" />\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'Cpu',\n components: {EntityIcon},\n mixins: [EntityMixin],\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.cpu-container {\n .head {\n .value {\n text-align: right;\n font-weight: bold;\n }\n }\n}\n</style>\n","import { render } from \"./Cpu.vue?vue&type=template&id=3ba7dce2&scoped=true\"\nimport script from \"./Cpu.vue?vue&type=script&lang=js\"\nexport * from \"./Cpu.vue?vue&type=script&lang=js\"\n\nimport \"./Cpu.vue?vue&type=style&index=0&id=3ba7dce2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3ba7dce2\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","round","percent","components","EntityIcon","mixins","EntityMixin","__exports__","render"],"sourceRoot":""}

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2745],{2745:function(n,t,e){e.r(t),e.d(t,{default:function(){return C}});var a=e(6252),l=e(3577);const c={class:"entity cpu-container"},o={class:"head"},s={class:"col-1 icon"},u={class:"col-9 label"},i=["textContent"],r=["textContent"];function d(n,t,e,d,v,p){const f=(0,a.up)("EntityIcon");return(0,a.wg)(),(0,a.iD)("div",c,[(0,a._)("div",o,[(0,a._)("div",s,[(0,a.Wm)(f,{entity:n.value,loading:n.loading,error:n.error},null,8,["entity","loading","error"])]),(0,a._)("div",u,[(0,a._)("div",{class:"name",textContent:(0,l.zw)(n.value.name)},null,8,i)]),(0,a._)("div",{class:"col-2 value",textContent:(0,l.zw)(Math.round(100*n.value.percent,1)+"%")},null,8,r)])])}var v=e(7909),p=e(3459),f={name:"Cpu",components:{EntityIcon:p["default"]},mixins:[v["default"]]},h=e(3744);const y=(0,h.Z)(f,[["render",d],["__scopeId","data-v-3ba7dce2"]]);var C=y}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2745],{2745:function(n,t,e){e.r(t),e.d(t,{default:function(){return C}});var a=e(6252),l=e(3577);const c={class:"entity cpu-container"},o={class:"head"},s={class:"col-1 icon"},u={class:"col-9 label"},i=["textContent"],r=["textContent"];function d(n,t,e,d,v,p){const f=(0,a.up)("EntityIcon");return(0,a.wg)(),(0,a.iD)("div",c,[(0,a._)("div",o,[(0,a._)("div",s,[(0,a.Wm)(f,{entity:n.value,loading:n.loading,error:n.error},null,8,["entity","loading","error"])]),(0,a._)("div",u,[(0,a._)("div",{class:"name",textContent:(0,l.zw)(n.value.name)},null,8,i)]),(0,a._)("div",{class:"col-2 value",textContent:(0,l.zw)(Math.round(100*n.value.percent,1)+"%")},null,8,r)])])}var v=e(7909),p=e(5017),f={name:"Cpu",components:{EntityIcon:p["default"]},mixins:[v["default"]]},h=e(3744);const y=(0,h.Z)(f,[["render",d],["__scopeId","data-v-3ba7dce2"]]);var C=y}}]);
//# sourceMappingURL=2745.46efa5fb.js.map //# sourceMappingURL=2745.45a2d6bd.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/2745.46efa5fb.js","mappings":"gMACOA,MAAM,wB,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,e,6GATf,QAeM,MAfN,EAeM,EAdJ,OAaM,MAbN,EAaM,EAZJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,aAGF,OAA6E,OAAxEL,MAAM,c,aAAc,QAAiD,KAApCM,MAAmB,IAAb,EAAAJ,MAAMK,QAAO,SAAzD,a,yBASN,GACEF,KAAM,MACNG,WAAY,CAACC,WAAU,cACvBC,OAAQ,CAACC,EAAA,a,UCnBX,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Cpu.vue","webpack://platypush/./src/components/panels/Entities/Cpu.vue?2542"],"sourcesContent":["<template>\n <div class=\"entity cpu-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-2 value\" v-text=\"Math.round(value.percent * 100, 1) + '%'\" />\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'Cpu',\n components: {EntityIcon},\n mixins: [EntityMixin],\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.cpu-container {\n .head {\n .value {\n text-align: right;\n font-weight: bold;\n }\n }\n}\n</style>\n","import { render } from \"./Cpu.vue?vue&type=template&id=3ba7dce2&scoped=true\"\nimport script from \"./Cpu.vue?vue&type=script&lang=js\"\nexport * from \"./Cpu.vue?vue&type=script&lang=js\"\n\nimport \"./Cpu.vue?vue&type=style&index=0&id=3ba7dce2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3ba7dce2\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","round","percent","components","EntityIcon","mixins","EntityMixin","__exports__","render"],"sourceRoot":""} {"version":3,"file":"static/js/2745.45a2d6bd.js","mappings":"gMACOA,MAAM,wB,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,e,6GATf,QAeM,MAfN,EAeM,EAdJ,OAaM,MAbN,EAaM,EAZJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,aAGF,OAA6E,OAAxEL,MAAM,c,aAAc,QAAiD,KAApCM,MAAmB,IAAb,EAAAJ,MAAMK,QAAO,SAAzD,a,yBASN,GACEF,KAAM,MACNG,WAAY,CAACC,WAAU,cACvBC,OAAQ,CAACC,EAAA,a,UCnBX,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Cpu.vue","webpack://platypush/./src/components/panels/Entities/Cpu.vue?2542"],"sourcesContent":["<template>\n <div class=\"entity cpu-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-2 value\" v-text=\"Math.round(value.percent * 100, 1) + '%'\" />\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'Cpu',\n components: {EntityIcon},\n mixins: [EntityMixin],\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.cpu-container {\n .head {\n .value {\n text-align: right;\n font-weight: bold;\n }\n }\n}\n</style>\n","import { render } from \"./Cpu.vue?vue&type=template&id=3ba7dce2&scoped=true\"\nimport script from \"./Cpu.vue?vue&type=script&lang=js\"\nexport * from \"./Cpu.vue?vue&type=script&lang=js\"\n\nimport \"./Cpu.vue?vue&type=style&index=0&id=3ba7dce2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3ba7dce2\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","round","percent","components","EntityIcon","mixins","EntityMixin","__exports__","render"],"sourceRoot":""}

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[3303],{6:function(e,t,n){n.d(t,{Z:function(){return h}});var a=n(6252),i=n(3577),l=n(9963),o=function(e){return(0,a.dD)("data-v-a6396ae8"),e=e(),(0,a.Cn)(),e},u=["checked"],s=o((function(){return(0,a._)("div",{class:"switch"},[(0,a._)("div",{class:"dot"})],-1)})),r={class:"label"};function c(e,t,n,o,c,d){return(0,a.wg)(),(0,a.iD)("div",{class:(0,i.C_)(["power-switch",{disabled:n.disabled}]),onClick:t[0]||(t[0]=(0,l.iM)((function(){return d.onInput&&d.onInput.apply(d,arguments)}),["stop"]))},[(0,a._)("input",{type:"checkbox",checked:n.value},null,8,u),(0,a._)("label",null,[s,(0,a._)("span",r,[(0,a.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var d={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput:function(e){if(this.disabled)return!1;this.$emit("input",e)}}},p=n(3744);const v=(0,p.Z)(d,[["render",c],["__scopeId","data-v-a6396ae8"]]);var h=v},3303:function(e,t,n){n.r(t),n.d(t,{default:function(){return y}});n(8309);var a=n(6252),i=n(3577),l=n(9963),o={class:"entity switch-container"},u={class:"head"},s={class:"col-1 icon"},r={class:"col-9 label"},c=["textContent"],d={class:"col-2 switch pull-right"};function p(e,t,n,p,v,h){var f=(0,a.up)("EntityIcon"),g=(0,a.up)("ToggleSwitch");return(0,a.wg)(),(0,a.iD)("div",o,[(0,a._)("div",u,[(0,a._)("div",s,[(0,a.Wm)(f,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,a._)("div",r,[(0,a._)("div",{class:"name",textContent:(0,i.zw)(e.value.name)},null,8,c)]),(0,a._)("div",d,[(0,a.Wm)(g,{value:!e.value.is_write_only&&e.value.state,disabled:e.loading||e.value.is_read_only,onInput:h.toggle,onClick:t[0]||(t[0]=(0,l.iM)((function(){}),["stop"]))},null,8,["value","disabled","onInput"])])])])}var v=n(8534),h=(n(5666),n(6)),f=n(3459),g=n(7909),_={name:"Switch",components:{ToggleSwitch:h.Z,EntityIcon:f["default"]},mixins:[g["default"]],methods:{toggle:function(e){var t=this;return(0,v.Z)(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.stopPropagation(),t.$emit("loading",!0),n.prev=2,n.next=5,t.request("entities.execute",{id:t.value.id,action:"toggle"});case 5:t.value.is_write_only&&(a=t,a.value.state=!0,setTimeout((function(){return a.value.state=!1}),250));case 6:return n.prev=6,t.$emit("loading",!1),n.finish(6);case 9:case"end":return n.stop()}}),n,null,[[2,,6,9]])})))()}}},w=n(3744);const m=(0,w.Z)(_,[["render",p],["__scopeId","data-v-2aaabd26"]]);var y=m}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[3303],{6:function(e,t,n){n.d(t,{Z:function(){return h}});var a=n(6252),i=n(3577),l=n(9963),o=function(e){return(0,a.dD)("data-v-a6396ae8"),e=e(),(0,a.Cn)(),e},u=["checked"],s=o((function(){return(0,a._)("div",{class:"switch"},[(0,a._)("div",{class:"dot"})],-1)})),r={class:"label"};function c(e,t,n,o,c,d){return(0,a.wg)(),(0,a.iD)("div",{class:(0,i.C_)(["power-switch",{disabled:n.disabled}]),onClick:t[0]||(t[0]=(0,l.iM)((function(){return d.onInput&&d.onInput.apply(d,arguments)}),["stop"]))},[(0,a._)("input",{type:"checkbox",checked:n.value},null,8,u),(0,a._)("label",null,[s,(0,a._)("span",r,[(0,a.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var d={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput:function(e){if(this.disabled)return!1;this.$emit("input",e)}}},p=n(3744);const v=(0,p.Z)(d,[["render",c],["__scopeId","data-v-a6396ae8"]]);var h=v},3303:function(e,t,n){n.r(t),n.d(t,{default:function(){return y}});n(8309);var a=n(6252),i=n(3577),l=n(9963),o={class:"entity switch-container"},u={class:"head"},s={class:"col-1 icon"},r={class:"col-9 label"},c=["textContent"],d={class:"col-2 switch pull-right"};function p(e,t,n,p,v,h){var f=(0,a.up)("EntityIcon"),g=(0,a.up)("ToggleSwitch");return(0,a.wg)(),(0,a.iD)("div",o,[(0,a._)("div",u,[(0,a._)("div",s,[(0,a.Wm)(f,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,a._)("div",r,[(0,a._)("div",{class:"name",textContent:(0,i.zw)(e.value.name)},null,8,c)]),(0,a._)("div",d,[(0,a.Wm)(g,{value:!e.value.is_write_only&&e.value.state,disabled:e.loading||e.value.is_read_only,onInput:h.toggle,onClick:t[0]||(t[0]=(0,l.iM)((function(){}),["stop"]))},null,8,["value","disabled","onInput"])])])])}var v=n(8534),h=(n(5666),n(6)),f=n(5017),g=n(7909),_={name:"Switch",components:{ToggleSwitch:h.Z,EntityIcon:f["default"]},mixins:[g["default"]],methods:{toggle:function(e){var t=this;return(0,v.Z)(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.stopPropagation(),t.$emit("loading",!0),n.prev=2,n.next=5,t.request("entities.execute",{id:t.value.id,action:"toggle"});case 5:t.value.is_write_only&&(a=t,a.value.state=!0,setTimeout((function(){return a.value.state=!1}),250));case 6:return n.prev=6,t.$emit("loading",!1),n.finish(6);case 9:case"end":return n.stop()}}),n,null,[[2,,6,9]])})))()}}},w=n(3744);const m=(0,w.Z)(_,[["render",p],["__scopeId","data-v-2aaabd26"]]);var y=m}}]);
//# sourceMappingURL=3303-legacy.8afafd97.js.map //# sourceMappingURL=3303-legacy.33873dc6.js.map

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[3303],{6:function(t,e,a){a.d(e,{Z:function(){return h}});var n=a(6252),i=a(3577),l=a(9963);const s=t=>((0,n.dD)("data-v-a6396ae8"),t=t(),(0,n.Cn)(),t),o=["checked"],u=s((()=>(0,n._)("div",{class:"switch"},[(0,n._)("div",{class:"dot"})],-1))),c={class:"label"};function d(t,e,a,s,d,r){return(0,n.wg)(),(0,n.iD)("div",{class:(0,i.C_)(["power-switch",{disabled:a.disabled}]),onClick:e[0]||(e[0]=(0,l.iM)(((...t)=>r.onInput&&r.onInput(...t)),["stop"]))},[(0,n._)("input",{type:"checkbox",checked:a.value},null,8,o),(0,n._)("label",null,[u,(0,n._)("span",c,[(0,n.WI)(t.$slots,"default",{},void 0,!0)])])],2)}var r={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(t){if(this.disabled)return!1;this.$emit("input",t)}}},p=a(3744);const v=(0,p.Z)(r,[["render",d],["__scopeId","data-v-a6396ae8"]]);var h=v},3303:function(t,e,a){a.r(e),a.d(e,{default:function(){return y}});var n=a(6252),i=a(3577),l=a(9963);const s={class:"entity switch-container"},o={class:"head"},u={class:"col-1 icon"},c={class:"col-9 label"},d=["textContent"],r={class:"col-2 switch pull-right"};function p(t,e,a,p,v,h){const g=(0,n.up)("EntityIcon"),_=(0,n.up)("ToggleSwitch");return(0,n.wg)(),(0,n.iD)("div",s,[(0,n._)("div",o,[(0,n._)("div",u,[(0,n.Wm)(g,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,n._)("div",c,[(0,n._)("div",{class:"name",textContent:(0,i.zw)(t.value.name)},null,8,d)]),(0,n._)("div",r,[(0,n.Wm)(_,{value:!t.value.is_write_only&&t.value.state,disabled:t.loading||t.value.is_read_only,onInput:h.toggle,onClick:e[0]||(e[0]=(0,l.iM)((()=>{}),["stop"]))},null,8,["value","disabled","onInput"])])])])}var v=a(6),h=a(3459),g=a(7909),_={name:"Switch",components:{ToggleSwitch:v.Z,EntityIcon:h["default"]},mixins:[g["default"]],methods:{async toggle(t){t.stopPropagation(),this.$emit("loading",!0);try{if(await this.request("entities.execute",{id:this.value.id,action:"toggle"}),this.value.is_write_only){const t=this;t.value.state=!0,setTimeout((()=>t.value.state=!1),250)}}finally{this.$emit("loading",!1)}}}},f=a(3744);const w=(0,f.Z)(_,[["render",p],["__scopeId","data-v-2aaabd26"]]);var y=w}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[3303],{6:function(t,e,a){a.d(e,{Z:function(){return h}});var n=a(6252),i=a(3577),l=a(9963);const s=t=>((0,n.dD)("data-v-a6396ae8"),t=t(),(0,n.Cn)(),t),o=["checked"],u=s((()=>(0,n._)("div",{class:"switch"},[(0,n._)("div",{class:"dot"})],-1))),c={class:"label"};function d(t,e,a,s,d,r){return(0,n.wg)(),(0,n.iD)("div",{class:(0,i.C_)(["power-switch",{disabled:a.disabled}]),onClick:e[0]||(e[0]=(0,l.iM)(((...t)=>r.onInput&&r.onInput(...t)),["stop"]))},[(0,n._)("input",{type:"checkbox",checked:a.value},null,8,o),(0,n._)("label",null,[u,(0,n._)("span",c,[(0,n.WI)(t.$slots,"default",{},void 0,!0)])])],2)}var r={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(t){if(this.disabled)return!1;this.$emit("input",t)}}},p=a(3744);const v=(0,p.Z)(r,[["render",d],["__scopeId","data-v-a6396ae8"]]);var h=v},3303:function(t,e,a){a.r(e),a.d(e,{default:function(){return y}});var n=a(6252),i=a(3577),l=a(9963);const s={class:"entity switch-container"},o={class:"head"},u={class:"col-1 icon"},c={class:"col-9 label"},d=["textContent"],r={class:"col-2 switch pull-right"};function p(t,e,a,p,v,h){const g=(0,n.up)("EntityIcon"),_=(0,n.up)("ToggleSwitch");return(0,n.wg)(),(0,n.iD)("div",s,[(0,n._)("div",o,[(0,n._)("div",u,[(0,n.Wm)(g,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,n._)("div",c,[(0,n._)("div",{class:"name",textContent:(0,i.zw)(t.value.name)},null,8,d)]),(0,n._)("div",r,[(0,n.Wm)(_,{value:!t.value.is_write_only&&t.value.state,disabled:t.loading||t.value.is_read_only,onInput:h.toggle,onClick:e[0]||(e[0]=(0,l.iM)((()=>{}),["stop"]))},null,8,["value","disabled","onInput"])])])])}var v=a(6),h=a(5017),g=a(7909),_={name:"Switch",components:{ToggleSwitch:v.Z,EntityIcon:h["default"]},mixins:[g["default"]],methods:{async toggle(t){t.stopPropagation(),this.$emit("loading",!0);try{if(await this.request("entities.execute",{id:this.value.id,action:"toggle"}),this.value.is_write_only){const t=this;t.value.state=!0,setTimeout((()=>t.value.state=!1),250)}}finally{this.$emit("loading",!1)}}}},f=a(3744);const w=(0,f.Z)(_,[["render",p],["__scopeId","data-v-2aaabd26"]]);var y=w}}]);
//# sourceMappingURL=3303.8db3e72e.js.map //# sourceMappingURL=3303.dc4d32b5.js.map

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[359],{8816:function(e,t,a){a.d(t,{Z:function(){return y}});var l=a(6252),n=a(3577),s=a(9963);const i={class:"slider-wrapper"},u=["textContent"],r=["textContent"],o={class:"slider-container"},d=["min","max","step","disabled","value"],c={class:"track-inner",ref:"track"},p={class:"thumb",ref:"thumb"},v=["textContent"];function h(e,t,a,h,g,m){return(0,l.wg)(),(0,l.iD)("label",i,[a.withRange?((0,l.wg)(),(0,l.iD)("span",{key:0,class:(0,n.C_)(["range-labels",{"with-label":a.withLabel}])},[a.withRange?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"label left",textContent:(0,n.zw)(a.range[0])},null,8,u)):(0,l.kq)("",!0),a.withRange?((0,l.wg)(),(0,l.iD)("span",{key:1,class:"label right",textContent:(0,n.zw)(a.range[1])},null,8,r)):(0,l.kq)("",!0)],2)):(0,l.kq)("",!0),(0,l._)("span",o,[(0,l._)("input",{class:(0,n.C_)(["slider",{"with-label":a.withLabel}]),type:"range",min:a.range[0],max:a.range[1],step:a.step,disabled:a.disabled,value:a.value,ref:"range",onInput:t[0]||(t[0]=(0,s.iM)(((...e)=>m.onUpdate&&m.onUpdate(...e)),["stop"])),onChange:t[1]||(t[1]=(0,s.iM)(((...e)=>m.onUpdate&&m.onUpdate(...e)),["stop"]))},null,42,d),(0,l._)("div",{class:(0,n.C_)(["track",{"with-label":a.withLabel}])},[(0,l._)("div",c,null,512)],2),(0,l._)("div",p,null,512),a.withLabel?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"label",textContent:(0,n.zw)(a.value),ref:"label"},null,8,v)):(0,l.kq)("",!0)])])}var g={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1},withRange:{type:Boolean,default:!1}},methods:{onUpdate(e){this.update(e.target.value),this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.range.value}})},update(e){const t=this.$refs.range.clientWidth,a=(e-this.range[0])/(this.range[1]-this.range[0]),l=a*t,n=this.$refs.thumb;n.style.left=l-n.clientWidth/2+"px",this.$refs.thumb.style.transform=`translate(-${a}%, -50%)`,this.$refs.track.style.width=`${l}px`}},mounted(){null!=this.value&&this.update(this.value),this.$watch((()=>this.value),(e=>this.update(e)))}},m=a(3744);const w=(0,m.Z)(g,[["render",h],["__scopeId","data-v-4b38623f"]]);var y=w},359:function(e,t,a){a.r(t),a.d(t,{default:function(){return V}});var l=a(6252),n=a(3577),s=a(9963);const i={class:"entity dimmer-container"},u={class:"col-1 icon"},r={class:"col-s-7 col-m-8 label"},o=["textContent"],d={class:"col-s-4 col-m-3 buttons pull-right"},c=["textContent"],p={class:"row"},v={key:0,class:"input"},h={class:"col-10"},g={class:"col-2 value"},m=["value"],w={key:1,class:"input"},y={class:"col-12 value"},f=["value"];function b(e,t,a,b,_,k){const C=(0,l.up)("EntityIcon"),x=(0,l.up)("Slider");return(0,l.wg)(),(0,l.iD)("div",i,[(0,l._)("div",{class:(0,n.C_)(["head",{collapsed:e.collapsed}])},[(0,l._)("div",u,[(0,l.Wm)(C,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,l._)("div",r,[(0,l._)("div",{class:"name",textContent:(0,n.zw)(e.value.name)},null,8,o)]),(0,l._)("div",d,[null!=k.parsedValue?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"value-percent",textContent:(0,n.zw)(k.parsedValue)},null,8,c)):(0,l.kq)("",!0),(0,l._)("button",{onClick:t[0]||(t[0]=(0,s.iM)((t=>e.collapsed=!e.collapsed),["stop"]))},[(0,l._)("i",{class:(0,n.C_)(["fas",{"fa-angle-up":!e.collapsed,"fa-angle-down":e.collapsed}])},null,2)])])],2),e.collapsed?(0,l.kq)("",!0):((0,l.wg)(),(0,l.iD)("div",{key:0,class:"body",onClick:t[3]||(t[3]=(0,s.iM)(((...e)=>k.prevent&&k.prevent(...e)),["stop"]))},[(0,l._)("div",p,[null!=e.value?.min&&null!=e.value?.max?((0,l.wg)(),(0,l.iD)("div",v,[(0,l._)("div",h,[(0,l.Wm)(x,{range:[e.value.min,e.value.max],"with-range":"",value:e.value.value,onInput:k.setValue},null,8,["range","value","onInput"])]),(0,l._)("div",g,[(0,l._)("input",{type:"number",value:e.value.value,onChange:t[1]||(t[1]=(...e)=>k.setValue&&k.setValue(...e))},null,40,m)])])):((0,l.wg)(),(0,l.iD)("div",w,[(0,l._)("div",y,[(0,l._)("input",{type:"number",value:e.value.value,onChange:t[2]||(t[2]=(...e)=>k.setValue&&k.setValue(...e))},null,40,f)])]))])]))])}var _=a(8816),k=a(7909),C=a(3459),x={name:"Dimmer",components:{Slider:_.Z,EntityIcon:C["default"]},mixins:[k["default"]],computed:{parsedValue(){if(this.value?.is_write_only||null==this.value?.value)return null;let e=this.value.value;return this.value.unit&&(e=`${e} ${this.value.unit}`),e}},methods:{prevent(e){return e.stopPropagation(),!1},async setValue(e){if(e.target.value?.length){this.$emit("loading",!0);try{await this.request("entities.execute",{id:this.value.id,action:"set",value:+e.target.value})}finally{this.$emit("loading",!1)}}}}},$=a(3744);const D=(0,$.Z)(x,[["render",b],["__scopeId","data-v-231c14b6"]]);var V=D}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[359],{8816:function(e,t,a){a.d(t,{Z:function(){return y}});var l=a(6252),n=a(3577),s=a(9963);const i={class:"slider-wrapper"},u=["textContent"],r=["textContent"],o={class:"slider-container"},d=["min","max","step","disabled","value"],c={class:"track-inner",ref:"track"},p={class:"thumb",ref:"thumb"},v=["textContent"];function h(e,t,a,h,g,m){return(0,l.wg)(),(0,l.iD)("label",i,[a.withRange?((0,l.wg)(),(0,l.iD)("span",{key:0,class:(0,n.C_)(["range-labels",{"with-label":a.withLabel}])},[a.withRange?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"label left",textContent:(0,n.zw)(a.range[0])},null,8,u)):(0,l.kq)("",!0),a.withRange?((0,l.wg)(),(0,l.iD)("span",{key:1,class:"label right",textContent:(0,n.zw)(a.range[1])},null,8,r)):(0,l.kq)("",!0)],2)):(0,l.kq)("",!0),(0,l._)("span",o,[(0,l._)("input",{class:(0,n.C_)(["slider",{"with-label":a.withLabel}]),type:"range",min:a.range[0],max:a.range[1],step:a.step,disabled:a.disabled,value:a.value,ref:"range",onInput:t[0]||(t[0]=(0,s.iM)(((...e)=>m.onUpdate&&m.onUpdate(...e)),["stop"])),onChange:t[1]||(t[1]=(0,s.iM)(((...e)=>m.onUpdate&&m.onUpdate(...e)),["stop"]))},null,42,d),(0,l._)("div",{class:(0,n.C_)(["track",{"with-label":a.withLabel}])},[(0,l._)("div",c,null,512)],2),(0,l._)("div",p,null,512),a.withLabel?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"label",textContent:(0,n.zw)(a.value),ref:"label"},null,8,v)):(0,l.kq)("",!0)])])}var g={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1},withRange:{type:Boolean,default:!1}},methods:{onUpdate(e){this.update(e.target.value),this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.range.value}})},update(e){const t=this.$refs.range.clientWidth,a=(e-this.range[0])/(this.range[1]-this.range[0]),l=a*t,n=this.$refs.thumb;n.style.left=l-n.clientWidth/2+"px",this.$refs.thumb.style.transform=`translate(-${a}%, -50%)`,this.$refs.track.style.width=`${l}px`}},mounted(){null!=this.value&&this.update(this.value),this.$watch((()=>this.value),(e=>this.update(e)))}},m=a(3744);const w=(0,m.Z)(g,[["render",h],["__scopeId","data-v-4b38623f"]]);var y=w},359:function(e,t,a){a.r(t),a.d(t,{default:function(){return V}});var l=a(6252),n=a(3577),s=a(9963);const i={class:"entity dimmer-container"},u={class:"col-1 icon"},r={class:"col-s-7 col-m-8 label"},o=["textContent"],d={class:"col-s-4 col-m-3 buttons pull-right"},c=["textContent"],p={class:"row"},v={key:0,class:"input"},h={class:"col-10"},g={class:"col-2 value"},m=["value"],w={key:1,class:"input"},y={class:"col-12 value"},f=["value"];function b(e,t,a,b,_,k){const C=(0,l.up)("EntityIcon"),x=(0,l.up)("Slider");return(0,l.wg)(),(0,l.iD)("div",i,[(0,l._)("div",{class:(0,n.C_)(["head",{collapsed:e.collapsed}])},[(0,l._)("div",u,[(0,l.Wm)(C,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,l._)("div",r,[(0,l._)("div",{class:"name",textContent:(0,n.zw)(e.value.name)},null,8,o)]),(0,l._)("div",d,[null!=k.parsedValue?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"value-percent",textContent:(0,n.zw)(k.parsedValue)},null,8,c)):(0,l.kq)("",!0),(0,l._)("button",{onClick:t[0]||(t[0]=(0,s.iM)((t=>e.collapsed=!e.collapsed),["stop"]))},[(0,l._)("i",{class:(0,n.C_)(["fas",{"fa-angle-up":!e.collapsed,"fa-angle-down":e.collapsed}])},null,2)])])],2),e.collapsed?(0,l.kq)("",!0):((0,l.wg)(),(0,l.iD)("div",{key:0,class:"body",onClick:t[3]||(t[3]=(0,s.iM)(((...e)=>k.prevent&&k.prevent(...e)),["stop"]))},[(0,l._)("div",p,[null!=e.value?.min&&null!=e.value?.max?((0,l.wg)(),(0,l.iD)("div",v,[(0,l._)("div",h,[(0,l.Wm)(x,{range:[e.value.min,e.value.max],"with-range":"",value:e.value.value,onInput:k.setValue},null,8,["range","value","onInput"])]),(0,l._)("div",g,[(0,l._)("input",{type:"number",value:e.value.value,onChange:t[1]||(t[1]=(...e)=>k.setValue&&k.setValue(...e))},null,40,m)])])):((0,l.wg)(),(0,l.iD)("div",w,[(0,l._)("div",y,[(0,l._)("input",{type:"number",value:e.value.value,onChange:t[2]||(t[2]=(...e)=>k.setValue&&k.setValue(...e))},null,40,f)])]))])]))])}var _=a(8816),k=a(7909),C=a(5017),x={name:"Dimmer",components:{Slider:_.Z,EntityIcon:C["default"]},mixins:[k["default"]],computed:{parsedValue(){if(this.value?.is_write_only||null==this.value?.value)return null;let e=this.value.value;return this.value.unit&&(e=`${e} ${this.value.unit}`),e}},methods:{prevent(e){return e.stopPropagation(),!1},async setValue(e){if(e.target.value?.length){this.$emit("loading",!0);try{await this.request("entities.execute",{id:this.value.id,action:"set",value:+e.target.value})}finally{this.$emit("loading",!1)}}}}},$=a(3744);const D=(0,$.Z)(x,[["render",b],["__scopeId","data-v-231c14b6"]]);var V=D}}]);
//# sourceMappingURL=359.632020b4.js.map //# sourceMappingURL=359.a99a1eab.js.map

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5225],{5225:function(e,n,t){t.r(n),t.d(n,{default:function(){return h}});t(8309);var a=t(6252),l=t(3577),i={class:"entity device-container"},c={class:"head"},r={class:"col-1 icon"},o={class:"col-11 label"},s=["textContent"];function u(e,n,t,u,d,v){var p=(0,a.up)("EntityIcon");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a._)("div",c,[(0,a._)("div",r,[(0,a.Wm)(p,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,a._)("div",o,[(0,a._)("div",{class:"name",textContent:(0,l.zw)(e.value.name)},null,8,s)])])])}var d=t(7909),v=t(3459),p={name:"Device",components:{EntityIcon:v["default"]},mixins:[d["default"]]},f=t(3744);const y=(0,f.Z)(p,[["render",u],["__scopeId","data-v-1bfe1542"]]);var h=y}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5225],{5225:function(e,n,t){t.r(n),t.d(n,{default:function(){return h}});t(8309);var a=t(6252),l=t(3577),i={class:"entity device-container"},c={class:"head"},r={class:"col-1 icon"},o={class:"col-11 label"},s=["textContent"];function u(e,n,t,u,d,v){var p=(0,a.up)("EntityIcon");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a._)("div",c,[(0,a._)("div",r,[(0,a.Wm)(p,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,a._)("div",o,[(0,a._)("div",{class:"name",textContent:(0,l.zw)(e.value.name)},null,8,s)])])])}var d=t(7909),v=t(5017),p={name:"Device",components:{EntityIcon:v["default"]},mixins:[d["default"]]},f=t(3744);const y=(0,f.Z)(p,[["render",u],["__scopeId","data-v-1bfe1542"]]);var h=y}}]);
//# sourceMappingURL=5225-legacy.8c23bb1c.js.map //# sourceMappingURL=5225-legacy.bab5a186.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/5225-legacy.8c23bb1c.js","mappings":"kMACOA,MAAM,2B,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,gB,yFATf,QAaM,MAbN,EAaM,EAZJ,OAWM,MAXN,EAWM,EAVJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,e,yBAUR,GACEA,KAAM,SACNC,WAAY,CAACC,WAAAA,EAAA,YACbC,OAAQ,CAACC,EAAA,a,UCjBX,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Device.vue","webpack://platypush/./src/components/panels/Entities/Device.vue?1785"],"sourcesContent":["<template>\n <div class=\"entity device-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-11 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'Device',\n components: {EntityIcon},\n mixins: [EntityMixin],\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n</style>\n","import { render } from \"./Device.vue?vue&type=template&id=1bfe1542&scoped=true\"\nimport script from \"./Device.vue?vue&type=script&lang=js\"\nexport * from \"./Device.vue?vue&type=script&lang=js\"\n\nimport \"./Device.vue?vue&type=style&index=0&id=1bfe1542&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1bfe1542\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","components","EntityIcon","mixins","EntityMixin","__exports__","render"],"sourceRoot":""} {"version":3,"file":"static/js/5225-legacy.bab5a186.js","mappings":"kMACOA,MAAM,2B,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,gB,yFATf,QAaM,MAbN,EAaM,EAZJ,OAWM,MAXN,EAWM,EAVJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,e,yBAUR,GACEA,KAAM,SACNC,WAAY,CAACC,WAAAA,EAAA,YACbC,OAAQ,CAACC,EAAA,a,UCjBX,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Device.vue","webpack://platypush/./src/components/panels/Entities/Device.vue?1785"],"sourcesContent":["<template>\n <div class=\"entity device-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-11 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'Device',\n components: {EntityIcon},\n mixins: [EntityMixin],\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n</style>\n","import { render } from \"./Device.vue?vue&type=template&id=1bfe1542&scoped=true\"\nimport script from \"./Device.vue?vue&type=script&lang=js\"\nexport * from \"./Device.vue?vue&type=script&lang=js\"\n\nimport \"./Device.vue?vue&type=style&index=0&id=1bfe1542&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1bfe1542\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","components","EntityIcon","mixins","EntityMixin","__exports__","render"],"sourceRoot":""}

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5225],{5225:function(n,e,t){t.r(e),t.d(e,{default:function(){return h}});var a=t(6252),l=t(3577);const c={class:"entity device-container"},i={class:"head"},o={class:"col-1 icon"},s={class:"col-11 label"},r=["textContent"];function u(n,e,t,u,d,v){const p=(0,a.up)("EntityIcon");return(0,a.wg)(),(0,a.iD)("div",c,[(0,a._)("div",i,[(0,a._)("div",o,[(0,a.Wm)(p,{entity:n.value,loading:n.loading,error:n.error},null,8,["entity","loading","error"])]),(0,a._)("div",s,[(0,a._)("div",{class:"name",textContent:(0,l.zw)(n.value.name)},null,8,r)])])])}var d=t(7909),v=t(3459),p={name:"Device",components:{EntityIcon:v["default"]},mixins:[d["default"]]},f=t(3744);const y=(0,f.Z)(p,[["render",u],["__scopeId","data-v-1bfe1542"]]);var h=y}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5225],{5225:function(n,e,t){t.r(e),t.d(e,{default:function(){return h}});var a=t(6252),l=t(3577);const c={class:"entity device-container"},i={class:"head"},o={class:"col-1 icon"},s={class:"col-11 label"},r=["textContent"];function u(n,e,t,u,d,v){const p=(0,a.up)("EntityIcon");return(0,a.wg)(),(0,a.iD)("div",c,[(0,a._)("div",i,[(0,a._)("div",o,[(0,a.Wm)(p,{entity:n.value,loading:n.loading,error:n.error},null,8,["entity","loading","error"])]),(0,a._)("div",s,[(0,a._)("div",{class:"name",textContent:(0,l.zw)(n.value.name)},null,8,r)])])])}var d=t(7909),v=t(5017),p={name:"Device",components:{EntityIcon:v["default"]},mixins:[d["default"]]},f=t(3744);const y=(0,f.Z)(p,[["render",u],["__scopeId","data-v-1bfe1542"]]);var h=y}}]);
//# sourceMappingURL=5225.698f54a7.js.map //# sourceMappingURL=5225.a5cb58a3.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/5225.698f54a7.js","mappings":"gMACOA,MAAM,2B,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,gB,2FATf,QAaM,MAbN,EAaM,EAZJ,OAWM,MAXN,EAWM,EAVJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,e,yBAUR,GACEA,KAAM,SACNC,WAAY,CAACC,WAAU,cACvBC,OAAQ,CAACC,EAAA,a,UCjBX,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Device.vue","webpack://platypush/./src/components/panels/Entities/Device.vue?1785"],"sourcesContent":["<template>\n <div class=\"entity device-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-11 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'Device',\n components: {EntityIcon},\n mixins: [EntityMixin],\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n</style>\n","import { render } from \"./Device.vue?vue&type=template&id=1bfe1542&scoped=true\"\nimport script from \"./Device.vue?vue&type=script&lang=js\"\nexport * from \"./Device.vue?vue&type=script&lang=js\"\n\nimport \"./Device.vue?vue&type=style&index=0&id=1bfe1542&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1bfe1542\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","components","EntityIcon","mixins","EntityMixin","__exports__","render"],"sourceRoot":""} {"version":3,"file":"static/js/5225.a5cb58a3.js","mappings":"gMACOA,MAAM,2B,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,gB,2FATf,QAaM,MAbN,EAaM,EAZJ,OAWM,MAXN,EAWM,EAVJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,e,yBAUR,GACEA,KAAM,SACNC,WAAY,CAACC,WAAU,cACvBC,OAAQ,CAACC,EAAA,a,UCjBX,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Device.vue","webpack://platypush/./src/components/panels/Entities/Device.vue?1785"],"sourcesContent":["<template>\n <div class=\"entity device-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-11 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'Device',\n components: {EntityIcon},\n mixins: [EntityMixin],\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n</style>\n","import { render } from \"./Device.vue?vue&type=template&id=1bfe1542&scoped=true\"\nimport script from \"./Device.vue?vue&type=script&lang=js\"\nexport * from \"./Device.vue?vue&type=script&lang=js\"\n\nimport \"./Device.vue?vue&type=style&index=0&id=1bfe1542&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1bfe1542\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","components","EntityIcon","mixins","EntityMixin","__exports__","render"],"sourceRoot":""}

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5498],{6:function(e,n,t){t.d(n,{Z:function(){return h}});var i=t(6252),a=t(3577),r=t(9963),o=function(e){return(0,i.dD)("data-v-a6396ae8"),e=e(),(0,i.Cn)(),e},c=["checked"],u=o((function(){return(0,i._)("div",{class:"switch"},[(0,i._)("div",{class:"dot"})],-1)})),l={class:"label"};function s(e,n,t,o,s,d){return(0,i.wg)(),(0,i.iD)("div",{class:(0,a.C_)(["power-switch",{disabled:t.disabled}]),onClick:n[0]||(n[0]=(0,r.iM)((function(){return d.onInput&&d.onInput.apply(d,arguments)}),["stop"]))},[(0,i._)("input",{type:"checkbox",checked:t.value},null,8,c),(0,i._)("label",null,[u,(0,i._)("span",l,[(0,i.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var d={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput:function(e){if(this.disabled)return!1;this.$emit("input",e)}}},p=t(3744);const v=(0,p.Z)(d,[["render",s],["__scopeId","data-v-a6396ae8"]]);var h=v},5498:function(e,n,t){t.r(n),t.d(n,{default:function(){return b}});t(8309);var i=t(6252),a=t(3577),r=t(9963),o={class:"entity bluetooth-service-container"},c={class:"head"},u={class:"col-1 icon"},l={class:"col-9 label"},s=["textContent"],d={class:"col-2 connector pull-right"};function p(e,n,t,p,v,h){var f=(0,i.up)("EntityIcon"),g=(0,i.up)("ToggleSwitch");return(0,i.wg)(),(0,i.iD)("div",o,[(0,i._)("div",c,[(0,i._)("div",u,[(0,i.Wm)(f,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,i._)("div",l,[(0,i._)("div",{class:"name",textContent:(0,a.zw)(e.value.name)},null,8,s)]),(0,i._)("div",d,[(0,i.Wm)(g,{value:e.value.connected,disabled:e.loading,onInput:h.connect,onClick:n[0]||(n[0]=(0,r.iM)((function(){}),["stop"]))},null,8,["value","disabled","onInput"])])])])}var v=t(8534),h=(t(5666),t(6)),f=t(3459),g=t(7909),m={name:"BluetoothService",components:{ToggleSwitch:h.Z,EntityIcon:f["default"]},mixins:[g["default"]],methods:{connect:function(e){var n=this;return(0,v.Z)(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.stopPropagation(),n.$emit("loading",!0),i="bluetooth."+(n.value.connected?"disconnect":"connect"),t.prev=3,t.next=6,n.request(i,{device:n.parent.address,service_uuid:n.uuid});case 6:return t.prev=6,n.$emit("loading",!1),t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[3,,6,9]])})))()},disconnect:function(e){var n=this;return(0,v.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.stopPropagation(),n.$emit("loading",!0),t.prev=2,t.next=5,n.request("bluetooth.disconnect",{device:n.parent.address});case 5:return t.prev=5,n.$emit("loading",!1),t.finish(5);case 8:case"end":return t.stop()}}),t,null,[[2,,5,8]])})))()}}},w=t(3744);const _=(0,w.Z)(m,[["render",p],["__scopeId","data-v-5c801a06"]]);var b=_}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5498],{6:function(e,n,t){t.d(n,{Z:function(){return h}});var i=t(6252),a=t(3577),r=t(9963),o=function(e){return(0,i.dD)("data-v-a6396ae8"),e=e(),(0,i.Cn)(),e},c=["checked"],u=o((function(){return(0,i._)("div",{class:"switch"},[(0,i._)("div",{class:"dot"})],-1)})),l={class:"label"};function s(e,n,t,o,s,d){return(0,i.wg)(),(0,i.iD)("div",{class:(0,a.C_)(["power-switch",{disabled:t.disabled}]),onClick:n[0]||(n[0]=(0,r.iM)((function(){return d.onInput&&d.onInput.apply(d,arguments)}),["stop"]))},[(0,i._)("input",{type:"checkbox",checked:t.value},null,8,c),(0,i._)("label",null,[u,(0,i._)("span",l,[(0,i.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var d={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput:function(e){if(this.disabled)return!1;this.$emit("input",e)}}},p=t(3744);const v=(0,p.Z)(d,[["render",s],["__scopeId","data-v-a6396ae8"]]);var h=v},5498:function(e,n,t){t.r(n),t.d(n,{default:function(){return b}});t(8309);var i=t(6252),a=t(3577),r=t(9963),o={class:"entity bluetooth-service-container"},c={class:"head"},u={class:"col-1 icon"},l={class:"col-9 label"},s=["textContent"],d={class:"col-2 connector pull-right"};function p(e,n,t,p,v,h){var f=(0,i.up)("EntityIcon"),g=(0,i.up)("ToggleSwitch");return(0,i.wg)(),(0,i.iD)("div",o,[(0,i._)("div",c,[(0,i._)("div",u,[(0,i.Wm)(f,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,i._)("div",l,[(0,i._)("div",{class:"name",textContent:(0,a.zw)(e.value.name)},null,8,s)]),(0,i._)("div",d,[(0,i.Wm)(g,{value:e.value.connected,disabled:e.loading,onInput:h.connect,onClick:n[0]||(n[0]=(0,r.iM)((function(){}),["stop"]))},null,8,["value","disabled","onInput"])])])])}var v=t(8534),h=(t(5666),t(6)),f=t(5017),g=t(7909),m={name:"BluetoothService",components:{ToggleSwitch:h.Z,EntityIcon:f["default"]},mixins:[g["default"]],methods:{connect:function(e){var n=this;return(0,v.Z)(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.stopPropagation(),n.$emit("loading",!0),i="bluetooth."+(n.value.connected?"disconnect":"connect"),t.prev=3,t.next=6,n.request(i,{device:n.parent.address,service_uuid:n.uuid});case 6:return t.prev=6,n.$emit("loading",!1),t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[3,,6,9]])})))()},disconnect:function(e){var n=this;return(0,v.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.stopPropagation(),n.$emit("loading",!0),t.prev=2,t.next=5,n.request("bluetooth.disconnect",{device:n.parent.address});case 5:return t.prev=5,n.$emit("loading",!1),t.finish(5);case 8:case"end":return t.stop()}}),t,null,[[2,,5,8]])})))()}}},w=t(3744);const _=(0,w.Z)(m,[["render",p],["__scopeId","data-v-5c801a06"]]);var b=_}}]);
//# sourceMappingURL=5498-legacy.25114ef6.js.map //# sourceMappingURL=5498-legacy.f12c69fd.js.map

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5498],{6:function(t,e,n){n.d(e,{Z:function(){return v}});var i=n(6252),a=n(3577),o=n(9963);const s=t=>((0,i.dD)("data-v-a6396ae8"),t=t(),(0,i.Cn)(),t),l=["checked"],c=s((()=>(0,i._)("div",{class:"switch"},[(0,i._)("div",{class:"dot"})],-1))),d={class:"label"};function u(t,e,n,s,u,r){return(0,i.wg)(),(0,i.iD)("div",{class:(0,a.C_)(["power-switch",{disabled:n.disabled}]),onClick:e[0]||(e[0]=(0,o.iM)(((...t)=>r.onInput&&r.onInput(...t)),["stop"]))},[(0,i._)("input",{type:"checkbox",checked:n.value},null,8,l),(0,i._)("label",null,[c,(0,i._)("span",d,[(0,i.WI)(t.$slots,"default",{},void 0,!0)])])],2)}var r={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(t){if(this.disabled)return!1;this.$emit("input",t)}}},p=n(3744);const h=(0,p.Z)(r,[["render",u],["__scopeId","data-v-a6396ae8"]]);var v=h},5498:function(t,e,n){n.r(e),n.d(e,{default:function(){return _}});var i=n(6252),a=n(3577),o=n(9963);const s={class:"entity bluetooth-service-container"},l={class:"head"},c={class:"col-1 icon"},d={class:"col-9 label"},u=["textContent"],r={class:"col-2 connector pull-right"};function p(t,e,n,p,h,v){const g=(0,i.up)("EntityIcon"),f=(0,i.up)("ToggleSwitch");return(0,i.wg)(),(0,i.iD)("div",s,[(0,i._)("div",l,[(0,i._)("div",c,[(0,i.Wm)(g,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,i._)("div",d,[(0,i._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,u)]),(0,i._)("div",r,[(0,i.Wm)(f,{value:t.value.connected,disabled:t.loading,onInput:v.connect,onClick:e[0]||(e[0]=(0,o.iM)((()=>{}),["stop"]))},null,8,["value","disabled","onInput"])])])])}var h=n(6),v=n(3459),g=n(7909),f={name:"BluetoothService",components:{ToggleSwitch:h.Z,EntityIcon:v["default"]},mixins:[g["default"]],methods:{async connect(t){t.stopPropagation(),this.$emit("loading",!0);const e="bluetooth."+(this.value.connected?"disconnect":"connect");try{await this.request(e,{device:this.parent.address,service_uuid:this.uuid})}finally{this.$emit("loading",!1)}},async disconnect(t){t.stopPropagation(),this.$emit("loading",!0);try{await this.request("bluetooth.disconnect",{device:this.parent.address})}finally{this.$emit("loading",!1)}}}},m=n(3744);const y=(0,m.Z)(f,[["render",p],["__scopeId","data-v-5c801a06"]]);var _=y}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5498],{6:function(t,e,n){n.d(e,{Z:function(){return v}});var i=n(6252),a=n(3577),o=n(9963);const s=t=>((0,i.dD)("data-v-a6396ae8"),t=t(),(0,i.Cn)(),t),l=["checked"],c=s((()=>(0,i._)("div",{class:"switch"},[(0,i._)("div",{class:"dot"})],-1))),d={class:"label"};function u(t,e,n,s,u,r){return(0,i.wg)(),(0,i.iD)("div",{class:(0,a.C_)(["power-switch",{disabled:n.disabled}]),onClick:e[0]||(e[0]=(0,o.iM)(((...t)=>r.onInput&&r.onInput(...t)),["stop"]))},[(0,i._)("input",{type:"checkbox",checked:n.value},null,8,l),(0,i._)("label",null,[c,(0,i._)("span",d,[(0,i.WI)(t.$slots,"default",{},void 0,!0)])])],2)}var r={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(t){if(this.disabled)return!1;this.$emit("input",t)}}},p=n(3744);const h=(0,p.Z)(r,[["render",u],["__scopeId","data-v-a6396ae8"]]);var v=h},5498:function(t,e,n){n.r(e),n.d(e,{default:function(){return _}});var i=n(6252),a=n(3577),o=n(9963);const s={class:"entity bluetooth-service-container"},l={class:"head"},c={class:"col-1 icon"},d={class:"col-9 label"},u=["textContent"],r={class:"col-2 connector pull-right"};function p(t,e,n,p,h,v){const g=(0,i.up)("EntityIcon"),f=(0,i.up)("ToggleSwitch");return(0,i.wg)(),(0,i.iD)("div",s,[(0,i._)("div",l,[(0,i._)("div",c,[(0,i.Wm)(g,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,i._)("div",d,[(0,i._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,u)]),(0,i._)("div",r,[(0,i.Wm)(f,{value:t.value.connected,disabled:t.loading,onInput:v.connect,onClick:e[0]||(e[0]=(0,o.iM)((()=>{}),["stop"]))},null,8,["value","disabled","onInput"])])])])}var h=n(6),v=n(5017),g=n(7909),f={name:"BluetoothService",components:{ToggleSwitch:h.Z,EntityIcon:v["default"]},mixins:[g["default"]],methods:{async connect(t){t.stopPropagation(),this.$emit("loading",!0);const e="bluetooth."+(this.value.connected?"disconnect":"connect");try{await this.request(e,{device:this.parent.address,service_uuid:this.uuid})}finally{this.$emit("loading",!1)}},async disconnect(t){t.stopPropagation(),this.$emit("loading",!0);try{await this.request("bluetooth.disconnect",{device:this.parent.address})}finally{this.$emit("loading",!1)}}}},m=n(3744);const y=(0,m.Z)(f,[["render",p],["__scopeId","data-v-5c801a06"]]);var _=y}}]);
//# sourceMappingURL=5498.d492303f.js.map //# sourceMappingURL=5498.12a9b625.js.map

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5915],{5915:function(t,e,n){n.r(e),n.d(e,{default:function(){return w}});n(8309);var l=n(6252),a=n(3577),u={class:"entity sensor-container"},s={class:"head"},o={class:"col-1 icon"},i={class:"col-s-8 col-m-9 label"},c=["textContent"],r={key:0,class:"col-s-3 col-m-2 pull-right"},d=["textContent"],v=["textContent"];function p(t,e,n,p,m,h){var f=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",u,[(0,l._)("div",s,[(0,l._)("div",o,[(0,l.Wm)(f,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",i,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,c)]),null!=h.computedValue?((0,l.wg)(),(0,l.iD)("div",r,[(0,l._)("span",{class:"value",textContent:(0,a.zw)(h.computedValue)},null,8,d),null!=t.value.unit?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"unit",textContent:(0,a.zw)(t.value.unit)},null,8,v)):(0,l.kq)("",!0)])):(0,l.kq)("",!0)])])}var m=n(7909),h=n(3459),f={name:"Sensor",components:{EntityIcon:h["default"]},mixins:[m["default"]],computed:{computedValue:function(){return null!=this.value.value?this.value.value:this.value._value}}},y=n(3744);const k=(0,y.Z)(f,[["render",p],["__scopeId","data-v-c249d526"]]);var w=k}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5915],{5915:function(t,e,n){n.r(e),n.d(e,{default:function(){return w}});n(8309);var l=n(6252),a=n(3577),u={class:"entity sensor-container"},s={class:"head"},o={class:"col-1 icon"},i={class:"col-s-8 col-m-9 label"},c=["textContent"],r={key:0,class:"col-s-3 col-m-2 pull-right"},d=["textContent"],v=["textContent"];function p(t,e,n,p,m,h){var f=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",u,[(0,l._)("div",s,[(0,l._)("div",o,[(0,l.Wm)(f,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",i,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,c)]),null!=h.computedValue?((0,l.wg)(),(0,l.iD)("div",r,[(0,l._)("span",{class:"value",textContent:(0,a.zw)(h.computedValue)},null,8,d),null!=t.value.unit?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"unit",textContent:(0,a.zw)(t.value.unit)},null,8,v)):(0,l.kq)("",!0)])):(0,l.kq)("",!0)])])}var m=n(7909),h=n(5017),f={name:"Sensor",components:{EntityIcon:h["default"]},mixins:[m["default"]],computed:{computedValue:function(){return null!=this.value.value?this.value.value:this.value._value}}},y=n(3744);const k=(0,y.Z)(f,[["render",p],["__scopeId","data-v-c249d526"]]);var w=k}}]);
//# sourceMappingURL=5915-legacy.c11bcfac.js.map //# sourceMappingURL=5915-legacy.d9c8209d.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/5915-legacy.c11bcfac.js","mappings":"kMACOA,MAAM,2B,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,yB,2BAINA,MAAM,8B,2GAbf,QAoBM,MApBN,EAoBM,EAnBJ,OAkBM,MAlBN,EAkBM,EAjBJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,YAIqB,MAAb,EAAAC,gBAAa,WADvB,QAKM,MALN,EAKM,EAHJ,OAA6C,QAAvCN,MAAM,Q,aAAQ,QAAsB,EAAD,gBAAzC,UAEkB,MAAV,EAAAE,MAAMK,OAAI,WADlB,QAC8B,Q,MADxBP,MAAM,O,aAAO,QAAmB,EAAN,MAACO,OAAjC,+BAHF,kB,yBAcN,GACEF,KAAM,SACNG,WAAY,CAACC,WAAAA,EAAA,YACbC,OAAQ,CAACC,EAAA,YAETC,SAAU,CACRN,cADQ,WAEN,OAAwB,MAApBO,KAAKX,MAAMA,MACNW,KAAKX,MAAMA,MACbW,KAAKX,MAAMY,MACnB,I,UC/BL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Sensor.vue","webpack://platypush/./src/components/panels/Entities/Sensor.vue?60a5"],"sourcesContent":["<template>\n <div class=\"entity sensor-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-s-8 col-m-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-s-3 col-m-2 pull-right\"\n v-if=\"computedValue != null\">\n <span class=\"value\" v-text=\"computedValue\" />\n <span class=\"unit\" v-text=\"value.unit\"\n v-if=\"value.unit != null\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'Sensor',\n components: {EntityIcon},\n mixins: [EntityMixin],\n\n computed: {\n computedValue() {\n if (this.value.value != null)\n return this.value.value\n return this.value._value\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.entity {\n .icon {\n margin-right: 1em;\n }\n}\n\n.sensor-container {\n .head {\n .value {\n font-size: 1.1em;\n font-weight: bold;\n opacity: 0.7;\n }\n\n .unit {\n margin-left: 0.2em;\n }\n }\n}\n</style>\n","import { render } from \"./Sensor.vue?vue&type=template&id=c249d526&scoped=true\"\nimport script from \"./Sensor.vue?vue&type=script&lang=js\"\nexport * from \"./Sensor.vue?vue&type=script&lang=js\"\n\nimport \"./Sensor.vue?vue&type=style&index=0&id=c249d526&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-c249d526\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","computedValue","unit","components","EntityIcon","mixins","EntityMixin","computed","this","_value","__exports__","render"],"sourceRoot":""} {"version":3,"file":"static/js/5915-legacy.d9c8209d.js","mappings":"kMACOA,MAAM,2B,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,yB,2BAINA,MAAM,8B,2GAbf,QAoBM,MApBN,EAoBM,EAnBJ,OAkBM,MAlBN,EAkBM,EAjBJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,YAIqB,MAAb,EAAAC,gBAAa,WADvB,QAKM,MALN,EAKM,EAHJ,OAA6C,QAAvCN,MAAM,Q,aAAQ,QAAsB,EAAD,gBAAzC,UAEkB,MAAV,EAAAE,MAAMK,OAAI,WADlB,QAC8B,Q,MADxBP,MAAM,O,aAAO,QAAmB,EAAN,MAACO,OAAjC,+BAHF,kB,yBAcN,GACEF,KAAM,SACNG,WAAY,CAACC,WAAAA,EAAA,YACbC,OAAQ,CAACC,EAAA,YAETC,SAAU,CACRN,cADQ,WAEN,OAAwB,MAApBO,KAAKX,MAAMA,MACNW,KAAKX,MAAMA,MACbW,KAAKX,MAAMY,MACnB,I,UC/BL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Sensor.vue","webpack://platypush/./src/components/panels/Entities/Sensor.vue?60a5"],"sourcesContent":["<template>\n <div class=\"entity sensor-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-s-8 col-m-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-s-3 col-m-2 pull-right\"\n v-if=\"computedValue != null\">\n <span class=\"value\" v-text=\"computedValue\" />\n <span class=\"unit\" v-text=\"value.unit\"\n v-if=\"value.unit != null\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'Sensor',\n components: {EntityIcon},\n mixins: [EntityMixin],\n\n computed: {\n computedValue() {\n if (this.value.value != null)\n return this.value.value\n return this.value._value\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.entity {\n .icon {\n margin-right: 1em;\n }\n}\n\n.sensor-container {\n .head {\n .value {\n font-size: 1.1em;\n font-weight: bold;\n opacity: 0.7;\n }\n\n .unit {\n margin-left: 0.2em;\n }\n }\n}\n</style>\n","import { render } from \"./Sensor.vue?vue&type=template&id=c249d526&scoped=true\"\nimport script from \"./Sensor.vue?vue&type=script&lang=js\"\nexport * from \"./Sensor.vue?vue&type=script&lang=js\"\n\nimport \"./Sensor.vue?vue&type=style&index=0&id=c249d526&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-c249d526\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","computedValue","unit","components","EntityIcon","mixins","EntityMixin","computed","this","_value","__exports__","render"],"sourceRoot":""}

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5915],{5915:function(t,e,n){n.r(e),n.d(e,{default:function(){return w}});var l=n(6252),a=n(3577);const u={class:"entity sensor-container"},s={class:"head"},o={class:"col-1 icon"},c={class:"col-s-8 col-m-9 label"},i=["textContent"],r={key:0,class:"col-s-3 col-m-2 pull-right"},d=["textContent"],v=["textContent"];function p(t,e,n,p,m,h){const y=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",u,[(0,l._)("div",s,[(0,l._)("div",o,[(0,l.Wm)(y,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",c,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,i)]),null!=h.computedValue?((0,l.wg)(),(0,l.iD)("div",r,[(0,l._)("span",{class:"value",textContent:(0,a.zw)(h.computedValue)},null,8,d),null!=t.value.unit?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"unit",textContent:(0,a.zw)(t.value.unit)},null,8,v)):(0,l.kq)("",!0)])):(0,l.kq)("",!0)])])}var m=n(7909),h=n(3459),y={name:"Sensor",components:{EntityIcon:h["default"]},mixins:[m["default"]],computed:{computedValue(){return null!=this.value.value?this.value.value:this.value._value}}},f=n(3744);const k=(0,f.Z)(y,[["render",p],["__scopeId","data-v-c249d526"]]);var w=k}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5915],{5915:function(t,e,n){n.r(e),n.d(e,{default:function(){return w}});var l=n(6252),a=n(3577);const u={class:"entity sensor-container"},s={class:"head"},o={class:"col-1 icon"},c={class:"col-s-8 col-m-9 label"},i=["textContent"],r={key:0,class:"col-s-3 col-m-2 pull-right"},d=["textContent"],v=["textContent"];function p(t,e,n,p,m,h){const y=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",u,[(0,l._)("div",s,[(0,l._)("div",o,[(0,l.Wm)(y,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",c,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,i)]),null!=h.computedValue?((0,l.wg)(),(0,l.iD)("div",r,[(0,l._)("span",{class:"value",textContent:(0,a.zw)(h.computedValue)},null,8,d),null!=t.value.unit?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"unit",textContent:(0,a.zw)(t.value.unit)},null,8,v)):(0,l.kq)("",!0)])):(0,l.kq)("",!0)])])}var m=n(7909),h=n(5017),y={name:"Sensor",components:{EntityIcon:h["default"]},mixins:[m["default"]],computed:{computedValue(){return null!=this.value.value?this.value.value:this.value._value}}},f=n(3744);const k=(0,f.Z)(y,[["render",p],["__scopeId","data-v-c249d526"]]);var w=k}}]);
//# sourceMappingURL=5915.ae6b382e.js.map //# sourceMappingURL=5915.4c295c98.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/5915.ae6b382e.js","mappings":"gMACOA,MAAM,2B,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,yB,2BAINA,MAAM,8B,6GAbf,QAoBM,MApBN,EAoBM,EAnBJ,OAkBM,MAlBN,EAkBM,EAjBJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,YAIqB,MAAb,EAAAC,gBAAa,WADvB,QAKM,MALN,EAKM,EAHJ,OAA6C,QAAvCN,MAAM,Q,aAAQ,QAAsB,EAAD,gBAAzC,UAEkB,MAAV,EAAAE,MAAMK,OAAI,WADlB,QAC8B,Q,MADxBP,MAAM,O,aAAO,QAAmB,EAAN,MAACO,OAAjC,+BAHF,kB,yBAcN,GACEF,KAAM,SACNG,WAAY,CAACC,WAAU,cACvBC,OAAQ,CAACC,EAAA,YAETC,SAAU,CACRN,gBACE,OAAwB,MAApBO,KAAKX,MAAMA,MACNW,KAAKX,MAAMA,MACbW,KAAKX,MAAMY,MACnB,I,UC/BL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Sensor.vue","webpack://platypush/./src/components/panels/Entities/Sensor.vue?60a5"],"sourcesContent":["<template>\n <div class=\"entity sensor-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-s-8 col-m-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-s-3 col-m-2 pull-right\"\n v-if=\"computedValue != null\">\n <span class=\"value\" v-text=\"computedValue\" />\n <span class=\"unit\" v-text=\"value.unit\"\n v-if=\"value.unit != null\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'Sensor',\n components: {EntityIcon},\n mixins: [EntityMixin],\n\n computed: {\n computedValue() {\n if (this.value.value != null)\n return this.value.value\n return this.value._value\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.entity {\n .icon {\n margin-right: 1em;\n }\n}\n\n.sensor-container {\n .head {\n .value {\n font-size: 1.1em;\n font-weight: bold;\n opacity: 0.7;\n }\n\n .unit {\n margin-left: 0.2em;\n }\n }\n}\n</style>\n","import { render } from \"./Sensor.vue?vue&type=template&id=c249d526&scoped=true\"\nimport script from \"./Sensor.vue?vue&type=script&lang=js\"\nexport * from \"./Sensor.vue?vue&type=script&lang=js\"\n\nimport \"./Sensor.vue?vue&type=style&index=0&id=c249d526&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-c249d526\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","computedValue","unit","components","EntityIcon","mixins","EntityMixin","computed","this","_value","__exports__","render"],"sourceRoot":""} {"version":3,"file":"static/js/5915.4c295c98.js","mappings":"gMACOA,MAAM,2B,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,yB,2BAINA,MAAM,8B,6GAbf,QAoBM,MApBN,EAoBM,EAnBJ,OAkBM,MAlBN,EAkBM,EAjBJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,YAIqB,MAAb,EAAAC,gBAAa,WADvB,QAKM,MALN,EAKM,EAHJ,OAA6C,QAAvCN,MAAM,Q,aAAQ,QAAsB,EAAD,gBAAzC,UAEkB,MAAV,EAAAE,MAAMK,OAAI,WADlB,QAC8B,Q,MADxBP,MAAM,O,aAAO,QAAmB,EAAN,MAACO,OAAjC,+BAHF,kB,yBAcN,GACEF,KAAM,SACNG,WAAY,CAACC,WAAU,cACvBC,OAAQ,CAACC,EAAA,YAETC,SAAU,CACRN,gBACE,OAAwB,MAApBO,KAAKX,MAAMA,MACNW,KAAKX,MAAMA,MACbW,KAAKX,MAAMY,MACnB,I,UC/BL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Sensor.vue","webpack://platypush/./src/components/panels/Entities/Sensor.vue?60a5"],"sourcesContent":["<template>\n <div class=\"entity sensor-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-s-8 col-m-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-s-3 col-m-2 pull-right\"\n v-if=\"computedValue != null\">\n <span class=\"value\" v-text=\"computedValue\" />\n <span class=\"unit\" v-text=\"value.unit\"\n v-if=\"value.unit != null\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'Sensor',\n components: {EntityIcon},\n mixins: [EntityMixin],\n\n computed: {\n computedValue() {\n if (this.value.value != null)\n return this.value.value\n return this.value._value\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.entity {\n .icon {\n margin-right: 1em;\n }\n}\n\n.sensor-container {\n .head {\n .value {\n font-size: 1.1em;\n font-weight: bold;\n opacity: 0.7;\n }\n\n .unit {\n margin-left: 0.2em;\n }\n }\n}\n</style>\n","import { render } from \"./Sensor.vue?vue&type=template&id=c249d526&scoped=true\"\nimport script from \"./Sensor.vue?vue&type=script&lang=js\"\nexport * from \"./Sensor.vue?vue&type=script&lang=js\"\n\nimport \"./Sensor.vue?vue&type=style&index=0&id=c249d526&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-c249d526\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","computedValue","unit","components","EntityIcon","mixins","EntityMixin","computed","this","_value","__exports__","render"],"sourceRoot":""}

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[703],{703:function(t,e,n){n.r(e),n.d(e,{default:function(){return y}});n(8309);var l=n(6252),a=n(3577),i={class:"entity sensor-container"},o={class:"head"},u={class:"col-1 icon"},r={class:"col-s-8 col-m-9 label"},s=["textContent"],c=["textContent"];function d(t,e,n,d,v,p){var f=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",i,[(0,l._)("div",o,[(0,l._)("div",u,[(0,l.Wm)(f,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",r,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,s)]),(0,l._)("div",{class:"col-s-3 col-m-2 pull-right",textContent:(0,a.zw)(p.displayValue)},null,8,c)])])}n(1539),n(9714),n(6977);var v=n(7909),p=n(3459),f={name:"PercentSensor",components:{EntityIcon:p["default"]},mixins:[v["default"]],computed:{displayValue:function(){if(null==this.value.value)return null;var t=100*this.value.value;return(t.toString()==t.toFixed(0)?t.toFixed(0):t.toFixed(1))+"%"}}},h=n(3744);const m=(0,h.Z)(f,[["render",d],["__scopeId","data-v-6d091c7b"]]);var y=m}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[703],{703:function(t,e,n){n.r(e),n.d(e,{default:function(){return y}});n(8309);var l=n(6252),a=n(3577),i={class:"entity sensor-container"},o={class:"head"},u={class:"col-1 icon"},r={class:"col-s-8 col-m-9 label"},s=["textContent"],c=["textContent"];function d(t,e,n,d,v,p){var f=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",i,[(0,l._)("div",o,[(0,l._)("div",u,[(0,l.Wm)(f,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",r,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,s)]),(0,l._)("div",{class:"col-s-3 col-m-2 pull-right",textContent:(0,a.zw)(p.displayValue)},null,8,c)])])}n(1539),n(9714),n(6977);var v=n(7909),p=n(5017),f={name:"PercentSensor",components:{EntityIcon:p["default"]},mixins:[v["default"]],computed:{displayValue:function(){if(null==this.value.value)return null;var t=100*this.value.value;return(t.toString()==t.toFixed(0)?t.toFixed(0):t.toFixed(1))+"%"}}},h=n(3744);const m=(0,h.Z)(f,[["render",d],["__scopeId","data-v-6d091c7b"]]);var y=m}}]);
//# sourceMappingURL=703-legacy.8bbcc3ab.js.map //# sourceMappingURL=703-legacy.8a91d14c.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/703-legacy.8bbcc3ab.js","mappings":"gMACOA,MAAM,2B,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,yB,2GATf,QAeM,MAfN,EAeM,EAdJ,OAaM,MAbN,EAaM,EAZJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,aAGF,OAAgE,OAA3DL,MAAM,6B,aAA6B,QAAqB,EAAD,eAA5D,a,iDASN,GACEK,KAAM,gBACNC,WAAY,CAACC,WAAAA,EAAA,YACbC,OAAQ,CAACC,EAAA,YACTC,SAAU,CACRC,aADQ,WAEN,GAAwB,MAApBC,KAAKV,MAAMA,MACb,OAAO,KAGT,IAAIW,EAAY,IAAMD,KAAKV,MAAMA,MACjC,OACEW,EAAUC,YAAcD,EAAUE,QAAQ,GACxCF,EAAUE,QAAQ,GAAKF,EAAUE,QAAQ,IACzC,GACL,I,UC/BL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/PercentSensor.vue","webpack://platypush/./src/components/panels/Entities/PercentSensor.vue?1f84"],"sourcesContent":["<template>\n <div class=\"entity sensor-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-s-8 col-m-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-s-3 col-m-2 pull-right\" v-text=\"displayValue\" />\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'PercentSensor',\n components: {EntityIcon},\n mixins: [EntityMixin],\n computed: {\n displayValue() {\n if (this.value.value == null) {\n return null\n }\n\n let normValue = 100 * this.value.value\n return (\n normValue.toString() == normValue.toFixed(0)\n ? normValue.toFixed(0) : normValue.toFixed(1)\n ) + '%'\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.entity {\n .icon {\n margin-right: 1em;\n }\n}\n</style>\n","import { render } from \"./PercentSensor.vue?vue&type=template&id=6d091c7b&scoped=true\"\nimport script from \"./PercentSensor.vue?vue&type=script&lang=js\"\nexport * from \"./PercentSensor.vue?vue&type=script&lang=js\"\n\nimport \"./PercentSensor.vue?vue&type=style&index=0&id=6d091c7b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6d091c7b\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","components","EntityIcon","mixins","EntityMixin","computed","displayValue","this","normValue","toString","toFixed","__exports__","render"],"sourceRoot":""} {"version":3,"file":"static/js/703-legacy.8a91d14c.js","mappings":"gMACOA,MAAM,2B,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,yB,2GATf,QAeM,MAfN,EAeM,EAdJ,OAaM,MAbN,EAaM,EAZJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,aAGF,OAAgE,OAA3DL,MAAM,6B,aAA6B,QAAqB,EAAD,eAA5D,a,iDASN,GACEK,KAAM,gBACNC,WAAY,CAACC,WAAAA,EAAA,YACbC,OAAQ,CAACC,EAAA,YACTC,SAAU,CACRC,aADQ,WAEN,GAAwB,MAApBC,KAAKV,MAAMA,MACb,OAAO,KAGT,IAAIW,EAAY,IAAMD,KAAKV,MAAMA,MACjC,OACEW,EAAUC,YAAcD,EAAUE,QAAQ,GACxCF,EAAUE,QAAQ,GAAKF,EAAUE,QAAQ,IACzC,GACL,I,UC/BL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/PercentSensor.vue","webpack://platypush/./src/components/panels/Entities/PercentSensor.vue?1f84"],"sourcesContent":["<template>\n <div class=\"entity sensor-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-s-8 col-m-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-s-3 col-m-2 pull-right\" v-text=\"displayValue\" />\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'PercentSensor',\n components: {EntityIcon},\n mixins: [EntityMixin],\n computed: {\n displayValue() {\n if (this.value.value == null) {\n return null\n }\n\n let normValue = 100 * this.value.value\n return (\n normValue.toString() == normValue.toFixed(0)\n ? normValue.toFixed(0) : normValue.toFixed(1)\n ) + '%'\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.entity {\n .icon {\n margin-right: 1em;\n }\n}\n</style>\n","import { render } from \"./PercentSensor.vue?vue&type=template&id=6d091c7b&scoped=true\"\nimport script from \"./PercentSensor.vue?vue&type=script&lang=js\"\nexport * from \"./PercentSensor.vue?vue&type=script&lang=js\"\n\nimport \"./PercentSensor.vue?vue&type=style&index=0&id=6d091c7b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6d091c7b\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","components","EntityIcon","mixins","EntityMixin","computed","displayValue","this","normValue","toString","toFixed","__exports__","render"],"sourceRoot":""}

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[703],{703:function(t,e,n){n.r(e),n.d(e,{default:function(){return y}});var l=n(6252),a=n(3577);const o={class:"entity sensor-container"},s={class:"head"},i={class:"col-1 icon"},u={class:"col-s-8 col-m-9 label"},r=["textContent"],c=["textContent"];function d(t,e,n,d,v,p){const f=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",o,[(0,l._)("div",s,[(0,l._)("div",i,[(0,l.Wm)(f,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",u,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,r)]),(0,l._)("div",{class:"col-s-3 col-m-2 pull-right",textContent:(0,a.zw)(p.displayValue)},null,8,c)])])}var v=n(7909),p=n(3459),f={name:"PercentSensor",components:{EntityIcon:p["default"]},mixins:[v["default"]],computed:{displayValue(){if(null==this.value.value)return null;let t=100*this.value.value;return(t.toString()==t.toFixed(0)?t.toFixed(0):t.toFixed(1))+"%"}}},h=n(3744);const m=(0,h.Z)(f,[["render",d],["__scopeId","data-v-6d091c7b"]]);var y=m}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[703],{703:function(t,e,n){n.r(e),n.d(e,{default:function(){return y}});var l=n(6252),a=n(3577);const o={class:"entity sensor-container"},s={class:"head"},i={class:"col-1 icon"},u={class:"col-s-8 col-m-9 label"},r=["textContent"],c=["textContent"];function d(t,e,n,d,v,p){const f=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",o,[(0,l._)("div",s,[(0,l._)("div",i,[(0,l.Wm)(f,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",u,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,r)]),(0,l._)("div",{class:"col-s-3 col-m-2 pull-right",textContent:(0,a.zw)(p.displayValue)},null,8,c)])])}var v=n(7909),p=n(5017),f={name:"PercentSensor",components:{EntityIcon:p["default"]},mixins:[v["default"]],computed:{displayValue(){if(null==this.value.value)return null;let t=100*this.value.value;return(t.toString()==t.toFixed(0)?t.toFixed(0):t.toFixed(1))+"%"}}},h=n(3744);const m=(0,h.Z)(f,[["render",d],["__scopeId","data-v-6d091c7b"]]);var y=m}}]);
//# sourceMappingURL=703.486d1f81.js.map //# sourceMappingURL=703.ae1fba6d.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/703.486d1f81.js","mappings":"8LACOA,MAAM,2B,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,yB,6GATf,QAeM,MAfN,EAeM,EAdJ,OAaM,MAbN,EAaM,EAZJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,aAGF,OAAgE,OAA3DL,MAAM,6B,aAA6B,QAAqB,EAAD,eAA5D,a,yBASN,GACEK,KAAM,gBACNC,WAAY,CAACC,WAAU,cACvBC,OAAQ,CAACC,EAAA,YACTC,SAAU,CACRC,eACE,GAAwB,MAApBC,KAAKV,MAAMA,MACb,OAAO,KAGT,IAAIW,EAAY,IAAMD,KAAKV,MAAMA,MACjC,OACEW,EAAUC,YAAcD,EAAUE,QAAQ,GACxCF,EAAUE,QAAQ,GAAKF,EAAUE,QAAQ,IACzC,GACL,I,UC/BL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/PercentSensor.vue","webpack://platypush/./src/components/panels/Entities/PercentSensor.vue?1f84"],"sourcesContent":["<template>\n <div class=\"entity sensor-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-s-8 col-m-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-s-3 col-m-2 pull-right\" v-text=\"displayValue\" />\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'PercentSensor',\n components: {EntityIcon},\n mixins: [EntityMixin],\n computed: {\n displayValue() {\n if (this.value.value == null) {\n return null\n }\n\n let normValue = 100 * this.value.value\n return (\n normValue.toString() == normValue.toFixed(0)\n ? normValue.toFixed(0) : normValue.toFixed(1)\n ) + '%'\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.entity {\n .icon {\n margin-right: 1em;\n }\n}\n</style>\n","import { render } from \"./PercentSensor.vue?vue&type=template&id=6d091c7b&scoped=true\"\nimport script from \"./PercentSensor.vue?vue&type=script&lang=js\"\nexport * from \"./PercentSensor.vue?vue&type=script&lang=js\"\n\nimport \"./PercentSensor.vue?vue&type=style&index=0&id=6d091c7b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6d091c7b\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","components","EntityIcon","mixins","EntityMixin","computed","displayValue","this","normValue","toString","toFixed","__exports__","render"],"sourceRoot":""} {"version":3,"file":"static/js/703.ae1fba6d.js","mappings":"8LACOA,MAAM,2B,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,yB,6GATf,QAeM,MAfN,EAeM,EAdJ,OAaM,MAbN,EAaM,EAZJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,aAGF,OAAgE,OAA3DL,MAAM,6B,aAA6B,QAAqB,EAAD,eAA5D,a,yBASN,GACEK,KAAM,gBACNC,WAAY,CAACC,WAAU,cACvBC,OAAQ,CAACC,EAAA,YACTC,SAAU,CACRC,eACE,GAAwB,MAApBC,KAAKV,MAAMA,MACb,OAAO,KAGT,IAAIW,EAAY,IAAMD,KAAKV,MAAMA,MACjC,OACEW,EAAUC,YAAcD,EAAUE,QAAQ,GACxCF,EAAUE,QAAQ,GAAKF,EAAUE,QAAQ,IACzC,GACL,I,UC/BL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/PercentSensor.vue","webpack://platypush/./src/components/panels/Entities/PercentSensor.vue?1f84"],"sourcesContent":["<template>\n <div class=\"entity sensor-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-s-8 col-m-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-s-3 col-m-2 pull-right\" v-text=\"displayValue\" />\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'PercentSensor',\n components: {EntityIcon},\n mixins: [EntityMixin],\n computed: {\n displayValue() {\n if (this.value.value == null) {\n return null\n }\n\n let normValue = 100 * this.value.value\n return (\n normValue.toString() == normValue.toFixed(0)\n ? normValue.toFixed(0) : normValue.toFixed(1)\n ) + '%'\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.entity {\n .icon {\n margin-right: 1em;\n }\n}\n</style>\n","import { render } from \"./PercentSensor.vue?vue&type=template&id=6d091c7b&scoped=true\"\nimport script from \"./PercentSensor.vue?vue&type=script&lang=js\"\nexport * from \"./PercentSensor.vue?vue&type=script&lang=js\"\n\nimport \"./PercentSensor.vue?vue&type=style&index=0&id=6d091c7b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6d091c7b\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","components","EntityIcon","mixins","EntityMixin","computed","displayValue","this","normValue","toString","toFixed","__exports__","render"],"sourceRoot":""}

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[7549],{6:function(e,n,t){t.d(n,{Z:function(){return f}});var l=t(6252),a=t(3577),i=t(9963),u=function(e){return(0,l.dD)("data-v-a6396ae8"),e=e(),(0,l.Cn)(),e},o=["checked"],s=u((function(){return(0,l._)("div",{class:"switch"},[(0,l._)("div",{class:"dot"})],-1)})),c={class:"label"};function r(e,n,t,u,r,d){return(0,l.wg)(),(0,l.iD)("div",{class:(0,a.C_)(["power-switch",{disabled:t.disabled}]),onClick:n[0]||(n[0]=(0,i.iM)((function(){return d.onInput&&d.onInput.apply(d,arguments)}),["stop"]))},[(0,l._)("input",{type:"checkbox",checked:t.value},null,8,o),(0,l._)("label",null,[s,(0,l._)("span",c,[(0,l.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var d={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput:function(e){if(this.disabled)return!1;this.$emit("input",e)}}},v=t(3744);const p=(0,v.Z)(d,[["render",r],["__scopeId","data-v-a6396ae8"]]);var f=p},7549:function(e,n,t){t.r(n),t.d(n,{default:function(){return g}});t(8309);var l=t(6252),a=t(3577),i={class:"entity sensor-container"},u={class:"head"},o={class:"col-1 icon"},s={class:"col-s-8 col-m-9 label"},c=["textContent"],r={key:0,class:"col-s-3 col-m-2 pull-right"};function d(e,n,t,d,v,p){var f=(0,l.up)("EntityIcon"),h=(0,l.up)("ToggleSwitch");return(0,l.wg)(),(0,l.iD)("div",i,[(0,l._)("div",u,[(0,l._)("div",o,[(0,l.Wm)(f,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,l._)("div",s,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(e.value.name)},null,8,c)]),null!=e.value.value?((0,l.wg)(),(0,l.iD)("div",r,[(0,l.Wm)(h,{value:e.value.value,disabled:!0},null,8,["value"])])):(0,l.kq)("",!0)])])}var v=t(7909),p=t(3459),f=t(6),h={name:"BinarySensor",components:{EntityIcon:p["default"],ToggleSwitch:f.Z},mixins:[v["default"]]},_=t(3744);const b=(0,_.Z)(h,[["render",d],["__scopeId","data-v-e7b0b2c4"]]);var g=b}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[7549],{6:function(e,n,t){t.d(n,{Z:function(){return f}});var l=t(6252),a=t(3577),i=t(9963),u=function(e){return(0,l.dD)("data-v-a6396ae8"),e=e(),(0,l.Cn)(),e},o=["checked"],s=u((function(){return(0,l._)("div",{class:"switch"},[(0,l._)("div",{class:"dot"})],-1)})),c={class:"label"};function r(e,n,t,u,r,d){return(0,l.wg)(),(0,l.iD)("div",{class:(0,a.C_)(["power-switch",{disabled:t.disabled}]),onClick:n[0]||(n[0]=(0,i.iM)((function(){return d.onInput&&d.onInput.apply(d,arguments)}),["stop"]))},[(0,l._)("input",{type:"checkbox",checked:t.value},null,8,o),(0,l._)("label",null,[s,(0,l._)("span",c,[(0,l.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var d={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput:function(e){if(this.disabled)return!1;this.$emit("input",e)}}},v=t(3744);const p=(0,v.Z)(d,[["render",r],["__scopeId","data-v-a6396ae8"]]);var f=p},7549:function(e,n,t){t.r(n),t.d(n,{default:function(){return g}});t(8309);var l=t(6252),a=t(3577),i={class:"entity sensor-container"},u={class:"head"},o={class:"col-1 icon"},s={class:"col-s-8 col-m-9 label"},c=["textContent"],r={key:0,class:"col-s-3 col-m-2 pull-right"};function d(e,n,t,d,v,p){var f=(0,l.up)("EntityIcon"),h=(0,l.up)("ToggleSwitch");return(0,l.wg)(),(0,l.iD)("div",i,[(0,l._)("div",u,[(0,l._)("div",o,[(0,l.Wm)(f,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,l._)("div",s,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(e.value.name)},null,8,c)]),null!=e.value.value?((0,l.wg)(),(0,l.iD)("div",r,[(0,l.Wm)(h,{value:e.value.value,disabled:!0},null,8,["value"])])):(0,l.kq)("",!0)])])}var v=t(7909),p=t(5017),f=t(6),h={name:"BinarySensor",components:{EntityIcon:p["default"],ToggleSwitch:f.Z},mixins:[v["default"]]},_=t(3744);const b=(0,_.Z)(h,[["render",d],["__scopeId","data-v-e7b0b2c4"]]);var g=b}}]);
//# sourceMappingURL=7549-legacy.ce03d2d0.js.map //# sourceMappingURL=7549-legacy.da91832a.js.map

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[7549],{6:function(e,n,t){t.d(n,{Z:function(){return h}});var l=t(6252),a=t(3577),s=t(9963);const i=e=>((0,l.dD)("data-v-a6396ae8"),e=e(),(0,l.Cn)(),e),o=["checked"],c=i((()=>(0,l._)("div",{class:"switch"},[(0,l._)("div",{class:"dot"})],-1))),u={class:"label"};function d(e,n,t,i,d,r){return(0,l.wg)(),(0,l.iD)("div",{class:(0,a.C_)(["power-switch",{disabled:t.disabled}]),onClick:n[0]||(n[0]=(0,s.iM)(((...e)=>r.onInput&&r.onInput(...e)),["stop"]))},[(0,l._)("input",{type:"checkbox",checked:t.value},null,8,o),(0,l._)("label",null,[c,(0,l._)("span",u,[(0,l.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var r={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},v=t(3744);const p=(0,v.Z)(r,[["render",d],["__scopeId","data-v-a6396ae8"]]);var h=p},7549:function(e,n,t){t.r(n),t.d(n,{default:function(){return g}});var l=t(6252),a=t(3577);const s={class:"entity sensor-container"},i={class:"head"},o={class:"col-1 icon"},c={class:"col-s-8 col-m-9 label"},u=["textContent"],d={key:0,class:"col-s-3 col-m-2 pull-right"};function r(e,n,t,r,v,p){const h=(0,l.up)("EntityIcon"),f=(0,l.up)("ToggleSwitch");return(0,l.wg)(),(0,l.iD)("div",s,[(0,l._)("div",i,[(0,l._)("div",o,[(0,l.Wm)(h,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,l._)("div",c,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(e.value.name)},null,8,u)]),null!=e.value.value?((0,l.wg)(),(0,l.iD)("div",d,[(0,l.Wm)(f,{value:e.value.value,disabled:!0},null,8,["value"])])):(0,l.kq)("",!0)])])}var v=t(7909),p=t(3459),h=t(6),f={name:"BinarySensor",components:{EntityIcon:p["default"],ToggleSwitch:h.Z},mixins:[v["default"]]},_=t(3744);const b=(0,_.Z)(f,[["render",r],["__scopeId","data-v-e7b0b2c4"]]);var g=b}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[7549],{6:function(e,n,t){t.d(n,{Z:function(){return h}});var l=t(6252),a=t(3577),s=t(9963);const i=e=>((0,l.dD)("data-v-a6396ae8"),e=e(),(0,l.Cn)(),e),o=["checked"],c=i((()=>(0,l._)("div",{class:"switch"},[(0,l._)("div",{class:"dot"})],-1))),u={class:"label"};function d(e,n,t,i,d,r){return(0,l.wg)(),(0,l.iD)("div",{class:(0,a.C_)(["power-switch",{disabled:t.disabled}]),onClick:n[0]||(n[0]=(0,s.iM)(((...e)=>r.onInput&&r.onInput(...e)),["stop"]))},[(0,l._)("input",{type:"checkbox",checked:t.value},null,8,o),(0,l._)("label",null,[c,(0,l._)("span",u,[(0,l.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var r={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},v=t(3744);const p=(0,v.Z)(r,[["render",d],["__scopeId","data-v-a6396ae8"]]);var h=p},7549:function(e,n,t){t.r(n),t.d(n,{default:function(){return g}});var l=t(6252),a=t(3577);const s={class:"entity sensor-container"},i={class:"head"},o={class:"col-1 icon"},c={class:"col-s-8 col-m-9 label"},u=["textContent"],d={key:0,class:"col-s-3 col-m-2 pull-right"};function r(e,n,t,r,v,p){const h=(0,l.up)("EntityIcon"),f=(0,l.up)("ToggleSwitch");return(0,l.wg)(),(0,l.iD)("div",s,[(0,l._)("div",i,[(0,l._)("div",o,[(0,l.Wm)(h,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,l._)("div",c,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(e.value.name)},null,8,u)]),null!=e.value.value?((0,l.wg)(),(0,l.iD)("div",d,[(0,l.Wm)(f,{value:e.value.value,disabled:!0},null,8,["value"])])):(0,l.kq)("",!0)])])}var v=t(7909),p=t(5017),h=t(6),f={name:"BinarySensor",components:{EntityIcon:p["default"],ToggleSwitch:h.Z},mixins:[v["default"]]},_=t(3744);const b=(0,_.Z)(f,[["render",r],["__scopeId","data-v-e7b0b2c4"]]);var g=b}}]);
//# sourceMappingURL=7549.3f5e0e96.js.map //# sourceMappingURL=7549.65a6fea2.js.map

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8126],{8126:function(t,e,n){n.r(e),n.d(e,{default:function(){return k}});n(8309);var l=n(6252),a=n(3577),u={class:"entity link-quality-container"},i={class:"head"},r={class:"col-1 icon"},s={class:"col-s-8 col-m-9 label"},c=["textContent"],o={class:"col-s-3 col-m-2 buttons pull-right"},v=["textContent"];function d(t,e,n,d,p,f){var h=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",u,[(0,l._)("div",i,[(0,l._)("div",r,[(0,l.Wm)(h,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",s,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,c)]),(0,l._)("div",o,[null!=f.valuePercent?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"value-percent",textContent:(0,a.zw)(f.valuePercent+"%")},null,8,v)):(0,l.kq)("",!0)])])])}n(6977);var p=n(7909),f=n(3459),h={name:"LinkQuality",components:{EntityIcon:f["default"]},mixins:[p["default"]],computed:{valuePercent:function(){var t;if(null==(null===(t=this.value)||void 0===t?void 0:t.value))return null;var e=this.value.min||0,n=this.value.max||100;return(100*this.value.value/(n-e)).toFixed(0)}}},m=n(3744);const y=(0,m.Z)(h,[["render",d],["__scopeId","data-v-4ca8847f"]]);var k=y}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8126],{8126:function(t,e,n){n.r(e),n.d(e,{default:function(){return k}});n(8309);var l=n(6252),a=n(3577),u={class:"entity link-quality-container"},i={class:"head"},r={class:"col-1 icon"},s={class:"col-s-8 col-m-9 label"},c=["textContent"],o={class:"col-s-3 col-m-2 buttons pull-right"},v=["textContent"];function d(t,e,n,d,p,f){var h=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",u,[(0,l._)("div",i,[(0,l._)("div",r,[(0,l.Wm)(h,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",s,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,c)]),(0,l._)("div",o,[null!=f.valuePercent?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"value-percent",textContent:(0,a.zw)(f.valuePercent+"%")},null,8,v)):(0,l.kq)("",!0)])])])}n(6977);var p=n(7909),f=n(5017),h={name:"LinkQuality",components:{EntityIcon:f["default"]},mixins:[p["default"]],computed:{valuePercent:function(){var t;if(null==(null===(t=this.value)||void 0===t?void 0:t.value))return null;var e=this.value.min||0,n=this.value.max||100;return(100*this.value.value/(n-e)).toFixed(0)}}},m=n(3744);const y=(0,m.Z)(h,[["render",d],["__scopeId","data-v-4ca8847f"]]);var k=y}}]);
//# sourceMappingURL=8126-legacy.d900d4d0.js.map //# sourceMappingURL=8126-legacy.1e629d43.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/8126-legacy.d900d4d0.js","mappings":"kMACOA,MAAM,iC,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,yB,qBAINA,MAAM,sC,yFAbf,QAmBM,MAnBN,EAmBM,EAlBJ,OAiBM,MAjBN,EAiBM,EAhBJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,aAGF,OAIM,MAJN,EAIM,CADgB,MAAZ,EAAAC,eAAY,WAFpB,QAEgC,Q,MAF1BN,MAAM,gB,aACV,QAA2B,EAAP,mBADtB,gC,iCAYR,GACEK,KAAM,cACNE,WAAY,CAACC,WAAAA,EAAA,YACbC,OAAQ,CAACC,EAAA,YAETC,SAAU,CACRL,aADQ,WACO,MACb,GAAyB,OAArB,UAAAM,KAAKV,aAAL,eAAYA,OACd,OAAO,KAET,IAAMW,EAAMD,KAAKV,MAAMW,KAAO,EACxBC,EAAMF,KAAKV,MAAMY,KAAO,IAC9B,OAAS,IAAMF,KAAKV,MAAMA,OAAUY,EAAMD,IAAME,QAAQ,EACzD,I,UCjCL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/LinkQuality.vue","webpack://platypush/./src/components/panels/Entities/LinkQuality.vue?19d2"],"sourcesContent":["<template>\n <div class=\"entity link-quality-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-s-8 col-m-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-s-3 col-m-2 buttons pull-right\">\n <span class=\"value-percent\"\n v-text=\"valuePercent + '%'\"\n v-if=\"valuePercent != null\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'LinkQuality',\n components: {EntityIcon},\n mixins: [EntityMixin],\n\n computed: {\n valuePercent() {\n if (this.value?.value == null)\n return null\n\n const min = this.value.min || 0\n const max = this.value.max || 100\n return ((100 * this.value.value) / (max - min)).toFixed(0)\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.link-quality-container {\n .head {\n .value-percent {\n font-size: 1.1em;\n font-weight: bold;\n opacity: 0.7;\n }\n }\n}\n</style>\n","import { render } from \"./LinkQuality.vue?vue&type=template&id=4ca8847f&scoped=true\"\nimport script from \"./LinkQuality.vue?vue&type=script&lang=js\"\nexport * from \"./LinkQuality.vue?vue&type=script&lang=js\"\n\nimport \"./LinkQuality.vue?vue&type=style&index=0&id=4ca8847f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4ca8847f\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","valuePercent","components","EntityIcon","mixins","EntityMixin","computed","this","min","max","toFixed","__exports__","render"],"sourceRoot":""} {"version":3,"file":"static/js/8126-legacy.1e629d43.js","mappings":"kMACOA,MAAM,iC,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,yB,qBAINA,MAAM,sC,yFAbf,QAmBM,MAnBN,EAmBM,EAlBJ,OAiBM,MAjBN,EAiBM,EAhBJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,aAGF,OAIM,MAJN,EAIM,CADgB,MAAZ,EAAAC,eAAY,WAFpB,QAEgC,Q,MAF1BN,MAAM,gB,aACV,QAA2B,EAAP,mBADtB,gC,iCAYR,GACEK,KAAM,cACNE,WAAY,CAACC,WAAAA,EAAA,YACbC,OAAQ,CAACC,EAAA,YAETC,SAAU,CACRL,aADQ,WACO,MACb,GAAyB,OAArB,UAAAM,KAAKV,aAAL,eAAYA,OACd,OAAO,KAET,IAAMW,EAAMD,KAAKV,MAAMW,KAAO,EACxBC,EAAMF,KAAKV,MAAMY,KAAO,IAC9B,OAAS,IAAMF,KAAKV,MAAMA,OAAUY,EAAMD,IAAME,QAAQ,EACzD,I,UCjCL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/LinkQuality.vue","webpack://platypush/./src/components/panels/Entities/LinkQuality.vue?19d2"],"sourcesContent":["<template>\n <div class=\"entity link-quality-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-s-8 col-m-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-s-3 col-m-2 buttons pull-right\">\n <span class=\"value-percent\"\n v-text=\"valuePercent + '%'\"\n v-if=\"valuePercent != null\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'LinkQuality',\n components: {EntityIcon},\n mixins: [EntityMixin],\n\n computed: {\n valuePercent() {\n if (this.value?.value == null)\n return null\n\n const min = this.value.min || 0\n const max = this.value.max || 100\n return ((100 * this.value.value) / (max - min)).toFixed(0)\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.link-quality-container {\n .head {\n .value-percent {\n font-size: 1.1em;\n font-weight: bold;\n opacity: 0.7;\n }\n }\n}\n</style>\n","import { render } from \"./LinkQuality.vue?vue&type=template&id=4ca8847f&scoped=true\"\nimport script from \"./LinkQuality.vue?vue&type=script&lang=js\"\nexport * from \"./LinkQuality.vue?vue&type=script&lang=js\"\n\nimport \"./LinkQuality.vue?vue&type=style&index=0&id=4ca8847f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4ca8847f\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","valuePercent","components","EntityIcon","mixins","EntityMixin","computed","this","min","max","toFixed","__exports__","render"],"sourceRoot":""}

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8126],{8126:function(t,e,n){n.r(e),n.d(e,{default:function(){return k}});var l=n(6252),a=n(3577);const u={class:"entity link-quality-container"},i={class:"head"},s={class:"col-1 icon"},c={class:"col-s-8 col-m-9 label"},o=["textContent"],r={class:"col-s-3 col-m-2 buttons pull-right"},v=["textContent"];function d(t,e,n,d,p,h){const m=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",u,[(0,l._)("div",i,[(0,l._)("div",s,[(0,l.Wm)(m,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",c,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,o)]),(0,l._)("div",r,[null!=h.valuePercent?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"value-percent",textContent:(0,a.zw)(h.valuePercent+"%")},null,8,v)):(0,l.kq)("",!0)])])])}var p=n(7909),h=n(3459),m={name:"LinkQuality",components:{EntityIcon:h["default"]},mixins:[p["default"]],computed:{valuePercent(){if(null==this.value?.value)return null;const t=this.value.min||0,e=this.value.max||100;return(100*this.value.value/(e-t)).toFixed(0)}}},f=n(3744);const y=(0,f.Z)(m,[["render",d],["__scopeId","data-v-4ca8847f"]]);var k=y}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8126],{8126:function(t,e,n){n.r(e),n.d(e,{default:function(){return k}});var l=n(6252),a=n(3577);const u={class:"entity link-quality-container"},i={class:"head"},s={class:"col-1 icon"},c={class:"col-s-8 col-m-9 label"},o=["textContent"],r={class:"col-s-3 col-m-2 buttons pull-right"},v=["textContent"];function d(t,e,n,d,p,h){const m=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",u,[(0,l._)("div",i,[(0,l._)("div",s,[(0,l.Wm)(m,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",c,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,o)]),(0,l._)("div",r,[null!=h.valuePercent?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"value-percent",textContent:(0,a.zw)(h.valuePercent+"%")},null,8,v)):(0,l.kq)("",!0)])])])}var p=n(7909),h=n(5017),m={name:"LinkQuality",components:{EntityIcon:h["default"]},mixins:[p["default"]],computed:{valuePercent(){if(null==this.value?.value)return null;const t=this.value.min||0,e=this.value.max||100;return(100*this.value.value/(e-t)).toFixed(0)}}},f=n(3744);const y=(0,f.Z)(m,[["render",d],["__scopeId","data-v-4ca8847f"]]);var k=y}}]);
//# sourceMappingURL=8126.49e7385e.js.map //# sourceMappingURL=8126.b7549093.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/8126.49e7385e.js","mappings":"gMACOA,MAAM,iC,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,yB,qBAINA,MAAM,sC,2FAbf,QAmBM,MAnBN,EAmBM,EAlBJ,OAiBM,MAjBN,EAiBM,EAhBJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,aAGF,OAIM,MAJN,EAIM,CADgB,MAAZ,EAAAC,eAAY,WAFpB,QAEgC,Q,MAF1BN,MAAM,gB,aACV,QAA2B,EAAP,mBADtB,gC,yBAYR,GACEK,KAAM,cACNE,WAAY,CAACC,WAAU,cACvBC,OAAQ,CAACC,EAAA,YAETC,SAAU,CACRL,eACE,GAAyB,MAArBM,KAAKV,OAAOA,MACd,OAAO,KAET,MAAMW,EAAMD,KAAKV,MAAMW,KAAO,EACxBC,EAAMF,KAAKV,MAAMY,KAAO,IAC9B,OAAS,IAAMF,KAAKV,MAAMA,OAAUY,EAAMD,IAAME,QAAQ,EACzD,I,UCjCL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/LinkQuality.vue","webpack://platypush/./src/components/panels/Entities/LinkQuality.vue?19d2"],"sourcesContent":["<template>\n <div class=\"entity link-quality-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-s-8 col-m-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-s-3 col-m-2 buttons pull-right\">\n <span class=\"value-percent\"\n v-text=\"valuePercent + '%'\"\n v-if=\"valuePercent != null\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'LinkQuality',\n components: {EntityIcon},\n mixins: [EntityMixin],\n\n computed: {\n valuePercent() {\n if (this.value?.value == null)\n return null\n\n const min = this.value.min || 0\n const max = this.value.max || 100\n return ((100 * this.value.value) / (max - min)).toFixed(0)\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.link-quality-container {\n .head {\n .value-percent {\n font-size: 1.1em;\n font-weight: bold;\n opacity: 0.7;\n }\n }\n}\n</style>\n","import { render } from \"./LinkQuality.vue?vue&type=template&id=4ca8847f&scoped=true\"\nimport script from \"./LinkQuality.vue?vue&type=script&lang=js\"\nexport * from \"./LinkQuality.vue?vue&type=script&lang=js\"\n\nimport \"./LinkQuality.vue?vue&type=style&index=0&id=4ca8847f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4ca8847f\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","valuePercent","components","EntityIcon","mixins","EntityMixin","computed","this","min","max","toFixed","__exports__","render"],"sourceRoot":""} {"version":3,"file":"static/js/8126.b7549093.js","mappings":"gMACOA,MAAM,iC,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,yB,qBAINA,MAAM,sC,2FAbf,QAmBM,MAnBN,EAmBM,EAlBJ,OAiBM,MAjBN,EAiBM,EAhBJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,aAGF,OAIM,MAJN,EAIM,CADgB,MAAZ,EAAAC,eAAY,WAFpB,QAEgC,Q,MAF1BN,MAAM,gB,aACV,QAA2B,EAAP,mBADtB,gC,yBAYR,GACEK,KAAM,cACNE,WAAY,CAACC,WAAU,cACvBC,OAAQ,CAACC,EAAA,YAETC,SAAU,CACRL,eACE,GAAyB,MAArBM,KAAKV,OAAOA,MACd,OAAO,KAET,MAAMW,EAAMD,KAAKV,MAAMW,KAAO,EACxBC,EAAMF,KAAKV,MAAMY,KAAO,IAC9B,OAAS,IAAMF,KAAKV,MAAMA,OAAUY,EAAMD,IAAME,QAAQ,EACzD,I,UCjCL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/LinkQuality.vue","webpack://platypush/./src/components/panels/Entities/LinkQuality.vue?19d2"],"sourcesContent":["<template>\n <div class=\"entity link-quality-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-s-8 col-m-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-s-3 col-m-2 buttons pull-right\">\n <span class=\"value-percent\"\n v-text=\"valuePercent + '%'\"\n v-if=\"valuePercent != null\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'LinkQuality',\n components: {EntityIcon},\n mixins: [EntityMixin],\n\n computed: {\n valuePercent() {\n if (this.value?.value == null)\n return null\n\n const min = this.value.min || 0\n const max = this.value.max || 100\n return ((100 * this.value.value) / (max - min)).toFixed(0)\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.link-quality-container {\n .head {\n .value-percent {\n font-size: 1.1em;\n font-weight: bold;\n opacity: 0.7;\n }\n }\n}\n</style>\n","import { render } from \"./LinkQuality.vue?vue&type=template&id=4ca8847f&scoped=true\"\nimport script from \"./LinkQuality.vue?vue&type=script&lang=js\"\nexport * from \"./LinkQuality.vue?vue&type=script&lang=js\"\n\nimport \"./LinkQuality.vue?vue&type=style&index=0&id=4ca8847f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4ca8847f\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","valuePercent","components","EntityIcon","mixins","EntityMixin","computed","this","min","max","toFixed","__exports__","render"],"sourceRoot":""}

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8444],{8444:function(n,e,t){t.r(e),t.d(e,{default:function(){return y}});t(8309);var a=t(6252),l=t(3577),i={class:"entity cpu-times-container"},s={class:"head"},r={class:"col-1 icon"},c={class:"col-11 label"},o=["textContent"];function u(n,e,t,u,d,p){var v=(0,a.up)("EntityIcon");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a._)("div",s,[(0,a._)("div",r,[(0,a.Wm)(v,{entity:n.value,loading:n.loading,error:n.error},null,8,["entity","loading","error"])]),(0,a._)("div",c,[(0,a._)("div",{class:"name",textContent:(0,l.zw)(n.value.name)},null,8,o)])])])}var d=t(7909),p=t(3459),v={name:"CpuTimes",components:{EntityIcon:p["default"]},mixins:[d["default"]]},f=t(3744);const m=(0,f.Z)(v,[["render",u],["__scopeId","data-v-4667e342"]]);var y=m}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8444],{8444:function(n,e,t){t.r(e),t.d(e,{default:function(){return y}});t(8309);var a=t(6252),l=t(3577),i={class:"entity cpu-times-container"},s={class:"head"},r={class:"col-1 icon"},c={class:"col-11 label"},o=["textContent"];function u(n,e,t,u,d,p){var v=(0,a.up)("EntityIcon");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a._)("div",s,[(0,a._)("div",r,[(0,a.Wm)(v,{entity:n.value,loading:n.loading,error:n.error},null,8,["entity","loading","error"])]),(0,a._)("div",c,[(0,a._)("div",{class:"name",textContent:(0,l.zw)(n.value.name)},null,8,o)])])])}var d=t(7909),p=t(5017),v={name:"CpuTimes",components:{EntityIcon:p["default"]},mixins:[d["default"]]},f=t(3744);const m=(0,f.Z)(v,[["render",u],["__scopeId","data-v-4667e342"]]);var y=m}}]);
//# sourceMappingURL=8444-legacy.51c9e121.js.map //# sourceMappingURL=8444-legacy.d929a272.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/8444-legacy.51c9e121.js","mappings":"kMACOA,MAAM,8B,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,gB,yFATf,QAaM,MAbN,EAaM,EAZJ,OAWM,MAXN,EAWM,EAVJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,e,yBAUR,GACEA,KAAM,WACNC,WAAY,CAACC,WAAAA,EAAA,YACbC,OAAQ,CAACC,EAAA,a,UCjBX,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/CpuTimes.vue","webpack://platypush/./src/components/panels/Entities/CpuTimes.vue?1fa2"],"sourcesContent":["<template>\n <div class=\"entity cpu-times-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-11 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'CpuTimes',\n components: {EntityIcon},\n mixins: [EntityMixin],\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n</style>\n","import { render } from \"./CpuTimes.vue?vue&type=template&id=4667e342&scoped=true\"\nimport script from \"./CpuTimes.vue?vue&type=script&lang=js\"\nexport * from \"./CpuTimes.vue?vue&type=script&lang=js\"\n\nimport \"./CpuTimes.vue?vue&type=style&index=0&id=4667e342&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4667e342\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","components","EntityIcon","mixins","EntityMixin","__exports__","render"],"sourceRoot":""} {"version":3,"file":"static/js/8444-legacy.d929a272.js","mappings":"kMACOA,MAAM,8B,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,gB,yFATf,QAaM,MAbN,EAaM,EAZJ,OAWM,MAXN,EAWM,EAVJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,e,yBAUR,GACEA,KAAM,WACNC,WAAY,CAACC,WAAAA,EAAA,YACbC,OAAQ,CAACC,EAAA,a,UCjBX,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/CpuTimes.vue","webpack://platypush/./src/components/panels/Entities/CpuTimes.vue?1fa2"],"sourcesContent":["<template>\n <div class=\"entity cpu-times-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-11 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'CpuTimes',\n components: {EntityIcon},\n mixins: [EntityMixin],\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n</style>\n","import { render } from \"./CpuTimes.vue?vue&type=template&id=4667e342&scoped=true\"\nimport script from \"./CpuTimes.vue?vue&type=script&lang=js\"\nexport * from \"./CpuTimes.vue?vue&type=script&lang=js\"\n\nimport \"./CpuTimes.vue?vue&type=style&index=0&id=4667e342&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4667e342\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","components","EntityIcon","mixins","EntityMixin","__exports__","render"],"sourceRoot":""}

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8444],{8444:function(n,t,e){e.r(t),e.d(t,{default:function(){return y}});var a=e(6252),l=e(3577);const s={class:"entity cpu-times-container"},i={class:"head"},c={class:"col-1 icon"},o={class:"col-11 label"},r=["textContent"];function u(n,t,e,u,d,p){const v=(0,a.up)("EntityIcon");return(0,a.wg)(),(0,a.iD)("div",s,[(0,a._)("div",i,[(0,a._)("div",c,[(0,a.Wm)(v,{entity:n.value,loading:n.loading,error:n.error},null,8,["entity","loading","error"])]),(0,a._)("div",o,[(0,a._)("div",{class:"name",textContent:(0,l.zw)(n.value.name)},null,8,r)])])])}var d=e(7909),p=e(3459),v={name:"CpuTimes",components:{EntityIcon:p["default"]},mixins:[d["default"]]},f=e(3744);const m=(0,f.Z)(v,[["render",u],["__scopeId","data-v-4667e342"]]);var y=m}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8444],{8444:function(n,t,e){e.r(t),e.d(t,{default:function(){return y}});var a=e(6252),l=e(3577);const s={class:"entity cpu-times-container"},i={class:"head"},c={class:"col-1 icon"},o={class:"col-11 label"},r=["textContent"];function u(n,t,e,u,d,p){const v=(0,a.up)("EntityIcon");return(0,a.wg)(),(0,a.iD)("div",s,[(0,a._)("div",i,[(0,a._)("div",c,[(0,a.Wm)(v,{entity:n.value,loading:n.loading,error:n.error},null,8,["entity","loading","error"])]),(0,a._)("div",o,[(0,a._)("div",{class:"name",textContent:(0,l.zw)(n.value.name)},null,8,r)])])])}var d=e(7909),p=e(5017),v={name:"CpuTimes",components:{EntityIcon:p["default"]},mixins:[d["default"]]},f=e(3744);const m=(0,f.Z)(v,[["render",u],["__scopeId","data-v-4667e342"]]);var y=m}}]);
//# sourceMappingURL=8444.b455dc95.js.map //# sourceMappingURL=8444.f1583afb.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/8444.b455dc95.js","mappings":"gMACOA,MAAM,8B,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,gB,2FATf,QAaM,MAbN,EAaM,EAZJ,OAWM,MAXN,EAWM,EAVJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,e,yBAUR,GACEA,KAAM,WACNC,WAAY,CAACC,WAAU,cACvBC,OAAQ,CAACC,EAAA,a,UCjBX,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/CpuTimes.vue","webpack://platypush/./src/components/panels/Entities/CpuTimes.vue?1fa2"],"sourcesContent":["<template>\n <div class=\"entity cpu-times-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-11 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'CpuTimes',\n components: {EntityIcon},\n mixins: [EntityMixin],\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n</style>\n","import { render } from \"./CpuTimes.vue?vue&type=template&id=4667e342&scoped=true\"\nimport script from \"./CpuTimes.vue?vue&type=script&lang=js\"\nexport * from \"./CpuTimes.vue?vue&type=script&lang=js\"\n\nimport \"./CpuTimes.vue?vue&type=style&index=0&id=4667e342&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4667e342\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","components","EntityIcon","mixins","EntityMixin","__exports__","render"],"sourceRoot":""} {"version":3,"file":"static/js/8444.f1583afb.js","mappings":"gMACOA,MAAM,8B,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,gB,2FATf,QAaM,MAbN,EAaM,EAZJ,OAWM,MAXN,EAWM,EAVJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBC,OAAQ,EAAAC,MACRC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,e,yBAUR,GACEA,KAAM,WACNC,WAAY,CAACC,WAAU,cACvBC,OAAQ,CAACC,EAAA,a,UCjBX,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/CpuTimes.vue","webpack://platypush/./src/components/panels/Entities/CpuTimes.vue?1fa2"],"sourcesContent":["<template>\n <div class=\"entity cpu-times-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-11 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'CpuTimes',\n components: {EntityIcon},\n mixins: [EntityMixin],\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n</style>\n","import { render } from \"./CpuTimes.vue?vue&type=template&id=4667e342&scoped=true\"\nimport script from \"./CpuTimes.vue?vue&type=script&lang=js\"\nexport * from \"./CpuTimes.vue?vue&type=script&lang=js\"\n\nimport \"./CpuTimes.vue?vue&type=style&index=0&id=4667e342&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4667e342\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","components","EntityIcon","mixins","EntityMixin","__exports__","render"],"sourceRoot":""}

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8625,5915],{8625:function(t,n,e){e.r(n),e.d(n,{default:function(){return w}});e(8309);var l=e(6252),a=e(3577),u={class:"entity sensor-container"},s={class:"head"},o={class:"col-1 icon"},i={class:"col-s-8 col-m-9 label"},c=["textContent"],r={key:0,class:"col-s-3 col-m-2 pull-right"},v=["textContent"],d=["textContent"];function p(t,n,e,p,m,y){var f=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",u,[(0,l._)("div",s,[(0,l._)("div",o,[(0,l.Wm)(f,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",i,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,c)]),null!=t.value.value?((0,l.wg)(),(0,l.iD)("div",r,[null!=t.value.unit?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"unit",textContent:(0,a.zw)(t.value.unit)},null,8,v)):(0,l.kq)("",!0),(0,l._)("span",{class:"value",textContent:(0,a.zw)(y.displayValue(t.value.value))},null,8,d)])):(0,l.kq)("",!0)])])}var m=e(3336),y=(e(1539),e(3948),e(3459)),f=e(5915),h={name:"EnumSensor",components:{EntityIcon:y["default"]},mixins:[f["default"]],methods:{displayValue:function(t){var n;return null!==(n=this.value)&&void 0!==n&&n.values&&"object"===(0,m.Z)(this.value.values)&&this.value.values[t]||t}}},_=e(3744);const g=(0,_.Z)(h,[["render",p],["__scopeId","data-v-0c74d08c"]]);var w=g},5915:function(t,n,e){e.r(n),e.d(n,{default:function(){return g}});e(8309);var l=e(6252),a=e(3577),u={class:"entity sensor-container"},s={class:"head"},o={class:"col-1 icon"},i={class:"col-s-8 col-m-9 label"},c=["textContent"],r={key:0,class:"col-s-3 col-m-2 pull-right"},v=["textContent"],d=["textContent"];function p(t,n,e,p,m,y){var f=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",u,[(0,l._)("div",s,[(0,l._)("div",o,[(0,l.Wm)(f,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",i,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,c)]),null!=y.computedValue?((0,l.wg)(),(0,l.iD)("div",r,[(0,l._)("span",{class:"value",textContent:(0,a.zw)(y.computedValue)},null,8,v),null!=t.value.unit?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"unit",textContent:(0,a.zw)(t.value.unit)},null,8,d)):(0,l.kq)("",!0)])):(0,l.kq)("",!0)])])}var m=e(7909),y=e(3459),f={name:"Sensor",components:{EntityIcon:y["default"]},mixins:[m["default"]],computed:{computedValue:function(){return null!=this.value.value?this.value.value:this.value._value}}},h=e(3744);const _=(0,h.Z)(f,[["render",p],["__scopeId","data-v-c249d526"]]);var g=_}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8625,5915],{8625:function(t,n,e){e.r(n),e.d(n,{default:function(){return w}});e(8309);var l=e(6252),a=e(3577),u={class:"entity sensor-container"},s={class:"head"},o={class:"col-1 icon"},i={class:"col-s-8 col-m-9 label"},c=["textContent"],r={key:0,class:"col-s-3 col-m-2 pull-right"},v=["textContent"],d=["textContent"];function p(t,n,e,p,m,y){var f=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",u,[(0,l._)("div",s,[(0,l._)("div",o,[(0,l.Wm)(f,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",i,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,c)]),null!=t.value.value?((0,l.wg)(),(0,l.iD)("div",r,[null!=t.value.unit?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"unit",textContent:(0,a.zw)(t.value.unit)},null,8,v)):(0,l.kq)("",!0),(0,l._)("span",{class:"value",textContent:(0,a.zw)(y.displayValue(t.value.value))},null,8,d)])):(0,l.kq)("",!0)])])}var m=e(3336),y=(e(1539),e(3948),e(5017)),f=e(5915),h={name:"EnumSensor",components:{EntityIcon:y["default"]},mixins:[f["default"]],methods:{displayValue:function(t){var n;return null!==(n=this.value)&&void 0!==n&&n.values&&"object"===(0,m.Z)(this.value.values)&&this.value.values[t]||t}}},_=e(3744);const g=(0,_.Z)(h,[["render",p],["__scopeId","data-v-0c74d08c"]]);var w=g},5915:function(t,n,e){e.r(n),e.d(n,{default:function(){return g}});e(8309);var l=e(6252),a=e(3577),u={class:"entity sensor-container"},s={class:"head"},o={class:"col-1 icon"},i={class:"col-s-8 col-m-9 label"},c=["textContent"],r={key:0,class:"col-s-3 col-m-2 pull-right"},v=["textContent"],d=["textContent"];function p(t,n,e,p,m,y){var f=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",u,[(0,l._)("div",s,[(0,l._)("div",o,[(0,l.Wm)(f,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",i,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,c)]),null!=y.computedValue?((0,l.wg)(),(0,l.iD)("div",r,[(0,l._)("span",{class:"value",textContent:(0,a.zw)(y.computedValue)},null,8,v),null!=t.value.unit?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"unit",textContent:(0,a.zw)(t.value.unit)},null,8,d)):(0,l.kq)("",!0)])):(0,l.kq)("",!0)])])}var m=e(7909),y=e(5017),f={name:"Sensor",components:{EntityIcon:y["default"]},mixins:[m["default"]],computed:{computedValue:function(){return null!=this.value.value?this.value.value:this.value._value}}},h=e(3744);const _=(0,h.Z)(f,[["render",p],["__scopeId","data-v-c249d526"]]);var g=_}}]);
//# sourceMappingURL=8625-legacy.5ce93313.js.map //# sourceMappingURL=8625-legacy.c6a5bf87.js.map

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8625,5915],{8625:function(t,e,n){n.r(e),n.d(e,{default:function(){return g}});var l=n(6252),a=n(3577);const u={class:"entity sensor-container"},s={class:"head"},o={class:"col-1 icon"},i={class:"col-s-8 col-m-9 label"},c=["textContent"],r={key:0,class:"col-s-3 col-m-2 pull-right"},v=["textContent"],d=["textContent"];function p(t,e,n,p,m,y){const h=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",u,[(0,l._)("div",s,[(0,l._)("div",o,[(0,l.Wm)(h,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",i,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,c)]),null!=t.value.value?((0,l.wg)(),(0,l.iD)("div",r,[null!=t.value.unit?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"unit",textContent:(0,a.zw)(t.value.unit)},null,8,v)):(0,l.kq)("",!0),(0,l._)("span",{class:"value",textContent:(0,a.zw)(y.displayValue(t.value.value))},null,8,d)])):(0,l.kq)("",!0)])])}var m=n(3459),y=n(5915),h={name:"EnumSensor",components:{EntityIcon:m["default"]},mixins:[y["default"]],methods:{displayValue(t){return this.value?.values&&"object"===typeof this.value.values&&this.value.values[t]||t}}},f=n(3744);const _=(0,f.Z)(h,[["render",p],["__scopeId","data-v-0c74d08c"]]);var g=_},5915:function(t,e,n){n.r(e),n.d(e,{default:function(){return g}});var l=n(6252),a=n(3577);const u={class:"entity sensor-container"},s={class:"head"},o={class:"col-1 icon"},i={class:"col-s-8 col-m-9 label"},c=["textContent"],r={key:0,class:"col-s-3 col-m-2 pull-right"},v=["textContent"],d=["textContent"];function p(t,e,n,p,m,y){const h=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",u,[(0,l._)("div",s,[(0,l._)("div",o,[(0,l.Wm)(h,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",i,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,c)]),null!=y.computedValue?((0,l.wg)(),(0,l.iD)("div",r,[(0,l._)("span",{class:"value",textContent:(0,a.zw)(y.computedValue)},null,8,v),null!=t.value.unit?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"unit",textContent:(0,a.zw)(t.value.unit)},null,8,d)):(0,l.kq)("",!0)])):(0,l.kq)("",!0)])])}var m=n(7909),y=n(3459),h={name:"Sensor",components:{EntityIcon:y["default"]},mixins:[m["default"]],computed:{computedValue(){return null!=this.value.value?this.value.value:this.value._value}}},f=n(3744);const _=(0,f.Z)(h,[["render",p],["__scopeId","data-v-c249d526"]]);var g=_}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8625,5915],{8625:function(t,e,n){n.r(e),n.d(e,{default:function(){return g}});var l=n(6252),a=n(3577);const u={class:"entity sensor-container"},s={class:"head"},o={class:"col-1 icon"},i={class:"col-s-8 col-m-9 label"},c=["textContent"],r={key:0,class:"col-s-3 col-m-2 pull-right"},v=["textContent"],d=["textContent"];function p(t,e,n,p,m,y){const h=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",u,[(0,l._)("div",s,[(0,l._)("div",o,[(0,l.Wm)(h,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",i,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,c)]),null!=t.value.value?((0,l.wg)(),(0,l.iD)("div",r,[null!=t.value.unit?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"unit",textContent:(0,a.zw)(t.value.unit)},null,8,v)):(0,l.kq)("",!0),(0,l._)("span",{class:"value",textContent:(0,a.zw)(y.displayValue(t.value.value))},null,8,d)])):(0,l.kq)("",!0)])])}var m=n(5017),y=n(5915),h={name:"EnumSensor",components:{EntityIcon:m["default"]},mixins:[y["default"]],methods:{displayValue(t){return this.value?.values&&"object"===typeof this.value.values&&this.value.values[t]||t}}},f=n(3744);const _=(0,f.Z)(h,[["render",p],["__scopeId","data-v-0c74d08c"]]);var g=_},5915:function(t,e,n){n.r(e),n.d(e,{default:function(){return g}});var l=n(6252),a=n(3577);const u={class:"entity sensor-container"},s={class:"head"},o={class:"col-1 icon"},i={class:"col-s-8 col-m-9 label"},c=["textContent"],r={key:0,class:"col-s-3 col-m-2 pull-right"},v=["textContent"],d=["textContent"];function p(t,e,n,p,m,y){const h=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",u,[(0,l._)("div",s,[(0,l._)("div",o,[(0,l.Wm)(h,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l._)("div",i,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,c)]),null!=y.computedValue?((0,l.wg)(),(0,l.iD)("div",r,[(0,l._)("span",{class:"value",textContent:(0,a.zw)(y.computedValue)},null,8,v),null!=t.value.unit?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"unit",textContent:(0,a.zw)(t.value.unit)},null,8,d)):(0,l.kq)("",!0)])):(0,l.kq)("",!0)])])}var m=n(7909),y=n(5017),h={name:"Sensor",components:{EntityIcon:y["default"]},mixins:[m["default"]],computed:{computedValue(){return null!=this.value.value?this.value.value:this.value._value}}},f=n(3744);const _=(0,f.Z)(h,[["render",p],["__scopeId","data-v-c249d526"]]);var g=_}}]);
//# sourceMappingURL=8625.c482263f.js.map //# sourceMappingURL=8625.bef22c0c.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9651],{9651:function(e,l,n){n.r(l),n.d(l,{default:function(){return k}});n(8309);var t=n(6252),a=n(3577),o={class:"entity battery-container"},r={class:"head"},c={class:"col-1 icon"},u={class:"col-s-8 col-m-9 label"},i=["textContent"],s={class:"col-s-3 col-m-2 buttons pull-right"},v=["textContent"];function d(e,l,n,d,f,p){var h=(0,t.up)("EntityIcon");return(0,t.wg)(),(0,t.iD)("div",o,[(0,t._)("div",r,[(0,t._)("div",c,[(0,t.Wm)(h,{entity:e.value,icon:p.icon,loading:e.loading,error:e.error},null,8,["entity","icon","loading","error"])]),(0,t._)("div",u,[(0,t._)("div",{class:"name",textContent:(0,a.zw)(e.value.name)},null,8,i)]),(0,t._)("div",s,[null!=p.valuePercent?((0,t.wg)(),(0,t.iD)("span",{key:0,class:"value-percent",textContent:(0,a.zw)(p.valuePercent+"%")},null,8,v)):(0,t.kq)("",!0)])])])}var f=n(6347),p=n(4648),h=(n(6977),n(7909)),C=n(3459),m=[{iconClass:"full",color:"#157145",value:.9},{iconClass:"three-quarters",color:"#94C595",value:.825},{iconClass:"half",color:"#F0B67F",value:.625},{iconClass:"quarter",color:"#FE5F55",value:.375},{iconClass:"low",color:"#CC444B",value:.15},{iconClass:"empty",color:"#EC0B43",value:.05}],y={name:"Battery",components:{EntityIcon:C["default"]},mixins:[h["default"]],computed:{valuePercent:function(){var e;if(null==(null===(e=this.value)||void 0===e?void 0:e.value))return null;var l=this.value.min||0,n=this.value.max||100;return(100*this.value.value/(n-l)).toFixed(0)},icon:function(){var e,l=(0,p.Z)({},(null===(e=this.value.meta)||void 0===e?void 0:e.icon)||{}),n=this.valuePercent,t=m[0];if(null!=n){n=parseFloat(n)/100;var a,o=(0,f.Z)(m);try{for(o.s();!(a=o.n()).done;){var r=a.value;if(n>r.value)break;t=r}}catch(c){o.e(c)}finally{o.f()}}return l["class"]="fas fa-battery-".concat(t.iconClass),l["color"]=t.color,l}},methods:{prevent:function(e){return e.stopPropagation(),!1}}},b=n(3744);const g=(0,b.Z)(y,[["render",d],["__scopeId","data-v-fb9c9926"]]);var k=g}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9651],{9651:function(e,l,n){n.r(l),n.d(l,{default:function(){return k}});n(8309);var t=n(6252),a=n(3577),o={class:"entity battery-container"},r={class:"head"},c={class:"col-1 icon"},u={class:"col-s-8 col-m-9 label"},i=["textContent"],s={class:"col-s-3 col-m-2 buttons pull-right"},v=["textContent"];function d(e,l,n,d,f,p){var h=(0,t.up)("EntityIcon");return(0,t.wg)(),(0,t.iD)("div",o,[(0,t._)("div",r,[(0,t._)("div",c,[(0,t.Wm)(h,{entity:e.value,icon:p.icon,loading:e.loading,error:e.error},null,8,["entity","icon","loading","error"])]),(0,t._)("div",u,[(0,t._)("div",{class:"name",textContent:(0,a.zw)(e.value.name)},null,8,i)]),(0,t._)("div",s,[null!=p.valuePercent?((0,t.wg)(),(0,t.iD)("span",{key:0,class:"value-percent",textContent:(0,a.zw)(p.valuePercent+"%")},null,8,v)):(0,t.kq)("",!0)])])])}var f=n(6347),p=n(4648),h=(n(6977),n(7909)),C=n(5017),m=[{iconClass:"full",color:"#157145",value:.9},{iconClass:"three-quarters",color:"#94C595",value:.825},{iconClass:"half",color:"#F0B67F",value:.625},{iconClass:"quarter",color:"#FE5F55",value:.375},{iconClass:"low",color:"#CC444B",value:.15},{iconClass:"empty",color:"#EC0B43",value:.05}],y={name:"Battery",components:{EntityIcon:C["default"]},mixins:[h["default"]],computed:{valuePercent:function(){var e;if(null==(null===(e=this.value)||void 0===e?void 0:e.value))return null;var l=this.value.min||0,n=this.value.max||100;return(100*this.value.value/(n-l)).toFixed(0)},icon:function(){var e,l=(0,p.Z)({},(null===(e=this.value.meta)||void 0===e?void 0:e.icon)||{}),n=this.valuePercent,t=m[0];if(null!=n){n=parseFloat(n)/100;var a,o=(0,f.Z)(m);try{for(o.s();!(a=o.n()).done;){var r=a.value;if(n>r.value)break;t=r}}catch(c){o.e(c)}finally{o.f()}}return l["class"]="fas fa-battery-".concat(t.iconClass),l["color"]=t.color,l}},methods:{prevent:function(e){return e.stopPropagation(),!1}}},b=n(3744);const g=(0,b.Z)(y,[["render",d],["__scopeId","data-v-fb9c9926"]]);var k=g}}]);
//# sourceMappingURL=9651-legacy.a087d69a.js.map //# sourceMappingURL=9651-legacy.e588cd70.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/9651-legacy.a087d69a.js","mappings":"kMACOA,MAAM,4B,GACJA,MAAM,Q,GACJA,MAAM,c,GAQNA,MAAM,yB,qBAINA,MAAM,sC,yFAdf,QAoBM,MApBN,EAoBM,EAnBJ,OAkBM,MAlBN,EAkBM,EAjBJ,OAMM,MANN,EAMM,EALJ,QAImB,GAHhBC,OAAQ,EAAAC,MACRC,KAAM,EAAAA,KACNC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAJV,+CAOF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCL,MAAM,O,aAAO,QAAmB,EAAN,MAACM,OAAhC,aAGF,OAIM,MAJN,EAIM,CADgB,MAAZ,EAAAC,eAAY,WAFpB,QAEgC,Q,MAF1BP,MAAM,gB,aACV,QAA2B,EAAP,mBADtB,gC,uDAYFQ,EAAa,CACjB,CACEC,UAAW,OACXC,MAAO,UACPR,MAAO,IAET,CACEO,UAAW,iBACXC,MAAO,UACPR,MAAO,MAET,CACEO,UAAW,OACXC,MAAO,UACPR,MAAO,MAET,CACEO,UAAW,UACXC,MAAO,UACPR,MAAO,MAET,CACEO,UAAW,MACXC,MAAO,UACPR,MAAO,KAET,CACEO,UAAW,QACXC,MAAO,UACPR,MAAO,MAIX,GACEI,KAAM,UACNK,WAAY,CAACC,WAAAA,EAAA,YACbC,OAAQ,CAACC,EAAA,YAETC,SAAU,CACRR,aADQ,WACO,MACb,GAAyB,OAArB,UAAAS,KAAKd,aAAL,eAAYA,OACd,OAAO,KAET,IAAMe,EAAMD,KAAKd,MAAMe,KAAO,EACxBC,EAAMF,KAAKd,MAAMgB,KAAO,IAC9B,OAAS,IAAMF,KAAKd,MAAMA,OAAUgB,EAAMD,IAAME,QAAQ,EACzD,EAEDhB,KAVQ,WAUD,MACCA,GAAG,WAAS,UAAAa,KAAKd,MAAMkB,YAAX,eAAiBjB,OAAQ,CAAC,GACxCD,EAAQc,KAAKT,aACbc,EAAYb,EAAW,GAE3B,GAAa,MAATN,EAAe,CACjBA,EAAQoB,WAAWpB,GAAS,IADX,gBAEDM,GAFC,IAEjB,2BAA4B,KAAjBe,EAAiB,QAC1B,GAAIrB,EAAQqB,EAAErB,MACZ,MACFmB,EAAYE,CACd,CANiB,+BAOnB,CAIA,OAFApB,EAAK,SAAL,yBAAkCkB,EAAUZ,WAC5CN,EAAK,SAAWkB,EAAUX,MACnBP,CACR,GAGHqB,QAAS,CACPC,QADO,SACCC,GAEN,OADAA,EAAMC,mBACC,CACR,I,UC7FL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Battery.vue","webpack://platypush/./src/components/panels/Entities/Battery.vue?1b53"],"sourcesContent":["<template>\n <div class=\"entity battery-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :icon=\"icon\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-s-8 col-m-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-s-3 col-m-2 buttons pull-right\">\n <span class=\"value-percent\"\n v-text=\"valuePercent + '%'\"\n v-if=\"valuePercent != null\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nconst thresholds = [\n {\n iconClass: 'full',\n color: '#157145',\n value: 0.9,\n },\n {\n iconClass: 'three-quarters',\n color: '#94C595',\n value: 0.825,\n },\n {\n iconClass: 'half',\n color: '#F0B67F',\n value: 0.625,\n },\n {\n iconClass: 'quarter',\n color: '#FE5F55',\n value: 0.375,\n },\n {\n iconClass: 'low',\n color: '#CC444B',\n value: 0.15,\n },\n {\n iconClass: 'empty',\n color: '#EC0B43',\n value: 0.05,\n },\n]\n\nexport default {\n name: 'Battery',\n components: {EntityIcon},\n mixins: [EntityMixin],\n\n computed: {\n valuePercent() {\n if (this.value?.value == null)\n return null\n\n const min = this.value.min || 0\n const max = this.value.max || 100\n return ((100 * this.value.value) / (max - min)).toFixed(0)\n },\n\n icon() {\n const icon = {...(this.value.meta?.icon || {})}\n let value = this.valuePercent\n let threshold = thresholds[0]\n\n if (value != null) {\n value = parseFloat(value) / 100\n for (const t of thresholds) {\n if (value > t.value)\n break\n threshold = t\n }\n }\n\n icon['class'] = `fas fa-battery-${threshold.iconClass}`\n icon['color'] = threshold.color\n return icon\n },\n },\n\n methods: {\n prevent(event) {\n event.stopPropagation()\n return false\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.battery-container {\n .head {\n .value-percent {\n font-size: 1.1em;\n font-weight: bold;\n opacity: 0.7;\n }\n }\n}\n</style>\n","import { render } from \"./Battery.vue?vue&type=template&id=fb9c9926&scoped=true\"\nimport script from \"./Battery.vue?vue&type=script&lang=js\"\nexport * from \"./Battery.vue?vue&type=script&lang=js\"\n\nimport \"./Battery.vue?vue&type=style&index=0&id=fb9c9926&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-fb9c9926\"]])\n\nexport default __exports__"],"names":["class","entity","value","icon","loading","error","name","valuePercent","thresholds","iconClass","color","components","EntityIcon","mixins","EntityMixin","computed","this","min","max","toFixed","meta","threshold","parseFloat","t","methods","prevent","event","stopPropagation","__exports__","render"],"sourceRoot":""} {"version":3,"file":"static/js/9651-legacy.e588cd70.js","mappings":"kMACOA,MAAM,4B,GACJA,MAAM,Q,GACJA,MAAM,c,GAQNA,MAAM,yB,qBAINA,MAAM,sC,yFAdf,QAoBM,MApBN,EAoBM,EAnBJ,OAkBM,MAlBN,EAkBM,EAjBJ,OAMM,MANN,EAMM,EALJ,QAImB,GAHhBC,OAAQ,EAAAC,MACRC,KAAM,EAAAA,KACNC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAJV,+CAOF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCL,MAAM,O,aAAO,QAAmB,EAAN,MAACM,OAAhC,aAGF,OAIM,MAJN,EAIM,CADgB,MAAZ,EAAAC,eAAY,WAFpB,QAEgC,Q,MAF1BP,MAAM,gB,aACV,QAA2B,EAAP,mBADtB,gC,uDAYFQ,EAAa,CACjB,CACEC,UAAW,OACXC,MAAO,UACPR,MAAO,IAET,CACEO,UAAW,iBACXC,MAAO,UACPR,MAAO,MAET,CACEO,UAAW,OACXC,MAAO,UACPR,MAAO,MAET,CACEO,UAAW,UACXC,MAAO,UACPR,MAAO,MAET,CACEO,UAAW,MACXC,MAAO,UACPR,MAAO,KAET,CACEO,UAAW,QACXC,MAAO,UACPR,MAAO,MAIX,GACEI,KAAM,UACNK,WAAY,CAACC,WAAAA,EAAA,YACbC,OAAQ,CAACC,EAAA,YAETC,SAAU,CACRR,aADQ,WACO,MACb,GAAyB,OAArB,UAAAS,KAAKd,aAAL,eAAYA,OACd,OAAO,KAET,IAAMe,EAAMD,KAAKd,MAAMe,KAAO,EACxBC,EAAMF,KAAKd,MAAMgB,KAAO,IAC9B,OAAS,IAAMF,KAAKd,MAAMA,OAAUgB,EAAMD,IAAME,QAAQ,EACzD,EAEDhB,KAVQ,WAUD,MACCA,GAAG,WAAS,UAAAa,KAAKd,MAAMkB,YAAX,eAAiBjB,OAAQ,CAAC,GACxCD,EAAQc,KAAKT,aACbc,EAAYb,EAAW,GAE3B,GAAa,MAATN,EAAe,CACjBA,EAAQoB,WAAWpB,GAAS,IADX,gBAEDM,GAFC,IAEjB,2BAA4B,KAAjBe,EAAiB,QAC1B,GAAIrB,EAAQqB,EAAErB,MACZ,MACFmB,EAAYE,CACd,CANiB,+BAOnB,CAIA,OAFApB,EAAK,SAAL,yBAAkCkB,EAAUZ,WAC5CN,EAAK,SAAWkB,EAAUX,MACnBP,CACR,GAGHqB,QAAS,CACPC,QADO,SACCC,GAEN,OADAA,EAAMC,mBACC,CACR,I,UC7FL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Battery.vue","webpack://platypush/./src/components/panels/Entities/Battery.vue?1b53"],"sourcesContent":["<template>\n <div class=\"entity battery-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :icon=\"icon\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-s-8 col-m-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-s-3 col-m-2 buttons pull-right\">\n <span class=\"value-percent\"\n v-text=\"valuePercent + '%'\"\n v-if=\"valuePercent != null\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nconst thresholds = [\n {\n iconClass: 'full',\n color: '#157145',\n value: 0.9,\n },\n {\n iconClass: 'three-quarters',\n color: '#94C595',\n value: 0.825,\n },\n {\n iconClass: 'half',\n color: '#F0B67F',\n value: 0.625,\n },\n {\n iconClass: 'quarter',\n color: '#FE5F55',\n value: 0.375,\n },\n {\n iconClass: 'low',\n color: '#CC444B',\n value: 0.15,\n },\n {\n iconClass: 'empty',\n color: '#EC0B43',\n value: 0.05,\n },\n]\n\nexport default {\n name: 'Battery',\n components: {EntityIcon},\n mixins: [EntityMixin],\n\n computed: {\n valuePercent() {\n if (this.value?.value == null)\n return null\n\n const min = this.value.min || 0\n const max = this.value.max || 100\n return ((100 * this.value.value) / (max - min)).toFixed(0)\n },\n\n icon() {\n const icon = {...(this.value.meta?.icon || {})}\n let value = this.valuePercent\n let threshold = thresholds[0]\n\n if (value != null) {\n value = parseFloat(value) / 100\n for (const t of thresholds) {\n if (value > t.value)\n break\n threshold = t\n }\n }\n\n icon['class'] = `fas fa-battery-${threshold.iconClass}`\n icon['color'] = threshold.color\n return icon\n },\n },\n\n methods: {\n prevent(event) {\n event.stopPropagation()\n return false\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.battery-container {\n .head {\n .value-percent {\n font-size: 1.1em;\n font-weight: bold;\n opacity: 0.7;\n }\n }\n}\n</style>\n","import { render } from \"./Battery.vue?vue&type=template&id=fb9c9926&scoped=true\"\nimport script from \"./Battery.vue?vue&type=script&lang=js\"\nexport * from \"./Battery.vue?vue&type=script&lang=js\"\n\nimport \"./Battery.vue?vue&type=style&index=0&id=fb9c9926&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-fb9c9926\"]])\n\nexport default __exports__"],"names":["class","entity","value","icon","loading","error","name","valuePercent","thresholds","iconClass","color","components","EntityIcon","mixins","EntityMixin","computed","this","min","max","toFixed","meta","threshold","parseFloat","t","methods","prevent","event","stopPropagation","__exports__","render"],"sourceRoot":""}

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9651],{9651:function(e,t,l){l.r(t),l.d(t,{default:function(){return b}});var n=l(6252),a=l(3577);const o={class:"entity battery-container"},s={class:"head"},c={class:"col-1 icon"},r={class:"col-s-8 col-m-9 label"},u=["textContent"],i={class:"col-s-3 col-m-2 buttons pull-right"},v=["textContent"];function d(e,t,l,d,p,f){const C=(0,n.up)("EntityIcon");return(0,n.wg)(),(0,n.iD)("div",o,[(0,n._)("div",s,[(0,n._)("div",c,[(0,n.Wm)(C,{entity:e.value,icon:f.icon,loading:e.loading,error:e.error},null,8,["entity","icon","loading","error"])]),(0,n._)("div",r,[(0,n._)("div",{class:"name",textContent:(0,a.zw)(e.value.name)},null,8,u)]),(0,n._)("div",i,[null!=f.valuePercent?((0,n.wg)(),(0,n.iD)("span",{key:0,class:"value-percent",textContent:(0,a.zw)(f.valuePercent+"%")},null,8,v)):(0,n.kq)("",!0)])])])}var p=l(7909),f=l(3459);const C=[{iconClass:"full",color:"#157145",value:.9},{iconClass:"three-quarters",color:"#94C595",value:.825},{iconClass:"half",color:"#F0B67F",value:.625},{iconClass:"quarter",color:"#FE5F55",value:.375},{iconClass:"low",color:"#CC444B",value:.15},{iconClass:"empty",color:"#EC0B43",value:.05}];var h={name:"Battery",components:{EntityIcon:f["default"]},mixins:[p["default"]],computed:{valuePercent(){if(null==this.value?.value)return null;const e=this.value.min||0,t=this.value.max||100;return(100*this.value.value/(t-e)).toFixed(0)},icon(){const e={...this.value.meta?.icon||{}};let t=this.valuePercent,l=C[0];if(null!=t){t=parseFloat(t)/100;for(const e of C){if(t>e.value)break;l=e}}return e["class"]=`fas fa-battery-${l.iconClass}`,e["color"]=l.color,e}},methods:{prevent(e){return e.stopPropagation(),!1}}},m=l(3744);const y=(0,m.Z)(h,[["render",d],["__scopeId","data-v-fb9c9926"]]);var b=y}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9651],{9651:function(e,t,l){l.r(t),l.d(t,{default:function(){return b}});var n=l(6252),a=l(3577);const o={class:"entity battery-container"},s={class:"head"},c={class:"col-1 icon"},r={class:"col-s-8 col-m-9 label"},u=["textContent"],i={class:"col-s-3 col-m-2 buttons pull-right"},v=["textContent"];function d(e,t,l,d,p,f){const C=(0,n.up)("EntityIcon");return(0,n.wg)(),(0,n.iD)("div",o,[(0,n._)("div",s,[(0,n._)("div",c,[(0,n.Wm)(C,{entity:e.value,icon:f.icon,loading:e.loading,error:e.error},null,8,["entity","icon","loading","error"])]),(0,n._)("div",r,[(0,n._)("div",{class:"name",textContent:(0,a.zw)(e.value.name)},null,8,u)]),(0,n._)("div",i,[null!=f.valuePercent?((0,n.wg)(),(0,n.iD)("span",{key:0,class:"value-percent",textContent:(0,a.zw)(f.valuePercent+"%")},null,8,v)):(0,n.kq)("",!0)])])])}var p=l(7909),f=l(5017);const C=[{iconClass:"full",color:"#157145",value:.9},{iconClass:"three-quarters",color:"#94C595",value:.825},{iconClass:"half",color:"#F0B67F",value:.625},{iconClass:"quarter",color:"#FE5F55",value:.375},{iconClass:"low",color:"#CC444B",value:.15},{iconClass:"empty",color:"#EC0B43",value:.05}];var h={name:"Battery",components:{EntityIcon:f["default"]},mixins:[p["default"]],computed:{valuePercent(){if(null==this.value?.value)return null;const e=this.value.min||0,t=this.value.max||100;return(100*this.value.value/(t-e)).toFixed(0)},icon(){const e={...this.value.meta?.icon||{}};let t=this.valuePercent,l=C[0];if(null!=t){t=parseFloat(t)/100;for(const e of C){if(t>e.value)break;l=e}}return e["class"]=`fas fa-battery-${l.iconClass}`,e["color"]=l.color,e}},methods:{prevent(e){return e.stopPropagation(),!1}}},m=l(3744);const y=(0,m.Z)(h,[["render",d],["__scopeId","data-v-fb9c9926"]]);var b=y}}]);
//# sourceMappingURL=9651.5535826c.js.map //# sourceMappingURL=9651.d900f169.js.map

View file

@ -1 +1 @@
{"version":3,"file":"static/js/9651.5535826c.js","mappings":"gMACOA,MAAM,4B,GACJA,MAAM,Q,GACJA,MAAM,c,GAQNA,MAAM,yB,qBAINA,MAAM,sC,2FAdf,QAoBM,MApBN,EAoBM,EAnBJ,OAkBM,MAlBN,EAkBM,EAjBJ,OAMM,MANN,EAMM,EALJ,QAImB,GAHhBC,OAAQ,EAAAC,MACRC,KAAM,EAAAA,KACNC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAJV,+CAOF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCL,MAAM,O,aAAO,QAAmB,EAAN,MAACM,OAAhC,aAGF,OAIM,MAJN,EAIM,CADgB,MAAZ,EAAAC,eAAY,WAFpB,QAEgC,Q,MAF1BP,MAAM,gB,aACV,QAA2B,EAAP,mBADtB,gC,yBAYR,MAAMQ,EAAa,CACjB,CACEC,UAAW,OACXC,MAAO,UACPR,MAAO,IAET,CACEO,UAAW,iBACXC,MAAO,UACPR,MAAO,MAET,CACEO,UAAW,OACXC,MAAO,UACPR,MAAO,MAET,CACEO,UAAW,UACXC,MAAO,UACPR,MAAO,MAET,CACEO,UAAW,MACXC,MAAO,UACPR,MAAO,KAET,CACEO,UAAW,QACXC,MAAO,UACPR,MAAO,MAIX,OACEI,KAAM,UACNK,WAAY,CAACC,WAAU,cACvBC,OAAQ,CAACC,EAAA,YAETC,SAAU,CACRR,eACE,GAAyB,MAArBS,KAAKd,OAAOA,MACd,OAAO,KAET,MAAMe,EAAMD,KAAKd,MAAMe,KAAO,EACxBC,EAAMF,KAAKd,MAAMgB,KAAO,IAC9B,OAAS,IAAMF,KAAKd,MAAMA,OAAUgB,EAAMD,IAAME,QAAQ,EACzD,EAEDhB,OACE,MAAMA,EAAO,IAAKa,KAAKd,MAAMkB,MAAMjB,MAAQ,CAAC,GAC5C,IAAID,EAAQc,KAAKT,aACbc,EAAYb,EAAW,GAE3B,GAAa,MAATN,EAAe,CACjBA,EAAQoB,WAAWpB,GAAS,IAC5B,IAAK,MAAMqB,KAAKf,EAAY,CAC1B,GAAIN,EAAQqB,EAAErB,MACZ,MACFmB,EAAYE,CACd,CACF,CAIA,OAFApB,EAAK,SAAY,kBAAiBkB,EAAUZ,YAC5CN,EAAK,SAAWkB,EAAUX,MACnBP,CACR,GAGHqB,QAAS,CACPC,QAAQC,GAEN,OADAA,EAAMC,mBACC,CACR,I,UC7FL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Battery.vue","webpack://platypush/./src/components/panels/Entities/Battery.vue?1b53"],"sourcesContent":["<template>\n <div class=\"entity battery-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :icon=\"icon\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-s-8 col-m-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-s-3 col-m-2 buttons pull-right\">\n <span class=\"value-percent\"\n v-text=\"valuePercent + '%'\"\n v-if=\"valuePercent != null\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nconst thresholds = [\n {\n iconClass: 'full',\n color: '#157145',\n value: 0.9,\n },\n {\n iconClass: 'three-quarters',\n color: '#94C595',\n value: 0.825,\n },\n {\n iconClass: 'half',\n color: '#F0B67F',\n value: 0.625,\n },\n {\n iconClass: 'quarter',\n color: '#FE5F55',\n value: 0.375,\n },\n {\n iconClass: 'low',\n color: '#CC444B',\n value: 0.15,\n },\n {\n iconClass: 'empty',\n color: '#EC0B43',\n value: 0.05,\n },\n]\n\nexport default {\n name: 'Battery',\n components: {EntityIcon},\n mixins: [EntityMixin],\n\n computed: {\n valuePercent() {\n if (this.value?.value == null)\n return null\n\n const min = this.value.min || 0\n const max = this.value.max || 100\n return ((100 * this.value.value) / (max - min)).toFixed(0)\n },\n\n icon() {\n const icon = {...(this.value.meta?.icon || {})}\n let value = this.valuePercent\n let threshold = thresholds[0]\n\n if (value != null) {\n value = parseFloat(value) / 100\n for (const t of thresholds) {\n if (value > t.value)\n break\n threshold = t\n }\n }\n\n icon['class'] = `fas fa-battery-${threshold.iconClass}`\n icon['color'] = threshold.color\n return icon\n },\n },\n\n methods: {\n prevent(event) {\n event.stopPropagation()\n return false\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.battery-container {\n .head {\n .value-percent {\n font-size: 1.1em;\n font-weight: bold;\n opacity: 0.7;\n }\n }\n}\n</style>\n","import { render } from \"./Battery.vue?vue&type=template&id=fb9c9926&scoped=true\"\nimport script from \"./Battery.vue?vue&type=script&lang=js\"\nexport * from \"./Battery.vue?vue&type=script&lang=js\"\n\nimport \"./Battery.vue?vue&type=style&index=0&id=fb9c9926&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-fb9c9926\"]])\n\nexport default __exports__"],"names":["class","entity","value","icon","loading","error","name","valuePercent","thresholds","iconClass","color","components","EntityIcon","mixins","EntityMixin","computed","this","min","max","toFixed","meta","threshold","parseFloat","t","methods","prevent","event","stopPropagation","__exports__","render"],"sourceRoot":""} {"version":3,"file":"static/js/9651.d900f169.js","mappings":"gMACOA,MAAM,4B,GACJA,MAAM,Q,GACJA,MAAM,c,GAQNA,MAAM,yB,qBAINA,MAAM,sC,2FAdf,QAoBM,MApBN,EAoBM,EAnBJ,OAkBM,MAlBN,EAkBM,EAjBJ,OAMM,MANN,EAMM,EALJ,QAImB,GAHhBC,OAAQ,EAAAC,MACRC,KAAM,EAAAA,KACNC,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAJV,+CAOF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCL,MAAM,O,aAAO,QAAmB,EAAN,MAACM,OAAhC,aAGF,OAIM,MAJN,EAIM,CADgB,MAAZ,EAAAC,eAAY,WAFpB,QAEgC,Q,MAF1BP,MAAM,gB,aACV,QAA2B,EAAP,mBADtB,gC,yBAYR,MAAMQ,EAAa,CACjB,CACEC,UAAW,OACXC,MAAO,UACPR,MAAO,IAET,CACEO,UAAW,iBACXC,MAAO,UACPR,MAAO,MAET,CACEO,UAAW,OACXC,MAAO,UACPR,MAAO,MAET,CACEO,UAAW,UACXC,MAAO,UACPR,MAAO,MAET,CACEO,UAAW,MACXC,MAAO,UACPR,MAAO,KAET,CACEO,UAAW,QACXC,MAAO,UACPR,MAAO,MAIX,OACEI,KAAM,UACNK,WAAY,CAACC,WAAU,cACvBC,OAAQ,CAACC,EAAA,YAETC,SAAU,CACRR,eACE,GAAyB,MAArBS,KAAKd,OAAOA,MACd,OAAO,KAET,MAAMe,EAAMD,KAAKd,MAAMe,KAAO,EACxBC,EAAMF,KAAKd,MAAMgB,KAAO,IAC9B,OAAS,IAAMF,KAAKd,MAAMA,OAAUgB,EAAMD,IAAME,QAAQ,EACzD,EAEDhB,OACE,MAAMA,EAAO,IAAKa,KAAKd,MAAMkB,MAAMjB,MAAQ,CAAC,GAC5C,IAAID,EAAQc,KAAKT,aACbc,EAAYb,EAAW,GAE3B,GAAa,MAATN,EAAe,CACjBA,EAAQoB,WAAWpB,GAAS,IAC5B,IAAK,MAAMqB,KAAKf,EAAY,CAC1B,GAAIN,EAAQqB,EAAErB,MACZ,MACFmB,EAAYE,CACd,CACF,CAIA,OAFApB,EAAK,SAAY,kBAAiBkB,EAAUZ,YAC5CN,EAAK,SAAWkB,EAAUX,MACnBP,CACR,GAGHqB,QAAS,CACPC,QAAQC,GAEN,OADAA,EAAMC,mBACC,CACR,I,UC7FL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Battery.vue","webpack://platypush/./src/components/panels/Entities/Battery.vue?1b53"],"sourcesContent":["<template>\n <div class=\"entity battery-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :icon=\"icon\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-s-8 col-m-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-s-3 col-m-2 buttons pull-right\">\n <span class=\"value-percent\"\n v-text=\"valuePercent + '%'\"\n v-if=\"valuePercent != null\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nconst thresholds = [\n {\n iconClass: 'full',\n color: '#157145',\n value: 0.9,\n },\n {\n iconClass: 'three-quarters',\n color: '#94C595',\n value: 0.825,\n },\n {\n iconClass: 'half',\n color: '#F0B67F',\n value: 0.625,\n },\n {\n iconClass: 'quarter',\n color: '#FE5F55',\n value: 0.375,\n },\n {\n iconClass: 'low',\n color: '#CC444B',\n value: 0.15,\n },\n {\n iconClass: 'empty',\n color: '#EC0B43',\n value: 0.05,\n },\n]\n\nexport default {\n name: 'Battery',\n components: {EntityIcon},\n mixins: [EntityMixin],\n\n computed: {\n valuePercent() {\n if (this.value?.value == null)\n return null\n\n const min = this.value.min || 0\n const max = this.value.max || 100\n return ((100 * this.value.value) / (max - min)).toFixed(0)\n },\n\n icon() {\n const icon = {...(this.value.meta?.icon || {})}\n let value = this.valuePercent\n let threshold = thresholds[0]\n\n if (value != null) {\n value = parseFloat(value) / 100\n for (const t of thresholds) {\n if (value > t.value)\n break\n threshold = t\n }\n }\n\n icon['class'] = `fas fa-battery-${threshold.iconClass}`\n icon['color'] = threshold.color\n return icon\n },\n },\n\n methods: {\n prevent(event) {\n event.stopPropagation()\n return false\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.battery-container {\n .head {\n .value-percent {\n font-size: 1.1em;\n font-weight: bold;\n opacity: 0.7;\n }\n }\n}\n</style>\n","import { render } from \"./Battery.vue?vue&type=template&id=fb9c9926&scoped=true\"\nimport script from \"./Battery.vue?vue&type=script&lang=js\"\nexport * from \"./Battery.vue?vue&type=script&lang=js\"\n\nimport \"./Battery.vue?vue&type=style&index=0&id=fb9c9926&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-fb9c9926\"]])\n\nexport default __exports__"],"names":["class","entity","value","icon","loading","error","name","valuePercent","thresholds","iconClass","color","components","EntityIcon","mixins","EntityMixin","computed","this","min","max","toFixed","meta","threshold","parseFloat","t","methods","prevent","event","stopPropagation","__exports__","render"],"sourceRoot":""}

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9767],{6:function(e,n,t){t.d(n,{Z:function(){return f}});var a=t(6252),o=t(3577),i=t(9963),c=function(e){return(0,a.dD)("data-v-a6396ae8"),e=e(),(0,a.Cn)(),e},l=["checked"],u=c((function(){return(0,a._)("div",{class:"switch"},[(0,a._)("div",{class:"dot"})],-1)})),r={class:"label"};function s(e,n,t,c,s,d){return(0,a.wg)(),(0,a.iD)("div",{class:(0,o.C_)(["power-switch",{disabled:t.disabled}]),onClick:n[0]||(n[0]=(0,i.iM)((function(){return d.onInput&&d.onInput.apply(d,arguments)}),["stop"]))},[(0,a._)("input",{type:"checkbox",checked:t.value},null,8,l),(0,a._)("label",null,[u,(0,a._)("span",r,[(0,a.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var d={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput:function(e){if(this.disabled)return!1;this.$emit("input",e)}}},p=t(3744);const v=(0,p.Z)(d,[["render",s],["__scopeId","data-v-a6396ae8"]]);var f=v},9767:function(e,n,t){t.r(n),t.d(n,{default:function(){return b}});t(8309);var a=t(6252),o=t(9963),i=t(3577),c={class:"entity device-container"},l={class:"head"},u={class:"col-1 icon"},r={class:"col-2 connector"},s={class:"col-9 label"},d=["textContent"];function p(e,n,t,p,v,f){var h=(0,a.up)("EntityIcon"),g=(0,a.up)("ToggleSwitch");return(0,a.wg)(),(0,a.iD)("div",c,[(0,a._)("div",l,[(0,a._)("div",u,[(0,a.Wm)(h,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,a._)("div",r,[(0,a.Wm)(g,{value:e.value.connected,disabled:e.loading,onInput:f.connect,onClick:n[0]||(n[0]=(0,o.iM)((function(){}),["stop"]))},null,8,["value","disabled","onInput"])]),(0,a._)("div",s,[(0,a._)("div",{class:"name",textContent:(0,i.zw)(e.value.name)},null,8,d)])])])}var v=t(8534),f=(t(5666),t(7909)),h=t(3459),g=t(6),m={name:"BluetoothDevice",components:{EntityIcon:h["default"],ToggleSwitch:g.Z},mixins:[f["default"]],methods:{connect:function(e){var n=this;return(0,v.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.stopPropagation(),n.$emit("loading",!0),a="bluetooth."+(n.value.connected?"disconnect":"connect"),t.prev=3,t.next=6,n.request(a,{device:n.value.address});case 6:return t.prev=6,n.$emit("loading",!1),t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[3,,6,9]])})))()}}},_=t(3744);const w=(0,_.Z)(m,[["render",p],["__scopeId","data-v-653f75c2"]]);var b=w}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9767],{6:function(e,n,t){t.d(n,{Z:function(){return f}});var a=t(6252),o=t(3577),i=t(9963),c=function(e){return(0,a.dD)("data-v-a6396ae8"),e=e(),(0,a.Cn)(),e},l=["checked"],u=c((function(){return(0,a._)("div",{class:"switch"},[(0,a._)("div",{class:"dot"})],-1)})),r={class:"label"};function s(e,n,t,c,s,d){return(0,a.wg)(),(0,a.iD)("div",{class:(0,o.C_)(["power-switch",{disabled:t.disabled}]),onClick:n[0]||(n[0]=(0,i.iM)((function(){return d.onInput&&d.onInput.apply(d,arguments)}),["stop"]))},[(0,a._)("input",{type:"checkbox",checked:t.value},null,8,l),(0,a._)("label",null,[u,(0,a._)("span",r,[(0,a.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var d={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput:function(e){if(this.disabled)return!1;this.$emit("input",e)}}},p=t(3744);const v=(0,p.Z)(d,[["render",s],["__scopeId","data-v-a6396ae8"]]);var f=v},9767:function(e,n,t){t.r(n),t.d(n,{default:function(){return b}});t(8309);var a=t(6252),o=t(9963),i=t(3577),c={class:"entity device-container"},l={class:"head"},u={class:"col-1 icon"},r={class:"col-2 connector"},s={class:"col-9 label"},d=["textContent"];function p(e,n,t,p,v,f){var h=(0,a.up)("EntityIcon"),g=(0,a.up)("ToggleSwitch");return(0,a.wg)(),(0,a.iD)("div",c,[(0,a._)("div",l,[(0,a._)("div",u,[(0,a.Wm)(h,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,a._)("div",r,[(0,a.Wm)(g,{value:e.value.connected,disabled:e.loading,onInput:f.connect,onClick:n[0]||(n[0]=(0,o.iM)((function(){}),["stop"]))},null,8,["value","disabled","onInput"])]),(0,a._)("div",s,[(0,a._)("div",{class:"name",textContent:(0,i.zw)(e.value.name)},null,8,d)])])])}var v=t(8534),f=(t(5666),t(7909)),h=t(5017),g=t(6),m={name:"BluetoothDevice",components:{EntityIcon:h["default"],ToggleSwitch:g.Z},mixins:[f["default"]],methods:{connect:function(e){var n=this;return(0,v.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.stopPropagation(),n.$emit("loading",!0),a="bluetooth."+(n.value.connected?"disconnect":"connect"),t.prev=3,t.next=6,n.request(a,{device:n.value.address});case 6:return t.prev=6,n.$emit("loading",!1),t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[3,,6,9]])})))()}}},_=t(3744);const w=(0,_.Z)(m,[["render",p],["__scopeId","data-v-653f75c2"]]);var b=w}}]);
//# sourceMappingURL=9767-legacy.ea98618e.js.map //# sourceMappingURL=9767-legacy.3a468010.js.map

View file

@ -1,2 +1,2 @@
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9767],{6:function(e,t,n){n.d(t,{Z:function(){return h}});var a=n(6252),o=n(3577),l=n(9963);const i=e=>((0,a.dD)("data-v-a6396ae8"),e=e(),(0,a.Cn)(),e),c=["checked"],s=i((()=>(0,a._)("div",{class:"switch"},[(0,a._)("div",{class:"dot"})],-1))),d={class:"label"};function u(e,t,n,i,u,r){return(0,a.wg)(),(0,a.iD)("div",{class:(0,o.C_)(["power-switch",{disabled:n.disabled}]),onClick:t[0]||(t[0]=(0,l.iM)(((...e)=>r.onInput&&r.onInput(...e)),["stop"]))},[(0,a._)("input",{type:"checkbox",checked:n.value},null,8,c),(0,a._)("label",null,[s,(0,a._)("span",d,[(0,a.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var r={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},p=n(3744);const v=(0,p.Z)(r,[["render",u],["__scopeId","data-v-a6396ae8"]]);var h=v},9767:function(e,t,n){n.r(t),n.d(t,{default:function(){return b}});var a=n(6252),o=n(9963),l=n(3577);const i={class:"entity device-container"},c={class:"head"},s={class:"col-1 icon"},d={class:"col-2 connector"},u={class:"col-9 label"},r=["textContent"];function p(e,t,n,p,v,h){const f=(0,a.up)("EntityIcon"),g=(0,a.up)("ToggleSwitch");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a._)("div",c,[(0,a._)("div",s,[(0,a.Wm)(f,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,a._)("div",d,[(0,a.Wm)(g,{value:e.value.connected,disabled:e.loading,onInput:h.connect,onClick:t[0]||(t[0]=(0,o.iM)((()=>{}),["stop"]))},null,8,["value","disabled","onInput"])]),(0,a._)("div",u,[(0,a._)("div",{class:"name",textContent:(0,l.zw)(e.value.name)},null,8,r)])])])}var v=n(7909),h=n(3459),f=n(6),g={name:"BluetoothDevice",components:{EntityIcon:h["default"],ToggleSwitch:f.Z},mixins:[v["default"]],methods:{async connect(e){e.stopPropagation(),this.$emit("loading",!0);const t="bluetooth."+(this.value.connected?"disconnect":"connect");try{await this.request(t,{device:this.value.address})}finally{this.$emit("loading",!1)}}}},_=n(3744);const m=(0,_.Z)(g,[["render",p],["__scopeId","data-v-653f75c2"]]);var b=m}}]); "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9767],{6:function(e,t,n){n.d(t,{Z:function(){return h}});var a=n(6252),o=n(3577),l=n(9963);const i=e=>((0,a.dD)("data-v-a6396ae8"),e=e(),(0,a.Cn)(),e),c=["checked"],s=i((()=>(0,a._)("div",{class:"switch"},[(0,a._)("div",{class:"dot"})],-1))),d={class:"label"};function u(e,t,n,i,u,r){return(0,a.wg)(),(0,a.iD)("div",{class:(0,o.C_)(["power-switch",{disabled:n.disabled}]),onClick:t[0]||(t[0]=(0,l.iM)(((...e)=>r.onInput&&r.onInput(...e)),["stop"]))},[(0,a._)("input",{type:"checkbox",checked:n.value},null,8,c),(0,a._)("label",null,[s,(0,a._)("span",d,[(0,a.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var r={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},p=n(3744);const v=(0,p.Z)(r,[["render",u],["__scopeId","data-v-a6396ae8"]]);var h=v},9767:function(e,t,n){n.r(t),n.d(t,{default:function(){return b}});var a=n(6252),o=n(9963),l=n(3577);const i={class:"entity device-container"},c={class:"head"},s={class:"col-1 icon"},d={class:"col-2 connector"},u={class:"col-9 label"},r=["textContent"];function p(e,t,n,p,v,h){const f=(0,a.up)("EntityIcon"),g=(0,a.up)("ToggleSwitch");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a._)("div",c,[(0,a._)("div",s,[(0,a.Wm)(f,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,a._)("div",d,[(0,a.Wm)(g,{value:e.value.connected,disabled:e.loading,onInput:h.connect,onClick:t[0]||(t[0]=(0,o.iM)((()=>{}),["stop"]))},null,8,["value","disabled","onInput"])]),(0,a._)("div",u,[(0,a._)("div",{class:"name",textContent:(0,l.zw)(e.value.name)},null,8,r)])])])}var v=n(7909),h=n(5017),f=n(6),g={name:"BluetoothDevice",components:{EntityIcon:h["default"],ToggleSwitch:f.Z},mixins:[v["default"]],methods:{async connect(e){e.stopPropagation(),this.$emit("loading",!0);const t="bluetooth."+(this.value.connected?"disconnect":"connect");try{await this.request(t,{device:this.value.address})}finally{this.$emit("loading",!1)}}}},_=n(3744);const m=(0,_.Z)(g,[["render",p],["__scopeId","data-v-653f75c2"]]);var b=m}}]);
//# sourceMappingURL=9767.6a30d401.js.map //# sourceMappingURL=9767.4de6a462.js.map

View file

@ -2,7 +2,7 @@
<div class="entity-icon-container" <div class="entity-icon-container"
:class="{'with-color-fill': !!colorFill}" :class="{'with-color-fill': !!colorFill}"
:style="colorFillStyle"> :style="colorFillStyle">
<img src="@/assets/img/spinner.gif" class="loading" v-if="loading"> <i class="fas fa-spinner fa-spin-pulse loading" v-if="loading" />
<i class="fas fa-circle-exclamation error" v-else-if="error" /> <i class="fas fa-circle-exclamation error" v-else-if="error" />
<Icon v-bind="computedIconNormalized" v-else /> <Icon v-bind="computedIconNormalized" v-else />
</div> </div>
@ -103,6 +103,7 @@ export default {
transform: translate(0%, -50%); transform: translate(0%, -50%);
width: 1em; width: 1em;
height: 1em; height: 1em;
opacity: 0.6;
} }
.error { .error {