← Back
Editing: index-legacy318.js
!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function r(t,n,r){return(n=function(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return n};var t,n={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof w?t:w,a=Object.create(o.prototype),c=new V(r||[]);return i(a,"_invoke",{value:O(e,n,c)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var m="suspendedStart",h="suspendedYield",v="executing",y="completed",g={};function w(){}function b(){}function x(){}var k={};f(k,l,(function(){return this}));var j=Object.getPrototypeOf,L=j&&j(j(A([])));L&&L!==r&&a.call(L,l)&&(k=L);var _=x.prototype=w.prototype=Object.create(k);function S(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function P(t,n){function r(o,i,c,l){var u=d(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==e(f)&&a.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,c,l)}),(function(e){r("throw",e,c,l)})):n.resolve(f).then((function(e){s.value=e,c(s)}),(function(e){return r("throw",e,c,l)}))}l(u.arg)}var o;i(this,"_invoke",{value:function(e,t){function a(){return new n((function(n,o){r(e,t,n,o)}))}return o=o?o.then(a,a):a()}})}function O(e,n,r){var o=m;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=C(c,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?y:h,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function C(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function V(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function A(n){if(n||""===n){var r=n[l];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,i=function e(){for(;++o<n.length;)if(a.call(n,o))return e.value=n[o],e.done=!1,e;return e.value=t,e.done=!0,e};return i.next=i}}throw new TypeError(e(n)+" is not iterable")}return b.prototype=x,i(_,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:b,configurable:!0}),b.displayName=f(x,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,f(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},n.awrap=function(e){return{__await:e}},S(P.prototype),f(P.prototype,u,(function(){return this})),n.AsyncIterator=P,n.async=function(e,t,r,o,a){void 0===a&&(a=Promise);var i=new P(p(e,t,r,o),a);return n.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},S(_),f(_,s,"Generator"),f(_,l,(function(){return this})),f(_,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=A,V.prototype={constructor:V,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}function a(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function c(e){a(i,r,o,c,l,"next",e)}function l(e){a(i,r,o,c,l,"throw",e)}c(void 0)}))}}System.register(["./base-lib-legacy.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./store-legacy4.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./controller-legacy.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./useStore-legacy.js?v=VERSION_NUMBER","./config-legacy.js?v=VERSION_NUMBER"],(function(e,t){"use strict";var r,a,c,l,u,s,f,p,d,m,h,v,y,g,w,b,x,k,j,L,_,S,P,O,C,M,E,V,A,N,T,U,G,I,q,H,D,F,Q,R,J,z,B,Y,K,W,X,Z,$;return{setters:[function(e){r=e.j,a=e.s,c=e.r,l=e.k,u=e.c,s=e.p,f=e.c6,p=e.G,d=e.q,m=e.v,h=e.y,v=e.B,y=e.x,g=e.H,w=e.F,b=e.a_,x=e.M,k=e.A,j=e.e,L=e.z,_=e.J,S=e.C,P=e.T,O=e.ap,C=e.ao,M=e.an,E=e.ai,V=e.aj,A=e.S,N=e.ag,T=e.aQ,U=e.af,G=e.D},function(e){I=e.u,q=e.M,H=e.im,D=e.io,F=e.ip,Q=e.p,R=e.K,J=e.iq,z=e.ir,B=e.fW,Y=e.bu,K=e.d,W=e.e},function(e){X=e.H},function(e){Z=e.m},function(e){$=e.u},null,null,null,null,null],execute:function(){var t=r("REC-INSTALL-STORE",(function(){var e=X(),t=a(e),r=t.memory,u=t.panelInfo,s=I(),f=s.isRefreshMenu,p=s.getGlobalInfo,d=c(),m=l({lnmp:{type:"lnmp",title:"LNMP(推荐)",install:1,soft:{Nginx:{icon:"nginx",value:"",selected:!0,options:[]},MySQL:{icon:"mysql",value:"",selected:!0,options:[]},"Pure-Ftpd":{icon:"pureftpd",value:"",selected:!1,options:[]},PHP:{icon:"php",value:"",selected:!0,options:[]},phpMyAdmin:{icon:"phpmyadmin",value:"",selected:!0,options:[]}}},lamp:{type:"lamp",title:"LAMP",install:1,soft:{Apache:{icon:"apache",value:"",selected:!0,options:[]},MySQL:{icon:"mysql",value:"",selected:!0,options:[]},"Pure-Ftpd":{icon:"pureftpd",value:"",selected:!1,options:[]},PHP:{icon:"php",value:"",selected:!0,options:[]},phpMyAdmin:{icon:"phpmyadmin",value:"",selected:!0,options:[]}}},java:{type:"java",title:"JAVA",install:1,soft:{Nginx:{icon:"nginx",value:"",selected:!0,options:[]},MySQL:{icon:"mysql",value:"",selected:!0,options:[]},"Pure-Ftpd":{icon:"pureftpd",value:"",selected:!1,options:[]},jdk:{icon:"java",value:"",selected:!0,options:[]},phpMyAdmin:{icon:"phpmyadmin",value:"",selected:!0,options:[]}}},docker:{type:"docker",title:"Docker",install:1,soft:{Nginx:{icon:"nginx",value:"",selected:!0,options:[]},Docker:{icon:"docker",value:"",selected:!0,disabled:!0,options:[{label:"Dokcer服务",value:""}]}}}}),h=c(!1),v=c([]),y=c([]),g=["home","soft","exit","config"],w=c([]),b=c([]),x={5.1:{max:256,rec:512},5.5:{max:600,rec:1024},5.6:{max:800,rec:1024},5.7:{max:1500,rec:2048},"8.0":{max:5e3,rec:10240},8.4:{max:8e3,rec:10240},"mariadb_10.4":{max:256,rec:2048},"mariadb_10.5":{max:256,rec:2048}},k={"4.0":["5.2","5.3","5.4","5.5","5.6","7.0","7.1","7.2","7.3","7.4"],4.4:["5.4","5.4","5.5","5.6","7.0","7.1","7.2","7.3"],4.9:["5.6","7.0","7.1","7.2","7.3","7.4","8.0"],"5.0":["7.2","7.3","7.4","8.0"],5.1:["7.2","7.3","7.4","8.0"],5.2:["7.2","7.3","7.4","8.0","8.1","8.2"]},j=["4.0"],L=["5.1"],_=["5.2","5.3","5.5","7.0"],S={2.2:{php:{min:"5.2",max:"5.4"},model:"php5_module"},2.4:{php:{min:"5.3",max:"8.1"},model:"php-fpm"}},P=function(e,t){var n=e.icon,o=e.value,a=x[o];switch(n){case"apache":q.warn("当前PHP将会以".concat(S[o].model,"模式运行!"));break;case"mysql":r.value.memTotal<a.max&&q.warn("您的内存小于".concat(a.rec/1024,"GB,不建议安装MySQL-").concat(o));break;case"php":!function(e){var t=m[e].soft.PHP.value;m[e].soft.phpMyAdmin.options=[],Object.keys(k).forEach((function(n){var r=k[n];r&&r.indexOf(t)>-1&&(m[e].soft.phpMyAdmin.options.push({label:"phpMyAdmin ".concat(n),value:n}),m[e].soft.phpMyAdmin.value=n)}))}(t)}},O=function(){var e=i(o().mark((function e(t){var n,r,a,i,c,l,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0,r=q.load("正在添加软件至消息盒子,请稍后..."),a=m[t].install,e.t0=o().keys(m[t].soft);case 4:if((e.t1=e.t0()).done){e.next=38;break}if(i=e.t1.value,!(c=m[t].soft[i]).selected){e.next=36;break}if("php"!==(l=i.toLowerCase())){e.next=13;break}l="php-"+c.value,e.next=26;break;case 13:if("pure-ftpd"!==l){e.next=17;break}l="pureftpd",e.next=26;break;case 17:if("jdk"!==l){e.next=22;break}try{H({name:l,version:"java"===c.icon?"jdk"+c.value:c.value,type:1})}catch(f){}return e.abrupt("continue",4);case 22:if("docker"!==l){e.next=26;break}return e.next=25,D({type:a?0:1});case 25:return e.abrupt("continue",4);case 26:return e.prev=26,"",s=3===c.value.split(".").length?c.value.split(".")[2]:"0",e.next=31,F({sName:l,version:"java"===c.icon?"jdk"+c.value:c.value,min_version:s,type:a,id:n++});case 31:e.next=36;break;case 33:e.prev=33,e.t2=e.catch(26);case 36:e.next=4;break;case 38:return r.close(),e.next=41,Z();case 41:p(),u.value.isSetup=!0,q.success("已将下载任务添加到队列!"),d.value("close");case 45:case"end":return e.stop()}}),e,null,[[26,33]])})));return function(t){return e.apply(this,arguments)}}(),C=function(){var e=i(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q({icon:"warning-filled",title:"取消显示推荐安装",content:"不再显示推荐安装信息,继续操作?"});case 2:return e.next=4,R({loading:"正在取消显示推荐安装,请稍后...",request:J({path:"/www/server/nginx"}),success:function(e){e.status?q.success("设置成功"):q.error("设置失败"),d.value("close")}});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=function(){var e=i(o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,z();case 2:t=e.sent,t.data.forEach((function(e){var t,n,o=e.name;if("Tomcat"!==o){var a=[],i="";switch(e.versions.forEach((function(e){var t=e.version,n=r.value.memTotal>=10240?"8.0":"5.7",c="PHP"===o&&"8.2"===t,l="MySQL"===o&&t===n,u="phpMyAdmin"===o&&"5.2"===t,s="jdk"===o&&t.includes("1.8"),f=x[t],p="";switch(o.toLowerCase()){case"nginx":p=["1.25","1.26","1.28"].includes(t)?"[支持http3]":"";break;case"mysql":if(r.value.memTotal<f.max&&(p="[推荐".concat(f.rec/1024,"G内存机器安装]")),L.includes(t))return;break;case"php":if(_.includes(t))return;break;case"apache":p="[PHP运行模式:".concat(S[t].model,"]");break;case"phpmyadmin":if(!k[t])return;if(j.includes(t))return;if(-1!==k[t].indexOf("8.2"))return;break;case"jdk":t=t.replace("jdk","")}(!i&&c||l||u||s)&&(i=t),a.push({label:"".concat(o," ").concat(t),value:t,ps:p,disabled:!1})})),o.toLowerCase()){case"php":(t=w.value).push.apply(t,a);break;case"phpmyadmin":(n=b.value).push.apply(n,a)}!i&&a.length>0&&(i=a[0].value),Object.keys(m).forEach((function(e){var t=m[e].soft[o];t&&(t.value=i,t.options=a,"phpMyAdmin"===o&&"java"!==e&&P(m[e].soft.PHP,e))}))}}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),E=function(){var e=i(o().mark((function e(t){var n,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={hide_list:JSON.stringify([t.id])},t.parentId&&(n.site_menu=1),e.next=5,B(n);case 5:return(r=e.sent).status?q.success("设置成功,后期可以在左侧菜单栏中修改。"):q.request(r),e.next=9,V();case 9:$(),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0);case 15:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(t){return e.apply(this,arguments)}}(),V=function(){var e=i(o().mark((function e(){var t,r,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,h.value=!0,e.next=4,Y();case 4:t=e.sent,r=["ftp","wp","ssl","mail"],a=t.data.map((function(e){var t=e.id,r=e.show,o=e.title,a=e.children,i=(t.replace(/memu([A|_]?)/,"")||"home").toLowerCase();return"dologin"===i&&(i="exit"),"btwaf"===i&&(i="waf"),a=!!a&&a.map((function(e){var r=e.id;return"proxy"===r&&(r="nginx"),n(n({},e),{},{parentId:t,name:r})})),{name:i,show:r,title:o,id:t,children:a}})),v.value=a.filter((function(e){return!r.includes(e.name)})),y.value=a.filter((function(e){return r.includes(e.name)})),f.value=!0,e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0);case 15:return e.prev=15,h.value=!1,e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[0,12,15,18]])})));return function(){return e.apply(this,arguments)}}();return{recommend:m,initSoft:M,installSoft:O,changeSoftwareVersion:P,cancelShowRec:C,goSoft:function(){window.location.href="/soft"},goSetting:function(){window.location.href="/config"},handleMenuChange:E,updateMenuItems:V,load:h,menuList:v,moreMenuList:y,getList:function(e){return e.filter((function(e){return!g.includes(e.name)}))},filterList:g,emits:d}})),ee={class:"h-full p-[2rem]"},te={class:"commend-title"},ne={class:"commend-msg"},re={class:"select-con"},oe={class:"el-dropdown-link flex items-center text-[1.2rem]"},ae=["onClick"],ie={class:"flex items-center justify-between w-full"},ce=["onClick"],le={key:1,class:"flex items-center justify-between text-[1.2rem]"},ue=["onClick"],se={class:"select-box"},fe={class:"flex items-center justify-between w-full"},pe=["onClick"],de={class:"commend-title"},me={class:"commend-msg"},he={class:"flex recommend-soft-list overflow-y-auto flex-wrap gap-[1.5rem]"},ve={class:"rounded-[.4rem] recommend-cont"},ye={class:"mb-[1rem] pl-[.5rem] recommend-title text-center inline-block w-full font-bold text-[1.8rem]"},ge={class:"soft-list"},we={class:"pl-8 text-orange"},be={class:"flex items-baseline my-8"},xe={class:"flex justify-center"},ke=u({__name:"index",emits:["close"],setup:function(e,n){var r=n.emit,o=t(),i=a(o),c=i.recommend,l=r;return i.emits.value=l,s((function(){o.initSoft(),o.updateMenuItems(),f(document.querySelector(".close-ad"),"click",(function(){o.cancelShowRec()}))})),function(e,t){var n=P,r=O,a=C,i=M,l=K,u=E,s=V,f=A,I=N,q=T,H=U,D=G,F=p("bt-loading");return d(),m("div",ee,[h("div",te,[t[4]||(t[4]=h("div",{class:"text-[1.6rem] inline-block"},"左侧菜单设置",-1)),h("div",ne,[t[2]||(t[2]=v("-- 可以隐藏和关闭一些不需要的页面和功能,在面板")),h("span",{class:"text-primary cursor-pointer hover:text-[#1d9534]",onClick:t[0]||(t[0]=function(){var e;return y(o).goSetting&&(e=y(o)).goSetting.apply(e,arguments)})}," 设置 "),t[3]||(t[3]=v("或左侧菜单栏下方可随时调整"))])]),g((d(),m("div",re,[(d(!0),m(w,null,b(y(o).getList(y(o).menuList),(function(e){return d(),m("div",{class:"select-box",key:e.id},[e.children&&e.children.length?(d(),x(i,{key:0,"hide-on-click":!1},{dropdown:k((function(){return[j(a,null,{default:k((function(){return[(d(!0),m(w,null,b(e.children,(function(e){return d(),x(r,{key:e.id},{default:k((function(){return[h("div",ie,[h("span",{class:"cursor-pointer",onClick:function(t){return y(o).handleMenuChange(e)}},L(e.title),9,ce),j(n,{modelValue:e.show,"onUpdate:modelValue":function(t){return e.show=t},class:"ml-[1rem]",onChange:function(t){return y(o).handleMenuChange(e)}},null,8,["modelValue","onUpdate:modelValue","onChange"])])]})),_:2},1024)})),128))]})),_:2},1024)]})),default:k((function(){return[h("span",oe,[h("span",{class:"cursor-pointer whitespace-nowrap",onClick:function(t){return y(o).handleMenuChange(e)}},L(e.title),9,ae),t[5]||(t[5]=h("i",{class:"svgtofont-arrow-down ml-[.5rem]"},null,-1)),j(n,{modelValue:e.show,"onUpdate:modelValue":function(t){return e.show=t},class:"ml-[.5rem] w-[1.6rem] h-[1.6rem]",onChange:function(t){return y(o).handleMenuChange(e)}},null,8,["modelValue","onUpdate:modelValue","onChange"])])]})),_:2},1024)):(d(),m("div",le,[h("span",{class:"cursor-pointer whitespace-nowrap",onClick:function(t){return y(o).handleMenuChange(e)}},L(e.title),9,ue),j(n,{modelValue:e.show,"onUpdate:modelValue":function(t){return e.show=t},class:"ml-[.5rem] w-[1.6rem] h-[1.6rem]",onChange:function(t){return y(o).handleMenuChange(e)}},null,8,["modelValue","onUpdate:modelValue","onChange"])]))])})),128)),h("div",se,[j(i,{"hide-on-click":!1},{dropdown:k((function(){return[j(a,null,{default:k((function(){return[(d(!0),m(w,null,b(y(o).moreMenuList,(function(e){return d(),x(r,{key:e.id},{default:k((function(){return[h("div",fe,[h("span",{class:"cursor-pointer",onClick:function(t){return y(o).handleMenuChange(e)}},L(e.title),9,pe),j(n,{modelValue:e.show,"onUpdate:modelValue":function(t){return e.show=t},class:"ml-[1rem]",onChange:function(t){return y(o).handleMenuChange(e)}},null,8,["modelValue","onUpdate:modelValue","onChange"])])]})),_:2},1024)})),128))]})),_:1})]})),default:k((function(){return[t[6]||(t[6]=h("span",{class:"el-dropdown-link flex items-center text-[1.2rem]"},[h("span",{class:"cursor-pointer whitespace-nowrap more-menu-trigger"},"更多"),h("i",{class:"svgtofont-arrow-down ml-[.5rem]"})],-1))]})),_:1})])])),[[F,y(o).load]]),h("div",de,[t[10]||(t[10]=h("div",{class:"text-[1.6rem] inline-block"},"一键安装套件",-1)),h("div",me,[t[7]||(t[7]=v(" -- 我们为您提供以下套件一键安装,请按需选择或在")),h("span",{class:"text-primary cursor-pointer hover:text-[#1d9534]",onClick:t[1]||(t[1]=function(){var e;return y(o).goSoft&&(e=y(o)).goSoft.apply(e,arguments)})}," 软件商店 "),t[8]||(t[8]=v("页面中手动安装,推荐安装")),t[9]||(t[9]=h("span",null,'"LNMP"',-1))])]),h("div",he,[(d(!0),m(w,null,b(y(c),(function(e){return d(),m("div",{key:e.type,class:"recommend-soft-item flex-1"},[h("div",ve,[h("span",ye,L(e.title),1),h("ul",ge,[(d(!0),m(w,null,b(e.soft,(function(t,r){return d(),m("li",{key:r,class:"flex items-center"},[j(l,{type:"icons",src:"soft/ico-".concat(t.icon,".svg"),class:_(["ml-1 mr-4","docker"!==t.icon?"!w-[3.2rem] !h-[3.2rem]":"!mr-[.6rem] !w-[5.5rem] !h-[3.2rem]"])},null,8,["src","class"]),"docker"!==t.icon?(d(),x(s,{key:0,modelValue:t.value,"onUpdate:modelValue":function(e){return t.value=e},class:"flex-1 mr-[2rem]",size:"small",onChange:function(n){return y(o).changeSoftwareVersion(t,e.type)}},{default:k((function(){return[(d(!0),m(w,null,b(t.options,(function(e){return d(),x(u,{key:e.value,class:"flex justify-between",label:e.label,disabled:e.disabled,value:e.value},{default:k((function(){return[h("span",null,L(e.label),1),h("span",we,L(e.ps),1)]})),_:2},1032,["label","disabled","value"])})),128))]})),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):S("",!0),"docker"===t.icon?(d(),x(f,{key:1,class:"no-drap mr-[2rem]",value:"Docker服务",readOnly:""})):S("",!0),j(n,{modelValue:t.selected,"onUpdate:modelValue":function(e){return t.selected=e},disabled:t.disabled},null,8,["modelValue","onUpdate:modelValue","disabled"])])})),128))]),h("div",be,[t[15]||(t[15]=h("span",{class:"mr-4 whitespace-nowrap"},"安装方式:",-1)),j(H,{modelValue:e.install,"onUpdate:modelValue":function(t){return e.install=t},class:"whitespace-nowrap"},{default:k((function(){return[j(q,{class:"item",effect:"dark",placement:"top-start"},{content:k((function(){return t[11]||(t[11]=[h("div",{class:"w-110"},"即rpm/deb,安装时间极快(5-10分钟),版本与稳定性略低于编译安装,适合快速部署测试",-1)])})),default:k((function(){return[j(I,{class:"!mr-[1.2rem]",value:1},{default:k((function(){return t[12]||(t[12]=[v("极速安装")])})),_:1})]})),_:1}),j(q,{class:"item",effect:"dark",placement:"top-start"},{content:k((function(){return t[13]||(t[13]=[h("div",{class:"w-110"},"安装时间长(30分钟到2小时),性能最大化,适合生产环境",-1)])})),default:k((function(){return[j(I,{class:"!mr-0",value:0},{default:k((function(){return t[14]||(t[14]=[v("编译安装")])})),_:1})]})),_:1})]})),_:2},1032,["modelValue","onUpdate:modelValue"])]),h("div",xe,[j(D,{type:"primary",onClick:function(t){return y(o).installSoft(e.type)}},{default:k((function(){return t[16]||(t[16]=[v("一键安装")])})),_:2},1032,["onClick"])])])])})),128))])])}}});e("default",W(ke,[["__scopeId","data-v-dd743e59"]]))}}}))}();
Save File
Cancel