← Back
Editing: index-legacy171.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function n(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return r};var e,r={},o=Object.prototype,a=o.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(e){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,a=Object.create(o.prototype),u=new T(n||[]);return i(a,"_invoke",{value:O(t,r,u)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var v="suspendedStart",y="suspendedYield",d="executing",m="completed",g={};function w(){}function b(){}function x(){}var _={};f(_,c,(function(){return this}));var j=Object.getPrototypeOf,L=j&&j(j(V([])));L&&L!==o&&a.call(L,c)&&(_=L);var E=x.prototype=w.prototype=Object.create(_);function k(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(e,r){function n(o,i,u,c){var l=p(e[o],e,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&a.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var o;i(this,"_invoke",{value:function(t,e){function a(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(a,a):a()}})}function O(t,r,n){var o=v;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:e,done:!0}}for(n.method=a,n.arg=i;;){var u=n.delegate;if(u){var c=P(u,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=p(t,r,n);if("normal"===l.type){if(o=n.done?m:y,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=p(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function V(r){if(r||""===r){var n=r[c];if(n)return n.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,i=function t(){for(;++o<r.length;)if(a.call(r,o))return t.value=r[o],t.done=!1,t;return t.value=e,t.done=!0,t};return i.next=i}}throw new TypeError(t(r)+" is not iterable")}return b.prototype=x,i(E,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:b,configurable:!0}),b.displayName=f(x,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},r.awrap=function(t){return{__await:t}},k(S.prototype),f(S.prototype,l,(function(){return this})),r.AsyncIterator=S,r.async=function(t,e,n,o,a){void 0===a&&(a=Promise);var i=new S(h(t,e,n,o),a);return r.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(E),f(E,s,"Generator"),f(E,c,(function(){return this})),f(E,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=V,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:V(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},r}function o(t,e,r,n,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function u(t){o(i,n,a,u,c,"next",t)}function c(t){o(i,n,a,u,c,"throw",t)}u(void 0)}))}}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./index-legacy140.js?v=VERSION_NUMBER","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./ace-legacy.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER"],(function(t,r){"use strict";var o,i,u,c,l,s,f,h,p,v,y,d,m,g,w,b,x,_,j,L,E,k,S,O,P,A,C,T,V,G,N,F;return{setters:[function(t){o=t.K,i=t.bT,u=t.M,c=t.al},function(t){l=t.r,s=t.c,f=t.p,h=t.G,p=t.q,v=t.M,y=t.A,d=t.e,m=t.y,g=t.H,w=t.x,b=t.P,x=t.B,_=t.v,j=t.F,L=t.a_,E=t.z,k=t.aA,S=t.D,O=t.ai,P=t.aj},function(t){A=t.B},function(t){C=t.S,T=t._},function(t){V=t.U,G=t.m,N=t.V,F=t.W},null,null,null,null],execute:function(){var r=C(),I=l({}),U=l("service"),q=l(""),D=l(!1),H=l(""),M=l(""),B=l([]),Y=function(){var t=a(n().mark((function t(){return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o({loading:D,request:N({path:"/www/server/tomcat/conf/server.xml"}),data:{data:[String,q]}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),z=function(){var t=a(n().mark((function t(){return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o({loading:"正在保存中,请稍后...",request:i({path:"/www/server/tomcat/conf/server.xml",data:q.value,encoding:"utf-8"}),message:!0});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),K=function(){var t=a(n().mark((function t(){return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o({loading:D,request:F({path:"/www/wwwlogs/nginx_error.log"}),data:{msg:[String,H]}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),W=function(){var t=a(n().mark((function t(r){var o,a,i;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=r.version.split("."),a=e(o,1),i=a[0],M.value!==i){t.next=4;break}return u.error("当前版本与选择版本一致"),t.abrupt("return");case 4:return t.prev=4,t.next=7,V({sName:"tomcat",version:M.value,min_version:""});case 7:G(),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(4);case 13:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(e){return t.apply(this,arguments)}}(),$=function(t){switch(t.props.name){case"config":Y();break;case"logs":K()}},J={class:"my-[12px]"},Q={class:"flex text-[#666] items-center"},R={class:"pre-box bg-[#333] text-white h-[50rem] overflow-auto p-[12px] rounded-[4px]"};t("default",s({__name:"index",props:{compData:{default:{}}},setup:function(t){var e=t;return f((function(){var t;t=e.compData,U.value="service",t&&(I.value=t),r.init(I.value),M.value=I.value.version[0],B.value=I.value.versions})),function(t,e){var r=k,n=A,o=S,a=O,i=P,u=c,l=h("bt-loading"),s=h("scroll-bottom");return p(),v(u,{modelValue:w(U),"onUpdate:modelValue":e[3]||(e[3]=function(t){return b(U)?U.value=t:null}),type:"left-bg-card",onTabClick:w($)},{default:y((function(){return[d(r,{label:"服务",name:"service"},{default:y((function(){return[d(T)]})),_:1}),d(r,{label:"配置文件",name:"config"},{default:y((function(){return[e[5]||(e[5]=m("span",{class:"my-[4px] text-[#666]"},"提示:Ctrl+F 搜索关键字,Ctrl+S 保存,Ctrl+H 查找替换",-1)),m("div",J,[g(d(n,{class:"!h-[36rem] !w-[full]",modelValue:w(q),"onUpdate:modelValue":e[0]||(e[0]=function(t){return b(q)?q.value=t:null}),id:"configContent",filePath:"/www/server/tomcat/conf/server.xml"},null,8,["modelValue"]),[[l,w(D)]])]),d(o,{onClick:w(z),type:"primary"},{default:y((function(){return e[4]||(e[4]=[x("保存")])})),_:1},8,["onClick"]),e[6]||(e[6]=m("ul",{class:"leading-8 mt-20px text-[1.2rem] list-disc ml-[20px]"},[m("li",null,"此处为tomcat主配置文件,若您不了解配置规则,请勿随意修改")],-1))]})),_:1}),d(r,{label:"版本切换",name:"version"},{default:y((function(){return[m("div",Q,[e[8]||(e[8]=m("span",null,"选择版本",-1)),d(i,{class:"mx-[12px] !w-[18rem]",modelValue:w(M),"onUpdate:modelValue":e[1]||(e[1]=function(t){return b(M)?M.value=t:null})},{default:y((function(){return[(p(!0),_(j,null,L(w(B),(function(t,e){return p(),v(a,{key:e,label:"tomcat"+t.m_version,value:t.m_version},null,8,["label","value"])})),128))]})),_:1},8,["modelValue"]),d(o,{type:"primary",onClick:e[2]||(e[2]=function(e){return w(W)(t.compData)})},{default:y((function(){return e[7]||(e[7]=[x("切换")])})),_:1})])]})),_:1}),d(r,{label:"运行日志",name:"logs"},{default:y((function(){return[g((p(),_("div",R,[x(E(w(H)||"暂无日志"),1)])),[[l,w(D)],[s]])]})),_:1})]})),_:1},8,["modelValue","onTabClick"])}}}))}}}))}();
Save File
Cancel