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/container-monitor-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",l=i.toStringTag||"@@toStringTag";function o(t,i,a,l){var o=i&&i.prototype instanceof c?i:c,u=Object.create(o.prototype);return e(u,"_invoke",function(t,e,i){var a,l,o,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,l=0,o=r,m.n=e,s}};function d(t,e){for(l=t,o=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)&&(o=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=r):a[0]<=d&&((i=t<2&&d<a[1])?(l=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,l=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),l=u,o=p;(n=l<2?r:o)||!f;){a||(l?l<3?(l>1&&(m.n=-1),d(l,o)):m.n=o:m.v=o);try{if(c=2,a){if(l||(i="next"),n=a[i]){if(!(n=n.call(a,o)))throw TypeError("iterator result is not an object");if(!n.done)return n;o=n.value,l<2&&(l=0)}else 1===l&&(n=a.return)&&n.call(a),l<2&&(o=TypeError("The iterator does not provide a '"+i+"' method"),l=1);a=r}else if((n=(f=m.n<0)?o:t.call(e,m))!==s)break}catch(n){a=r,l=1,o=n}finally{c=1}}return{value:n,done:f}}}(t,a,l),!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,l,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=f,e(d,"constructor",f),e(f,"constructor",u),u.displayName="GeneratorFunction",e(f,l,"GeneratorFunction"),e(d),e(d,l,"Generator"),e(d,a,function(){return this}),e(d,"toString",function(){return"[object Generator]"}),(t=function(){return{w:o,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 l(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:(l("next",0),l("throw",1),l("return",2))},e(t,r,n,i)}function r(t,e,r,n,i,a,l){try{var o=t[a](l),s=o.value}catch(t){return void r(t)}o.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,l,o,s,c,u,f,m,d,p,v,b,y,h,_,g,x,w,k,j,S,O;return{setters:[function(t){i=t.k,a=t.eX,l=t.G,o=t.R,s=t.eY,c=t.cZ},function(t){u=t.c,f=t.r,m=t.H,d=t.aC,p=t.w,v=t.o,b=t.aH,y=t.I,h=t.J,_=t.p,g=t.j,x=t.k,w=t.q,k=t.x,j=t.s,S=t.e,O=t.n},null],execute:function(){var n={class:"flex flex-col !h-full"},P={class:"card"},G={class:"con flex items-center"},B={class:"p-[1.5rem] text-small font-bold"},I={class:"text-[#919191]"},T={class:"p-[1.5rem] text-small font-bold"},A={class:"text-[#919191]"},C={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-[19rem]"},z={class:"flex w-[49%]"},D={class:"card w-full flex-1 mb-[1rem]"},L={class:"chart w-full h-[19rem]"},E={class:"flex w-[49%]"},F={class:"card w-full flex-1 mb-[1rem]"},H={class:"chart w-full h-[19rem]"},K={class:"flex w-[49%]"},U={class:"card w-full flex-1 mb-[1rem]"},q={class:"chart w-full h-[19rem]"},J=u({__name:"container-monitor",props:{compData:{default:function(){return{}}}},setup:function(e){var c=e,u=f(),J=f(),X=f(),Y=f(),Z=f(!1),Q=f(),V=m({cpu_list:[],mem_list:{usage:[],cache:[]},disk_list:{read:[],write:[]},network_list:{tx:[],rx:[]},time_list:[],limit:"",top_limit:"",bottom_limit:""}),W=function(){var e,n=(e=t().m(function e(r){var n,o,s,c,u,f,m,d;return t().w(function(t){for(;;)switch(t.n){case 0:return n=(new Date).getTime(),o=JSON.stringify({id:r.id,dk_status:r.status}),t.n=1,i({request:a({data:o})});case 1:if(s=t.v,c=s.data,s.status){t.n=2;break}return t.a(2,!1);case 2:V.limit=l(c.limit),V.top_limit=l(c.tx_total),V.bottom_limit=l(c.rx_total),V.time_list.push(n),V.mem_list.usage.push([n,l(c.usage,!1,null,"MB")]),V.mem_list.cache.push([n,l(c.cache,!1,null,"MB")]),V.cpu_list.push([n,c.cpu_usage]),V.disk_list.read.push([n,l(c.read_total,!1,null,"MB")]),V.disk_list.write.push([n,l(c.write_total,!1,null,"MB")]),V.network_list.tx.push([n,l(c.tx,!1,null,"KB")]),V.network_list.rx.push([n,l(c.rx,!1,null,"KB")]),u=$("cpu"),f=$("mem"),m=$("disk"),d=$("network"),u.xAxis.data=V.time_list,u.series[0].data=V.cpu_list,f.series[0].data=V.mem_list.usage,f.series[1].data=V.mem_list.cache,m.series[0].data=V.disk_list.read,m.series[1].data=V.disk_list.write,d.series[0].data=V.network_list.tx,d.series[1].data=V.network_list.rx,rt.value=u,nt.value=f,it.value=m,at.value=d,Z.value=!1;case 3:return t.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(i,a){var l=e.apply(t,n);function o(t){r(l,i,a,o,s,"next",t)}function s(t){r(l,i,a,o,s,"throw",t)}o(void 0)})});return function(t){return n.apply(this,arguments)}}(),$=function(t){var e="/MB",r=tt();switch(t){case"cpu":r.tooltip.formatter=function(t){var e=t[0];return o(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=o(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},tt=function(){return{tooltip:{trigger:"axis",axisPointer:{type:"cross"}},grid:{x:50,y:50,x2:30,y2:30},xAxis:{type:"time",scale:!0,splitNumber:2,boundaryGap:!0,axisLine:{lineStyle:{color:"#666"}},axisLabel:{formatter:function(t){return o(t/1e3,"hh:mm:ss")}}},yAxis:{type:"value",boundaryGap:[0,"100%"],splitLine:{lineStyle:{color:"#ddd"}},axisLine:{lineStyle:{color:"#666"}}}}},et=d("tabActive");p(function(){return et.value},function(){"monitor"!==et.value&&(Q.value&&clearInterval(Q.value),Q.value=null)});var rt=f($("cpu")),nt=f($("mem")),it=f($("disk")),at=f($("network"));return v(function(){var t;Z.value=!0,t=c.compData.row,O(function(){rt.value=$("cpu"),nt.value=$("mem"),it.value=$("disk"),at.value=$("network"),u.value.chart.resize(),J.value.chart.resize(),X.value.chart.resize(),Y.value.chart.resize(),W(t)}),Q.value=setInterval(function(){W(c.compData.row)},3e3)}),b(function(){clearInterval(Q.value)}),function(t,e){var r=s,i=y("bt-loading");return h((g(),x("div",n,[w("div",P,[e[2]||(e[2]=w("div",{class:"title"},"基础信息",-1)),w("div",G,[w("div",B,[e[0]||(e[0]=k(" 内存限额:",-1)),w("span",I,j(_(V).limit),1)]),w("div",T,[e[1]||(e[1]=k(" 流量情况:",-1)),w("span",A," 上行:"+j(_(V).top_limit)+" - 下行:"+j(_(V).bottom_limit),1)])])]),w("div",C,[w("div",M,[w("div",N,[e[3]||(e[3]=w("div",{class:"title"},"CPU",-1)),w("div",R,[S(r,{ref_key:"CPURef",ref:u,options:_(rt)},null,8,["options"])])])]),w("div",z,[w("div",D,[e[4]||(e[4]=w("div",{class:"title"},"内存",-1)),w("div",L,[S(r,{ref_key:"memRef",ref:J,options:_(nt)},null,8,["options"])])])]),w("div",E,[w("div",F,[e[5]||(e[5]=w("div",{class:"title"},"磁盘IO",-1)),w("div",H,[S(r,{ref_key:"diskRef",ref:X,options:_(it)},null,8,["options"])])])]),w("div",K,[w("div",U,[e[6]||(e[6]=w("div",{class:"title"},"网络IO",-1)),w("div",q,[S(r,{ref_key:"netRef",ref:Y,options:_(at)},null,8,["options"])])])])])])),[[i,_(Z)],[i,"正在获取监控数据,请稍候...","title"]])}}});e("default",c(J,[["__scopeId","data-v-1999c11c"]]))}}})}();