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-legacy40.js
!function(){function t(t){return function(t){if(Array.isArray(t))return n(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 n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(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 n(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,n,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function a(e,o,i,u){var a=o&&o.prototype instanceof l?o:l,s=Object.create(a.prototype);return r(s,"_invoke",function(e,r,o){var i,u,a,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:m,f:m.bind(t,4),d:function(n,e){return i=n,u=0,a=t,p.n=e,c}};function m(e,r){for(u=e,a=r,n=0;!f&&l&&!o&&n<s.length;n++){var o,i=s[n],m=p.p,v=i[2];e>3?(o=v===r)&&(a=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=m&&((o=e<2&&m<i[1])?(u=0,p.v=r,p.n=i[1]):m<v&&(o=e<3||i[0]>r||r>v)&&(i[4]=e,i[5]=r,p.n=v,u=0))}if(o||e>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&&m(s,v),u=s,a=v;(n=u<2?t:a)||!f;){i||(u?u<3?(u>1&&(p.n=-1),m(u,a)):p.n=a:p.v=a);try{if(l=2,i){if(u||(o="next"),n=i[o]){if(!(n=n.call(i,a)))throw TypeError("iterator result is not an object");if(!n.done)return n;a=n.value,u<2&&(u=0)}else 1===u&&(n=i.return)&&n.call(i),u<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((n=(f=p.n<0)?a:e.call(r,p))!==c)break}catch(n){i=t,u=1,a=n}finally{l=1}}return{value:n,done:f}}}(e,i,u),!0),s}var c={};function l(){}function s(){}function f(){}n=Object.getPrototypeOf;var p=[][i]?n(n([][i]())):(r(n={},i,function(){return this}),n),m=f.prototype=l.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,r(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t}return s.prototype=f,r(m,"constructor",f),r(f,"constructor",s),s.displayName="GeneratorFunction",r(f,u,"GeneratorFunction"),r(m),r(m,u,"Generator"),r(m,i,function(){return this}),r(m,"toString",function(){return"[object Generator]"}),(e=function(){return{w:a,m:v}})()}function r(t,n,e,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}r=function(t,n,e,o){function u(n,e){r(t,n,function(t){return this._invoke(n,e,t)})}n?i?i(t,n,{value:e,enumerable:!o,configurable:!o,writable:!o}):t[n]=e:(u("next",0),u("throw",1),u("return",2))},r(t,n,e,o)}function o(t,n,e,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void e(t)}a.done?n(c):Promise.resolve(c).then(r,o)}function i(t){return function(){var n=this,e=arguments;return new Promise(function(r,i){var u=t.apply(n,e);function a(t){o(u,r,i,a,c,"next",t)}function c(t){o(u,r,i,a,c,"throw",t)}a(void 0)})}}System.register(["./index-legacy118.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./useMethods-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528"],function(n,r){"use strict";var o,u,a,c,l,s,f,p,m,v,h,y,d,b,g,w,j,O,C,S,_,x,k,N,T,A,R,L,P,W,B,G,q;return{setters:[function(t){o=t._},function(t){u=t.L,a=t.cU,c=t.k,l=t.eC,s=t.w,f=t.eD,p=t.e,m=t._,v=t.eE,h=t.c,y=t.dc,d=t.da,b=t.R},function(t){g=t.b,w=t.e,j=t.g},function(t){O=t.H,C=t.r,S=t.c,_=t.w,x=t.e,k=t.aW,N=t.aF,T=t.o,A=t.a8,R=t.j,L=t.C,P=t.v,W=t.q,B=t.p},function(t){G=t.c,q=t.N},null,null,null],execute:function(){var E,F=u().refs,H=F.customLimit,I=F.isRefreshStorageList,M=O({isRefresh:!0}),D=C([]),J=function(){var t=i(e().m(function t(n,r,o,u){var a,c,l;return e().w(function(t){for(;;)switch(t.n){case 0:return a=u.label,c=u.value,l=function(){var t=i(e().m(function t(n,r){var o,i;return e().w(function(t){for(;;)switch(t.n){case 0:o=n.Name,i=c,t.n="delete"===i?1:3;break;case 1:return t.n=2,f({data:JSON.stringify({name:o})});case 2:return t.a(2,t.v);case 3:return t.a(2)}},t)}));return function(n,e){return t.apply(this,arguments)}}(),t.n=1,n({title:"批量".concat(a,"存储卷"),content:"批量".concat(a,"已选的存储卷,是否继续操作!"),column:[{label:"存储卷",prop:"Name"},g()],onConfirm:function(){var t=i(e().m(function t(){return e().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r(l);case 1:return I.value=!0,t.a(2,!1)}},t)}));return function(){return t.apply(this,arguments)}}()});case 1:return t.a(2)}},t)}));return function(n,e,r,o){return t.apply(this,arguments)}}(),U=[{active:!0,label:"添加存储卷",onClick:function(){p({component:function(){return m(function(){return r.import("./index-legacy400.js?v=1777008528")},void 0,r.meta.url)},title:"添加存储卷",area:58,btn:"添加"})}},{label:"清理存储卷",onClick:(E=i(e().m(function t(){return e().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,s({type:"calc",title:"清理存储卷",content:"您真的要清理所有未被容器使用的存储卷吗?(可能不会包含您自己创建的卷)"});case 1:c({request:v(),message:!0,loading:"正在清理存储卷,请稍后...",success:function(){I.value=!0}});case 2:return t.a(2)}},t)})),function(){return E.apply(this,arguments)})},{type:"link",label:"需求反馈",class:"ml-[2rem]",onClick:function(){q()}}],$=function(){var t=i(e().m(function t(n){return e().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,s({type:"calc",title:"删除存储卷【".concat(n.Name,"】"),content:"您真的要删除存储卷【".concat(n.Name,"】吗?")});case 1:c({request:f({data:JSON.stringify({name:n.Name})}),message:!0,success:function(){I.value=!0}});case 2:return t.a(2)}},t)}));return function(n){return t.apply(this,arguments)}}(),z=a([{label:"删除项目",value:"delete",event:J}]),K=function(){var t=i(e().m(function t(n){var r;return e().w(function(t){for(;;)switch(t.n){case 0:if(I.value=!1,M.isRefresh){t.n=1;break}return t.a(2,{data:G({limit:n.limit,list:D.value,p:n.p})||[],total:D.value.length});case 1:return M.isRefresh=!1,t.n=2,c({request:l(),data:Array});case 2:return r=t.v,D.value=r,t.a(2,{data:G({limit:n.limit,list:D.value,p:n.p})||[],total:D.value.length})}},t)}));return function(n){return t.apply(this,arguments)}}(),Q=function(t,n){setTimeout(function(){H.value.storage||function(t,n){setTimeout(function(){t.value>900?n.value.limit=20:n.value.limit=10},0)}(t,n)},0)},V={class:"flex items-center"};n("default",S({__name:"index",setup:function(n){var r=u().refs.isRefreshStorageList,a=h().mainHeight,c=y({options:U}).BtOperation;_(function(){return r.value},function(t){t&&(M.isRefresh=!0,v())});var l=d({request:function(t){return K(t)},columns:[w({key:"Name"}),{label:"存储卷",prop:"Name",minWidth:100,render:function(t){return x(k,{placement:"top"},{default:function(){return x("div",null,[t.Name])},content:function(){return x("div",null,[t.Name])}})}},{label:"挂载点",prop:"Mountpoint",minWidth:100,isCustom:!0,showOverflowTooltip:!0},{label:"所属容器",prop:"container",minWidth:100,isCustom:!0},{label:"设备",prop:"Driver",minWidth:100,isCustom:!0},{label:"创建时间",prop:"CreatedAt",minWidth:100,isCustom:!0,render:function(t){return b(t.CreatedAt)}},{label:"标签",prop:"Labels",minWidth:100,showOverflowTooltip:!0,isCustom:!0,render:function(t){return t.Labels?(Object.entries(t.Labels)||[]).map(function(t){return"".concat(t[0],":").concat(t[1])}).join(","):N("span","")}},j([{onClick:$,title:"删除"}])],extension:[z]}),s=l.BtTable,f=l.BtPage,p=l.BtBatch,m=l.BtColumn,v=l.refresh,g=l.param;return T(i(e().m(function t(){return e().w(function(t){for(;;)switch(t.n){case 0:Q(a,g);case 1:return t.a(2)}},t)}))),A(function(){M.isRefresh=!0,D.value=[]}),function(n,e){var r=o;return R(),L(r,{class:""},{"header-left":P(function(){return[W("div",V,[x(B(c))])]}),"header-right":P(function(){return[x(B(m))]}),content:P(function(){return[x(B(s),{key:"storageTable","max-height":B(a)-220},null,8,["max-height"])]}),"footer-left":P(function(){return[x(B(p))]}),"footer-right":P(function(){return[x(B(f))]}),popup:P(function(){return t(e[0]||(e[0]=[]))}),_:1})}}}))}}})}();