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/default-page-legacy2.js
!function(){function e(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):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 n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,n,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function l(t,o,u,a){var l=o&&o.prototype instanceof c?o:c,f=Object.create(l.prototype);return r(f,"_invoke",function(t,r,o){var u,a,l,c=0,f=o||[],s=!1,d={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(n,t){return u=n,a=0,l=e,d.n=t,i}};function v(t,r){for(a=t,l=r,n=0;!s&&c&&!o&&n<f.length;n++){var o,u=f[n],v=d.p,p=u[2];t>3?(o=p===r)&&(l=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=e):u[0]<=v&&((o=t<2&&v<u[1])?(a=0,d.v=r,d.n=u[1]):v<p&&(o=t<3||u[0]>r||r>p)&&(u[4]=t,u[5]=r,d.n=p,a=0))}if(o||t>1)return i;throw s=!0,r}return function(o,f,p){if(c>1)throw TypeError("Generator is already running");for(s&&1===f&&v(f,p),a=f,l=p;(n=a<2?e:l)||!s;){u||(a?a<3?(a>1&&(d.n=-1),v(a,l)):d.n=l:d.v=l);try{if(c=2,u){if(a||(o="next"),n=u[o]){if(!(n=n.call(u,l)))throw TypeError("iterator result is not an object");if(!n.done)return n;l=n.value,a<2&&(a=0)}else 1===a&&(n=u.return)&&n.call(u),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);u=e}else if((n=(s=d.n<0)?l:t.call(r,d))!==i)break}catch(n){u=e,a=1,l=n}finally{c=1}}return{value:n,done:s}}}(t,u,a),!0),f}var i={};function c(){}function f(){}function s(){}n=Object.getPrototypeOf;var d=[][u]?n(n([][u]())):(r(n={},u,function(){return this}),n),v=s.prototype=c.prototype=Object.create(d);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,r(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e}return f.prototype=s,r(v,"constructor",s),r(s,"constructor",f),f.displayName="GeneratorFunction",r(s,a,"GeneratorFunction"),r(v),r(v,a,"Generator"),r(v,u,function(){return this}),r(v,"toString",function(){return"[object Generator]"}),(t=function(){return{w:l,m:p}})()}function r(e,n,t,o){var u=Object.defineProperty;try{u({},"",{})}catch(e){u=0}r=function(e,n,t,o){function a(n,t){r(e,n,function(e){return this._invoke(n,t,e)})}n?u?u(e,n,{value:t,enumerable:!o,configurable:!o,writable:!o}):e[n]=t:(a("next",0),a("throw",1),a("return",2))},r(e,n,t,o)}function o(e,n,t,r,o,u,a){try{var l=e[u](a),i=l.value}catch(e){return void t(e)}l.done?n(i):Promise.resolve(i).then(r,o)}function u(e){return function(){var n=this,t=arguments;return new Promise(function(r,u){var a=e.apply(n,t);function l(e){o(a,r,u,l,i,"next",e)}function i(e){o(a,r,u,l,i,"throw",e)}l(void 0)})}}System.register(["./base-lib-legacy.js?v=1777008528","./index-legacy130.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./useController-legacy20.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./ace-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528","./useController-legacy19.js?v=1777008528","./site-legacy.js?v=1777008528","./useStore-legacy2.js?v=1777008528","./useController-legacy13.js?v=1777008528","./useMethod-legacy12.js?v=1777008528","./index-legacy192.js?v=1777008528"],function(n,r){"use strict";var o,a,l,i,c,f,s,d,v,p,y,m,g,b,h,j,_,w,x,S,O,C,V,k,G,T,A,B,E,U,P;return{setters:[function(e){o=e.c,a=e.r,l=e.o,i=e.I,c=e.j,f=e.k,s=e.e,d=e.v,v=e.p,p=e.Q,y=e.q,m=e.x,g=e.y,b=e.F,h=e.B,j=e.C,_=e.J,w=e.aE,x=e.aB,S=e.U,O=e.am,C=e.an,V=e.z},function(e){k=e.B},function(e){G=e.dS,T=e.k,A=e.dT,B=e.dU,E=e.cR,U=e.f},function(e){P=e.g},null,null,null,null,null,null,null,null,null,null,null],execute:function(){var r={class:"flex flex-col"},q={class:"flex items-center justify-between mb-[8px]"},F={key:0},I={class:"h-[44rem] w-full"};n("default",o({__name:"default-page",setup:function(n,o){var z=o.expose,H=U(),M=a("index"),R=a(""),J=a(),K=a("utf-8"),N=a(["utf-8","GBK","GB2312","BIG5"]),Q=a(!1),$=a(!1),D=function(){var e=u(t().m(function e(){var n,r;return t().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,$.value=!0,e.n=1,G({default_type:M.value});case 1:n=e.v,r=n.data,R.value=r.data[M.value].data,K.value=r.data[M.value].encoding||"utf-8","404"===M.value&&(Q.value=Boolean(r.data.auto_create_404)),$.value=!1,e.n=3;break;case 2:e.p=2,e.v;case 3:return e.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}(),L=function(){var e=u(t().m(function e(n){return t().w(function(e){for(;;)switch(e.n){case 0:return $.value=!0,M.value=n,e.n=1,D();case 1:$.value=!1;case 2:return e.a(2)}},e)}));return function(n){return e.apply(this,arguments)}}(),W=function(e){T({loading:"正在设置,请稍后...",request:A({auto_create:e?"1":"0"}),message:!0})},X=function(){var e=u(t().m(function e(){var n;return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,B({default_type:M.value,default_body:R.value,encoding:K.value});case 1:n=e.v,H.request(n);case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return l(function(){D()}),z({onRefresh:function(){M.value="index",D()}}),function(n,t){var o=w,u=E,a=x,l=S,G=O,T=C,A=k,B=V,U=i("bt-loading");return c(),f("div",r,[s(u,{type:"card",modelValue:v(M),"onUpdate:modelValue":t[0]||(t[0]=function(e){return p(M)?M.value=e:null}),onChange:L},{default:d(function(){return[s(o,{label:"新建网站默认页面",name:"index"}),s(o,{label:"404错误页",name:"404",lazy:!0}),s(o,{label:"网站不存在页",name:"not_found",lazy:!0}),s(o,{label:"网站停用后的提示页",name:"stop",lazy:!0})]}),_:1},8,["modelValue"]),s(a,{placement:"top",width:"320","popper-class":"white-popover",trigger:"hover",content:"创建网站时会使用页面模板,不会影响已经存在的网站"},{reference:d(function(){return e(t[4]||(t[4]=[y("i",{class:"absolute right-[2rem] top-[2.4rem] svgtofont-el-question-filled text-warning !text-medium"},null,-1)]))}),_:1}),y("div",q,["404"===v(M)?(c(),f("div",F,[s(l,{modelValue:v(Q),"onUpdate:modelValue":t[1]||(t[1]=function(e){return p(Q)?Q.value=e:null}),onChange:W},{default:d(function(){return e(t[5]||(t[5]=[m("创建网站时自动创建404.html页面",-1)]))}),_:1},8,["modelValue"])])):g("",!0),t[6]||(t[6]=m(" 提示:Ctrl+F 搜索关键字,Ctrl+S 保存,Ctrl+H 查找替换 ",-1)),s(T,{class:"!w-[16rem]",modelValue:v(K),"onUpdate:modelValue":t[2]||(t[2]=function(e){return p(K)?K.value=e:null}),onChange:X},{default:d(function(){return[(c(!0),f(b,null,h(v(N),function(e){return c(),j(G,{key:e,value:e,label:e},null,8,["value","label"])}),128))]}),_:1},8,["modelValue"])]),_((c(),f("div",I,[s(A,{ref_key:"aceEditor",ref:J,"is-request":!1,modelValue:v(R),"onUpdate:modelValue":t[3]||(t[3]=function(e){return p(R)?R.value=e:null}),editorOption:v(P)(),saveEvent:X,class:"h-[40rem] w-full"},null,8,["modelValue","editorOption"]),s(B,{class:"flex !mt-[12px]",type:"primary",onClick:X},{default:d(function(){return e(t[7]||(t[7]=[m("保存",-1)]))}),_:1})])),[[U,v($)]])])}}}))}}})}();