(window.webpackJsonp=window.webpackJsonp||[]).push([[105],{1051:function(t,e,r){"use strict";r(586)},1052:function(t,e,r){var n=r(13)(!1);n.push([t.i,".headName[data-v-20f1618d]{color:#b8c5ed;font-size:50px;width:100%;padding-top:100px}.allOnline[data-v-20f1618d],.headName[data-v-20f1618d]{font-weight:1000;text-align:center}.allOnline[data-v-20f1618d]{color:#415696;font-size:40px;width:50%;margin:0 25%;padding-bottom:50px}.servers[data-v-20f1618d]{padding:0 100px;width:calc(100% - 200px);display:inline-block}.servers .physicalServer[data-v-20f1618d]{width:calc(33.33% - 50px);height:auto;background:#201e31;float:left;margin-left:30px;margin-top:20px;border-radius:20px;padding:10px 10px 20px;color:#fff}.servers .physicalServer .name[data-v-20f1618d]{text-align:center;font-size:22px;font-weight:600}.servers .physicalServer .stats[data-v-20f1618d]{width:100%;margin-top:20px;display:flex;justify-content:space-between}.servers .physicalServer .off[data-v-20f1618d]{width:100%;margin-top:30px;padding-bottom:20px;text-align:center;font-size:25px}.servers .physicalServer .stats .stat[data-v-20f1618d]{width:32%;text-align:center}.servers .physicalServer .stats .stat .service[data-v-20f1618d]{font-weight:1000}.servers .server[data-v-20f1618d]{width:auto;height:auto;background:#201e31;float:left;margin-left:30px;margin-top:20px;border-radius:20px;padding:10px 10px 20px}.servers .server .name[data-v-20f1618d]{color:#fff;font-size:20px;text-align:center;font-weight:400;width:100%;height:40px;line-height:40px}.servers .server .smallServer[data-v-20f1618d]{width:90px;height:90px;margin:10px;border-radius:10px;display:inline-block;text-align:center;color:#fff;background:#039c50;position:relative;cursor:zoom-in}.servers .server .smallServer .clusters[data-v-20f1618d]{position:absolute;width:240px;height:220px;background:#2e3e6b;color:#fff;top:-100px;right:-100px;z-index:999;border-radius:15px;padding:10px 0}.servers .server .smallServer .clusters6[data-v-20f1618d]{width:350px;height:220px;top:-100px;right:-150px;border-radius:15px;padding:10px 0}.servers .server .smallServer .clusters9[data-v-20f1618d]{width:350px;height:330px;top:-150px;right:-150px;border-radius:15px;padding:10px 0}.servers .server .smallServer .clusters10[data-v-20f1618d]{width:550px;height:330px;top:unset;right:unset;margin:0 auto;border-radius:15px;padding:10px 0;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.servers .server .smallServer .clusters .cluster[data-v-20f1618d]{width:90px;height:90px;margin:10px;border-radius:10px;display:inline-block;text-align:center;color:#fff;background:#039c50;position:relative}.orange[data-v-20f1618d]{background:#c78119!important}.red[data-v-20f1618d]{background:#c72e2e!important}.servers .server .smallServer .num[data-v-20f1618d]{font-size:18px;color:#f5f5f5;font-weight:800;background:green;width:25px;height:25px;border-radius:40%;text-align:center;margin:-10px auto 2px}.ram[data-v-20f1618d],.servers .server .smallServer .online[data-v-20f1618d],.tps[data-v-20f1618d]{font-size:14px}.back[data-v-20f1618d]{width:100%;display:inline-block;color:grey;margin-top:50px;text-align:center}@media (max-width:1600px){.servers[data-v-20f1618d]{padding:0 10px;width:calc(100% - 20px)}}@media (max-width:1000px){.servers[data-v-20f1618d]{padding:0;width:calc(100% - 10px)}.servers .server[data-v-20f1618d]{margin-left:10px;margin-top:10px;border-radius:10px;padding:10px}.servers .physicalServer[data-v-20f1618d]{margin-left:10px;width:calc(100% - 30px);height:auto}}",""]),t.exports=n},1531:function(t,e,r){"use strict";r.r(e);r(223);var n=r(26),d={layout:"monitoring",head:function(){return{title:this.$t("monitoringPage_meta_title")+" - CubixWorld.net",meta:[{hid:"description",name:"description",content:this.$t("monitoringPage_meta_description")}].concat(this.$nuxtI18nHead({addSeoAttributes:!0}).meta),link:this.$nuxtI18nHead({addSeoAttributes:!0}).link,htmlAttrs:this.$nuxtI18nHead({addSeoAttributes:!0}).htmlAttrs}},data:function(){return{monitoring:null,current_online:-1,physicalServers:null,hover:!1,hoverServer:""}},computed:{auth:function(){return this.$store.state.auth},isAuthenticated:function(){return this.$store.getters.authenticated},API:function(){return n.a}},created:function(){var t=this;this.loadMonitoring(),this.idInterval=setInterval((function(){t.loadMonitoring()}),2e3)},beforeDestroy:function(){clearInterval(this.idInterval)},methods:{loadMonitoring:function(){var t=this,e=this.isAuthenticated?"?login="+this.auth.login+"&access_token="+this.auth.accessToken:"";this.$axios.get(n.a+"monitoring"+e).then((function(e){"success"==e.data.type&&(t.monitoring=e.data.servers,t.physicalServers=e.data.physicalServers,t.current_online=e.data.current_online,console.log(e.data))}))}}},o=(r(1051),r(8)),component=Object(o.a)(d,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[null!=t.monitoring?r("div",[r("h1",{staticClass:"headName"},[t._v(t._s(t.$t("monitoringPage_h1")))]),t._v(" "),r("div",{staticClass:"allOnline"},[t._v(t._s(t.$t("monitoringPage_online"))+": "+t._s(t.current_online))]),t._v(" "),r("div",{staticClass:"servers"},t._l(t.physicalServers,(function(e,n){return r("div",{key:n,class:{physicalServer:!0,red:e.usedCPUPercent<0&&e.usedSpacePercent<0}},[r("div",{staticClass:"name"},[t._v(t._s(n))]),t._v(" "),e.usedCPUPercent>=0&&e.usedSpacePercent>=0?r("div",{staticClass:"stats"},[r("div",{staticClass:"stat"},[r("div",{staticClass:"service"},[t._v("CPU")]),t._v(" "),r("div",{staticClass:"num"},[t._v(t._s(e.usedCPUPercent)+"/100%")])]),t._v(" "),r("div",{staticClass:"stat"},[r("div",{staticClass:"service"},[t._v("MEM")]),t._v(" "),r("div",{staticClass:"num"},[t._v(t._s(Math.floor(100-e.availMemoryPercent))+"/100%")])]),t._v(" "),r("div",{staticClass:"stat"},[r("div",{staticClass:"service"},[t._v("Space")]),t._v(" "),r("div",{staticClass:"num"},[t._v(t._s(e.usedSpacePercent)+"/100%")])])]):r("div",{staticClass:"off"},[t._v("\n Проблемы с подключением\n ")])])})),0),t._v(" "),r("div",{staticClass:"servers"},t._l(t.monitoring,(function(e){return r("div",{key:e.name,staticClass:"server"},[r("div",{staticClass:"name"},[t._v(t._s(e.name))]),t._v(" "),t._l(e.servers,(function(n){return r("div",{key:n.ram,class:{smallServer:!0,orange:n.tps<13,red:n.tps<7},on:{mouseover:function(r){null!=n.clusters&&(t.hoverServer=e.name)},mouseleave:function(e){t.hoverServer=""}}},[r("div",{staticClass:"num"},[t._v("#"+t._s(n.num))]),t._v(" "),r("div",{staticClass:"online"},[t._v(t._s(n.online)+" "),r("fa",{attrs:{icon:["fas","users"]}})],1),t._v(" "),r("div",{staticClass:"tps"},[t._v(t._s(n.tps)+" "),r("fa",{attrs:{icon:["fas","tachometer-alt"]}})],1),t._v(" "),r("div",{staticClass:"ram"},[t._v(t._s(n.ram)+" "),r("fa",{attrs:{icon:["fas","memory"]}})],1),t._v(" "),r("div",{staticClass:"ram"},[n.uptime=6,clusters9:Object.keys(n.clusters).length>=9,clusters10:Object.keys(n.clusters).length>=9}},t._l(n.clusters,(function(n,d){return r("div",{key:d+"cluster"+e.name,staticClass:"cluster"},[r("div",{staticClass:"num"},[t._v("#"+t._s(d))]),t._v(" "),r("div",{staticClass:"online"},[t._v(t._s(n.online)+" "),r("fa",{attrs:{icon:["fas","users"]}})],1),t._v(" "),r("div",{staticClass:"tps"},[t._v(t._s(n.tps)+" "),r("fa",{attrs:{icon:["fas","tachometer-alt"]}})],1),t._v(" "),r("div",{staticClass:"ram"},[t._v(t._s(n.ram)+" "),r("fa",{attrs:{icon:["fas","memory"]}})],1),t._v(" "),r("div",{staticClass:"ram"},[n.uptime