← Back
Editing: index-legacy166.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(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var n,r={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",s=l.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(n){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof x?e:x,i=Object.create(o.prototype),l=new P(r||[]);return a(i,"_invoke",{value:I(t,n,l)}),i}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",g={};function x(){}function w(){}function b(){}var _={};f(_,c,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(M([])));L&&L!==o&&i.call(L,c)&&(_=L);var E=b.prototype=x.prototype=Object.create(_);function j(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(e,n){function r(o,a,l,c){var u=h(e[o],e,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==t(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,l,c)}),(function(t){r("throw",t,l,c)})):n.resolve(f).then((function(t){s.value=t,l(s)}),(function(t){return r("throw",t,l,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(t,e){function i(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(i,i):i()}})}function I(t,e,r){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:n,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=O(l,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===y)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var u=h(t,e,r);if("normal"===u.type){if(o=r.done?m:d,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function O(t,e){var r=e.method,o=t.iterator[r];if(o===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=n,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,g):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function T(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 P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function t(){for(;++o<e.length;)if(i.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return a.next=a}}throw new TypeError(t(e)+" is not iterable")}return w.prototype=b,a(E,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=f(b,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,f(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},r.awrap=function(t){return{__await:t}},j(S.prototype),f(S.prototype,u,(function(){return this})),r.AsyncIterator=S,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new S(p(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(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),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}},r.values=M,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},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 e=this;function r(r,o){return l.type="throw",l.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.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&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},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),C(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;C(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:M(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}},r}function n(t,e,n,r,o,i,a){try{var l=t[i](a),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function l(t){n(a,o,i,l,c,"next",t)}function c(t){n(a,o,i,l,c,"throw",t)}l(void 0)}))}}System.register(["./base-lib-legacy.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER"],(function(t,n){"use strict";var o,i,a,l,c,u,s,f,p,h,y,d,v,m,g,x,w,b,_,k,L,E,j,S,I,O,T,C,P,M,G;return{setters:[function(t){o=t.c,i=t.p,a=t.a4,l=t.q,c=t.v,u=t.y,s=t.e,f=t.A,p=t.x,h=t.B,y=t.z,d=t.J,v=t.C,m=t.M,g=t.F,x=t.a_,w=t.bs,b=t.aj,_=t.D,k=t.aQ,L=t.aC,E=t.ai,j=t.f,S=t.aA},function(t){I=t.d,O=t.c,T=t.e},function(t){C=t._},function(t){P=t.I,M=t.B,G=t.C},null,null],execute:function(){var N=""+new URL("../images/soft_ico/icon_plug.svg",n.meta.url).href,U={class:"install-plugin"},A={class:"header"},F={class:"header-left"},V={class:"header-title"},H={class:"text-[16px] font-bold flex items-center truncate h-[20px]"},D={class:"ml-[4px]"},q={class:"mt-[8px]"},z={class:"mr-[10px] text-[#888] text-[13px] flex items-center"},B={class:"header-right"},R={class:"illustrate"},Y=["innerHTML"],J=["innerHTML"],Q={class:"tips-list"},$={key:0,class:"!text-danger"},K={key:1,class:"!text-danger"},W={key:3},X=o({__name:"index",props:{compData:{default:function(){return{type:"i",name:"",pluginInfo:void 0}}}},emits:["close","refresh"],setup:function(t,n){n.emit;var o=P(),T=o.init,X=o.cutPluginActiveInfo,Z=o.install,tt=o.repair,et=o.update,nt=o.pluginPictureSrc,rt=o.$reset,ot=M(),it=ot.pluginModuleInfo,at=ot.pluginActiveInfo,lt=ot.versionModel,ct=ot.pluginImgSrc,ut=ot.pluginTitle,st=ot.pluginLabel,ft=ot.compData,pt=t;return i(r(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return ft.value=pt.compData,t.next=3,T();case 3:case"end":return t.stop()}}),t)})))),a((function(){rt()})),function(t,e){var n=I,r=w,o=C,i=O,a=E,T=b,P=_,M=k,rt=j,ot=S,ft=L;return l(),c("div",U,[u("div",A,[u("div",F,[s(n,{src:p(ct),class:"h-[35px] w-[40px] mr-[10px]",type:"img"},{error:f((function(){return e[7]||(e[7]=[u("img",{src:N,class:"w-[4rem] h-[4rem]",alt:""},null,-1)])})),_:1},8,["src"]),u("div",V,[u("span",H,[h(y(p(ut))+" ",1),u("span",D,y(p(it).currentVersion||p(at).fullVersion),1),!p(it).isSystem&&13!==p(it).type&&p(st).length>0?(l(),c("span",{key:0,class:d(p(st)[2]+" border-[1px] p-[4px] font-500 text-[14px] ml-[5px]")},y(p(st)[1]),3)):v("",!0)]),u("span",q,[u("span",z,[p(it).isUpdate?(l(),m(r,{key:0,"is-dot":"",class:"item"},{default:f((function(){return[h(" 最新版本:"+y("".concat(p(at).fullVersion)),1)]})),_:1})):v("",!0),p(it).isSystem||!p(it).isInstall&&!p(it).isUpdate?v("",!0):(l(),c(g,{key:1},[p(it).isInstall?v("",!0):(l(),m(o,{key:0})),u("span",null,"更新时间:"+y(p(at).updateTime),1),s(o),s(i,{class:"font-normal",onClick:e[0]||(e[0]=function(t){return p(G)(p(it))})},{default:f((function(){return e[8]||(e[8]=[u("span",{class:"text-[13px]"},"更新日志",-1)])})),_:1})],64))])])])]),u("div",B,[p(lt).version.length>1&&p(it).isInstall?(l(),c(g,{key:0},[s(T,{modelValue:p(lt).value,"onUpdate:modelValue":e[1]||(e[1]=function(t){return p(lt).value=t}),class:"!w-[140px]",onChange:p(X)},{default:f((function(){return[(l(!0),c(g,null,x(p(lt).version,(function(t){return l(),m(a,{key:t.key,value:t.key,disabled:t.disabled,label:t.title},null,8,["value","disabled","label"])})),128))]})),_:1},8,["modelValue","onChange"]),s(o,{class:"mx-[1rem]"})],64)):v("",!0),p(it).isSystem&&p(it).isInstall?(l(),c(g,{key:1},[p(it).compile?(l(),m(M,{key:0,placement:"top",enterable:!0},{content:f((function(){return e[9]||(e[9]=[u("span",null,"安装时间较长,性能最大化,适合生产环境",-1)])})),default:f((function(){return[s(P,{class:"mr-[4px]",onClick:e[2]||(e[2]=function(t){return p(Z)(0)})},{default:f((function(){return e[10]||(e[10]=[h("编译安装")])})),_:1})]})),_:1})):v("",!0),s(M,{placement:"top",enterable:!1},{content:f((function(){return e[11]||(e[11]=[u("span",null,"安装时间极快,版本与稳定性略低于编译安装,适合快速部署测试",-1)])})),default:f((function(){return[s(P,{type:"primary",onClick:e[3]||(e[3]=function(t){return p(Z)(1)})},{default:f((function(){return[h(y(p(it).compile?"极速安装":"立即安装"),1)]})),_:1})]})),_:1})],64)):p(it).isInstall?(l(),m(P,{key:2,type:"primary",onClick:e[4]||(e[4]=function(t){return p(Z)()})},{default:f((function(){return e[12]||(e[12]=[h(" 立即安装 ")])})),_:1})):v("",!0),p(it).isRepair?(l(),m(P,{key:3,type:"primary",onClick:e[5]||(e[5]=function(t){return p(tt)()})},{default:f((function(){return e[13]||(e[13]=[h(" 立即修复 ")])})),_:1})):v("",!0),p(it).isUpdate?(l(),m(P,{key:4,type:"primary",onClick:e[6]||(e[6]=function(t){return p(et)()})},{default:f((function(){return e[14]||(e[14]=[h(" 立即更新 ")])})),_:1})):v("",!0)])]),p(it).introduction.length?(l(),m(ft,{key:0,"tab-position":"left",class:"carousel"},{default:f((function(){return[(l(!0),c(g,null,x(p(it).introduction,(function(t,e){return l(),m(ot,{label:t[0],lazy:"",key:e},{default:f((function(){return[s(rt,{src:p(nt)(e),class:"max-h-[100%] object-scale-down","preview-src-list":[p(nt)(e)]},null,8,["src","preview-src-list"])]})),_:2},1032,["label"])})),128))]})),_:1})):v("",!0),u("div",R,[p(it).isUpdate?(l(),c(g,{key:1},[e[16]||(e[16]=u("div",{class:"title"},"更新日志:",-1)),u("div",{class:"content",innerHTML:p(at).updateMsg},null,8,J)],64)):(l(),c(g,{key:0},[e[15]||(e[15]=u("div",{class:"title"},"插件说明:",-1)),u("div",{class:"content",innerHTML:p(it).ps},null,8,Y)],64))]),u("ul",Q,[e[19]||(e[19]=u("li",null,"如果已存在此插件,文件将被替换!",-1)),p(it).isSystem?v("",!0):(l(),c("li",$,"请手动安装插件扩展和依赖环境,如果未安装,将无法正常使用该插件")),p(it).isMysqlUpdate?(l(),c("li",K,"更新数据库有风险,建议在更新前,先备份您的数据库!")):v("",!0),p(it).isUpdate?(l(),c(g,{key:2},[e[17]||(e[17]=u("li",{class:"!text-danger"},"更新过程可能会导致服务中断,请须知",-1)),e[18]||(e[18]=u("li",{class:"!text-danger"},"建议您在服务器负载闲时进行软件更新",-1))],64)):(l(),c("li",W,"安装过程可能需要几分钟时间,请耐心等候!"))])])}}});t("default",T(X,[["__scopeId","data-v-aa38cfd5"]]))}}}))}();
Save File
Cancel