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-legacy552.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 n,r,a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",o=a.toStringTag||"@@toStringTag";function i(e,a,u,o){var i=a&&a.prototype instanceof c?a:c,s=Object.create(i.prototype);return t(s,"_invoke",function(e,t,a){var u,o,i,c=0,s=a||[],f=!1,p={p:0,n:0,v:n,a:v,f:v.bind(n,4),d:function(e,t){return u=e,o=0,i=n,p.n=t,l}};function v(e,t){for(o=e,i=t,r=0;!f&&c&&!a&&r<s.length;r++){var a,u=s[r],v=p.p,d=u[2];e>3?(a=d===t)&&(i=u[(o=u[4])?5:(o=3,3)],u[4]=u[5]=n):u[0]<=v&&((a=e<2&&v<u[1])?(o=0,p.v=t,p.n=u[1]):v<d&&(a=e<3||u[0]>t||t>d)&&(u[4]=e,u[5]=t,p.n=d,o=0))}if(a||e>1)return l;throw f=!0,t}return function(a,s,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&v(s,d),o=s,i=d;(r=o<2?n:i)||!f;){u||(o?o<3?(o>1&&(p.n=-1),v(o,i)):p.n=i:p.v=i);try{if(c=2,u){if(o||(a="next"),r=u[a]){if(!(r=r.call(u,i)))throw TypeError("iterator result is not an object");if(!r.done)return r;i=r.value,o<2&&(o=0)}else 1===o&&(r=u.return)&&r.call(u),o<2&&(i=TypeError("The iterator does not provide a '"+a+"' method"),o=1);u=n}else if((r=(f=p.n<0)?i:e.call(t,p))!==l)break}catch(r){u=n,o=1,i=r}finally{c=1}}return{value:r,done:f}}}(e,u,o),!0),s}var l={};function c(){}function s(){}function f(){}r=Object.getPrototypeOf;var p=[][u]?r(r([][u]())):(t(r={},u,function(){return this}),r),v=f.prototype=c.prototype=Object.create(p);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,t(e,o,"GeneratorFunction")),e.prototype=Object.create(v),e}return s.prototype=f,t(v,"constructor",f),t(f,"constructor",s),s.displayName="GeneratorFunction",t(f,o,"GeneratorFunction"),t(v),t(v,o,"Generator"),t(v,u,function(){return this}),t(v,"toString",function(){return"[object Generator]"}),(e=function(){return{w:i,m:d}})()}function t(e,n,r,a){var u=Object.defineProperty;try{u({},"",{})}catch(e){u=0}t=function(e,n,r,a){function o(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?u?u(e,n,{value:r,enumerable:!a,configurable:!a,writable:!a}):e[n]=r:(o("next",0),o("throw",1),o("return",2))},t(e,n,r,a)}function n(e){return function(e){if(Array.isArray(e))return r(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 r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t,n,r,a,u,o){try{var i=e[u](o),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}function u(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var o=e.apply(t,n);function i(e){a(o,r,u,i,l,"next",e)}function l(e){a(o,r,u,i,l,"throw",e)}i(void 0)})}}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy120.js?v=1777008528","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1777008528","./site-legacy.js?v=1777008528","./useStore-legacy3.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./ace-legacy.js?v=1777008528"],function(t,r){"use strict";var a,o,i,l,c,s,f,p,v,d,y,m,g,h,b,x,_,j,k,w,S,O,C,T,V,A,F,G,P,E,I,U,B,D,H,L;return{setters:[function(e){a=e.F,o=e.k,i=e.at,l=e.f},function(e){c=e.c,s=e.r,f=e.g,p=e.w,v=e.v,d=e.a8,y=e.I,m=e.J,g=e.z,h=e.x,b=e.y,x=e.A,_=e.G,j=e.O,k=e.C,w=e.F,S=e.aT,O=e.D,C=e.e,T=e.K,V=e.R,A=e.am,F=e.an,G=e.H,P=e.aD},function(e){E=e.B},function(e){I=e._},function(e){U=e.getFileBody,B=e.saveFileBody,D=e.getJavaProjectConfigList},function(e){H=e.u,L=e.S},null,null],execute:function(){var r={class:"h-full relative"},z={key:0,class:"bg-darkTertiary flex items-center justify-center h-[72rem]"},J={key:0},M={class:"inline-block text-secondary items-center flex"},q={class:"max-w-[55rem] truncate leading-[1.3] inline-block"},K=["onClick"],N={class:"my-12px"},R={key:0,class:"flex"},$={key:1,class:"text-secondary"},Q={key:1,class:"bg-darkTertiary flex items-center justify-center h-full"},W={class:"bg-white px-48px py-16px text-default flex items-center"};t("default",c({__name:"index",props:{compData:{default:function(){return{}}}},setup:function(t,c){var X=c.expose,Y=H().siteInfo,Z=L().jumpTabEvent,ee=l(),te=s(!1),ne=s(""),re=s(!1),ae=s([]),ue=s(""),oe=s(!1),ie=s(""),le=s(!1),ce=[],se={},fe=s(""),pe=f(function(){var e;return{readOnly:"spring"===(null===(e=ae.value.find(function(e){return e.path===ne.value}))||void 0===e?void 0:e.type)}}),ve=function(){var t=u(e().m(function t(){var r,a,u,o,i;return e().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,te.value=!0,e.n=1,D({project_name:Y.value.name});case 1:if(r=e.v,(a=r.data).status){e.n=2;break}return ee.error(a.msg),e.a(2);case 2:ce=[],se={},u=a.data.filter(function(e){return"伪静态配置文件"!==e.name&&!e.type.includes("spring")}),o=a.data.filter(function(e){return"伪静态配置文件"!==e.name&&e.type.includes("spring")&&e.status}),ae.value=[].concat(n(u),n(o.length?[{name:"Spring配置",path:"spring",type:"spring",options:o.map(function(e){return"local_spring"===e.type?ce.push(e.path):se[e.path]=e.data,{label:e.path,value:e.path,type:e.type}}),status:!0}]:[])),ae.value.length>0&&((i=ae.value.find(function(e){return!0===e.status}))&&(ne.value=i.path,o.length>0&&(ie.value=o[0].path)),de(i)),e.n=4;break;case 3:e.p=3,e.v;case 4:return e.p=4,te.value=!1,e.f(4);case 5:return e.a(2)}},t,null,[[0,3,4,5]])}));return function(){return t.apply(this,arguments)}}(),de=function(){var t=u(e().m(function t(n){var r,a,u;return e().w(function(e){for(;;)switch(e.p=e.n){case 0:if(re.value){e.n=1;break}return e.a(2);case 1:if(e.p=1,!n.data){e.n=2;break}return e.a(2,ue.value=n.data);case 2:if(oe.value=!0,r=n.path,"spring"!==n.type){e.n=3;break}if(r=ie.value,le.value=ce.includes(r),!se[r]){e.n=3;break}return ue.value=se[r],e.a(2);case 3:return e.n=4,U({path:r});case 4:a=e.v,u=a.data,ue.value=u.data,oe.value=!1,e.n=6;break;case 5:e.p=5,e.v,ue.value="";case 6:return e.p=6,oe.value=!1,e.f(6);case 7:return e.a(2)}},t,null,[[1,5,6,7]])}));return function(e){return t.apply(this,arguments)}}(),ye=function(){var t=u(e().m(function t(n){return e().w(function(e){for(;;)switch(e.n){case 0:de(ae.value.find(function(e){return e.path===n}));case 1:return e.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),me=function(){var t=u(e().m(function t(){var n,r,a,u;return e().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=ee.load("正在保存内容,请稍候..."),e.p=1,r=ne.value.includes("spring")?ie.value:ae.value.find(function(e){return e.path===ne.value}).path,e.n=2,B({data:ue.value,encoding:"utf-8",path:r});case 2:a=e.v,ee.msg({dangerouslyUseHTMLString:!0,message:"<div>".concat(a.msg,"</div>"),type:a.status?"success":"error",duration:a.status?2e3:0,showClose:!a.status,customClass:"!max-w-[70rem]"}),e.n=4;break;case 3:e.p=3,u=e.v,console.log(u);case 4:return e.p=4,n.close(),e.f(4);case 5:return e.a(2)}},t,null,[[1,3,4,5]])}));return function(){return t.apply(this,arguments)}}();p(function(){return Y.value},function(e){var t;null!==(t=Y.value.project_config)&&void 0!==t&&t.bind_extranet&&(re.value=!!Y.value.project_config.bind_extranet)},{immediate:!0});var ge=function(){var t=u(e().m(function t(){var n;return e().w(function(e){for(;;)switch(e.n){case 0:n=Y.value.project_type.toLowerCase(),fe.value=n,re.value=!0,ve();case 1:return e.a(2)}},t)}));return function(){return t.apply(this,arguments)}}();return v(ge),X({init:ge}),d(function(){ae.value=[]}),function(e,t){var u=A,l=F,c=E,s=G,f=o,p=P,v=i,d=y("bt-loading");return m((h(),b("div",r,[g(ae).length?_("",!0):(h(),b("div",z,n(t[4]||(t[4]=[x("div",{class:"bg-white px-48px py-16px text-default"},"暂无配置文件",-1)])))),g(ae).length?(h(),j(v,{key:1,type:"card",modelValue:g(ne),"onUpdate:modelValue":t[3]||(t[3]=function(e){return V(ne)?ne.value=e:null}),onChange:ye},{default:k(function(){return[(h(!0),b(w,null,S(g(ae),function(e){return h(),b(w,null,[e.status?(h(),j(p,{key:e.path,label:e.name,lazy:!0,name:e.path},{default:k(function(){return[g(re)?(h(),b("div",J,[x("span",M,[t[5]||(t[5]=O(" 文件位置: ",-1)),m(x("div",q,[C(I,{text:e.path},null,8,["text"])],512),[[T,"spring"!==e.type]]),m(C(l,{class:"!w-[26rem]",modelValue:g(ie),"onUpdate:modelValue":t[0]||(t[0]=function(e){return V(ie)?ie.value=e:null}),onChange:function(t){return de(e)}},{default:k(function(){return[(h(!0),b(w,null,S(e.options,function(e){return h(),j(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])}),128))]}),_:2},1032,["modelValue","onChange"]),[[T,"spring"===e.type]]),x("span",{class:"ml-[2rem] svgtofont-el-document-copy cursor-pointer",onClick:function(t){return g(a)({value:"spring"===e.type?g(ie):e.path})}},null,8,K)]),x("div",N,[m(C(c,{class:"!h-[54rem] !w-[64rem] border border-dark rounded-base",modelValue:g(ue),"onUpdate:modelValue":t[1]||(t[1]=function(e){return V(ue)?ue.value=e:null}),request:!1,onSave:me,editorOption:g(pe)},null,8,["modelValue","editorOption"]),[[d,g(oe)]])]),"spring"!==e.type||g(le)?(h(),b("div",R,[C(s,{type:"primary",onClick:me},{default:k(function(){return n(t[6]||(t[6]=[O("保存",-1)]))}),_:1})])):(h(),b("div",$,"此文件为jar内部文件,不允许编辑"))])):(h(),b("div",Q,[x("div",W,[t[8]||(t[8]=O("请开启 ",-1)),C(f,{onClick:t[2]||(t[2]=function(e){return g(Z)("mapping")})},{default:k(function(){return n(t[7]||(t[7]=[O("外网映射",-1)]))}),_:1}),t[9]||(t[9]=O(" 后查看配置信息",-1))])]))]}),_:2},1032,["label","name"])):_("",!0)],64)}),256))]}),_:1},8,["modelValue"])):_("",!0)])),[[d,g(te)],[d,"正在加载配置文件,请稍后...","title"]])}}}))}}})}();