1
0
Fork 1
mirror of https://gitlab.com/mangadex-pub/mangadex_at_home.git synced 2024-01-19 02:48:37 +00:00
mangadex_at_home/src/main/resources/webui/js/app.a60bd5b6.js

2 lines
67 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(t){function e(e){for(var a,r,i=e[0],l=e[1],c=e[2],d=0,u=[];d<i.length;d++)r=i[d],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&u.push(o[r][0]),o[r]=0;for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(t[a]=l[a]);p&&p(e);while(u.length)u.shift()();return n.push.apply(n,c||[]),s()}function s(){for(var t,e=0;e<n.length;e++){for(var s=n[e],a=!0,r=1;r<s.length;r++){var i=s[r];0!==o[i]&&(a=!1)}a&&(n.splice(e--,1),t=l(l.s=s[0]))}return t}var a={},r={app:0},o={app:0},n=[];function i(t){return l.p+"js/"+({}[t]||t)+"."+{"chunk-ffe7010a":"526904d4"}[t]+".js"}function l(e){if(a[e])return a[e].exports;var s=a[e]={i:e,l:!1,exports:{}};return t[e].call(s.exports,s,s.exports,l),s.l=!0,s.exports}l.e=function(t){var e=[],s={"chunk-ffe7010a":1};r[t]?e.push(r[t]):0!==r[t]&&s[t]&&e.push(r[t]=new Promise((function(e,s){for(var a="css/"+({}[t]||t)+"."+{"chunk-ffe7010a":"6dc57fe0"}[t]+".css",o=l.p+a,n=document.getElementsByTagName("link"),i=0;i<n.length;i++){var c=n[i],d=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(d===a||d===o))return e()}var u=document.getElementsByTagName("style");for(i=0;i<u.length;i++){c=u[i],d=c.getAttribute("data-href");if(d===a||d===o)return e()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=e,p.onerror=function(e){var a=e&&e.target&&e.target.src||o,n=new Error("Loading CSS chunk "+t+" failed.\n("+a+")");n.code="CSS_CHUNK_LOAD_FAILED",n.request=a,delete r[t],p.parentNode.removeChild(p),s(n)},p.href=o;var h=document.getElementsByTagName("head")[0];h.appendChild(p)})).then((function(){r[t]=0})));var a=o[t];if(0!==a)if(a)e.push(a[2]);else{var n=new Promise((function(e,s){a=o[t]=[e,s]}));e.push(a[2]=n);var c,d=document.createElement("script");d.charset="utf-8",d.timeout=120,l.nc&&d.setAttribute("nonce",l.nc),d.src=i(t);var u=new Error;c=function(e){d.onerror=d.onload=null,clearTimeout(p);var s=o[t];if(0!==s){if(s){var a=e&&("load"===e.type?"missing":e.type),r=e&&e.target&&e.target.src;u.message="Loading chunk "+t+" failed.\n("+a+": "+r+")",u.name="ChunkLoadError",u.type=a,u.request=r,s[1](u)}o[t]=void 0}};var p=setTimeout((function(){c({type:"timeout",target:d})}),12e4);d.onerror=d.onload=c,document.head.appendChild(d)}return Promise.all(e)},l.m=t,l.c=a,l.d=function(t,e,s){l.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},l.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.t=function(t,e){if(1&e&&(t=l(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(l.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)l.d(s,a,function(e){return t[e]}.bind(null,a));return s},l.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return l.d(e,"a",e),e},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},l.p="",l.oe=function(t){throw console.error(t),t};var c=window["webpackJsonp"]=window["webpackJsonp"]||[],d=c.push.bind(c);c.push=e,c=c.slice();for(var u=0;u<c.length;u++)e(c[u]);var p=d;n.push([0,"chunk-vendors"]),s()})({0:function(t,e,s){t.exports=s("56d7")},"0134":function(t,e,s){},"2fe3":function(t,e,s){"use strict";var a=s("a492"),r=s.n(a);r.a},"56d7":function(t,e,s){"use strict";s.r(e);s("99af"),s("b680"),s("b64b"),s("d3b7"),s("ac1f"),s("5319"),s("e260"),s("e6cf"),s("cca6"),s("a79d");var a=s("a026"),r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-app",{staticStyle:{background:"rgba(0,0,0,0)"}},[s("v-app-bar",{style:{background:t.$store.getters.current.primary+t.$store.getters.alpha},attrs:{app:t.$store.getters.showAppBar,"clipped-left":!t.$vuetify.breakpoint.mdAndDown,"hide-on-scroll":t.$vuetify.breakpoint.mdAndDown,floating:"",hidden:!t.$vuetify.breakpoint.mdAndDown&&!t.$store.getters.showAppBar}},[s("v-app-bar-nav-icon",{staticClass:"hidden-lg-and-up",style:{color:t.$store.getters.current.textColor},on:{click:function(e){e.stopPropagation(),t.drawer=!t.drawer}}}),s("v-img",{staticClass:"shrink mr-4",attrs:{alt:"MD Logo",contain:"",src:"https://mangadex.org/images/misc/navbar.svg?3",transition:"scale-transition",width:"60"}}),s("h1",{staticClass:"hidden-sm-and-down",style:{color:t.$store.getters.current.textColor}},[t._v("MD@Home Client Interface")]),s("h2",{staticClass:"hidden-md-and-up",style:{color:t.$store.getters.current.textColor}},[t._v("MD@H Client")]),s("v-spacer")],1),s("v-navigation-drawer",{style:{background:t.$store.getters.current.primary+t.$store.getters.alpha},attrs:{"expand-on-hover":!t.$vuetify.breakpoint.mdAndDown,"mini-variant":!t.$vuetify.breakpoint.mdAndDown,permanent:!t.$vuetify.breakpoint.mdAndDown,app:"",clipped:t.$store.getters.showAppBar,floating:""},model:{value:t.drawer,callback:function(e){t.drawer=e},expression:"drawer"}},[s("v-list",{staticClass:"pt-2",attrs:{dense:"",nav:"",dark:t.$store.getters.current.isDark}},[s("v-list-item",[s("v-list-item-icon",[s("v-icon",{style:{color:t.$store.getters.current.textColor}},[t._v("mdi-format-list-bulleted")])],1),s("v-list-item-content",[s("v-list-item-title",{style:{color:t.$store.getters.current.textColor}},[t._v("Menu ")])],1)],1),s("div",{staticStyle:{width:"100%",height:"1px"},style:{backgroundColor:t.$store.getters.current.accent2}}),t._l(t.items,(function(e){return s("v-list-item",{key:e.title,staticClass:"mt-1",attrs:{to:{path:e.route},link:""}},[s("v-list-item-icon",[s("v-icon",{style:{color:t.$store.getters.current.textColor}},[t._v(t._s(e.icon))])],1),s("v-list-item-content",[s("v-list-item-title",{style:{color:t.$store.getters.current.textColor}},[t._v(t._s(e.title)+" ")])],1)],1)}))],2)],1),t.$store.getters.hasBgImage?s("v-img",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%"},attrs:{src:t.$store.getters.bgImg}}):t._e(),s("v-main",[s("transition",{attrs:{name:"fade"}},[s("router-view")],1)],1)],1)},o=[],n=(s("4160"),s("159b"),s("a434"),s("2f62"));a["default"].use(n["a"]);var i={options:{current:"light",hasBgImage:!1,bgImage:"https://images3.alphacoders.com/819/thumb-1920-819294.png",showAppBar:!0},themes:{light:{backgroundAlpha:"f0",backgroundColor:"#efeff0",textColor:"#202020",primary:"#fbfbfe",secondary:"#fafafa",accent:"#717175",accent1:"rgba(150,150,158, 0.3)",accent2:"rgba(94,94,98,0.7)",green:"#00e000",red:"#e00000",yellow:"#e0e000",isDark:!1},eyekiller:{backgroundAlpha:"f0",backgroundColor:"#26ff00",textColor:"#000000",primary:"#ee00ff",secondary:"#ffc800",accent:"#00aeff",accent1:"rgba(255,0,0,0.3)",accent2:"rgba(0,32,255,0.7)",green:"#00ff00",red:"#ff0000",yellow:"#ffff00",isDark:!1},dark:{backgroundAlpha:"f0",backgroundColor:"#353536",textColor:"#f0f0f0",primary:"#505053",secondary:"#454547",accent:"#606065",accent1:"rgba(200,200,210,0.3)",accent2:"rgba(200,200,210,0.7)",green:"#00e000",red:"#e00000",yellow:"#e0e000",isDark:!0},midnight:{backgroundAlpha:"f0",backgroundColor:"#111",textColor:"#dfdfdf",primary:"#202020",secondary:"#232323",accent:"#a0a0a0",accent1:"rgba(255,255,255,0.3)",accent2:"rgba(95,95,95,0.7)",green:"#00e000",red:"#e00000",yellow:"#e0e000",isDark:!0}},data:{date:[],bytesSent:[],bytesSentChange:[],sizeDisk:[],sizeDiskChange:[],reqServ:[],reqServChange:[],hits:[],hitsChange:[],misses:[],missesChange:[],cached:[],cachedChange:[],stats:[],updateInterval:2e3,maxStorePoints:1801},loaded:!1,layout:{grid:[{x:0,y:0,w:3,h:8,i:0,o:{}},{x:3,y:0,w:9,h:8,i:1,o:{}},{x:0,y:8,w:6,h:8,i:2,o:{}},{x:6,y:8,w:6,h:8,i:3,o:{}}],tempoptions:{title:{text:"title"}},temppieoptions:{}}},l={current:function(t){return t.themes[t.options.current]},options:function(t){return t.options},hasBgImage:function(t){return t.options.hasBgImage},bgImg:function(t){return t.options.bgImage},showAppBar:function(t){return t.options.showAppBar},alpha:function(t){return t.options.hasBgImage?t.themes[t.options.current].backgroundAlpha:""},data:function(t){return t.data},layout:function(t){return t.layout},loaded:function(t){return t.loaded}},c=[{x:0,y:0,w:3,h:8,i:0},{x:3,y:0,w:9,h:8,i:1},{x:0,y:8,w:6,h:8,i:2},{x:6,y:8,w:6,h:8,i:3}],d={setTheme:function(t,e){t.options.current=e,localStorage.theme=e,document.body.style.backgroundColor=t.themes[t.options.current].backgroundColor},setStats:function(t,e){t.data.stats=e},pushStats:function(t,e){t.data.stats.push(e),t.data.stats.length>t.data.maxStorePoints&&t.data.stats.splice(0,t.data.stats.length-t.data.maxStorePoints)},pushDate:function(t,e){t.data.date.push(e),t.data.date.length>t.data.maxStorePoints&&t.data.date.splice(0,t.data.date.length-t.data.maxStorePoints)},pushBytesSent:function(t,e){t.data.bytesSent.push(e);while(t.data.bytesSent.length>t.data.maxStorePoints)t.data.bytesSent.splice(0,t.data.bytesSent.length-t.data.maxStorePoints)},pushBytesSentChange:function(t,e){t.data.bytesSentChange.push(e);while(t.data.bytesSentChange.length>t.data.maxStorePoints)t.data.bytesSentChange.splice(0,t.data.bytesSentChange.length-t.data.maxStorePoints)},pushReqServ:function(t,e){t.data.reqServ.push(e),t.data.reqServ.length>t.data.maxStorePoints&&t.data.reqServ.splice(0,t.data.reqServ.length-t.data.maxStorePoints)},pushReqServChange:function(t,e){t.data.reqServChange.push(e),t.data.reqServChange.length>t.data.maxStorePoints&&t.data.reqServChange.splice(0,t.data.reqServChange.length-t.data.maxStorePoints)},pushSizeDisk:function(t,e){t.data.sizeDisk.push(e),t.data.sizeDisk.length>t.data.maxStorePoints&&t.data.sizeDisk.splice(0,t.data.sizeDisk.length-t.data.maxStorePoints)},pushSizeDiskChange:function(t,e){t.data.sizeDiskChange.push(e),t.data.sizeDiskChange.length>t.data.maxStorePoints&&t.data.sizeDiskChange.splice(0,t.data.sizeDiskChange.length-t.data.maxStorePoints)},pushHits:function(t,e){t.data.hits.push(e),t.data.hits.length>t.data.maxStorePoints&&t.data.hits.splice(0,t.data.hits.length-t.data.maxStorePoints)},pushHitsChange:function(t,e){t.data.hitsChange.push(e),t.data.hitsChange.length>t.data.maxStorePoints&&t.data.hitsChange.splice(0,t.data.hitsChange.length-t.data.maxStorePoints)},pushMisses:function(t,e){t.data.misses.push(e),t.data.misses.length>t.data.maxStorePoints&&t.data.misses.splice(0,t.data.misses.length-t.data.maxStorePoints)},pushMissesChange:function(t,e){t.data.missesChange.push(e),t.data.missesChange.length>t.data.maxStorePoints&&t.data.missesChange.splice(0,t.data.missesChange.length-t.data.maxStorePoints)},pushCached:function(t,e){t.data.cached.push(e),t.data.cached.length>t.data.maxStorePoints&&t.data.cached.splice(0,t.data.cached.length-t.data.maxStorePoints)},pushCachedChange:function(t,e){t.data.cachedChange.push(e),t.data.cachedChange.length>t.data.maxStorePoints&&t.data.cachedChange.splice(0,t.data.cachedChange.length-t.data.maxStorePoints)},resetStats:function(t){t.data={date:[],bytesSent:[],bytesSentChange:[],sizeDisk:[],sizeDiskChange:[],reqServ:[],reqServChange:[],hits:[],hitsChange:[],misses:[],missesChange:[],cached:[],cachedChange:[],stats:[],updateInterval:t.data.updateInterval,maxStorePoints:t.data.maxStorePoints},localStorage.stats=""},resetLayout:function(t){t.layout.grid=c,localStorage.layout=JSON.stringify(t.data.layout)},setSpecificLayout:function(t,e){null!=e.w&&(t.layout.grid[e.i].w=e.w),null!=e.h&&(t.layout.grid[e.i].h=e.h),null!=e.x&&(t.layout.grid[e.i].x=e.x),null!=e.y&&(t.layout.grid[e.i].y=e.y),localStorage.dashboardLayout=JSON.stringify(i.layout.grid)},setLayout:function(t,e){t.layout.grid=e},setHasBg:function(t,e){t.options.hasBgImage=e,localStorage.hasBackground=t.options.hasBgImage},setBgUrl:function(t,e){t.options.bgImage=e,localStorage.backgroundURL=t.options.bgImage},setRefresh:function(t,e){(isNaN(e)||""===e)&&(e=0),t.data.updateInterval=Math.max(parseInt(e),500),localStorage.refreshRate=t.data.updateInterval},setTempOptions:function(t,e){t.layout.tempoptions=e},setTempPieOptions:function(t,e){t.layout.temppieoptions=e},setTempDatasets:function(t,e){t.layout.tempoptions.series=e},setLoaded:function(t,e){t.loaded=e},showAppBar:function(t,e){t.options.showAppBar=e,localStorage.showAppBar=t.options.showAppBar},setMaxStorePoints:function(t,e){(isNaN(e)||""===e)&&(e=0),t.data.maxStorePoints=Math.max(parseInt(e),181),localStorage.maxDataPoints=t.data.maxStorePoints}},u=new n["a"].Store({state:i,mutations:d,getters:l}),p={name:"App",timers:{pullData:{time:u.getters.data.updateInterval,autostart:!0,repeat:!0}},data:function(){return{drawer:null,items:[{title:"Dashboard",icon:"mdi-view-dashboard",route:"/"},{title:"Console",icon:"mdi-console",route:"/cons"},{title:"Settings",icon:"mdi-cog-outline",route:"/opts"},{title:"Client Info",icon:"mdi-information-outline",route:"/info"}]}},methods:{pullData:function(){this.updateData()}},mounted:function(){fetch("api/pastStats").then((function(t){return t.json()})).then((function(t){t.forEach((function(e){return u.commit("pushStats",JSON.parse("{"+e+": "+JSON.stringify(t[e])+"}"))}))})).catch((function(t){return console.log(t)})),this.sortData(),this.loadData(),this.$timer.restart("pullData"),this.$nextTick((function(){return u.commit("setLoaded",!0)}))},computed:{refresh:function(){return u.getters.data.updateInterval}},watch:{refresh:function(){this.timers.pullData.time=u.getters.data.updateInterval,this.$timer.restart("pullData")}}},h=p,g=s("2877"),m=s("6544"),v=s.n(m),f=s("7496"),b=s("40dc"),y=s("5bc1"),x=s("132d"),C=s("adda"),w=s("8860"),k=s("da13"),S=s("5d23"),$=s("34c3"),_=s("f6c4"),D=s("f774"),A=s("2fa4"),I=Object(g["a"])(h,r,o,!1,null,null,null),M=I.exports;v()(I,{VApp:f["a"],VAppBar:b["a"],VAppBarNavIcon:y["a"],VIcon:x["a"],VImg:C["a"],VList:w["a"],VListItem:k["a"],VListItemContent:S["a"],VListItemIcon:$["a"],VListItemTitle:S["b"],VMain:_["a"],VNavigationDrawer:D["a"],VSpacer:A["a"]});var V=s("f309");a["default"].use(V["a"]);var B=new V["a"]({}),L=function(){var t=this,e=this,s=e.$createElement,a=e._self._c||s;return a("v-container",{style:{color:e.$store.getters.current.textColor},attrs:{fluid:""}},[a("v-container",{staticClass:"pt-0 pb-0",style:{backgroundColor:e.$store.getters.current.secondary+e.$store.getters.alpha},attrs:{fluid:""}},[a("v-row",[a("v-col",[a("h1",{staticClass:"pl-1"},[e._v("Dashboard")])]),a("v-col")],1)],1),e.$store.getters.loaded?a("grid-layout",{staticStyle:{width:"calc(100% + 24px)",left:"-12px"},attrs:{layout:e.layout,"col-num":12,"row-height":30,margin:[12,12],"is-draggable":!0,"is-resizable":!0,"vertical-compact":!0,hidden:e.$vuetify.breakpoint.smAndDown},on:{"update:layout":function(t){e.layout=t}}},e._l(e.layout,(function(t){return a("grid-item",{key:t.i,style:{backgroundColor:e.$store.getters.current.secondary+e.$store.getters.alpha,color:e.$store.getters.current.accent},attrs:{x:t.x,y:t.y,w:t.w,h:t.h,i:t.i,"drag-allow-from":".vue-draggable-handle","drag-ignore-from":".no-drag"},on:{move:e.moved,resize:e.resized}},[a("v-container",{staticClass:"no-drag",staticStyle:{height:"100%",width:"100%",position:"absolute"},attrs:{fluid:""}},[a("chart",{staticStyle:{height:"100%",width:"100%"},attrs:{autoresize:"",options:t.o}})],1),a("v-icon",{staticClass:"vue-draggable-handle",style:{position:"absolute",color:e.$store.getters.current.accent,left:"calc(50% - 5px)",width:"10px"},attrs:{dense:"",small:""}},[e._v("mdi-drag-horizontal-variant ")]),a("v-icon",{style:{position:"absolute",color:e.$store.getters.current.accent,bottom:"2px",right:"2px"},attrs:{dense:"",small:""}},[e._v("mdi-resize-bottom-right ")]),a("v-icon",{style:{position:"absolute",color:e.$store.getters.current.accent,top:"2px",right:"2px"},attrs:{dense:"",small:""},on:{click:function(s){return e.layoutRemove(t.i)}}},[e._v("mdi-close ")])],1)})),1):e._e(),e.$vuetify.breakpoint.smAndDown?a("v-row",[a("v-col",{attrs:{cols:"12"}},[a("v-container",{staticClass:"vue-draggable-handle",staticStyle:{height:"300px",width:"100%"},style:{backgroundColor:e.$store.getters.current.secondary+e.$store.getters.alpha},attrs:{fluid:""}},[a("chart",{staticClass:"no-drag",staticStyle:{height:"100%",width:"100%"},attrs:{autoresize:"",options:e.layout[0].o}})],1)],1),a("v-col",{attrs:{cols:"12"}},[a("v-container",{staticClass:"vue-draggable-handle",staticStyle:{height:"300px",width:"100%"},style:{backgroundColor:e.$store.getters.current.secondary+e.$store.getters.alpha},attrs:{fluid:""}},[a("chart",{staticClass:"no-drag",staticStyle:{height:"100%",width:"100%"},attrs:{autoresize:"",options:e.layout[1].o}})],1)],1),a("v-col",{attrs:{cols:"12"}},[a("v-container",{staticClass:"vue-draggable-handle",staticStyle:{height:"300px",width:"100%"},style:{backgroundColor:e.$store.getters.current.secondary+e.$store.getters.alpha},attrs:{fluid:""}},[a("chart",{staticClass:"no-drag",staticStyle:{height:"100%",width:"100%"},attrs:{autoresize:"",options:e.layout[2].o}})],1)],1),a("v-col",{attrs:{cols:"12"}},[a("v-container",{staticClass:"vue-draggable-handle",staticStyle:{height:"300px",width:"100%"},style:{backgroundColor:e.$store.getters.current.secondary+e.$store.getters.alpha},attrs:{fluid:""}},[a("chart",{staticClass:"no-drag",staticStyle:{height:"100%",width:"100%"},attrs:{autoresize:"",options:e.layout[3].o}})],1)],1)],1):e._e(),a("modal",{attrs:{name:"createGraph",styles:{backgroundColor:e.$store.getters.current.secondary,minHeight:"75%"},width:e.$vuetify.breakpoint.smAndDown?"100%":"80%",height:"auto",scrollable:!0}},[a("v-container",{attrs:{fluid:""}},[a("h3",[e._v("Create Graph")]),a("v-btn",{staticStyle:{right:"12px",top:"12px"},attrs:{absolute:"",small:"",icon:"",color:e.$store.getters.current.textColor},on:{click:function(t){return e.$modal.hide("createGraph")}}},[a("v-icon",[e._v("mdi-close")])],1),a("div",{staticClass:"mt-2 mb-2",staticStyle:{width:"100%",height:"1px"},style:{backgroundColor:e.$store.getters.current.accent2}}),a("v-row",{class:e.$vuetify.breakpoint.mdAndDown?"mb-12":""},[a("v-col",{attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:4}},[e.$vuetify.breakpoint.mdAndDown?a("chart",{key:e.prevreload,staticStyle:{width:"100%"},attrs:{autoresize:"",options:e.$store.getters.layout.tempoptions}}):e._e(),a("v-row",{staticClass:"mr-3",attrs:{dense:""}},[a("v-col",{staticClass:"pa-0",attrs:{cols:"2"}},[a("v-subheader",{staticClass:"pl-2",style:{color:e.$store.getters.current.textColor}},[e._v(" Title ")])],1),a("v-col",{staticClass:"pa-0",attrs:{cols:"10"}},[a("v-text-field",{staticClass:"pt-1",attrs:{dense:"",dark:e.$store.getters.current.isDark},model:{value:e.$store.getters.layout.tempoptions.title.text,callback:function(t){e.$set(e.$store.getters.layout.tempoptions.title,"text",t)},expression:"$store.getters.layout.tempoptions.title.text"}})],1)],1),a("v-row",{attrs:{dense:""}},[a("v-col",{staticClass:"pa-0",attrs:{cols:"2"}},[a("v-subheader",{staticClass:"pt-3 pl-2",style:{color:e.$store.getters.current.textColor}},[e._v(" Type ")])],1),a("v-col",{staticClass:"pt-4 pl-0",attrs:{cols:"10"}},[a("v-btn-toggle",{attrs:{dense:"",mandatory:"",tile:"",dark:e.$store.getters.current.isDark}},[a("v-btn",{style:{color:e.$store.getters.current.textColor},attrs:{color:e.$store.getters.current.accent1,small:""},model:{value:e.graph,callback:function(t){e.graph=t},expression:"graph"}},[e._v(" Graph ")]),a("v-btn",{style:{color:e.$store.getters.current.textColor},attrs:{color:e.$store.getters.current.accent1,small:""}},[e._v(" Pie ")])],1)],1)],1),e.graph?a("div",[a("v-btn",{staticClass:"mt-2",staticStyle:{width:"100%",height:"14px","padding-top":"2px","padding-bottom":"2px"},style:{color:e.$store.getters.current.textColor},attrs:{color:e.$store.getters.current.accent1,elevation:"0",tile:"",small:""},on:{click:function(){return t.showyaxis=!t.showyaxis}}},[e.showyaxis?a("v-icon",[e._v("mdi-chevron-up")]):e._e(),e.showyaxis?e._e():a("v-icon",[e._v("mdi-chevron-down")]),e._v(" Y-axis ")],1),a("v-expand-transition",[e.showyaxis?a("div",e._l(e.$store.getters.layout.tempoptions.yAxis,(function(t,s){return a("div",{key:s,class:e.$vuetify.breakpoint.mdAndDown?"mt-3":"mt-1"},[s>0?a("div",{staticClass:"mt-2 mb-2",staticStyle:{width:"100%",height:"1px"},style:{backgroundColor:e.$store.getters.current.accent2}}):e._e(),a("v-row",{staticClass:"mr-3",attrs:{dense:""}},[a("v-col",{staticClass:"pa-0",attrs:{cols:"2"}},[a("v-btn",{staticClass:"mt-2",style:{color:e.$store.getters.current.textColor},attrs:{small:"",icon:"",color:e.$store.getters.current.accent1},on:{click:function(t){return e.addAxis(s)}}},[a("v-icon",[e._v("mdi-plus")])],1),e.$store.getters.layout.tempoptions.yAxis.length>1?a("v-btn",{staticClass:"mt-2",style:{color:e.$store.getters.current.textColor},attrs:{small:"",icon:"",color:e.$store.getters.current.accent1},on:{click:function(t){return e.removeAxis(s)}}},[a("v-icon",[e._v("mdi-minus")])],1):e._e()],1),a("v-col",{staticClass:"pa-0"},[a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Name ")])],1),a("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[a("v-text-field",{staticStyle:{"padding-top":"6px"},attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Name":"",dense:"",dark:e.$store.getters.current.isDark},model:{value:t.name,callback:function(s){e.$set(t,"name",s)},expression:"line.name"}})],1)],1),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Units ")])],1),a("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[a("v-select",{staticStyle:{"padding-top":"6px"},attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Units":"",dense:"",items:e.units,value:0,"item-text":"name","item-value":"idx",dark:e.$store.getters.current.isDark},on:{change:function(t){return e.setYAxisUnits(t,s)}}})],1)],1)],1)],1)],1)})),0):e._e()]),a("v-btn",{staticClass:"mt-2",staticStyle:{width:"100%",height:"14px","padding-top":"2px","padding-bottom":"2px"},style:{color:e.$store.getters.current.textColor},attrs:{color:e.$store.getters.current.accent1,elevation:"0",tile:"",small:""},on:{click:function(){return t.showdatasets=!t.showdatasets}}},[e.showdatasets?a("v-icon",[e._v("mdi-chevron-up")]):e._e(),e.showdatasets?e._e():a("v-icon",[e._v("mdi-chevron-down")]),e._v(" Datasets ")],1),a("v-expand-transition",[e.showdatasets?a("div",e._l(e.$store.getters.layout.tempoptions.series,(function(t,s){return a("div",{key:s,class:e.$vuetify.breakpoint.mdAndDown?"mt-3":"mt-1"},[s>0?a("div",{staticClass:"mt-2 mb-2",staticStyle:{width:"100%",height:"1px"},style:{backgroundColor:e.$store.getters.current.accent2}}):e._e(),a("v-row",{staticClass:"mr-3",attrs:{dense:""}},[a("v-col",{staticClass:"pa-0",attrs:{cols:"2"}},[a("v-btn",{style:{color:e.$store.getters.current.textColor,marginTop:"10px"},attrs:{small:"",icon:"",color:e.$store.getters.current.accent1},on:{click:function(t){return e.addSet(s)}}},[a("v-icon",[e._v("mdi-plus")])],1),e.$store.getters.layout.tempoptions.series.length>1?a("v-btn",{style:{color:e.$store.getters.current.textColor,marginTop:"10px"},attrs:{small:"",icon:"",color:e.$store.getters.current.accent1},on:{click:function(t){return e.removeSet(s)}}},[a("v-icon",[e._v("mdi-minus")])],1):e._e()],1),a("v-col",{staticClass:"pa-0"},[a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Name ")])],1),a("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[a("v-text-field",{staticStyle:{"padding-top":"6px"},attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Name":"",dense:"",dark:e.$store.getters.current.isDark},model:{value:t.name,callback:function(s){e.$set(t,"name",s)},expression:"line.name"}})],1)],1),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Type ")])],1),a("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[a("v-select",{staticStyle:{"padding-top":"6px"},attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Type":"",dense:"",items:e.graphTypes,"item-value":"val","item-text":"name",dark:e.$store.getters.current.isDark},model:{value:t.type,callback:function(s){e.$set(t,"type",s)},expression:"line.type"}})],1)],1),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Dataset ")])],1),a("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[a("v-select",{staticStyle:{"padding-top":"6px"},attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Dataset":"",dense:"",items:e.trackabledata,"item-value":"data","item-text":"name",dark:e.$store.getters.current.isDark},model:{value:t.data,callback:function(s){e.$set(t,"data",s)},expression:"line.data"}})],1)],1),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Y-Axis ")])],1),a("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[a("v-select",{staticStyle:{"padding-top":"6px"},attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Y-Axis":"",dense:"",items:e.$store.getters.layout.tempoptions.yAxis.map((function(t,e){return{idx:e,data:t}})),value:0,"item-text":"data.name","item-value":"idx",dark:e.$store.getters.current.isDark},on:{change:function(t){return e.setYAxis(t,s)}}})],1)],1),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Color ")])],1),a("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[a("v-hover",{scopedSlots:e._u([{key:"default",fn:function(s){var r=s.hover;return[a("div",[a("div",{staticStyle:{width:"100%",height:"30px",border:"2px solid","margin-top":"9px"},style:{backgroundColor:t.itemStyle.color,borderColor:e.$store.getters.current.textColor}},[a("v-scroll-x-transition",[r?a("v-color-picker",{staticStyle:{position:"relative","z-index":"99999",top:"-260px",left:"calc(100% + 2px)"},style:{backgroundColor:e.$store.getters.current.secondary},attrs:{elevation:"3","hide-mode-switch":""},model:{value:t.itemStyle.color,callback:function(s){e.$set(t.itemStyle,"color",s)},expression:"line.itemStyle.color"}}):e._e()],1)],1)])]}}],null,!0)})],1)],1)],1)],1)],1)})),0):e._e()])],1):e._e(),e.graph?e._e():a("div",e._l(e.$store.getters.layout.temppieoptions.series[0].data,(function(t,s){return a("div",{key:s},[s>0?a("div",{staticClass:"mt-2 mb-2",staticStyle:{width:"100%",height:"1px"},style:{backgroundColor:e.$store.getters.current.accent2}}):e._e(),a("v-row",{staticClass:"mr-3",attrs:{dense:""}},[a("v-col",{staticClass:"pa-0",attrs:{cols:"2"}},[a("v-btn",{style:{color:e.$store.getters.current.textColor,marginTop:"10px"},attrs:{small:"",icon:"",color:e.$store.getters.current.accent1},on:{click:function(t){return e.addPieSet(s)}}},[a("v-icon",[e._v("mdi-plus")])],1),e.$store.getters.layout.temppieoptions.series[0].data.length>1?a("v-btn",{style:{color:e.$store.getters.current.textColor,marginTop:"10px"},attrs:{small:"",icon:"",color:e.$store.getters.current.accent1},on:{click:function(t){return e.removePieSet(s)}}},[a("v-icon",[e._v("mdi-minus")])],1):e._e()],1),a("v-col",{staticClass:"pa-0"},[a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Name ")])],1),a("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[a("v-text-field",{staticStyle:{"padding-top":"6px"},attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Name":"",dense:"",dark:e.$store.getters.current.isDark},on:{input:function(t){return e.$store.getters.layout.temppieoptions.legend.data[s]=t}},model:{value:t.name,callback:function(s){e.$set(t,"name",s)},expression:"line.name"}})],1)],1),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Dataset ")])],1),a("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[a("v-select",{staticStyle:{"padding-top":"6px"},attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Dataset":"",dense:"",items:e.trackabledata,"item-value":function(t){return t.data[t.data.length-1][1]},"item-text":"name",dark:e.$store.getters.current.isDark},model:{value:t.value,callback:function(s){e.$set(t,"value",s)},expression:"line.value"}})],1)],1),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Color ")])],1),a("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[a("v-hover",{scopedSlots:e._u([{key:"default",fn:function(s){var r=s.hover;return[a("div",[a("div",{staticStyle:{width:"100%",height:"30px",border:"2px solid","margin-top":"9px"},style:{backgroundColor:t.itemStyle.color,borderColor:e.$store.getters.current.textColor}},[a("v-scroll-x-transition",[r?a("v-color-picker",{staticStyle:{position:"relative","z-index":"99999",top:"-260px",left:"calc(100% + 2px)"},style:{backgroundColor:e.$store.getters.current.secondary},attrs:{elevation:"3","hide-mode-switch":""},model:{value:t.itemStyle.color,callback:function(s){e.$set(t.itemStyle,"color",s)},expression:"line.itemStyle.color"}}):e._e()],1)],1)])]}}],null,!0)})],1)],1)],1)],1)],1)})),0)],1),e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{attrs:{cols:"8"}},[e.graph?a("chart",{key:e.prevreload,staticStyle:{width:"100%",left:"0"},attrs:{autoresize:"",options:e.$store.getters.layout.tempoptions}}):e._e(),e.graph?e._e():a("chart",{key:e.prevreload,staticStyle:{width:"100%",left:"0"},attrs:{autoresize:"",options:e.$store.getters.layout.temppieoptions}})],1)],1),a("v-btn",{style:{color:e.$store.getters.current.textColor,right:"12px",bottom:"12px"},attrs:{absolute:"",tile:"",color:e.$store.getters.current.accent1}},[e._v(" Add Graph ")])],1)],1)],1)},P=[],z=(s("d81d"),s("b0c0"),["yb","zb","eb","pb","tb","gb","mb","kb","b"]),T=["d","n","o","S","s","Q","q","t","B","M","K",""],N={name:"Dashboard",components:{chart:function(){return s.e("chunk-ffe7010a").then(s.bind(null,"9ca8"))}},data:function(){var t=this,e={orient:"vertical",top:30,iconStyle:{color:u.getters.current.accent,borderColor:"#00000000"},emphasis:{iconStyle:{textPosition:"left",color:u.getters.current.accent2,borderColor:"#00000000"}},feature:{dataZoom:{show:!0,yAxisIndex:"none",icon:{zoom:"M14,17H17V14H19V17H22V19H19V22H17V19H14V17M12,17V19H9V17H12M7,17V19H3V15H5V17H7M3,13V10H5V13H3M3,8V4H7V6H5V8H3M9,4H12V6H9V4M15,4H19V8H17V6H15V4M19,10V12H17V10H19Z",back:"M13.5,7A6.5,6.5 0 0,1 20,13.5A6.5,6.5 0 0,1 13.5,20H10V18H13.5C16,18 18,16 18,13.5C18,11 16,9 13.5,9H7.83L10.91,12.09L9.5,13.5L4,8L9.5,2.5L10.92,3.91L7.83,7H13.5M6,18H8V20H6V18Z"},title:{zoom:"Zoom",back:"Undo"}},restore:{title:"Restore",icon:"M2 12C2 16.97 6.03 21 11 21C13.39 21 15.68 20.06 17.4 18.4L15.9 16.9C14.63 18.25 12.86 19 11 19C4.76 19 1.64 11.46 6.05 7.05C10.46 2.64 18 5.77 18 12H15L19 16H19.1L23 12H20C20 7.03 15.97 3 11 3C6.03 3 2 7.03 2 12Z"}}},s={trigger:"axis",axisPointer:{type:"cross",label:{color:u.getters.current.secondary,formatter:function(e){if("x"===e.axisDimension&&e.seriesData[0]&&e.seriesData[0]&&e.seriesData[0].data){var s=new Date(e.seriesData[0].data[0]);return s.getMonth()+1+"/"+s.getDate()+"/"+s.getFullYear()+" "+s.getHours()+":"+s.getMinutes()+":"+s.getSeconds()}return t.formatNumber(100*e.value,z,4)}}}},a={right:40,left:40,bottom:40,top:60,containLabel:!0},r={type:"time",axisLine:{lineStyle:{color:u.getters.current.textColor}},splitLine:{lineStyle:{color:u.getters.current.accent1}}},o=[{type:"value",name:"Total",scale:!0,max:function(t){return t.max.toFixed(5).replace(/\.?0*$/,"")},min:function(t){return t.min.toFixed(5).replace(/\.?0*$/,"")},axisLabel:{formatter:function(e){return t.formatNumber(e,z)}},axisLine:{lineStyle:{color:u.getters.current.textColor}},splitLine:{show:!1}},{type:"value",position:"right",name:"Change",scale:!0,max:function(t){return t.max.toFixed(5).replace(/\.?0*$/,"")},min:function(t){return t.min.toFixed(5).replace(/\.?0*$/,"")},axisLabel:{formatter:function(e){return t.formatNumber(e,z)}},axisLine:{lineStyle:{color:u.getters.current.textColor}},splitLine:{show:!1}}],n=[{type:"inside"},{start:90,type:"slider",handleSize:"100%",fillerColor:u.getters.current.accent1,handleStyle:{color:u.getters.current.textColor},dataBackground:{lineStyle:{color:u.getters.current.textColor},areaStyle:{color:u.getters.current.accent}},textStyle:{color:u.getters.current.textColor}}],i={left:"center",top:22,data:["Total","Change"],inactiveColor:u.getters.current.accent2,textStyle:{color:u.getters.current.textColor}},l=u.getters.layout.grid;return{graph:!0,showdatasets:!0,showyaxis:!0,prevreload:0,units:[{idx:0,name:"None",arr:[]},{idx:1,name:"Data",arr:z},{idx:2,name:"Number",arr:T}],graphoptstemplate:{title:{left:"center",text:"Title",textStyle:{color:u.getters.current.textColor}},tooltip:s,toolbox:e,grid:a,legend:i,xAxis:r,yAxis:[{type:"value",name:"axis",scale:!0,max:function(t){return t.max.toFixed(5).replace(/\.?0*$/,"")},min:function(t){return t.min.toFixed(5).replace(/\.?0*$/,"")},axisLine:{lineStyle:{color:u.getters.current.textColor}},splitLine:{show:!1}}],dataZoom:n,series:[]},pieoptstemplate:{title:{left:"center",text:"Title",textStyle:{color:u.getters.current.textColor}},tooltip:{trigger:"item",formatter:" {b}<br/>{c} ({d}%)"},legend:{orient:"vertical",left:0,data:["item"],inactiveColor:u.getters.current.accent2,textStyle:{color:u.getters.current.textColor}},series:[{type:"pie",avoidLabelOverlap:!0,label:{show:!1},labelLine:{show:!1},data:[{name:"item",value:u.getters.data.hits[u.getters.data.hits.length-1]?u.getters.data.hits[u.getters.data.hits.length-1][1]:0,itemStyle:{color:"#ef0e00"}}]}]},trackabledata:[{name:"Hits",data:u.getters.data.hits},{name:"Misses",data:u.getters.data.misses},{name:"BrowserCached",data:u.getters.data.cached},{name:"Requests Served",data:u.getters.data.reqServ},{name:"Bytes Sent",data:u.getters.data.bytesSent},{name:"Bytes On Disk",data:u.getters.data.sizeDisk},{name:"Change in Hits",data:u.getters.data.hitsChange},{name:"Change in Misses",data:u.getters.data.missesChange},{name:"Change in BrowserCached",data:u.getters.data.cachedChange},{name:"Change in Requests Served",data:u.getters.data.reqServChange},{name:"Change in Bytes Sent",data:u.getters.data.bytesSentChange},{name:"Change in Bytes On Disk",data:u.getters.data.sizeDiskChange}],datasets:[],layout:[{x:l[0].x,y:l[0].y,w:l[0].w,h:l[0].h,i:l[0].i,o:{title:{left:"center",text:"Reliability",textStyle:{color:u.getters.current.textColor}},tooltip:{trigger:"item",formatter:" {b}<br/>{c} ({d}%)"},legend:{orient:"vertical",left:0,data:["Hits","Misses","Cached"],inactiveColor:u.getters.current.accent2,textStyle:{color:u.getters.current.textColor}},series:[{type:"pie",avoidLabelOverlap:!0,label:{show:!1},labelLine:{show:!1},data:[{value:u.getters.data.hits[u.getters.data.hits.length-1]?u.getters.data.hits[u.getters.data.hits.length-1][1]:0,name:"Hits",itemStyle:{color:u.getters.current.green}},{value:u.getters.data.misses[u.getters.data.misses.length-1]?u.getters.data.misses[u.getters.data.misses.length-1][1]:0,name:"Misses",itemStyle:{color:u.getters.current.red}},{value:u.getters.data.cached[u.getters.data.cached.length-1]?u.getters.data.cached[u.getters.data.cached.length-1][1]:0,name:"Cached",itemStyle:{color:u.getters.current.accent}}]}]}},{x:l[1].x,y:l[1].y,w:l[1].w,h:l[1].h,i:l[1].i,o:{title:{left:"center",text:"Bytes Sent",textStyle:{color:u.getters.current.textColor}},tooltip:s,toolbox:e,grid:a,legend:i,xAxis:r,yAxis:o,series:[{name:"Total",data:u.getters.data.bytesSent,type:"line",sampling:"average",showSymbol:!1,itemStyle:{color:u.getters.current.textColor}},{name:"Change",data:u.getters.data.bytesSentChange,yAxisIndex:1,type:"bar",itemStyle:{color:u.getters.current.yellow}}],dataZoom:n}},{x:l[2].x,y:l[2].y,w:l[2].w,h:l[2].h,i:l[2].i,o:{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{color:u.getters.current.secondary,formatter:function(e){if("x"===e.axisDimension&&e.seriesData[0]&&e.seriesData[0]&&e.seriesData[0].data){var s=new Date(e.seriesData[0].data[0]);return s.getMonth()+1+"/"+s.getDate()+"/"+s.getFullYear()+" "+s.getHours()+":"+s.getMinutes()+":"+s.getSeconds()}return t.formatNumber(e.value,T,4)}}}},toolbox:e,grid:a,legend:i,xAxis:r,dataZoom:n,title:{left:"center",text:"Requests Served",textStyle:{color:u.getters.current.textColor}},yAxis:[{name:"Total",type:"value",scale:!0,max:function(t){return t.max.toFixed(5).replace(/\.?0*$/,"")},min:function(t){return t.min.toFixed(5).replace(/\.?0*$/,"")},axisLabel:{formatter:function(e){return t.formatNumber(e,T)}},axisLine:{lineStyle:{color:r.axisLine.lineStyle.color}},splitLine:{lineStyle:{color:r.splitLine.lineStyle.color}}},{type:"value",position:"right",name:"Change",scale:!0,max:function(t){return t.max.toFixed(5).replace(/\.?0*$/,"")},min:function(t){return t.min.toFixed(5).replace(/\.?0*$/,"")},axisLabel:{formatter:function(e){return t.formatNumber(e,T)}},axisLine:{lineStyle:{color:u.getters.current.textColor}},splitLine:{lineStyle:{color:u.getters.current.accent1}}}],series:[{name:"Total",data:u.getters.data.reqServ,type:"line",sampling:"average",showSymbol:!1,itemStyle:{color:u.getters.current.textColor}},{name:"Change",data:u.getters.data.reqServChange,yAxisIndex:1,type:"bar",itemStyle:{color:u.getters.current.yellow}}]}},{x:l[3].x,y:l[3].y,w:l[3].w,h:l[3].h,i:l[3].i,o:{title:{left:"center",text:"Size On Disk",textStyle:{color:u.getters.current.textColor}},tooltip:s,toolbox:e,grid:a,legend:i,xAxis:r,yAxis:o,series:[{name:"Total",data:u.getters.data.sizeDisk,type:"line",sampling:"average",showSymbol:!1,itemStyle:{color:u.getters.current.textColor}},{name:"Change",data:u.getters.data.sizeDiskChange,yAxisIndex:1,type:"bar",itemStyle:{color:u.getters.current.yellow}}],dataZoom:n}}],graphTypes:[{name:"Line",val:"line"},{name:"Bar",val:"bar"}]}},methods:{layoutRemove:function(t){for(var e=0;e<this.layout.length;e++)this.layout[e].i===t&&this.layout.splice(e,1)},showModal:function(){this.uniqpieindex=0,this.uniqindex=0,this.axisindex=0,this.datasets=[{name:"item",type:"line",data:u.getters.data.hits.map((function(t){return t})),yAxisIndex:0,showSymbol:!1,itemStyle:{color:"#ef0e00"}}],u.commit("setTempOptions",this.graphoptstemplate),u.commit("setTempPieOptions",this.pieoptstemplate),u.commit("setTempDatasets",this.datasets),this.$modal.show("createGraph")},addSet:function(t){for(var e="0123456789abcdef",s="#",a=0;a<6;a++)s+=e.substr(Math.floor(Math.random()*e.length),1);this.datasets.splice(t+1,0,{name:"item "+this.uniqindex++,type:"line",data:u.getters.data.hits.map((function(t){return t})),yAxisIndex:0,showSymbol:!1,itemStyle:{color:s}}),this.prevreload=!this.prevreload},removeSet:function(t){u.getters.layout.tempoptions.series.splice(t,1),this.prevreload=!this.prevreload},addPieSet:function(t){for(var e="0123456789abcdef",s="#",a=0;a<6;a++)s+=e.substr(Math.floor(Math.random()*e.length),1);var r={name:"item "+this.uniqpieindex++,value:u.getters.data.hits[u.getters.data.hits.length-1]?u.getters.data.hits[u.getters.data.hits.length-1][1]:0,itemStyle:{color:s}};u.getters.layout.temppieoptions.series[0].data.splice(t+1,0,r),u.getters.layout.temppieoptions.legend.data.splice(t+1,0,r.name),this.prevreload=!this.prevreload},removePieSet:function(t){u.getters.layout.temppieoptions.series[0].data.splice(t,1),this.prevreload=!this.prevreload},setYAxis:function(t,e){this.datasets[e].yAxisIndex=t,this.prevreload=!this.prevreload},setYAxisUnits:function(t,e){var s=this;u.getters.layout.tempoptions.yAxis[e].axisLabel=0===t?{formatter:null}:{formatter:function(e){return s.formatNumber(e,s.units[t].arr)}},this.prevreload=!this.prevreload},addAxis:function(t){u.getters.layout.tempoptions.yAxis.splice(t+1,0,{type:"value",name:"axis "+this.axisindex++,offset:80*(u.getters.layout.tempoptions.yAxis.length-1),scale:!0,max:function(t){return t.max.toFixed(5).replace(/\.?0*$/,"")},min:function(t){return t.min.toFixed(5).replace(/\.?0*$/,"")},axisLine:{lineStyle:{color:u.getters.current.textColor}},splitLine:{show:!1}}),this.prevreload=!this.prevreload},removeAxis:function(t){u.getters.layout.tempoptions.yAxis.splice(t,1),this.prevreload=!this.prevreload},moved:function(t,e,s){u.commit("setSpecificLayout",{i:t,x:e,y:s})},resized:function(t,e,s){u.commit("setSpecificLayout",{i:t,w:s,h:e})},log:function(t){console.log(t)}},computed:{layouts:function(){return this.layout},hitmiscach:function(){return u.getters.data.date}},watch:{layouts:function(){console.log(this.layout)},hitmiscach:function(){this.layout[0].o.series[0].data[0].value=u.getters.data.hits[u.getters.data.hits.length-1][1],this.layout[0].o.series[0].data[1].value=u.getters.data.misses[u.getters.data.misses.length-1][1],this.layout[0].o.series[0].data[2].value=u.getters.data.cached[u.getters.data.cached.length-1][1]}}},H=N,O=(s("2fe3"),s("8336")),q=s("a609"),R=s("62ad"),F=s("03a4"),j=s("a523"),E=s("0789"),U=s("ce87"),Y=s("0fd9"),J=s("b974"),Z=s("e0c7"),G=s("8654"),W=Object(g["a"])(H,L,P,!1,null,null,null),K=W.exports;v()(W,{VBtn:O["a"],VBtnToggle:q["a"],VCol:R["a"],VColorPicker:F["a"],VContainer:j["a"],VExpandTransition:E["a"],VHover:U["a"],VIcon:x["a"],VRow:Y["a"],VScrollXTransition:E["f"],VSelect:J["a"],VSubheader:Z["a"],VTextField:G["a"]});var X=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-container",{style:{color:t.$store.getters.current.textColor},attrs:{fluid:""}},[s("v-container",{staticClass:"pt-0 pb-0",style:{backgroundColor:t.$store.getters.current.secondary+t.$store.getters.alpha},attrs:{fluid:""}},[s("v-row",[s("v-col",[s("h1",{staticClass:"pl-1"},[t._v("Console")])]),s("v-col",[s("v-btn",{staticStyle:{position:"absolute",right:"0","margin-right":"28px","margin-top":"5px"},style:{color:t.$store.getters.current.textColor},attrs:{color:t.$store.getters.current.accent1,tile:""}},[t._v("Disconnected ")])],1)],1)],1),s("xterm",{staticClass:"mt-3 mb-3",staticStyle:{width:"calc(100% - 24px)",bottom:"0",position:"absolute"}})],1)},Q=[],tt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:t.genid}})},et=[],st=s("fcf3"),at={name:"xterm",props:["lines"],data:function(){return{genid:"term",term:null}},beforeMount:function(){for(var t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",s=0;s<20;s++)t+=e.charAt(Math.floor(Math.random()*e.length));this.genid=t,this.term=new st["Terminal"]({disableStdin:!1,rows:30,cols:50,cursorBlink:!0,cursorStyle:"underline",fontSize:15})},mounted:function(){this.term.open(document.getElementById(this.genid)),window.addEventListener("resize",this.fit),this.fit(),this.runFakeTerminal()},beforeDestroy:function(){this.term.dispose(),window.removeEventListener("resize",this.fit)},methods:{fit:function(){var t=this.$el.parentNode;this.term.resize(Math.floor((t.offsetWidth-36)/this.term.getOption("fontSize")*5/3),Math.floor((window.innerHeight/1.5-196)/this.term.getOption("fontSize")*15/17))},runFakeTerminal:function(){var t=this;this.term._initialized||(this.term._initialized=!0,this.term.writeln("Welcome to the Web UI console"),this.term.writeln("Anti was super lazy and didnt bother to actually implement a console sync"),this.term.writeln("Go ping him (please don't) to do some more work and stop reading manga"),this.term.writeln("You're still free to type and spam in this console to your heart's content tho"),this.term.writeln(""),this.prompt(this.term),this.term.onData((function(e){switch(e){case"\r":case"":t.prompt(t.term);break;case"":t.term._core.buffer.x>2&&t.term.write("\b \b");break;default:t.term.write(e),t.fit()}})))},prompt:function(t){t.write("\r\n> ")}}},rt=at,ot=(s("a950"),Object(g["a"])(rt,tt,et,!1,null,null,null)),nt=ot.exports,it={name:"Console",components:{Xterm:nt}},lt=it,ct=Object(g["a"])(lt,X,Q,!1,null,"38e208fe",null),dt=ct.exports;v()(ct,{VBtn:O["a"],VCol:R["a"],VContainer:j["a"],VRow:Y["a"]});var ut=function(){var t=this,e=this,s=e.$createElement,a=e._self._c||s;return a("v-container",{style:{color:e.$store.getters.current.textColor},attrs:{fluid:""}},[a("v-container",{style:{backgroundColor:e.$store.getters.current.secondary+e.$store.getters.alpha},attrs:{fluid:""}},[a("h1",{staticClass:"pl-1"},[e._v("Settings")])]),a("v-container",{staticClass:"pa-5 pb-9 mt-3",style:{backgroundColor:e.$store.getters.current.secondary+e.$store.getters.alpha},attrs:{fluid:""}},[a("h3",[e._v("Web Settings")]),a("div",{staticClass:"mt-2 mb-2",staticStyle:{width:"100%",height:"1px"},style:{backgroundColor:e.$store.getters.current.accent2}}),a("h4",[e._v("Display")]),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Theme ")])],1),a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[a("v-select",{attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Theme":"",items:e.items,"item-value":"val","item-text":"disp",value:e.$store.state.options.current,color:e.$store.getters.current.textColor,dark:e.$store.getters.current.isDark},on:{input:function(t){return e.$store.commit("setTheme",t)}}})],1)],1),e.$vuetify.breakpoint.mdAndDown?e._e():a("v-row",{attrs:{dense:""}},[a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Show App Bar ")])],1),a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[a("v-switch",{attrs:{dark:e.$store.getters.current.isDark},on:{change:function(t){return e.$store.commit("showAppBar",e.showbar)}},model:{value:e.showbar,callback:function(t){e.showbar=t},expression:"showbar"}})],1)],1),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Background Image ")])],1),a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[a("v-switch",{attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Background Image":"",dark:e.$store.getters.current.isDark},on:{change:function(t){return e.$store.commit("setHasBg",e.hasBgImage)}},model:{value:e.hasBgImage,callback:function(t){e.hasBgImage=t},expression:"hasBgImage"}})],1)],1),e.hasBgImage?a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Image URL ")])],1),a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[a("v-text-field",{attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Image URL":"",dark:e.$store.getters.current.isDark},on:{change:function(t){return e.$store.commit("setBgUrl",e.bgimg)}},model:{value:e.bgimg,callback:function(t){e.bgimg=t},expression:"bgimg"}})],1)],1):e._e(),e.$vuetify.breakpoint.mdAndDown?e._e():a("v-row",{attrs:{dense:""}},[a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Dashboard ")])],1),a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"8"}},[a("v-btn",{style:{color:e.$store.getters.current.textColor},attrs:{color:e.$store.getters.current.accent1},on:{click:function(t){return e.$store.commit("resetLayout")}}},[e._v(" Reset ")])],1)],1),a("h4",{staticClass:"mt-3"},[e._v("Data")]),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Data Refresh Rate ")])],1),a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"8"}},[a("v-text-field",{attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Data Refresh Rate":"",dark:e.$store.getters.current.isDark,"error-messages":e.referr[0],suffix:"ms"},on:{input:function(t){e.checkNan(t,0),e.$store.commit("setRefresh",t)},focusout:function(){return t.updateInterval=e.$store.getters.data.updateInterval}},model:{value:e.updateInterval,callback:function(t){e.updateInterval=t},expression:"updateInterval"}})],1)],1),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Max Data Points ")])],1),a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"8"}},[a("v-text-field",{attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Max Data Points":"",dark:e.$store.getters.current.isDark,"error-messages":e.referr[1]},on:{input:function(t){e.checkNan(t,1),e.$store.commit("setMaxStorePoints",t)},focusout:function(){return t.maxpoints=e.$store.getters.data.maxStorePoints}},model:{value:e.maxpoints,callback:function(t){e.maxpoints=t},expression:"maxpoints"}})],1)],1),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Stats ")])],1),a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-btn",{style:{color:e.$store.getters.current.textColor},attrs:{color:e.$store.getters.current.accent1},on:{click:function(t){return e.$store.commit("resetStats")}}},[e._v(" Reset ")]),e.$vuetify.breakpoint.mdAndDown?a("v-btn",{style:{color:e.$store.getters.current.textColor},attrs:{color:e.$store.getters.current.accent1},on:{click:function(t){return e.$store.commit("resetStats")}}},[e._v(" Reset Stats ")]):e._e()],1)],1)],1),a("v-container",{staticClass:"pa-5 mt-3",style:{backgroundColor:e.$store.getters.current.secondary+e.$store.getters.alpha},attrs:{fluid:""}},[a("h3",[e._v("Client Settings (Currently only for creating new settings)")]),a("div",{staticClass:"mt-2 mb-2",staticStyle:{width:"100%",height:"1px"},style:{backgroundColor:e.$store.getters.current.accent2}}),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Client Secret ")])],1),a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[a("v-text-field",{attrs:{"error-messages":e.configerrors[0],label:e.$vuetify.breakpoint.mdAndDown?"Client Secret":"",dark:e.$store.getters.current.isDark},model:{value:e.configvals[0],callback:function(t){e.$set(e.configvals,0,t)},expression:"configvals[0]"}})],1)],1),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Client Host IP ")])],1),a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[a("v-text-field",{attrs:{"error-messages":e.configerrors[1],label:e.$vuetify.breakpoint.mdAndDown?"Client Host IP":"",dark:e.$store.getters.current.isDark},model:{value:e.configvals[1],callback:function(t){e.$set(e.configvals,1,t)},expression:"configvals[1]"}})],1)],1),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Client Port ")])],1),a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[a("v-text-field",{attrs:{"error-messages":e.configerrors[2],label:e.$vuetify.breakpoint.mdAndDown?"Client Port":"",dark:e.$store.getters.current.isDark},model:{value:e.configvals[2],callback:function(t){e.$set(e.configvals,2,t)},expression:"configvals[2]"}})],1)],1),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Max Shutdown Wait Time ")])],1),a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"6"}},[a("v-text-field",{attrs:{"error-messages":e.configerrors[3],label:e.$vuetify.breakpoint.mdAndDown?"Max Shutdown Wait Time":"",dark:e.$store.getters.current.isDark},model:{value:e.msw,callback:function(t){e.msw=t},expression:"msw"}})],1),a("v-col",{staticClass:"pt-6 pb-0",attrs:{cols:"4",md:"2"}},[a("span",[e._v(e._s(e.mswtprev))])])],1),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Max Threads ")])],1),a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[a("v-text-field",{attrs:{"error-messages":e.configerrors[4],label:e.$vuetify.breakpoint.mdAndDown?"Max Threads":"",dark:e.$store.getters.current.isDark},model:{value:e.configvals[3],callback:function(t){e.$set(e.configvals,3,t)},expression:"configvals[3]"}})],1)],1),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Max Cache Size ")])],1),a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"8",md:"6"}},[a("v-text-field",{attrs:{"error-messages":e.configerrors[5],label:e.$vuetify.breakpoint.mdAndDown?"Max Cache Size":"",dark:e.$store.getters.current.isDark},model:{value:e.mcs,callback:function(t){e.mcs=t},expression:"mcs"}})],1),a("v-col",{staticClass:"pt-6 pb-0",attrs:{cols:"4",md:"2"}},[a("span",[e._v(e._s(e.mcsprev))])])],1),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Max Hourly Bandwith ")])],1),a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"8",md:"6"}},[a("v-text-field",{attrs:{"error-messages":e.configerrors[6],label:e.$vuetify.breakpoint.mdAndDown?"Max Hourly Bandwith":"",dark:e.$store.getters.current.isDark},model:{value:e.mhb,callback:function(t){e.mhb=t},expression:"mhb"}})],1),a("v-col",{staticClass:"pt-6 pb-0",attrs:{cols:"4",md:"2"}},[a("span",[e._v(e._s(e.mhbprev))])])],1),a("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[a("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Max Burst Speed ")])],1),a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"8",md:"6"}},[a("v-text-field",{attrs:{"error-messages":e.configerrors[7],label:e.$vuetify.breakpoint.mdAndDown?"Max Burst Speed":"",dark:e.$store.getters.current.isDark},model:{value:e.mbs,callback:function(t){e.mbs=t},expression:"mbs"}})],1),a("v-col",{staticClass:"pt-6 pb-0",attrs:{cols:"4",md:"2"}},[a("span",[e._v(e._s(e.mbsprev))])])],1),a("v-container",{attrs:{fluid:""}},[a("h3",[e._v("Config Result")]),a("v-container",{staticStyle:{"background-color":"#000000",color:"#fff"},attrs:{fluid:""}},[a("p",{staticClass:"mb-0",staticStyle:{"font-family":"monospace"}},[e._v(" {"),a("br"),e._v(' "client_secret": "'+e._s(e.configvals[0])+'",'),a("br"),e._v(' "client_hostname": "'+e._s(e.configvals[1])+'",'),a("br"),e._v(' "client_port": "'+e._s(e.configvals[2])+'",'),a("br"),e._v(' "threads": "'+e._s(e.configvals[3])+'",'),a("br"),e._v(' "graceful_shutdown_wait_seconds": "'+e._s(e.configvals[4])+'",'),a("br"),e._v(' "max_cache_size_in_mebibytes": "'+e._s(e.configvals[5])+'",'),a("br"),e._v(' "max_kilobits_per_second": "'+e._s(e.configvals[6])+'",'),a("br"),e._v(' "max_mebibytes_per_hour": "'+e._s(e.configvals[7])+'",'),a("br"),e._v(" } ")])])],1)],1)],1)},pt=[],ht=(s("c975"),{name:"Options",methods:{checkNan:function(t,e){isNaN(t)?this.referr[e]="That is not a number!":this.referr[e]=""}},data:function(){return{items:[{disp:"Light",val:"light"},{disp:"Dark",val:"dark"},{disp:"Midnight",val:"midnight"},{disp:"I wan't to die",val:"eyekiller"}],mcsprev:"1.049 mb",mcs:1048576,mhbprev:"1.049 mb",mhb:1048576,mbsprev:"1 kps",mbs:1e3,mswtprev:"1 m",msw:60,configvals:["iiesenpaithisisoursecret","0.0.0.0",44300,16,60,1,1,1],configerrors:["","","","","","","",""],hasBgImage:u.getters.hasBgImage,bgimg:u.getters.bgImg,updateInterval:u.getters.data.updateInterval,maxpoints:u.getters.data.maxStorePoints,referr:["",""],showbar:u.getters.showAppBar}},computed:{hasbg:function(){return u.getters.hasBgImage},bgurl:function(){return u.getters.bgImg},showAppBar:function(){return u.getters.showAppBar},maxbs:function(){return this.mbs},maxhb:function(){return this.mhb},maxcs:function(){return this.mcs},maxsw:function(){return this.msw},configval:function(){return this.configvals}},watch:{hasbg:function(){this.hasBgImage=u.getters.hasBgImage},bgurl:function(){this.bgimg=u.getters.bgImg},showAppBar:function(){},maxbs:function(){if(""!==this.mbs){var t=["bps","kbps","mbps","gbps","tbps","pbps","ebps","zbps","ybps"];if(isNaN(this.mbs)){for(var e in t)if(-1!==this.mbs.indexOf(t[e])){var s=parseFloat(this.mbs.replace(t[e],""));for(var a in t){var r=Math.pow(10,3*parseInt(a));s*Math.pow(10,3*parseInt(e))>=r&&(this.mbsprev=(s*Math.pow(10,3*parseInt(e))/r).toPrecision(4)+" "+t[a])}this.configvals[6]=s*Math.pow(10,3*parseInt(e))/1e3}}else{var o=parseInt(this.mbs);for(var n in t){var i=Math.pow(10,3*parseInt(n));o>=i&&(this.mbsprev=(o/i).toPrecision(4)+" "+t[n])}this.configvals[6]=Math.round(o/1e3)}this.configvals[6]<1?this.configerrors[7]="That size is too small!":this.configerrors[7]=""}else this.mbsprev="0 bits/s"},maxhb:function(){if(""===this.mcs)return this.configvals[7]=0,void(this.mcsprev="0 bytes");var t=["b","kb","mb","gb","tb","pb","eb","zb","yb"];if(isNaN(this.mhb)){for(var e in t)if(-1!==this.mhb.indexOf(t[e])){var s=parseFloat(this.mhb.replace(t[e],""));for(var a in t){var r=Math.pow(10,3*parseInt(a));s*Math.pow(10,3*parseInt(e))>=r&&(this.mhbprev=(s*Math.pow(10,3*parseInt(e))/r).toPrecision(4)+" "+t[a])}this.configvals[7]=Math.round(s*Math.pow(10,3*parseInt(e))/1048576)}}else{var o=parseInt(this.mhb);if(0===o)return void(this.mhbprev="0 bytes");for(var n in t){var i=Math.pow(10,3*parseInt(n));o>=i&&(this.mhbprev=(o/i).toPrecision(4)+" "+t[n])}this.configvals[7]=Math.round(o/1048576)}this.configvals[7]<1?this.configerrors[6]="That size is too small!":this.configerrors[6]=""},maxcs:function(){if(""===this.mcs)return this.configvals[5]=0,void(this.mcsprev="0 bytes");var t=["b","kb","mb","gb","tb","pb","eb","zb","yb"];if(isNaN(this.mcs)){for(var e in t)if(-1!==this.mcs.indexOf(t[e])){var s=parseFloat(this.mcs.replace(t[e],""));for(var a in t){var r=Math.pow(10,3*parseInt(a));s*Math.pow(10,3*parseInt(e))>=r&&(this.mcsprev=(s*Math.pow(10,3*parseInt(e))/r).toPrecision(4)+" "+t[a])}this.configvals[5]=Math.round(s*Math.pow(10,3*parseInt(e))/1048576)}}else{var o=parseInt(this.mcs);for(var n in t){var i=Math.pow(10,3*parseInt(n));o>=i&&(this.mcsprev=(o/i).toPrecision(4)+" "+t[n])}this.configvals[5]=Math.round(o/1048576)}this.configvals[5]<1?this.configerrors[5]="That size is too small!":this.configerrors[5]=""},maxsw:function(){if(""===this.msw)return this.configvals[4]=0,void(this.mswtprev="0 seconds");var t=["s","m","h","d"],e=[1,60,3600,86400];if(isNaN(this.msw)){for(var s in t)if(-1!==this.msw.indexOf(t[s])){var a=parseFloat(this.msw.replace(t[s],""));for(var r in e){var o=e[r];a*e[s]>=o&&(this.mswtprev=(a*e[s]/o).toPrecision(4)+" "+t[r])}this.configvals[4]=Math.round(a*e[s])}}else{var n=parseInt(this.msw);for(var i in e){var l=e[i];n>=l&&(this.mswtprev=(n/l).toPrecision(4)+" "+t[i])}this.configvals[4]=Math.round(n)}},configval:function(){-1!==this.configval[0].indexOf(" ")?this.configerrors[0]="Secret can't have spaces!":this.configerrors[0]="",-1!==this.configval[1].indexOf(" ")?this.configerrors[1]="IP can't have spaces!":this.configerrors[1]="",isNaN(this.configval[2])?this.configerrors[2]="Port can't have spaces!":this.configerrors[2]="",this.configval[3]<4?this.configerrors[4]="Max threads can't be less than 4!":isNaN(this.configval[3])?this.configerrors[4]="Max threads should be a number!":this.configerrors[4]=""}}}),gt=ht,mt=s("b73d"),vt=Object(g["a"])(gt,ut,pt,!1,null,null,null),ft=vt.exports;v()(vt,{VBtn:O["a"],VCol:R["a"],VContainer:j["a"],VRow:Y["a"],VSelect:J["a"],VSubheader:Z["a"],VSwitch:mt["a"],VTextField:G["a"]});var bt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-container",{style:{color:t.$store.getters.current.textColor},attrs:{fluid:""}},[s("v-container",{style:{backgroundColor:t.$store.getters.current.secondary+t.$store.getters.alpha},attrs:{fluid:""}},[s("h1",{staticClass:"pl-1"},[t._v("Info")])]),s("v-container",{staticClass:"mt-3",style:{backgroundColor:t.$store.getters.current.secondary+t.$store.getters.alpha},attrs:{fluid:""}},t._l(t.infoList,(function(e,a){return s("div",{key:a,staticStyle:{width:"50%"}},[s("h3",[t._v(t._s(e.name))]),s("v-row",{attrs:{dense:""}},[s("v-col",[s("p",[t._v(t._s(e.shortValue))])]),e.longValue?s("v-col",[s("p",[t._v(t._s(e.longValue+(e.unitLabel?" "+e.unitLabel:"")))])]):t._e()],1)],1)})),0)],1)},yt=[],xt={name:"About",data:function(){return{infoList:[{name:"Client Version (Temporary fake data)",shortValue:"1.0.0",longValue:"latest: x.x.x"},{name:"Total Hits",unitLabel:"hits",longValue:u.getters.data.hits[u.getters.data.hits.length-1]?u.getters.data.hits[u.getters.data.hits.length-1][1]:0,shortValue:u.getters.data.hits[u.getters.data.hits.length-1]?this.formatNumber(u.getters.data.hits[u.getters.data.hits.length-1][1],T):0},{name:"Total Misses",unitLabel:"misses",longValue:u.getters.data.misses[u.getters.data.misses.length-1]?u.getters.data.misses[u.getters.data.misses.length-1][1]:0,shortValue:u.getters.data.misses[u.getters.data.misses.length-1]?this.formatNumber(u.getters.data.misses[u.getters.data.misses.length-1][1],T):0},{name:"Total Data Sent",unitLabel:"bytes",longValue:u.getters.data.bytesSent[u.getters.data.bytesSent.length-1]?u.getters.data.bytesSent[u.getters.data.bytesSent.length-1][1]:0,shortValue:u.getters.data.bytesSent[u.getters.data.bytesSent.length-1]?this.formatNumber(u.getters.data.bytesSent[u.getters.data.bytesSent.length-1][1],z):0},{name:"Total Requests Served",unitLabel:"requests",longValue:u.getters.data.reqServ[u.getters.data.reqServ.length-1]?u.getters.data.reqServ[u.getters.data.reqServ.length-1][1]:0,shortValue:u.getters.data.reqServ[u.getters.data.reqServ.length-1]?this.formatNumber(u.getters.data.reqServ[u.getters.data.reqServ.length-1][1],T):0},{name:"Cache Size",unitLabel:"bytes",longValue:u.getters.data.sizeDisk[u.getters.data.sizeDisk.length-1]?u.getters.data.sizeDisk[u.getters.data.sizeDisk.length-1][1]:0,shortValue:u.getters.data.sizeDisk[u.getters.data.sizeDisk.length-1]?this.formatNumber(u.getters.data.sizeDisk[u.getters.data.sizeDisk.length-1][1],z):0}]}}},Ct=xt,wt=Object(g["a"])(Ct,bt,yt,!1,null,"db64b6c4",null),kt=wt.exports;v()(wt,{VCol:R["a"],VContainer:j["a"],VRow:Y["a"]});var St=s("8c4f"),$t=[{path:"/",component:K},{path:"/cons",component:dt},{path:"/opts",component:ft},{path:"/info",component:kt}];a["default"].use(St["a"]);var _t=new St["a"]({routes:$t}),Dt=s("7be8"),At=s.n(Dt);a["default"].use(At.a);var It={},Mt=(s("ef97"),s("94b1"),s("c037"),s("007d"),s("627c"),s("d28f"),s("b11c"),s("0a6d"),{}),Vt=s("4f22"),Bt=s("9483");Object(Bt["a"])("".concat("","service-worker.js"),{ready:function(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},registered:function(){console.log("Service worker has been registered.")},cached:function(){console.log("Content has been cached for offline use.")},updatefound:function(){console.log("New content is downloading.")},updated:function(){console.log("New content is available; please refresh.")},offline:function(){console.log("No internet connection found. App is running in offline mode.")},error:function(t){console.error("Error during service worker registration:",t)}});var Lt=s("1881"),Pt=s.n(Lt);a["default"].use(Pt.a,{dynamic:!0,dynamicDefaults:{clickToClose:!0}}),a["default"].use(Vt["a"]),a["default"].config.productionTip=!1,a["default"].mixin({methods:{loadData:function(){for(var t=0;t<u.getters.data.stats.length;t++){var e=Object.keys(u.getters.data.stats[t])[0],s=u.getters.data.stats[t][e],a=t>0?u.getters.data.stats[t-1][Object.keys(u.getters.data.stats[t-1])[0]]:null,r=new Date(e);u.commit("pushDate",e),u.commit("pushHits",[r,s.cache_hits]),u.commit("pushHitsChange",[r,a?s.cache_hits-a.cache_hits:0]),u.commit("pushMisses",[r,s.cache_misses]),u.commit("pushMissesChange",[r,a?s.cache_misses-a.cache_misses:0]),u.commit("pushCached",[r,s.browser_cached]),u.commit("pushCachedChange",[r,a?s.browser_cached-a.browser_cached:0]),u.commit("pushBytesSent",[r,s.bytes_sent]),u.commit("pushBytesSentChange",[r,a?s.bytes_sent-a.bytes_sent:0]),u.commit("pushReqServ",[r,s.requests_served]),u.commit("pushReqServChange",[r,a?s.requests_served-a.requests_served:0]),u.commit("pushSizeDisk",[r,s.bytes_on_disk]),u.commit("pushSizeDiskChange",[r,a?s.bytes_on_disk-a.bytes_on_disk:0])}},sortData:function(){var t=u.getters.data.stats;function e(t){if(t.length<=1)return t;for(var s=[],a=[],r=t.pop(),o=t.length,n=0;n<o;n++)new Date(Object.keys(t[n])[0])<=new Date(Object.keys(r)[0])?s.push(t[n]):a.push(t[n]);return[].concat(e(s),r,e(a))}u.commit("setStats",e(t))},updateData:function(){fetch("api/stats").then((function(t){return t.json()})).then((function(t){u.commit("pushStats",t),localStorage.stats=JSON.stringify(u.getters.data.stats);var e=Object.keys(t)[0],s=t[e],a=u.getters.data.stats.length>1?u.getters.data.stats[u.getters.data.stats.length-1][Object.keys(u.getters.data.stats[u.getters.data.stats.length-1])[0]]:null,r=new Date(e);u.commit("pushDate",e),u.commit("pushHits",[r,s.cache_hits]),u.commit("pushHitsChange",[r,a?s.cache_hits-a.cache_hits:0]),u.commit("pushMisses",[r,s.cache_misses]),u.commit("pushMissesChange",[r,a?s.cache_misses-a.cache_misses:0]),u.commit("pushCached",[r,s.browser_cached]),u.commit("pushCachedChange",[r,a?s.browser_cached-a.browser_cached:0]),u.commit("pushBytesSent",[r,s.bytes_sent]),u.commit("pushBytesSentChange",[r,a?s.bytes_sent-a.bytes_sent:0]),u.commit("pushReqServ",[r,s.requests_served]),u.commit("pushReqServChange",[r,a?s.requests_served-a.requests_served:0]),u.commit("pushSizeDisk",[r,s.bytes_on_disk]),u.commit("pushSizeDiskChange",[r,a?s.bytes_on_disk-a.bytes_on_disk:0])})).catch((function(t){console.log(t)}))},formatNumber:function(t,e,s){for(var a=s||2,r=parseFloat(t),o=0;o<e.length;o++){var n=Math.pow(10,3*(e.length-o-1));if(r>=n)return(r/n).toFixed(a).replace(/\.?0*$/,"")+e[o]}return r.toFixed(a).replace(/\.?0*$/,"")}}});if(localStorage.hasBackground&&u.commit("setHasBg","true"===localStorage.hasBackground),localStorage.showAppBar&&u.commit("showAppBar","true"===localStorage.showAppBar),localStorage.theme&&"undefined"!==localStorage.theme?u.commit("setTheme",localStorage.theme):u.commit("setTheme","light"),localStorage.backgroundURL&&u.commit("setBgUrl",localStorage.backgroundURL),localStorage.dashboardLayout)try{u.commit("setLayout",JSON.parse(localStorage.dashboardLayout))}catch(zt){u.commit("resetLayout"),console.warn("There was an error reading the saved layout:"),console.warn(zt),console.warn("Using default layout")}localStorage.refreshRate&&u.commit("setRefresh",parseInt(localStorage.refreshRate)),localStorage.stats&&u.getters.data.stats.length<1&&u.commit("setStats",JSON.parse(localStorage.stats)),new a["default"]({render:function(t){return t(M)},router:_t,store:u,vuetify:B,grid:It,echarts:Mt}).$mount("#app")},a492:function(t,e,s){},a950:function(t,e,s){"use strict";var a=s("0134"),r=s.n(a);r.a}});
//# sourceMappingURL=app.a60bd5b6.js.map