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-legacy35.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function n(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach(function(e){r(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function r(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function u(n,r,o,i){var u=r&&r.prototype instanceof l?r:l,s=Object.create(u.prototype);return a(s,"_invoke",function(n,r,o){var a,i,u,l=0,s=o||[],f=!1,m={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return a=e,i=0,u=t,m.n=n,c}};function p(n,r){for(i=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,a=s[e],p=m.p,v=a[2];n>3?(o=v===r)&&(u=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=t):a[0]<=p&&((o=n<2&&p<a[1])?(i=0,m.v=r,m.n=a[1]):p<v&&(o=n<3||a[0]>r||r>v)&&(a[4]=n,a[5]=r,m.n=v,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,v){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,v),i=s,u=v;(e=i<2?t:u)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,u)):m.n=u:m.v=u);try{if(l=2,a){if(i||(o="next"),e=a[o]){if(!(e=e.call(a,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,i<2&&(i=0)}else 1===i&&(e=a.return)&&e.call(a),i<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=t}else if((e=(f=m.n<0)?u:n.call(r,m))!==c)break}catch(e){a=t,i=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,o,i),!0),s}var c={};function l(){}function s(){}function f(){}e=Object.getPrototypeOf;var m=[][r]?e(e([][r]())):(a(e={},r,function(){return this}),e),p=f.prototype=l.prototype=Object.create(m);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,a(t,i,"GeneratorFunction")),t.prototype=Object.create(p),t}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:u,m:v}})()}function a(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}a=function(t,e,n,r){function i(e,n){a(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},a(t,e,n,r)}function i(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function u(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function u(t){i(a,r,o,u,c,"next",t)}function c(t){i(a,r,o,u,c,"throw",t)}u(void 0)})}}function c(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t)||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 l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}System.register(["./index-legacy118.js?v=1777008528","./index-legacy217.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./index-legacy317.js?v=1777008528","./useMethods-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./use-socket-request-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528"],function(t,e){"use strict";var r,a,i,l,s,f,m,p,v,d,y,b,g,h,_,w,k,j,S,O,x,E,P,T,N,C,D,q,A,I,M,G,L,R,U,V,J,F,H,B,W,K,Z,$,z,Q,X,Y,tt,et,nt,rt,ot;return{setters:[function(t){r=t._},function(t){a=t._},function(t){i=t.L,l=t.c,s=t.e,f=t._,m=t.k,p=t.fR,v=t.G,d=t.fS,y=t.M,b=t.w,g=t.fT,h=t.U,_=t.fU,w=t.df,k=t.V,j=t.fV,S=t.fW,O=t.c7,x=t.c_,E=t.d2,P=t.d3,T=t.d4,N=t.cZ},function(t){C=t._},function(t){D=t.f,q=t.o,A=t.c,I=t.g,M=t.r,G=t.C,L=t.t,R=t.e,U=t.N},function(t){V=t.H,J=t.r,F=t.V,H=t.c,B=t.w,W=t.o,K=t.n,Z=t.a8,$=t.I,z=t.j,Q=t.k,X=t.e,Y=t.v,tt=t.q,et=t.p,nt=t.x,rt=t.J},function(t){ot=t.u},null,null,null,null],execute:function(){var at,it,ut=i().refs,ct=ut.customLimit,lt=ut.cpuAndMemData,st=ut.maxCPU,ft=ut.maxMem,mt=ut.maxGpus,pt=l(),vt=pt.mainHeight,dt=pt.enterpriseRec,yt=V({loading:!1,total:0,p:1,limit:Number(localStorage.getItem("dockercontainerlimit"))||20,usedList:[],search:""}),bt=J([]),gt=F([]),ht=J([]),_t=J("all"),wt=[{label:"启动",value:"start",event:D},{label:"重启",value:"restart",event:D},{label:"停止",value:"stop",event:D},{label:"强制停止",value:"kill",event:D},{label:"暂停",value:"pause",event:D},{label:"恢复",value:"unpause",event:D},{label:"删除",value:"delete",event:D}],kt=[{active:!0,content:"创建容器",event:function(){return q()}},{content:"日志管理",event:function(){return Vt()}},{content:"清理容器",event:function(){return Ft()}}].concat(c(dt.value?[{content:"安全检测",event:(at=u(o().m(function t(){return o().w(function(t){for(;;)switch(t.n){case 0:s({title:"安全检测",area:70,component:function(){return f(function(){return e.import("./index-legacy494.js?v=1777008528")},void 0,e.meta.url)}});case 1:return t.a(2)}},t)})),function(){return at.apply(this,arguments)})}]:[])),jt=function(){ct.value.container=!0,localStorage.setItem("dockercontainerlimit",String(yt.limit)),Ut(!1)},St=function(){var t=u(o().m(function t(e,n){return o().w(function(t){for(;;)switch(t.n){case 0:m({loading:"正在设置容器状态,请稍候...",request:h({data:JSON.stringify({id:e.id,status:n})}),message:!0,success:Ut});case 1:return t.a(2)}},t)}));return function(e,n){return t.apply(this,arguments)}}(),Ot=function(){var t=u(o().m(function t(e){return o().w(function(t){for(;;)switch(t.n){case 0:m({loading:"正在获取容器目录,请稍候...",request:_({data:JSON.stringify({id:e.id})}),success:function(t){w("Path",t.data.path),window.location.href=window.location.origin+"/files"},error:function(t){y.error((null==t?void 0:t.msg)||"获取容器目录失败")}});case 1:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),xt=function(){var t=u(o().m(function t(e){var n;return o().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,b({title:"删除容器【".concat(e.name,"】"),content:"删除容器【".concat(e.name,"】,是否继续操作?")});case 1:m({loading:"正在删除容器,请稍候...",request:k({data:JSON.stringify({id:e.id})}),message:!0,success:Ut}),t.n=3;break;case 2:t.p=2,n=t.v,console.log(n);case 3:return t.a(2)}},t,null,[[0,2]])}));return function(e){return t.apply(this,arguments)}}(),Et=function(){var t=u(o().m(function t(e,n){return o().w(function(t){for(;;)switch(t.n){case 0:m({loading:"正在设置容器置顶,请稍候...",request:j({type:"top"==n?"add":"del",container_name:e.name}),message:!0,success:function(){e.is_top="top"==n?1:0,Gt()}});case 1:return t.a(2)}},t)}));return function(e,n){return t.apply(this,arguments)}}(),Pt=function(){var t=u(o().m(function t(){var e,n,r;return o().w(function(t){for(;;)switch(t.n){case 0:if(yt.p=1,""!==yt.search){t.n=1;break}return yt.total=bt.value.length,Ut(!1),t.a(2);case 1:e=yt.search.toLowerCase(),n=["name","id","image"],r=bt.value.filter(function(t){return n.some(function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.toLowerCase().includes(e)})}),yt.total=r.length,gt.value=A({limit:yt.limit,list:r,p:yt.p})||[];case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),Tt=J(I({reNameEvent:function(t){return M(t)},realMonitorEvent:function(t){return G(t)},terminalEvent:L,dirEvent:Ot,logDataEvent:function(t){return Vt(t)},deleteDataEvent:xt,conDetailEvent:R,setStatusEvent:St,openContainerBackups:function(t){return Jt(t)},openProxyDetails:function(t){return R(t,"proxy")},changeTaskTopEvent:Et,moreEvent:function(t,e){switch(t){case"terminal":L(e);break;case"reName":M(e);break;case"realMonitor":G(e);break;case"proxyDetails":R(e,"proxy");break;case"dir":Ot(e);break;case"log":Vt(e)}},setStatusTitle:(it=u(o().m(function t(e){var r;return o().w(function(t){for(;;)switch(t.n){case 0:if("all"!==e){t.n=2;break}return _t.value=e,t.n=1,Ut();case 1:return t.a(2,t.v);case 2:gt.value=(null===(r=ht.value[e])||void 0===r?void 0:r.map(function(t){var e=bt.value.find(function(e){return e.id===t.id});return n(n({},t),{},{backup_count:(null==e?void 0:e.backup_count)||0,remark:(null==e?void 0:e.remark)||""})}))||[];case 3:return t.a(2)}},t)})),function(t){return it.apply(this,arguments)}),statusFilterKey:_t})),Nt=null,Ct=function(){var t;null===(t=Nt)||void 0===t||t.socketDestroy(),Nt=ot("/ws_model")},Dt=function(){var t=u(o().m(function t(e){var n,r;return o().w(function(t){for(;;)switch(t.n){case 0:try{(n=e).data.container_stats_data&&It(n.data),n.end&&(null===(r=Nt)||void 0===r||r.socketRequest({params:{model_index:"btdocker",mod_name:"container",def_name:"get_all_stats",ws_callback:"get_all_stats"},onMessage:Dt}))}catch(o){}case 1:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),qt=function(){var t=u(o().m(function t(){var e,n;return o().w(function(t){for(;;)switch(t.n){case 0:Ct(),n={model_index:"btdocker",mod_name:"container",def_name:"get_all_stats",ws_callback:"get_all_stats"},null===(e=Nt)||void 0===e||e.socketRequest({params:n,onMessage:Dt});case 1:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),At=function(t){return t.id},It=function(t){if(t.container_stats_data){var e=t.container_stats_data;gt.value.forEach(function(t){if("running"===t.status){var n=e.find(function(e){return e.id==t.id});n&&(lt.value[t.id]={cpu_usage:n.cpu_usage||0,mem_percent:n.mem_percent||0})}})}},Mt=function(){var t;null===(t=Nt)||void 0===t||t.socketDestroy(),Nt=null,yt.loading=!1,yt.total=0,yt.p=1,yt.search="",yt.usedList=[],yt.limit=Number(localStorage.getItem("dockercontainerlimit"))||20,bt.value=[],gt.value=[],ht.value=[]},Gt=function(){bt.value=bt.value.sort(function(t,e){return 1==t.is_top&&1!=e.is_top?-1:1!=t.is_top&&1==e.is_top?1:t.created_time>e.created_time?-1:1}),gt.value=A({limit:yt.limit,list:bt.value,p:yt.p})||[]},Lt=function(){setTimeout(function(){vt.value>900?yt.limit=20:yt.limit=10},0)},Rt=!0,Ut=function(){var t=u(o().m(function t(e){return o().w(function(t){for(;;)switch(t.n){case 0:if(!1!==e){t.n=1;break}return gt.value=A(n(n({},yt),{},{list:bt.value}))||[],t.a(2);case 1:return Rt&&(yt.loading=!0),t.n=2,m({request:p(),data:{container_list:Array,grouped_by_status:Object,mem_total:Number,online_cpus:Number,gpu:Number},success:function(t){Rt=!1;var e=t.container_list;t.container_list.forEach(function(t){lt.value[t.id]={cpu_usage:0,mem_percent:0}}),bt.value=e,yt.total=e.length,gt.value=A(n(n({},yt),{},{list:e}))||[],yt.loading=!1,ht.value=t,st.value=t.online_cpus,ft.value=Number(v(Number(t.mem_total),!1,0,"MB")),mt.value=t.gpu||0}});case 2:return t.n=3,m({request:d(),data:Array,success:function(t){bt.value.forEach(function(e,n){var r=t.find(function(t){return t.id===e.id});r&&(e.backup_count=r.backup_count,e.remark=r.remark)}),qt()}});case 3:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),Vt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!bt.value.length)return y.error("容器列表为空");s({component:function(){return f(function(){return e.import("./index-legacy454.js?v=1777008528")},void 0,e.meta.url)},title:"容器日志",area:92,compData:{row:t,list:bt.value}})},Jt=function(t){return s({component:function(){return f(function(){return e.import("./index-legacy455.js?v=1777008528")},void 0,e.meta.url)},title:"备份容器 - ["+t.name+"]",area:79,compData:{row:t}})},Ft=function(){var t=u(o().m(function t(){return o().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,b({content:"将删除所有已停止、未使用的容器,是否继续?",title:"清理容器",width:"42rem",type:"check",check:{content:'删除<span class="text-danger">所有</span>容器,包含正在运行的容器',onConfirm:function(){var t=u(o().m(function t(e){return o().w(function(t){for(;;)switch(t.n){case 0:yt.loading=!0,m({request:g({type:e?1:0}),message:!0,success:Ut,error:function(){yt.loading=!1}});case 1:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()}});case 1:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),Ht={class:"relative container-table-tab"},Bt={class:"flex items-center"},Wt=H({__name:"index",setup:function(t,e){var n=e.expose,s=i(),f=s.refs,m=f.refreshWs,p=f.isRefreshTableList,v=f.customLimit,d=s.resetRefresh,y=l().mainHeight,b=J(null);return B(function(){return m.value},function(t){t&&(m.value=!1,qt())}),B(function(){return p.value},function(t){t&&(d(),Ut())}),W(u(o().m(function t(){return o().w(function(t){for(;;)switch(t.n){case 0:Tt.value=S(JSON.parse(localStorage.getItem("dockerContainerTableColumn")||"[]")||[],Tt.value),Ut(),K(function(){v.value.container||Lt()});case 1:return t.a(2)}},t)}))),n({init:Ut,destroy:Mt}),Z(function(){return Mt()}),function(t,e){var n=C,o=O,i=x,u=E,l=P,s=T,f=a,m=r,p=$("bt-loading");return z(),Q("div",Ht,[X(m,null,{"header-left":Y(function(){return[tt("div",Bt,[X(n,{options:et(kt)},null,8,["options"]),X(o,{class:"ml-[1.6rem]",onClick:et(U)},{default:Y(function(){return c(e[3]||(e[3]=[nt("需求反馈",-1)]))}),_:1},8,["onClick"]),X(o,{class:"ml-[1.6rem]",href:"https://www.bt.cn/bbs/thread-140412-1-1.html"},{default:Y(function(){return c(e[4]||(e[4]=[nt(">>使用帮助",-1)]))}),_:1})])]}),"header-right":Y(function(){return[X(i,{class:"!w-[26rem] mr-1rem",modelValue:et(yt).search,"onUpdate:modelValue":e[0]||(e[0]=function(t){return et(yt).search=t}),onSearch:et(Pt),placeholder:"请输入容器名、ID、容器镜像"},null,8,["modelValue","onSearch"]),X(u,{name:"dockerContainerTableColumn",column:et(Tt),tableRef:et(b)},null,8,["column","tableRef"])]}),content:Y(function(){return[rt(X(l,{ref_key:"containerTable",ref:b,key:"containerTable",column:et(Tt),data:et(gt),"row-key":et(At),description:"容器列表为空","max-height":et(y)-230},null,8,["column","data","row-key","max-height"]),[[p,et(yt).loading],[p,"正在加载容器列表,请稍后...","title"]])]}),"footer-left":Y(function(){return[X(s,{"table-ref":et(b),options:et(wt)},null,8,["table-ref","options"])]}),"footer-right":Y(function(){return[X(f,{page:et(yt).p,"onUpdate:page":e[1]||(e[1]=function(t){return et(yt).p=t}),row:et(yt).limit,"onUpdate:row":e[2]||(e[2]=function(t){return et(yt).limit=t}),useStorage:!1,total:et(yt).total,onChange:et(jt)},null,8,["page","row","total","onChange"])]}),_:1})])}}});t("default",N(Wt,[["__scopeId","data-v-b42b5680"]]))}}})}();