platypush/platypush/backend/http/webapp/dist/static/js/9387-legacy.a7ab196d.js

2 lines
4.6 KiB
JavaScript

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