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-legacy541.js
!function(){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,l,r="function"==typeof Symbol?Symbol:{},u=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function o(e,r,u,a){var o=r&&r.prototype instanceof c?r:c,s=Object.create(o.prototype);return n(s,"_invoke",function(e,n,r){var u,a,o,c=0,s=r||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return u=e,a=0,o=t,d.n=n,i}};function p(e,n){for(a=e,o=n,l=0;!f&&c&&!r&&l<s.length;l++){var r,u=s[l],p=d.p,m=u[2];e>3?(r=m===n)&&(o=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=t):u[0]<=p&&((r=e<2&&p<u[1])?(a=0,d.v=n,d.n=u[1]):p<m&&(r=e<3||u[0]>n||n>m)&&(u[4]=e,u[5]=n,d.n=m,a=0))}if(r||e>1)return i;throw f=!0,n}return function(r,s,m){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,m),a=s,o=m;(l=a<2?t:o)||!f;){u||(a?a<3?(a>1&&(d.n=-1),p(a,o)):d.n=o:d.v=o);try{if(c=2,u){if(a||(r="next"),l=u[r]){if(!(l=l.call(u,o)))throw TypeError("iterator result is not an object");if(!l.done)return l;o=l.value,a<2&&(a=0)}else 1===a&&(l=u.return)&&l.call(u),a<2&&(o=TypeError("The iterator does not provide a '"+r+"' method"),a=1);u=t}else if((l=(f=d.n<0)?o:e.call(n,d))!==i)break}catch(l){u=t,a=1,o=l}finally{c=1}}return{value:l,done:f}}}(e,u,a),!0),s}var i={};function c(){}function s(){}function f(){}l=Object.getPrototypeOf;var d=[][u]?l(l([][u]())):(n(l={},u,function(){return this}),l),p=f.prototype=c.prototype=Object.create(d);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,n(e,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,n(p,"constructor",f),n(f,"constructor",s),s.displayName="GeneratorFunction",n(f,a,"GeneratorFunction"),n(p),n(p,a,"Generator"),n(p,u,function(){return this}),n(p,"toString",function(){return"[object Generator]"}),(e=function(){return{w:o,m:m}})()}function n(e,t,l,r){var u=Object.defineProperty;try{u({},"",{})}catch(e){u=0}n=function(e,t,l,r){function a(t,l){n(e,t,function(e){return this._invoke(t,l,e)})}t?u?u(e,t,{value:l,enumerable:!r,configurable:!r,writable:!r}):e[t]=l:(a("next",0),a("throw",1),a("return",2))},n(e,t,l,r)}function t(e,n,t,l,r,u,a){try{var o=e[u](a),i=o.value}catch(e){return void t(e)}o.done?n(i):Promise.resolve(i).then(l,r)}function l(e){return function(){var n=this,l=arguments;return new Promise(function(r,u){var a=e.apply(n,l);function o(e){t(a,r,u,o,i,"next",e)}function i(e){t(a,r,u,o,i,"throw",e)}o(void 0)})}}function r(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return u(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}(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 u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,l=Array(n);t<n;t++)l[t]=e[t];return l}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy365.js?v=1777008528","./index-legacy118.js?v=1777008528","./index-legacy130.js?v=1777008528","./useController-legacy20.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy190.js?v=1777008528","./form-item-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy3.js?v=1777008528","./index-legacy116.js?v=1777008528","./useStore-legacy2.js?v=1777008528","./site-legacy.js?v=1777008528","./index-legacy206.js?v=1777008528","./ace-legacy.js?v=1777008528","./useController-legacy19.js?v=1777008528","./useController-legacy13.js?v=1777008528","./useMethod-legacy12.js?v=1777008528","./index-legacy192.js?v=1777008528"],function(n,t){"use strict";var u,a,o,i,c,s,f,d,p,m,v,y,b,h,_,g,x,w,k,V,j,C,O,P,U,S,I,z,B,G,L,F,T,A,R,E,H,K,M,q,J,N,Q,W,Z,D,X,Y,$,ee,ne,te,le,re,ue,ae,oe,ie,ce,se,fe,de,pe,me,ve,ye,be,he,_e,ge,xe,we;return{setters:[function(e){u=e.cO,a=e.cP,o=e.dc,i=e.d3,c=e.d4,s=e.dp,f=e.cZ},function(e){d=e.c,p=e.w,m=e.I,v=e.j,y=e.k,b=e.J,h=e.p,_=e.C,g=e.v,x=e.e,w=e.q,k=e.F,V=e.B,j=e.K,C=e.x,O=e.ap,P=e.ad,U=e.am,S=e.an,I=e.z,z=e.G,B=e.ab,G=e.o,L=e.r,F=e.y,T=e.Q,A=e.U},function(e){R=e.t,E=e.u,H=e.v,K=e.w,M=e.x,q=e.y,J=e.z,N=e.f,Q=e.A,W=e.B,Z=e.C,D=e.D,X=e.E,Y=e.F,$=e.G,ee=e.H,ne=e.I,te=e.J,le=e.K,re=e.L,ue=e.M,ae=e.N,oe=e.T,ie=e.O,ce=e.P,se=e.Q,fe=e.R,de=e.S,pe=e.U,me=e.V,ve=e.W,ye=e.X,be=e.Y,he=e.Z,_e=e._},function(e){ge=e._},function(e){xe=e.B},function(e){we=e.g},null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){var t={class:"p-[20px]"},ke={class:"pt-[1.6rem]"},Ve={class:"flex items-center"},je={class:"ml-[20px]"},Ce=d({__name:"cache",setup:function(e,n){var l=n.expose;return p(function(){return W.value.proxy_cache},function(e){if(e){H.status=e.cache_status;var n="",t="m";e.expires.length>1&&(n=e.expires.slice(0,-1),t=e.expires.slice(-1)),H.time=n,H.unit=t}}),l({onConfirm:R}),function(e,n){var l=O,o=P,i=u,c=U,s=S,f=I,d=z,p=B,G=a,L=m("bt-loading");return v(),y("div",t,[b((v(),_(p,{ref_key:"cacheFormRef",ref:q,class:"h-[40rem]",model:h(H),"label-width":"100px",rules:h(J),disabled:h(N)},{default:g(function(){return[x(o,{label:"缓存开关",prop:"status"},{default:g(function(){return[x(l,{modelValue:h(H).status,"onUpdate:modelValue":n[0]||(n[0]=function(e){return h(H).status=e}),onChange:h(R)},null,8,["modelValue","onChange"])]}),_:1}),b(w("div",ke,[x(o,{label:"缓存时间",prop:"time"},{default:g(function(){return[w("div",Ve,[x(i,{modelValue:h(H).time,"onUpdate:modelValue":n[1]||(n[1]=function(e){return h(H).time=e})},null,8,["modelValue"]),x(o,{prop:"unit"},{default:g(function(){return[x(s,{class:"ml-[1rem] !w-[8rem]",modelValue:h(H).unit,"onUpdate:modelValue":n[2]||(n[2]=function(e){return h(H).unit=e}),placeholder:"请选择"},{default:g(function(){return[(v(!0),y(k,null,V(h(K),function(e){return v(),_(c,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])}),128))]}),_:1},8,["modelValue"])]}),_:1})])]}),_:1})],512),[[j,h(H).status]]),b(x(o,{class:"!pt-[1.6rem]",label:" "},{default:g(function(){return[x(f,{type:"primary",onClick:h(R)},{default:g(function(){return r(n[3]||(n[3]=[C("保存",-1)]))}),_:1},8,["onClick"])]}),_:1},512),[[j,h(H).status]]),x(d),x(f,{type:"default",onClick:h(M)},{default:g(function(){return r(n[4]||(n[4]=[C("清理缓存",-1)]))}),_:1},8,["onClick"])]}),_:1},8,["model","rules","disabled"])),[[L,h(E)]]),w("div",je,[x(G,{options:h(Q)},null,8,["options"])])])}}}),Oe={class:"p-[20px]"},Pe={class:"mt-[1.6rem]"},Ue={class:"flex items-center"},Se={class:"ml-[20px]"},Ie=d({__name:"content-compression",setup:function(e){return p(function(){return W.value.gzip},function(e){e?Z(e):D.status=!1}),G(function(){Z(W.value.gzip)}),function(e,n){var t=O,l=P,o=u,i=U,c=S,s=I,f=B,d=a,p=m("bt-loading");return v(),y("div",Oe,[b((v(),_(f,{ref_key:"compressFormRef",ref:$,class:"h-[48rem]",model:h(D),rules:h(ee),"label-width":"100px",disabled:h(N)},{default:g(function(){return[x(l,{label:"内容压缩",prop:"status"},{default:g(function(){return[x(t,{modelValue:h(D).status,"onUpdate:modelValue":n[0]||(n[0]=function(e){return h(D).status=e}),onChange:h(X)},null,8,["modelValue","onChange"])]}),_:1}),b(w("div",Pe,[x(l,{label:"压缩类型",prop:"type"},{default:g(function(){return[x(o,{modelValue:h(D).type,"onUpdate:modelValue":n[1]||(n[1]=function(e){return h(D).type=e}),type:"textarea",width:"42rem",rows:6,resize:"none"},null,8,["modelValue"])]}),_:1}),x(l,{label:"压缩级别",prop:"level"},{default:g(function(){return[x(c,{class:"!w-[42rem]",modelValue:h(D).level,"onUpdate:modelValue":n[2]||(n[2]=function(e){return h(D).level=e})},{default:g(function(){return[(v(),y(k,null,V(9,function(e){return x(i,{key:e,label:e,value:String(e)},null,8,["label","value"])}),64))]}),_:1},8,["modelValue"])]}),_:1}),x(l,{label:"压缩最小长度",prop:"minLength"},{default:g(function(){return[w("div",Ue,[x(o,{modelValue:h(D).minLength,"onUpdate:modelValue":n[3]||(n[3]=function(e){return h(D).minLength=e})},null,8,["modelValue"]),x(l,{prop:"unit"},{default:g(function(){return[x(c,{class:"ml-[1rem] !w-[8rem]",modelValue:h(D).unit,"onUpdate:modelValue":n[4]||(n[4]=function(e){return h(D).unit=e}),placeholder:"请选择"},{default:g(function(){return[(v(!0),y(k,null,V(h(Y),function(e){return v(),_(i,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])}),128))]}),_:1},8,["modelValue"])]}),_:1})])]}),_:1})],512),[[j,h(D).status]]),b(x(l,{label:" ",class:"mt-[1.6rem]"},{default:g(function(){return[x(s,{type:"primary",onClick:h(X)},{default:g(function(){return r(n[5]||(n[5]=[C("保存",-1)]))}),_:1},8,["onClick"])]}),_:1},512),[[j,h(D).status]])]}),_:1},8,["model","rules","disabled"])),[[p,h(E)]]),w("div",Se,[x(d,{options:h(ne)},null,8,["options"])])])}}}),ze=d({__name:"ip-list",setup:function(e){var n=L();p(function(){return W.value.ip_limit},function(e){e?re(e):(ue.white=[],ue.black=[])},{deep:!0});var t=o({options:[{type:"button",label:"添加IP".concat("ipBlackList"===te.value?"黑":"白","名单"),active:!0,onClick:le}]}).BtOperation;return G(function(){re(W.value.ip_limit)}),function(e,l){var u=i,o=c,s=ge,f=a;return v(),y("div",null,[x(s,null,{"header-left":g(function(){return[x(h(t))]}),content:g(function(){return["ipBlackList"!==h(te)?(v(),_(u,{key:0,ref_key:"ipListRef",ref:n,data:h(ue).white,"max-height":390,column:h(ae)},{empty:g(function(){return r(l[0]||(l[0]=[w("div",{class:"flex items-center justify-center"},"当前列表为空",-1)]))}),_:1},8,["data","column"])):(v(),_(u,{key:1,ref_key:"ipListRef",ref:n,data:h(ue).black,"max-height":390,column:h(ae)},{empty:g(function(){return r(l[1]||(l[1]=[w("div",{class:"flex items-center justify-center"},"当前列表为空",-1)]))}),_:1},8,["data","column"]))]}),"footer-left":g(function(){return[x(o,{"table-ref":h(n),options:h(oe)},null,8,["table-ref","options"])]}),_:1}),"ipBlackList"!==h(te)?(v(),_(f,{key:0,class:"mt-[2rem] ml-[1.6rem]",options:[{content:"注意:设置IP白名单后会默认禁止除白名单以外的所有IP访问"}]})):F("",!0)])}}}),Be=d({__name:"http-auth",setup:function(n){p(function(){return W.value.basic_auth},function(e){ce(e)});var t=o({options:[{label:"添加",type:"button",active:!0,onClick:function(){ie()}}]}).BtOperation;return G(l(e().m(function n(){return e().w(function(e){for(;;)switch(e.n){case 0:ce(W.value.basic_auth);case 1:return e.a(2)}},n)}))),function(e,n){var l=i,u=ge,a=m("bt-loading");return v(),_(u,null,{"header-left":g(function(){return[x(h(t))]}),content:g(function(){return[b((v(),_(l,{ref:"siteProxyTable","max-height":500,data:h(se),column:h(fe)},{empty:g(function(){return r(n[0]||(n[0]=[w("div",{class:"flex items-center justify-center"},"当前列表为空",-1)]))}),_:1},8,["data","column"])),[[a,"正在加载中,请稍后...","title"]])]}),_:1})}}}),Ge={class:"p-[20px]"},Le=d({__name:"websocket",setup:function(e){return p(function(){return W.value.websocket},function(e){de(e)}),G(function(){de(W.value.websocket)}),function(e,n){var t=O,l=P,r=B,u=m("bt-loading");return v(),y("div",Ge,[b((v(),_(r,{ref:"customFormRef",model:h(pe),"label-width":"100px",disabled:h(N)},{default:g(function(){return[x(l,{label:"websocket支持","label-width":"100px"},{default:g(function(){return[x(t,{modelValue:h(pe).websocket,"onUpdate:modelValue":n[0]||(n[0]=function(e){return h(pe).websocket=e}),onChange:h(me)},null,8,["modelValue","onChange"])]}),_:1})]}),_:1},8,["model","disabled"])),[[u,h(E)]])])}}}),Fe={class:"flex flex-col"},Te={class:"flex items-center justify-between mb-[8px]"},Ae={class:"h-[44rem] w-full"},Re=d({__name:"set-404-page",setup:function(n,t){var u=t.expose,a=L(""),o=L(),i=L("utf-8"),c=L(["utf-8","GBK","GB2312","BIG5"]),s=L(!1),f=L(!1),d=function(){var n=l(e().m(function n(){return e().w(function(e){for(;;)switch(e.n){case 0:be(a.value,i.value);case 1:return e.a(2)}},n)}));return function(){return n.apply(this,arguments)}}();return G(function(){ve(f,a,i,s)}),u({onRefresh:function(){ve(f,a,i,s)}}),function(e,n){var t=A,l=U,u=S,p=xe,j=I,O=m("bt-loading");return v(),y("div",Fe,[w("div",Te,[w("div",null,[x(t,{modelValue:h(s),"onUpdate:modelValue":n[0]||(n[0]=function(e){return T(s)?s.value=e:null}),onChange:h(ye)},{default:g(function(){return r(n[3]||(n[3]=[C("开启404错误页设置",-1)]))}),_:1},8,["modelValue","onChange"])]),n[4]||(n[4]=C(" 提示:Ctrl+F 搜索关键字,Ctrl+S 保存,Ctrl+H 查找替换 ",-1)),x(u,{class:"!w-[16rem]",modelValue:h(i),"onUpdate:modelValue":n[1]||(n[1]=function(e){return T(i)?i.value=e:null}),onChange:d},{default:g(function(){return[(v(!0),y(k,null,V(h(c),function(e){return v(),_(l,{key:e,value:e,label:e},null,8,["value","label"])}),128))]}),_:1},8,["modelValue"])]),b((v(),y("div",Ae,[x(p,{ref_key:"aceEditor",ref:o,"is-request":!1,modelValue:h(a),"onUpdate:modelValue":n[2]||(n[2]=function(e){return T(a)?a.value=e:null}),editorOption:h(we)(),saveEvent:d,class:"h-[40rem] w-full"},null,8,["modelValue","editorOption"]),x(j,{class:"flex !mt-[12px]",type:"primary",onClick:d},{default:g(function(){return r(n[5]||(n[5]=[C("保存",-1)]))}),_:1})])),[[O,h(f)]])])}}}),Ee={class:"p-[20px]"},He=d({__name:"ipv6-status",setup:function(e,n){return(0,n.expose)({onConfirm:he}),function(e,n){var t=O,l=P,r=B,u=m("bt-loading");return v(),y("div",Ee,[b((v(),_(r,{ref_key:"cacheFormRef",ref:q,class:"h-[40rem]",model:h(H),"label-width":"100px",rules:h(J),disabled:h(N)},{default:g(function(){return[x(l,{label:"监听IPv6",prop:"status"},{default:g(function(){return[x(t,{modelValue:h(W).ipv6_status,"onUpdate:modelValue":n[0]||(n[0]=function(e){return h(W).ipv6_status=e}),onChange:h(he)},null,8,["modelValue","onChange"])]}),_:1})]}),_:1},8,["model","rules","disabled"])),[[u,h(E)]]),n[1]||(n[1]=w("div",{class:"ml-[20px]"},null,-1))])}}});n("default",f(d({__name:"index",setup:function(n){var t=s({type:"card",value:te,options:[{label:"缓存",name:"cache",lazy:!0,render:function(){return x(Ce,null,null)}},{label:"内容压缩",name:"compress",lazy:!0,render:function(){return x(Ie,null,null)}},{label:"IP黑名单",name:"ipBlackList",lazy:!0,render:function(){return x(ze,null,null)}},{label:"IP白名单",name:"ipWhiteList",lazy:!0,render:function(){return x(ze,null,null)}},{label:"http认证",name:"basicauth",lazy:!0,render:function(){return x(Be,null,null)}},{label:"websocket",name:"websocket",lazy:!0,render:function(){return x(Le,null,null)}},{label:"404错误页",name:"404",lazy:!0,render:function(){return x(Re,null,null)}},{label:"IPv6",name:"ipv6",lazy:!0,render:function(){return x(He,null,null)}}]}).BtTabs;return p(function(){return te.value},function(e){_e()}),G(l(e().m(function n(){return e().w(function(e){for(;;)switch(e.n){case 0:_e();case 1:return e.a(2)}},n)}))),function(e,n){return v(),_(h(t),{class:"h-[650px]"})}}}),[["__scopeId","data-v-77b07c2f"]]))}}})}();