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/rewrite-legacy.js
!function(){function n(n){return function(n){if(Array.isArray(n))return t(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(n){if("string"==typeof n)return t(n,e);var r={}.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(n,e):void 0}}(n)||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(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=Array(t);e<t;e++)r[e]=n[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 n,t,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",i=o.toStringTag||"@@toStringTag";function a(e,o,u,i){var a=o&&o.prototype instanceof c?o:c,s=Object.create(a.prototype);return r(s,"_invoke",function(e,r,o){var u,i,a,c=0,s=o||[],f=!1,p={p:0,n:0,v:n,a:y,f:y.bind(n,4),d:function(t,e){return u=t,i=0,a=n,p.n=e,l}};function y(e,r){for(i=e,a=r,t=0;!f&&c&&!o&&t<s.length;t++){var o,u=s[t],y=p.p,d=u[2];e>3?(o=d===r)&&(a=u[(i=u[4])?5:(i=3,3)],u[4]=u[5]=n):u[0]<=y&&((o=e<2&&y<u[1])?(i=0,p.v=r,p.n=u[1]):y<d&&(o=e<3||u[0]>r||r>d)&&(u[4]=e,u[5]=r,p.n=d,i=0))}if(o||e>1)return l;throw f=!0,r}return function(o,s,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&y(s,d),i=s,a=d;(t=i<2?n:a)||!f;){u||(i?i<3?(i>1&&(p.n=-1),y(i,a)):p.n=a:p.v=a);try{if(c=2,u){if(i||(o="next"),t=u[o]){if(!(t=t.call(u,a)))throw TypeError("iterator result is not an object");if(!t.done)return t;a=t.value,i<2&&(i=0)}else 1===i&&(t=u.return)&&t.call(u),i<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),i=1);u=n}else if((t=(f=p.n<0)?a:e.call(r,p))!==l)break}catch(t){u=n,i=1,a=t}finally{c=1}}return{value:t,done:f}}}(e,u,i),!0),s}var l={};function c(){}function s(){}function f(){}t=Object.getPrototypeOf;var p=[][u]?t(t([][u]())):(r(t={},u,function(){return this}),t),y=f.prototype=c.prototype=Object.create(p);function d(n){return Object.setPrototypeOf?Object.setPrototypeOf(n,f):(n.__proto__=f,r(n,i,"GeneratorFunction")),n.prototype=Object.create(y),n}return s.prototype=f,r(y,"constructor",f),r(f,"constructor",s),s.displayName="GeneratorFunction",r(f,i,"GeneratorFunction"),r(y),r(y,i,"Generator"),r(y,u,function(){return this}),r(y,"toString",function(){return"[object Generator]"}),(e=function(){return{w:a,m:d}})()}function r(n,t,e,o){var u=Object.defineProperty;try{u({},"",{})}catch(n){u=0}r=function(n,t,e,o){function i(t,e){r(n,t,function(n){return this._invoke(t,e,n)})}t?u?u(n,t,{value:e,enumerable:!o,configurable:!o,writable:!o}):n[t]=e:(i("next",0),i("throw",1),i("return",2))},r(n,t,e,o)}function o(n,t,e,r,o,u,i){try{var a=n[u](i),l=a.value}catch(n){return void e(n)}a.done?t(l):Promise.resolve(l).then(r,o)}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy130.js?v=1777008528","./useStore-legacy2.js?v=1777008528","./useController-legacy14.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./ace-legacy.js?v=1777008528","./site-legacy.js?v=1777008528"],function(t,r){"use strict";var u,i,a,l,c,s,f,p,y,d,m,v,b,h,g,j,w,_,k,x,S,C,O,T,A,P,F,G,V,E,I,q,B,U,N,R,z,H,J;return{setters:[function(n){u=n.X,i=n.e,a=n.c7,l=n.cP},function(n){c=n.c,s=n.o,f=n.I,p=n.j,y=n.k,d=n.J,m=n.p,v=n.e,b=n.v,h=n.F,g=n.B,j=n.C,w=n.q,_=n.s,k=n.R,x=n.y,S=n.Q,C=n.x,O=n.g,T=n.am,A=n.an,P=n.z},function(n){F=n.B},function(n){G=n.u},function(n){V=n.i,E=n.t,I=n.o,q=n.a,B=n.f,U=n.b,N=n.h,R=n.s,z=n.c,H=n.d,J=n.e},null,null,null],execute:function(){var r={class:"h-full"},M={key:0,class:"flex items-center justify-between"},Q={class:"flex items-center justify-between"},X=["onClick"],$={class:"flex items-center"},D={class:"my-[12px]"};t("default",c({__name:"rewrite",setup:function(t){var c=G().siteType,K=function(){var n,t,r=u({options:function(){return O(function(){return[{type:"input",label:"模板名称",key:"name",attrs:{placeholder:"请输入模板名称"},rules:[{required:!0,message:"请输入模板名称",trigger:"blur"}]}]})},submit:(n=e().m(function n(t,r){return e().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,r();case 1:return n.n=2,J(t.value);case 2:return n.a(2,n.v)}},n)}),t=function(){var t=this,e=arguments;return new Promise(function(r,u){var i=n.apply(t,e);function a(n){o(i,r,u,a,l,"next",n)}function l(n){o(i,r,u,a,l,"throw",n)}a(void 0)})},function(n,e){return t.apply(this,arguments)})}),a=r.BtForm,l=r.submit;i({title:"另存为模板",area:42,showFooter:!0,component:function(){return v(a,{class:"p-2rem"},null)},onConfirm:l})};return s(V),function(t,e){var o=T,u=A,i=a,s=F,O=P,G=l,V=f("bt-loading");return p(),y("div",r,[d((p(),y("div",null,[["php","proxy","phpasync"].includes(m(c))?(p(),y("div",M,[v(u,{class:"!w-[15rem]",modelValue:m(U),"onUpdate:modelValue":e[0]||(e[0]=function(n){return S(U)?U.value=n:null}),onChange:m(N)},{default:b(function(){return[(p(!0),y(h,null,g(m(I),function(n,t){return p(),j(o,{key:t,value:n},{default:b(function(){return[w("div",Q,[w("span",null,_(n),1),m(q)(n)?(p(),y("span",{key:0,class:"el-icon-close cursor-pointer text-base ml-1rem",onClick:k(function(t){return m(B)({name:n})},["stop"])},null,8,X)):x("",!0)])]}),_:2},1032,["value"])}),128))]}),_:1},8,["modelValue","onChange"]),w("span",$,[e[5]||(e[5]=C("规则转换工具: ",-1)),v(i,{href:"https://www.bt.cn/Tools",target:"_blank"},{default:b(function(){return n(e[4]||(e[4]=[C("Apache转Nginx ",-1),w("i",{class:"svgtofont-el-link"},null,-1)]))}),_:1})])])):x("",!0),w("div",D,[v(s,{id:"staticContentRef",request:!1,class:"!h-[40rem] !w-full border border-dark rounded-base",modelValue:m(R),"onUpdate:modelValue":e[1]||(e[1]=function(n){return S(R)?R.value=n:null}),onSave:e[2]||(e[2]=function(n){return m(z)()})},null,8,["modelValue"])]),w("div",null,[v(O,{type:"primary",onClick:e[3]||(e[3]=function(n){return m(z)()})},{default:b(function(){return n(e[6]||(e[6]=[C("保存",-1)]))}),_:1}),["php","proxy"].includes(m(c))?(p(),j(O,{key:0,onClick:K},{default:b(function(){return n(e[7]||(e[7]=[C("另存为模板",-1)]))}),_:1})):x("",!0)]),v(G,{options:m(H),class:"ml-[20px] mt-[20px]"},null,8,["options"])])),[[V,m(E)],[V,"正在加载内容,请稍候...","title"]])])}}}))}}})}();