HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/real-monitor-dialog-legacy.js
!function(){function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var r,n,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.toStringTag||"@@toStringTag";function l(t,i,a,o){var l=i&&i.prototype instanceof c?i:c,u=Object.create(l.prototype);return e(u,"_invoke",function(t,e,i){var a,o,l,c=0,u=i||[],f=!1,m={p:0,n:0,v:r,a:d,f:d.bind(r,4),d:function(t,e){return a=t,o=0,l=r,m.n=e,s}};function d(t,e){for(o=t,l=e,n=0;!f&&c&&!i&&n<u.length;n++){var i,a=u[n],d=m.p,p=a[2];t>3?(i=p===e)&&(l=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=r):a[0]<=d&&((i=t<2&&d<a[1])?(o=0,m.v=e,m.n=a[1]):d<p&&(i=t<3||a[0]>e||e>p)&&(a[4]=t,a[5]=e,m.n=p,o=0))}if(i||t>1)return s;throw f=!0,e}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&d(u,p),o=u,l=p;(n=o<2?r:l)||!f;){a||(o?o<3?(o>1&&(m.n=-1),d(o,l)):m.n=l:m.v=l);try{if(c=2,a){if(o||(i="next"),n=a[i]){if(!(n=n.call(a,l)))throw TypeError("iterator result is not an object");if(!n.done)return n;l=n.value,o<2&&(o=0)}else 1===o&&(n=a.return)&&n.call(a),o<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),o=1);a=r}else if((n=(f=m.n<0)?l:t.call(e,m))!==s)break}catch(n){a=r,o=1,l=n}finally{c=1}}return{value:n,done:f}}}(t,a,o),!0),u}var s={};function c(){}function u(){}function f(){}n=Object.getPrototypeOf;var m=[][a]?n(n([][a]())):(e(n={},a,function(){return this}),n),d=f.prototype=c.prototype=Object.create(m);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,e(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=f,e(d,"constructor",f),e(f,"constructor",u),u.displayName="GeneratorFunction",e(f,o,"GeneratorFunction"),e(d),e(d,o,"Generator"),e(d,a,function(){return this}),e(d,"toString",function(){return"[object Generator]"}),(t=function(){return{w:l,m:p}})()}function e(t,r,n,i){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}e=function(t,r,n,i){function o(r,n){e(t,r,function(t){return this._invoke(r,n,t)})}r?a?a(t,r,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[r]=n:(o("next",0),o("throw",1),o("return",2))},e(t,r,n,i)}function r(t,e,r,n,i,a,o){try{var l=t[a](o),s=l.value}catch(t){return void r(t)}l.done?e(s):Promise.resolve(s).then(n,i)}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528"],function(e,n){"use strict";var i,a,o,l,s,c,u,f,m,d,p,v,b,y,h,g,_,x,w,k,j;return{setters:[function(t){i=t.k,a=t.eX,o=t.G,l=t.R,s=t.eY,c=t.cZ},function(t){u=t.c,f=t.r,m=t.H,d=t.o,p=t.n,v=t.aH,b=t.I,y=t.J,h=t.p,g=t.j,_=t.k,x=t.q,w=t.x,k=t.s,j=t.e},null],execute:function(){var n={class:"flex flex-col p-[1.6rem] lib-box !h-full overflow-auto"},S={class:"card"},O={class:"con flex items-center"},P={class:"p-[1.5rem] text-base font-bold"},G={class:"font-normal text-[#919191]"},B={class:"p-[1.5rem] text-base font-bold"},T={class:"font-normal text-[#919191]"},I={class:"chartCon flex flex-wrap w-full justify-between"},M={class:"flex w-[49%]"},N={class:"card w-full flex-1 mb-[1rem]"},R={class:"chart w-full h-[30rem]"},z={class:"flex w-[49%]"},A={class:"card w-full flex-1 mb-[1rem]"},C={class:"chart w-full h-[30rem]"},D={class:"flex w-[49%]"},L={class:"card w-full flex-1 mb-[1rem]"},E={class:"chart w-full h-[30rem]"},F={class:"flex w-[49%]"},H={class:"card w-full flex-1 mb-[1rem]"},K={class:"chart w-full h-[30rem]"},U=u({__name:"real-monitor-dialog",props:{compData:{default:function(){return{}}}},setup:function(e){var c=e,u=f(),U=f(),q=f(),J=f(),X=f(!1),Y=m({cpu_list:[],mem_list:{usage:[],cache:[]},disk_list:{read:[],write:[]},network_list:{tx:[],rx:[]},time_list:[],limit:"",top_limit:"",bottom_limit:""}),Z=null,Q=function(){var e,n=(e=t().m(function e(r){var n,l,s,c,u,f,m,d;return t().w(function(t){for(;;)switch(t.n){case 0:return n=(new Date).getTime(),l=JSON.stringify({id:r.id,dk_status:r.status}),t.n=1,i({request:a({data:l})});case 1:if(s=t.v,c=s.data,s.status){t.n=2;break}return t.a(2,!1);case 2:Y.limit=o(c.limit),Y.top_limit=o(c.tx_total),Y.bottom_limit=o(c.rx_total),Y.time_list.push(n),Y.mem_list.usage.push([n,o(c.usage,!1,null,"MB")]),Y.mem_list.cache.push([n,o(c.cache,!1,null,"MB")]),Y.cpu_list.push([n,c.cpu_usage]),Y.disk_list.read.push([n,o(c.read_total,!1,null,"MB")]),Y.disk_list.write.push([n,o(c.write_total,!1,null,"MB")]),Y.network_list.tx.push([n,o(c.tx,!1,null,"KB")]),Y.network_list.rx.push([n,o(c.rx,!1,null,"KB")]),u=V("cpu"),f=V("mem"),m=V("disk"),d=V("network"),u.xAxis.data=Y.time_list,u.series[0].data=Y.cpu_list,f.series[0].data=Y.mem_list.usage,f.series[1].data=Y.mem_list.cache,m.series[0].data=Y.disk_list.read,m.series[1].data=Y.disk_list.write,d.series[0].data=Y.network_list.tx,d.series[1].data=Y.network_list.rx,$.value=u,tt.value=f,et.value=m,rt.value=d,X.value=!1;case 3:return t.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(i,a){var o=e.apply(t,n);function l(t){r(o,i,a,l,s,"next",t)}function s(t){r(o,i,a,l,s,"throw",t)}l(void 0)})});return function(t){return n.apply(this,arguments)}}(),V=function(t){var e="/MB",r=W();switch(t){case"cpu":r.tooltip.formatter=function(t){var e=t[0];return l(e.data[0])+"<br>"+e.seriesName+": "+e.data[1]+"%"},r.yAxis.min=0,r.series=[{name:"CPU",type:"line",symbol:"none",smooth:!0,itemStyle:{normal:{color:"rgb(0, 153, 238)"}}}];break;case"network":e="/KB";case"mem":case"disk":var n={mem:["内存","缓存"],disk:["读取","写入"],network:["上行","下行"],color:[{mem:["rgb(185, 220, 253)","rgb(185, 220, 253,0.6)","rgb(185, 220, 253,0.3)","rgba(229,147,187)","rgba(229,147,187,0.6)","rgba(229,147,187,0.3)"],disk:["rgb(255, 70, 131)","rgb(255, 70, 131,0.6)","rgb(255, 70, 131,0.3)","rgba(46, 165, 186)","rgba(46, 165, 186,0.6)","rgba(46, 165, 186,0.3)"],network:["rgb(255, 140, 0)","rgb(255, 140, 0,0.6)","rgb(255, 140, 0,0.3)","rgb(30, 144, 255)","rgb(30, 144, 255,0.6)","rgb(30, 144, 255,0.3)"]}]};r.tooltip.formatter=function(t){for(var r=t[0].data[0],n=l(r/1e3),i="",a=0;a<t.length;a++)i+='<span style="display: inline-block; width: 10px; height: 10px; margin-rigth:10px; border-radius: 50%; background: '+t[a].color+';"></span>  '+t[a].seriesName+":",i+=t[a].data[1]+e+(t.length-1!==a?"<br />":"");return"时间:"+n+"<br />"+i},r.legend={top:"18px",data:n[t]},r.series=[{name:n[t][0],type:"line",symbol:"none",itemStyle:{normal:{color:n.color[0][t][0],areaStyle:{}}}},{name:n[t][1],type:"line",symbol:"none",itemStyle:{normal:{color:n.color[0][t][4],areaStyle:{}}}}]}return r},W=function(){return{tooltip:{trigger:"axis",axisPointer:{type:"cross"}},grid:{x:50,y:50,x2:30,y2:30},xAxis:{type:"time",scale:!0,splitNumber:4,boundaryGap:!0,axisLine:{lineStyle:{color:"#666"}},axisLabel:{formatter:function(t){return l(t/1e3,"hh:mm:ss")}}},yAxis:{type:"value",boundaryGap:[0,"100%"],splitLine:{lineStyle:{color:"#ddd"}},axisLine:{lineStyle:{color:"#666"}}}}},$=f(V("cpu")),tt=f(V("mem")),et=f(V("disk")),rt=f(V("network"));return d(function(){X.value=!0,p(function(){var t;t=c.compData.row,p(function(){$.value=V("cpu"),tt.value=V("mem"),et.value=V("disk"),rt.value=V("network"),Q(t),u.value.chart.resize(),U.value.chart.resize(),q.value.chart.resize(),J.value.chart.resize()}),Z=setInterval(function(){Q(c.compData.row)},3e3)})}),v(function(){clearInterval(Z)}),function(t,e){var r=s,i=b("bt-loading");return y((g(),_("div",n,[x("div",S,[e[2]||(e[2]=x("div",{class:"title"},"基础信息",-1)),x("div",O,[x("div",P,[e[0]||(e[0]=w(" 内存限额:",-1)),x("span",G,k(h(Y).limit),1)]),x("div",B,[e[1]||(e[1]=w(" 流量情况:",-1)),x("span",T," 上行:"+k(h(Y).top_limit)+" - 下行:"+k(h(Y).bottom_limit),1)])])]),x("div",I,[x("div",M,[x("div",N,[e[3]||(e[3]=x("div",{class:"title"},"CPU",-1)),x("div",R,[j(r,{ref_key:"CPURef",ref:u,options:h($)},null,8,["options"])])])]),x("div",z,[x("div",A,[e[4]||(e[4]=x("div",{class:"title"},"内存",-1)),x("div",C,[j(r,{ref_key:"memRef",ref:U,options:h(tt)},null,8,["options"])])])]),x("div",D,[x("div",L,[e[5]||(e[5]=x("div",{class:"title"},"磁盘IO",-1)),x("div",E,[j(r,{ref_key:"diskRef",ref:q,options:h(et)},null,8,["options"])])])]),x("div",F,[x("div",H,[e[6]||(e[6]=x("div",{class:"title"},"网络IO",-1)),x("div",K,[j(r,{ref_key:"netRef",ref:J,options:h(rt)},null,8,["options"])])])])])])),[[i,h(X)],[i,"正在获取监控数据,请稍候...","title"]])}}});e("default",c(U,[["__scopeId","data-v-898918a1"]]))}}})}();