← Back
Editing: index-legacy70.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)}var e=["type_id"];function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function r(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(e){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),u=new T(r||[]);return i(a,"_invoke",{value:E(t,n,u)}),a}function v(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var d="suspendedStart",h="suspendedYield",m="executing",y="completed",g={};function b(){}function _(){}function j(){}var w={};f(w,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(B([])));k&&k!==r&&o.call(k,c)&&(w=k);var O=j.prototype=b.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function P(e,n){function r(a,i,u,c){var s=v(e[a],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(f).then((function(t){l.value=t,u(l)}),(function(t){return r("throw",t,u,c)}))}c(s.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function E(t,n,r){var o=d;return function(a,i){if(o===m)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var c=S(u,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=v(t,n,r);if("normal"===s.type){if(o=r.done?y:h,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=y,r.method="throw",r.arg=s.arg)}}}function S(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=v(o,t.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[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function C(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 N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function B(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var a=-1,i=function t(){for(;++a<n.length;)if(o.call(n,a))return t.value=n[a],t.done=!1,t;return t.value=e,t.done=!0,t};return i.next=i}}throw new TypeError(t(n)+" is not iterable")}return _.prototype=j,i(O,"constructor",{value:j,configurable:!0}),i(j,"constructor",{value:_,configurable:!0}),_.displayName=f(j,l,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,j):(t.__proto__=j,f(t,l,"GeneratorFunction")),t.prototype=Object.create(O),t},n.awrap=function(t){return{__await:t}},L(P.prototype),f(P.prototype,s,(function(){return this})),n.AsyncIterator=P,n.async=function(t,e,r,o,a){void 0===a&&(a=Promise);var i=new P(p(t,e,r,o),a);return n.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(O),f(O,l,"Generator"),f(O,c,(function(){return this})),f(O,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=B,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(N),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function r(r,o){return u.type="throw",u.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),N(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:B(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}function i(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function u(t){i(a,r,o,u,c,"next",t)}function c(t){i(a,r,o,u,c,"throw",t)}u(void 0)}))}}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./index-legacy130.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./useController-legacy6.js?v=VERSION_NUMBER","./useStore-legacy4.js?v=VERSION_NUMBER","./index-legacy141.js?v=VERSION_NUMBER","./site-legacy.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER"],(function(t,n){"use strict";var o,i,c,s,l,f,p,v,d,h,m,y,g,b,_,j,w,x,k,O,L,P,E,S,C,N,T,B,D,I,q,F,G,M,J,A,V,R,U,Y,z,K,W,H,Q,X,Z,$,tt,et,nt,rt,ot,at,it,ut,ct,st,lt,ft,pt,vt,dt,ht,mt,yt;return{setters:[function(t){o=t.K,i=t.aq,c=t.n,s=t.L,l=t.bv,f=t.b,p=t.p,v=t.at,d=t.u,h=t.aM,m=t.a6,y=t.q,g=t.w,b=t.a8,_=t.ag},function(t){j=t._},function(t){w=t._},function(t){x=t.g,k=t.r,O=t.as,L=t.c,P=t.s,E=t.e,S=t.B,C=t.w,N=t.p,T=t.n,B=t.q,D=t.v,I=t.x,q=t.M,F=t.A,G=t.y,M=t.C,J=t.P,A=t.J},function(t){V=t.c,R=t.a,U=t.d,Y=t.g,z=t.u},function(t){K=t.b,W=t.g,H=t.s,Q=t.c,X=t.d,Z=t.f,$=t.h,tt=t.u,et=t.a,nt=t.j},function(t){rt=t.u,ot=t.S},function(t){at=t.u},function(t){it=t.getNodeVersionList,ut=t.setDefaultEnv,ct=t.getNodeJsEnvironment,st=t.delNodeProject,lt=t.getPackageManagers,ft=t.modifyNodeProject,pt=t.batchDelSite,vt=t.batchStatus},function(t){dt=t.l,ht=t.i,mt=t.o,yt=t.h}],execute:function(){var gt=f(),bt=rt(),_t=bt.siteInfo,jt=bt.isRefreshList,wt=bt.activeType,xt=ot().setSiteInfo,kt=(t("i",x((function(){return!!_t.value}))),k("0")),Ot=k([]),Lt=O("_node_mask",!1),Pt=function(){var t=u(a().mark((function t(){var e,n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,it();case 3:if(n=t.sent,Ot.value=[],n.status){t.next=8;break}return Lt.value=!0,t.abrupt("return");case 8:Lt.value=!1,null===(e=n.data)||void 0===e||e.forEach((function(t){t.setup&&Ot.value.push({label:t.version,value:t.version}),1===t.is_default&&(kt.value=t.version)})),Ot.value.unshift({label:"未设置",value:"0"}),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(0);case 16:case"end":return t.stop()}}),t,null,[[0,13]])})));return function(){return t.apply(this,arguments)}}(),Et=function(){var t=u(a().mark((function t(){var e,n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o({loading:"正在设置,请稍后...",request:ut({version:kt.value})});case 2:n=t.sent,gt.request({status:null===(e=n.data)||void 0===e?void 0:e.status,msg:n.data.data||n.data.error_msg});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),St=t("o",u(a().mark((function t(){var e,n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i({sName:"nodejs"});case 3:return e=t.sent,n=e.data,t.next=7,dt({name:"nodejs",softData:n});case 7:t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})))),Ct=function(){_t.value=null,c({title:"添加Node项目",area:80,component:function(){return s((function(){return n.import("./index-legacy362.js?v=VERSION_NUMBER")}),void 0,n.meta.url)},showFooter:!0})},Nt=function(){c({title:"PM2监控",area:120,showFooter:!1,component:function(){return s((function(){return n.import("./index-legacy363.js?v=VERSION_NUMBER")}),void 0,n.meta.url)}})},Tt=function(){var t=u(a().mark((function t(e){var n,r,o;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p({type:"default",title:"删除项目-".concat(e.name),content:"风险操作,此操作不可逆,删除【".concat(e.name,"】项目后您将无法管理该项目,是否继续操作?"),input:{content:"删除项目"}});case 2:return t.prev=2,n=e.project_config,r={project_name:n.project_name,project_type:n.project_type||"nodejs"},n.pm2_name&&(r.pm2_name=n.pm2_name),t.next=8,st(r);case 8:o=t.sent,gt.request(o),jt.value=!0,t.next=16;break;case 13:t.prev=13,t.t0=t.catch(2);case 16:case"end":return t.stop()}}),t,null,[[2,13]])})));return function(e){return t.apply(this,arguments)}}(),Bt=function(t,e){xt(t,e),c({isAsync:!0,title:"Node项目管理["+t.name+"] -- 添加时间["+t.addtime+"]",area:[87,71],component:function(){return s((function(){return n.import("./index-legacy364.js?v=VERSION_NUMBER")}),void 0,n.meta.url)}})},Dt=(t("u",function(){var t=u(a().mark((function t(e){var n,r;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,lt({version:e});case 3:return n=t.sent,r=n.data,t.abrupt("return",r.package_managers);case 8:t.prev=8,t.t0=t.catch(0),v(t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e){return t.apply(this,arguments)}}()),t("n",k({nodejs_versions:[],package_managers:[],user_list:[],maximum_memory:0}))),It=(t("g",u(a().mark((function t(){var e,n,o,i,u;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ct();case 3:return u=t.sent,Object.assign(Dt.value,r(r({},null==u?void 0:u.data),{},{maximum_memory:(null==u||null===(e=u.data)||void 0===e?void 0:e.maximum_memory)||0,nodejs_versions:l(null==u||null===(n=u.data)||void 0===n?void 0:n.nodejs_versions,"array",[]),user_list:l(null==u||null===(o=u.data)||void 0===o?void 0:o.user_list,"array",[]),package_managers:l(null==u||null===(i=u.data)||void 0===i?void 0:i.package_managers,"array",[])})),t.abrupt("return",u.data);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",Dt.value);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))),t("s",function(){var t=u(a().mark((function t(e){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=4;break}return t.next=3,o({loading:"正在保存修改,请稍后...",request:ft(e),message:!0});case 3:jt.value=!0;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),function(){var t=u(a().mark((function t(e,n,o,i,c,s){var l,f,p,v,d,h;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l=i.label,f=i.value,p=s.enable,v=s.exclude,d=new Map([["start","批量启动选中项目后,项目将正常访问"],["stop","批量停用选中的项目后,项目将会停止运行"],["restart","批量重启选中的项目后,项目将会重新启动"],["delete","批量删除选中的项目后,项目将无法恢复"]]),h=function(){var t=u(a().mark((function t(e){var n,r,i,u,c,s;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=new Map([["start",vt],["stop",vt],["restart",vt]]),r=n.get(f),t.t0=f,t.next="start"===t.t0||"stop"===t.t0||"restart"===t.t0?5:"delete"===t.t0?11:16;break;case 5:if(!r){t.next=11;break}return i=o.value.map((function(t){return t.project_config.pm2_name?{id:t.id,project_name:t.name,project_type:t.project_config.project_type||"nodejs",pm2_name:t.project_config.pm2_name}:{id:t.id,project_name:t.name,project_type:t.project_config.project_type||"nodejs"}})),u=yt(!1,v,p,{params:{site_list:JSON.stringify(i),status:f,project_type:"NODE"}}),t.next=10,r(u,wt.value);case 10:case 15:return t.abrupt("return",t.sent);case 11:return c=o.value.map((function(t){return t.project_config.pm2_name?{id:t.id,name:t.name,project_type:t.project_config.project_type||"nodejs",pm2_name:t.project_config.pm2_name}:{id:t.id,name:t.name,project_type:t.project_config.project_type||"nodejs"}})),s=yt(!1,v,p,{params:{project_type:wt.value.toUpperCase(),site_list:JSON.stringify(c)}}),t.next=15,pt(s);case 16:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),t.next=6,e({title:"批量".concat(l),content:"".concat(d.get(f),",是否继续操作?"),column:[{label:"项目名称",prop:"name"},V()],onConfirm:function(){var t=u(a().mark((function t(){var e,n,o;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h();case 2:e=t.sent,jt.value=!0,c&&c(),n=ht(e.data),o=(o=n.data).map((function(t){return r(r({},t),{},{name:t.name||t.project_name})})),mt(o,{title:"".concat(l,"网站")});case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()});case 6:case"end":return t.stop()}}),t)})));return function(e,n,r,o,a,i){return t.apply(this,arguments)}}()),qt={class:"content-mask"},Ft={class:"flex items-center mx-12px"},Gt=L({__name:"index",setup:function(t){d();var o=ot(),i=o.getSiteList,c=o.setSiteInfo,f=P(ot()),p=f.activeType,v=f.isRefreshList,x=f.siteInfo,k=f.searchWidth,O=h({options:[{type:"button",label:"添加项目",active:!0,onClick:function(){var t;if(null===(t=Ot.value)||void 0===t||!t.length)return St();Ct()}},{type:"button",label:"Node版本管理器",onClick:St},{type:"button",label:"PM2监控",onClick:Nt}]}).BtOperation,L=at({key:"type_id",name:"Node分类",options:function(){return[{label:"全部分类",value:"all"}]},event:$,ignore:["0"],field:"type_name"}),V=b([{label:"启动项目",value:"start",event:It},{label:"停用项目",value:"stop",event:It},{label:"重启项目",value:"restart",event:It},tt(),et({classList:nt}),{label:"删除项目",value:"delete",event:It}]),rt=m({request:function(t){var n=t.type_id,o=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,e);return i({data:JSON.stringify(r(r({},o),{},{type_id:y(n)||"all"===n?"":n}))})},columns:[R({type:"page",key:"id"}),K({onClick:function(t){Bt(t)}}),W({type:p.value,onClick:function(t,e){if("setting"!==e){var n=t.run?"stop":"start";H(t,"restart"===e?e:n)}else Bt(t,"state")}}),{label:"PID",isCustom:!0,render:function(t){var e=l(t.load_info,"object",{});if(0==Object.keys(e).length)return"--";var n=[];for(var r in t.load_info)t.load_info.hasOwnProperty(r)&&n.push(r);return n.join(",")}},{label:"CPU",isCustom:!1,render:function(t){var e=l(t.load_info,"object",{});if(0==Object.keys(e).length)return"--";var n=0;for(var r in t.load_info)n+=t.load_info[r].cpu_percent;return n.toFixed(2)+"%"}},{label:"内存",isCustom:!1,render:function(t){var e=l(t.load_info,"object",{});if(0==Object.keys(e).length)return"--";var n=0;for(var r in t.load_info)n+=t.load_info[r].memory_used;return g(n)}},U(),Q(),Y({table:"sites",width:200}),{label:"Node版本",isCustom:!0,render:function(t){return t.project_config.nodejs_version||"--"}},X({onClick:function(t){Bt(t,"ssl")}}),z([{title:"设置",onClick:function(t){Bt(t)}},{title:"删除",onClick:function(t){Tt(t)}}])],extension:[L,V],empty:function(){return E("span",null,[S("您的列表为空,您可以"),E("span",{class:"bt-link",onClick:Ct},[S("添加一个项目")])])}}),it=rt.BtTable,ut=rt.BtPage,ct=rt.BtRefresh,st=rt.BtSearch,lt=rt.BtColumn,ft=rt.BtBatch,pt=rt.BtTableCategory,vt=rt.refresh,dt=rt.config;return C(v,function(){var t=u(a().mark((function t(e){var n,r;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=5;break}return t.next=3,vt();case 3:null!==(n=x.value)&&void 0!==n&&n.name&&(r=dt.data.find((function(t){return t.name===x.value.name})))&&c(r),v.value=!1;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),N((function(){Pt(),T((function(){s((function(){return n.import("./index-legacy362.js?v=VERSION_NUMBER")}),void 0,n.meta.url),s((function(){return n.import("./index-legacy364.js?v=VERSION_NUMBER")}),void 0,n.meta.url)}))})),function(t,e){var n=w,r=_,o=j;return B(),D("div",null,[I(Lt)?(B(),q(n,{key:0},{content:F((function(){return[G("div",qt,[e[3]||(e[3]=G("i",{class:"svgtofont-el-warning text-warning !text-[2.2rem] mr-4px"},null,-1)),e[4]||(e[4]=S(" 未安装Node版本管理器,")),G("span",{class:"bt-link",onClick:e[0]||(e[0]=function(){return I(St)&&I(St).apply(void 0,arguments)})},"点击安装")])]})),_:1})):M("",!0),E(o,null,{"header-left":F((function(){return[E(I(O)),G("div",Ft,[e[5]||(e[5]=G("span",{class:"mr-4px"},"命令行版本",-1)),E(r,{class:"!w-[10rem]",modelValue:I(kt),"onUpdate:modelValue":e[1]||(e[1]=function(t){return J(kt)?kt.value=t:null}),options:I(Ot),onChange:I(Et)},null,8,["modelValue","options","onChange"])]),G("div",{class:"flex items-center ml-1rem",onClick:e[2]||(e[2]=function(){return I(Z)&&I(Z).apply(void 0,arguments)})},e[6]||(e[6]=[G("i",{class:"svgtofont-desired text-[1.6rem]"},null,-1),G("span",{class:"bt-link"},"需求反馈",-1)]))]})),"header-right":F((function(){return[E(I(pt),{class:"!w-[140px] mr-[10px]"}),E(I(st),{class:A(["mr-[10px]","!w-[".concat(I(k),"px]")]),placeholder:"请输入项目名称或备注"},null,8,["class"]),E(I(ct),{class:"mr-[10px]"}),E(I(lt))]})),content:F((function(){return[E(I(it))]})),"footer-left":F((function(){return[E(I(ft))]})),"footer-right":F((function(){return[E(I(ut))]})),_:1})])}}}),Mt=Object.freeze(Object.defineProperty({__proto__:null,default:Gt},Symbol.toStringTag,{value:"Module"}));t("a",Mt)}}}))}();
Save File
Cancel