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/index-legacy255.js
!function(){function e(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||n(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,u,l=[],i=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{if(!i&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw o}}return l}}(e,t)||n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",u=n.toStringTag||"@@toStringTag";function l(n,r,o,u){var l=r&&r.prototype instanceof c?r:c,s=Object.create(l.prototype);return a(s,"_invoke",function(n,r,o){var a,u,l,c=0,s=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,u=0,l=e,d.n=n,i}};function p(n,r){for(u=n,l=r,t=0;!f&&c&&!o&&t<s.length;t++){var o,a=s[t],p=d.p,b=a[2];n>3?(o=b===r)&&(l=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&p<a[1])?(u=0,d.v=r,d.n=a[1]):p<b&&(o=n<3||a[0]>r||r>b)&&(a[4]=n,a[5]=r,d.n=b,u=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,b){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,b),u=s,l=b;(t=u<2?e:l)||!f;){a||(u?u<3?(u>1&&(d.n=-1),p(u,l)):d.n=l:d.v=l);try{if(c=2,a){if(u||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,u<2&&(u=0)}else 1===u&&(t=a.return)&&t.call(a),u<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==i)break}catch(t){a=e,u=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,o,u),!0),s}var i={};function c(){}function s(){}function f(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=c.prototype=Object.create(d);function b(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,u,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,u,"GeneratorFunction"),a(p),a(p,u,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:b}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function u(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(u("next",0),u("throw",1),u("return",2))},a(e,t,n,r)}function u(e,t,n,r,o,a,u){try{var l=e[a](u),i=l.value}catch(e){return void n(e)}l.done?t(i):Promise.resolve(i).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){u(a,r,o,l,i,"next",e)}function i(e){u(a,r,o,l,i,"throw",e)}l(void 0)})}}System.register(["./index-legacy118.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy131.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./useController-legacy28.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528"],function(n,r){"use strict";var a,u,i,c,s,f,d,p,b,y,m,v,_,h,g,w,j,x,O,T,S,k,C,D,A,I,M,G,N,P,E,V,J,R,q;return{setters:[function(e){a=e._},function(e){u=e.aI,i=e.aJ,c=e.r,s=e.c,f=e.g,d=e.a8,p=e.j,b=e.k,y=e.e,m=e.v,v=e.q,_=e.p,h=e.Q,g=e.C,w=e.y,j=e.x,x=e.J,O=e.K,T=e.bw,S=e.z},function(e){k=e._},function(e){C=e.ht,D=e.hu,A=e.M,I=e.R,M=e.hv,G=e.c,N=e.G,P=e.cQ,E=e.hw,V=e.hx,J=e.db,R=e.cZ},function(e){q=e.u},null],execute:function(){var r=i("CLB-LOG-STORE",function(){var e=c("today"),t=c(""),n=c("");return{currentTab:e,logCustomDate:t,dateTabs:c([{label:"今天",value:"today"},{label:"昨天",value:"yesterday"},{label:"自定义时间",value:"custom"}]),currentDate:n}}),F=function(){return u(r())},U=q().activeTabs,Y=F(),B=Y.logCustomDate,H=Y.currentDate,L=function(){var e=l(o().m(function e(t){var n,r;return o().w(function(e){for(;;)switch(e.n){case 0:if("http"!==U.value){e.n=2;break}return e.n=1,C({load_id:t.load_id,date:H.value});case 1:r=e.v,e.n=4;break;case 2:return e.n=3,D({load_id:t.load_id,date:H.value});case 3:r=e.v;case 4:(n=r).status?window.open("/download?filename="+n.data.filename):A.error("导出失败");case 5:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),Q=function(e){var t="";return"today"===e&&(t=I(new Date,"yyyy-MM-dd")),"yesterday"===e&&(t=I(M(-1),"yyyy-MM-dd")),"custom"===e&&(t=null==B?void 0:B.value),H.value=t,t};function z(e){var n=e.match(/^(\d{2})\/(\w{3})\/(\d{4}):(\d{2}):(\d{2}):(\d{2})/);if(!n)return e;var r=t(n,7),o=r[1],a=r[2],u=r[3],l=r[4],i=r[5],c=r[6],s={Jan:"01",Feb:"02",Mar:"03",Apr:"04",May:"05",Jun:"06",Jul:"07",Aug:"08",Sep:"09",Oct:"10",Nov:"11",Dec:"12"}[a];return"".concat(u,"-").concat(s,"-").concat(o," ").concat(l,":").concat(i,":").concat(c)}var K={class:"p-[2rem] node-clb-http-log"},Z={class:"flex items-center"},$=s({__name:"index",props:{compData:{default:function(){return{row:{load_id:0}}}}},setup:function(t){var n,r=G().mainHeight,u=q().activeTabs,i=F(),s=i.currentTab,C=i.logCustomDate,D=i.dateTabs,I=i.currentDate,M=t,R=f(function(){return M.compData.row}),U=c(-1),Y=function(e){s.value=e,U.value=-1,"custom"!==e&&(C.value="",H())},B=function(e){U.value=-1,e&&(C.value=e,H())},H=function(){te()},$=function(e){"first"===e?(U.value=-1,te()):"next"===e&&te()},W=c("tcpudp"===u.value?[{label:"时间",prop:"time_local",width:180,render:function(e){return z(e.time_local)}},{label:"客户端IP",prop:"remote_addr"},{label:"协议",prop:"protocol"},{label:"响应状态",prop:"status"},{label:"发送大小",prop:"bytes_sent",render:function(e){return N(Number(e.bytes_sent))}},{label:"接收大小",prop:"bytes_received",render:function(e){return N(Number(e.bytes_received))}},{label:"会话耗时(秒)",prop:"session_time",render:function(e){return"".concat(e.session_time)}},{label:"节点地址",prop:"upstream_addr",width:120},{label:"TO大小",prop:"upstream_bytes_sent",render:function(e){return N(Number(e.upstream_bytes_sent))}},{label:"RE大小",prop:"upstream_bytes_received",render:function(e){return N(Number(e.upstream_bytes_received))}},{label:"连接耗时(秒)",prop:"upstream_connect_time",render:function(e){return"".concat(e.upstream_connect_time)}}]:[{label:"时间",prop:"time",render:function(e){return z(e.time)}},{label:"客户端IP",prop:"remote_addr"},{label:"请求类型",prop:"request_method",width:80},{label:"负载节点",prop:"upstream_addr"},{label:"回源耗时(秒)",prop:"upstream_response_time"},{label:"主体大小",prop:"body_bytes_sent",render:function(e){return N(Number(e.body_bytes_sent))}},{label:"传输大小",prop:"bytes_sent",render:function(e){return N(Number(e.bytes_sent))}},{label:"响应状态",prop:"status"},{label:"URI",prop:"request_uri"}]),X=P({request:(n=l(o().m(function e(t){var n,r,a;return o().w(function(e){for(;;)switch(e.n){case 0:if(n={load_id:R.value.load_id,date:Q(s.value),position:U.value,limit:10},"tcpudp"!==u.value){e.n=2;break}return e.n=1,E(n);case 1:a=e.v,e.n=4;break;case 2:return e.n=3,V(n);case 3:a=e.v;case 4:return(r=a.data).msg&&!1===r.status&&A.error(r.msg),U.value=r.data.last_position,e.a(2,{data:r.data.logs||[],total:0,other:{}})}},e)})),function(e){return n.apply(this,arguments)}),columns:W.value}),ee=X.BtTable,te=X.refresh;return d(function(){C.value="",I.value="",s.value="today"}),function(t,n){var o=J,u=T,l=k,i=S,c=a;return p(),b("div",K,[y(c,null,{"header-left":m(function(){return[v("div",Z,[v("div",null,[y(o,{type:"button",modelValue:_(s),"onUpdate:modelValue":n[0]||(n[0]=function(e){return h(s)?s.value=e:null}),options:_(D),onChange:Y,class:"mr-[1rem] !flex-nowrap"},null,8,["modelValue","options"])]),"custom"===_(s)?(p(),g(u,{key:0,modelValue:_(C),"onUpdate:modelValue":n[1]||(n[1]=function(e){return h(C)?C.value=e:null}),type:"date",placeholder:"请选择日期","value-format":"YYYY-MM-DD",onChange:B,class:"ml-2"},null,8,["modelValue"])):w("",!0)])]}),"header-right":m(function(){return[y(l,{class:"ml-[10px]",onRefresh:n[2]||(n[2]=function(e){return $("first")})}),y(i,{type:"success",onClick:n[3]||(n[3]=function(e){return _(L)(_(R))})},{default:m(function(){return e(n[6]||(n[6]=[v("i",{class:"el-icon-download"},null,-1),j(" 导出日志 ",-1)]))}),_:1})]}),content:m(function(){return[y(_(ee),{"min-height":_(r)},null,8,["min-height"])]}),"footer-right":m(function(){return[y(i,{type:"info",text:"",bg:"",onClick:n[4]||(n[4]=function(e){return $("first")})},{default:m(function(){return e(n[7]||(n[7]=[j("首页",-1)]))}),_:1}),x(y(i,{type:"info",text:"",bg:"",onClick:n[5]||(n[5]=function(e){return $("next")})},{default:m(function(){return e(n[8]||(n[8]=[j("下一页",-1)]))}),_:1},512),[[O,_(U)>0]])]}),_:1})])}}});n("default",R($,[["__scopeId","data-v-a754b624"]]))}}})}();