← Back
Editing: index-legacy53.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(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return r};var n,r={},o=Object.prototype,a=o.hasOwnProperty,l=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.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(n){f=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),i=new O(r||[]);return l(a,"_invoke",{value:C(e,n,i)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var y="suspendedStart",m="suspendedYield",d="executing",v="completed",g={};function b(){}function x(){}function w(){}var _={};f(_,u,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(B([])));L&&L!==o&&a.call(L,u)&&(_=L);var j=w.prototype=b.prototype=Object.create(_);function E(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function S(t,n){function r(o,l,i,u){var c=h(t[o],t,l);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==e(f)&&a.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,i,u)}),(function(e){r("throw",e,i,u)})):n.resolve(f).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,u)}))}u(c.arg)}var o;l(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 C(e,t,r){var o=y;return function(a,l){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===a)throw l;return{value:n,done:!0}}for(r.method=a,r.arg=l;;){var i=r.delegate;if(i){var u=T(i,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===y)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var c=h(e,t,r);if("normal"===c.type){if(o=r.done?v:m,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=v,r.method="throw",r.arg=c.arg)}}}function T(e,t){var r=t.method,o=e.iterator[r];if(o===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=n,T(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=h(o,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,g;var l=a.arg;return l?l.done?(t[e.resultName]=l.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):l:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function V(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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(V,this),this.reset(!0)}function B(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,l=function e(){for(;++o<t.length;)if(a.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=n,e.done=!0,e};return l.next=l}}throw new TypeError(e(t)+" is not iterable")}return x.prototype=w,l(j,"constructor",{value:w,configurable:!0}),l(w,"constructor",{value:x,configurable:!0}),x.displayName=f(w,s,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,f(e,s,"GeneratorFunction")),e.prototype=Object.create(j),e},r.awrap=function(e){return{__await:e}},E(S.prototype),f(S.prototype,c,(function(){return this})),r.AsyncIterator=S,r.async=function(e,t,n,o,a){void 0===a&&(a=Promise);var l=new S(p(e,t,n,o),a);return r.isGeneratorFunction(t)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},E(j),f(j,s,"Generator"),f(j,u,(function(){return this})),f(j,"toString",(function(){return"[object Generator]"})),r.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}},r.values=B,O.prototype={constructor:O,reset:function(e){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(P),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},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 t=this;function r(r,o){return i.type="throw",i.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o],i=l.completion;if("root"===l.tryLoc)return r("end");if(l.tryLoc<=this.prev){var u=a.call(l,"catchLoc"),c=a.call(l,"finallyLoc");if(u&&c){if(this.prev<l.catchLoc)return r(l.catchLoc,!0);if(this.prev<l.finallyLoc)return r(l.finallyLoc)}else if(u){if(this.prev<l.catchLoc)return r(l.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return r(l.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 l=o?o.completion:{};return l.type=e,l.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(l)},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),P(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;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:B(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}},r}function n(e,t,n,r,o,a,l){try{var i=e[a](l),u=i.value}catch(e){return void n(e)}i.done?t(u):Promise.resolve(u).then(r,o)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var l=e.apply(t,r);function i(e){n(l,o,a,i,u,"next",e)}function u(e){n(l,o,a,i,u,"throw",e)}i(void 0)}))}}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./index-legacy123.js?v=VERSION_NUMBER","./useController-legacy8.js?v=VERSION_NUMBER","./index-legacy117.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./index-legacy116.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./useStore-legacy6.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./useStore-legacy7.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER"],(function(e,n){"use strict";var o,a,l,i,u,c,s,f,p,h,y,m,d,v,g,b,x,w,_,k,L,j,E,S,C,T,V,P,O,B,q,N,G,R,F,M,A,U,I,D,H,W,Y,z,J,K,X,Z,Q,$,ee,te,ne,re,oe,ae,le,ie,ue,ce;return{setters:[function(e){o=e.u,a=e.a6,l=e.a7,i=e.cX,u=e.cZ,c=e.ag,s=e.d3,f=e.J,p=e.al,h=e.e,y=e.a8},function(e){m=e.c,d=e.g,v=e.p,g=e.q,b=e.v,x=e.x,w=e.M,_=e.A,k=e.y,L=e.e,j=e.P,E=e.C,S=e.B,C=e.s,T=e.F,V=e.a_,P=e.K,O=e.D,B=e.aA,q=e.aj,N=e.ai},function(e){G=e._},function(e){R=e.r,F=e.i,M=e.b,A=e.f,U=e.p,I=e.e,D=e.g,H=e.h,W=e.j,Y=e.k,z=e.s,J=e.l,K=e.m,X=e.n,Z=e.o,Q=e.T,$=e.q,ee=e.v,te=e.w,ne=e.x,re=e.y,oe=e.z,ae=e.A,le=e.B},function(e){ie=e._},function(e){ue=e._},function(e){ce=e._},null,null,null,null,null,null],execute:function(){var n={class:"flex items-center"},se={class:"flex items-center"},fe={class:"mr-1rem"},pe={class:"mr-1rem"},he={class:"flex items-center mr-1rem"},ye=m({__name:"index",setup:function(e){var t=o().payment,r=i({options:[{label:"登录日志",value:"login"},{label:"操作日志",value:"action"}],key:"ftpType"}),s=u({options:[{label:"全部",value:"all"},{label:"上传",value:"upload"},{label:"下载",value:"download"},{label:"删除",value:"delete"},{label:"重命名",value:"rename"}],key:"type",other:{style:"width: 10rem"}}),f=a({request:R,columns:d((function(){return"login"===P.value.ftpType?[{label:"用户名",prop:"user"},{label:"登录ip",prop:"ip"},{label:"状态",prop:"status"},{label:"登陆时间",prop:"in_time"},{label:"登出时间",prop:"out_time"}]:[{label:"操作ip",prop:"ip"},{label:"文件",prop:"file"},{label:"操作类型",prop:"type"},{label:"操作时间",prop:"time"}]})),extension:[r,s,l(I)]}),p=f.BtTable,h=f.BtSearch,y=f.BtPage,m=f.BtRefresh,C=f.BtRadioButton,T=f.BtTableSelect,V=f.refresh,P=f.param;return v((function(){F.value=!0})),function(e,r){var o=c,a=ue,l=ie;return g(),b("div",null,["ltd"===x(t).authType?(g(),w(a,{key:0},{"header-left":_((function(){return[k("div",n,[r[1]||(r[1]=k("span",{class:"!w-[6.8rem]"},"ftp用户名:",-1)),L(o,{filterable:"",onChange:x(V),class:"!w-[16rem] lt-xl:w-[12rem]",modelValue:x(M),"onUpdate:modelValue":r[0]||(r[0]=function(e){return j(M)?M.value=e:null}),options:x(A)},null,8,["onChange","modelValue","options"])])]})),"header-right":_((function(){return[k("div",se,[k("div",fe,["action"===x(P).ftpType?(g(),w(x(T),{key:0})):E("",!0)]),k("div",pe,[L(x(h),{placeholder:"请输入搜索关键字",class:"!lt-xl:w-[14rem] !at-xl:w-[14rem]"})]),k("div",he,[r[2]||(r[2]=S(" 日志类型: ")),L(x(C))]),L(x(m))])]})),content:_((function(){return["login"===x(P).ftpType?(g(),w(x(p),{key:0})):(g(),w(x(p),{key:1}))]})),"footer-right":_((function(){return[L(x(y))]})),_:1})):(g(),w(l,{key:1,data:x(U),class:"px-[20%] my-[8rem]"},null,8,["data"]))])}}}),me={class:"flex items-center mb-[12px] justify-between flex-1 flex-wrap"},de={class:"flex items-center"},ve={key:0,class:"flex items-center flex-nowrap"},ge={class:"flex items-center"},be=h(m({__name:"index",setup:function(e){var t=o().mainHeight,n=D(),r=C(n),a=r.mysqlActive,l=r.checkList;return v(H),function(e,n){var r=O,o=s,i=f,u=G,c=B,h=p;return g(),w(h,{type:"bg-card",modelValue:x(a),"onUpdate:modelValue":n[6]||(n[6]=function(e){return j(a)?a.value=e:null}),onTabClick:x(X)},{default:_((function(){return[(g(!0),b(T,null,V(x(W),(function(e,s){return g(),w(c,{label:e.label,name:e.value,key:s},{default:_((function(){return[k("div",me,[k("div",de,[L(r,{class:"!mr-[8px]",onClick:x(Y)},{default:_((function(){return n[7]||(n[7]=[S(" 清空日志 ")])})),_:1},8,["onClick"]),"mysqlError"===x(a)?(g(),b("div",ve,[n[8]||(n[8]=S(" 级别: ")),L(o,{modelValue:x(l),"onUpdate:modelValue":n[0]||(n[0]=function(e){return j(l)?l.value=e:null}),onChange:n[1]||(n[1]=function(e){return x(H)(x(z))}),class:"mr-[12px] flex !flex-nowrap",options:x(J)},null,8,["modelValue","options"])])):E("",!0)]),k("div",ge,[L(i,{class:"mr-1rem w-[26rem]",modelValue:x(z),"onUpdate:modelValue":n[2]||(n[2]=function(e){return j(z)?z.value=e:null}),onSearch:n[3]||(n[3]=function(e){return x(H)(x(z))}),onClear:n[4]||(n[4]=function(){return z.value=""}),placeholder:"请输入搜索关键字"},null,8,["modelValue"]),L(u,{onRefresh:n[5]||(n[5]=function(e){return x(H)(x(z))})})])]),L(ce,{content:x(K),isHtml:!0,autoScroll:!0,fullScreen:{title:"全屏查看-Mysql日志",onRefresh:function(){return x(H)(x(z))}},style:P("height:".concat(x(t)-246,"px"))},null,8,["content","fullScreen","style"])]})),_:2},1032,["label","name"])})),128))]})),_:1},8,["modelValue","onTabClick"])}}}),[["__scopeId","data-v-4ccceb98"]]),xe={class:"flex items-center"},we=m({__name:"index",setup:function(e){var n,o=D(),l=C(o).refreshPlugin,i=o.getPluginLogData,u=y(Q),c=a({request:(n=r(t().mark((function e(n){var r,o,a;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.p,o=n.limit,a=n.search,e.abrupt("return",i({p:r,ROWS:o,search:a}));case 2:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)}),columns:Z.value,extension:[u]}),s=c.BtTable,f=c.BtPage,p=c.BtSearch,h=c.BtRefresh,m=c.BtBatch,d=c.refresh;return l.value=d,function(e,t){var n=ue;return g(),b("div",null,[L(n,null,{"header-right":_((function(){return[k("div",xe,[L(x(p),{class:"mr-1rem !lt-lg:w-[16rem]",placeholder:"请输入搜索关键字"}),L(x(h))])]})),content:_((function(){return[L(x(s))]})),"footer-left":_((function(){return[L(x(m))]})),"footer-right":_((function(){return[L(x(f))]})),_:1})])}}}),_e={class:"items-start flex"},ke={key:2,class:"flex items-center mr-8px"},Le={class:"flex items-center"};e("default",m({__name:"index",setup:function(e){var n=o().mainWidth,a=D().getMenuList,l=C(D()),i=l.menuOptions,u=l.currentName,c=l.phpData,s=l.phpChecked,p=l.logsMsg,h=l.logPath;return v(r(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a();case 2:i.value.length&&$(i.value[0]);case 3:case"end":return e.stop()}}),e)})))),function(e,t){var r=O,o=N,a=q,l=f;return g(),b("div",_e,[L(le,{logsType:"soft",onTabClick:x(ae),"menu-options":x(i),logContent:x(p)},{LogView:_((function(){return[x(ee)?(g(),b("div",{key:0,style:P("width:".concat(x(n)-290,"px"))},["Mysql"===x(u)?(g(),w(be,{key:0})):E("",!0),"FTP"===x(u)?(g(),w(ye,{key:1})):E("",!0),x(te).includes(x(u))?(g(),w(we,{key:2,path:x(h)},null,8,["path"])):E("",!0)],4)):E("",!0)]})),LogLeft:_((function(){return["Mysql"!=x(u)&&x(h)?(g(),w(r,{key:0,class:"!m-0",type:"default",onClick:x(ne)},{default:_((function(){return t[4]||(t[4]=[S(" 导出日志 ")])})),_:1},8,["onClick"])):E("",!0),"Mysql"!=x(u)?(g(),w(r,{key:1,class:"!m-0 !mx-[8px]",type:"default",onClick:x(re)},{default:_((function(){return t[5]||(t[5]=[S(" 清空日志 ")])})),_:1},8,["onClick"])):E("",!0),"Php"===x(u)?(g(),b("div",ke,[t[6]||(t[6]=S(" php版本: ")),L(a,{onChange:x(oe),modelValue:x(s),"onUpdate:modelValue":t[0]||(t[0]=function(e){return j(s)?s.value=e:null}),class:"!w-[8rem] mr-[4px]"},{default:_((function(){return[(g(!0),b(T,null,V(x(c),(function(e,t){return g(),w(o,{key:t,label:e.version,value:e.version},null,8,["label","value"])})),128))]})),_:1},8,["onChange","modelValue"])])):E("",!0)]})),LogRight:_((function(){return[k("div",Le,[L(l,{class:"!w-[26rem] mr-1rem",modelValue:x(z),"onUpdate:modelValue":t[1]||(t[1]=function(e){return j(z)?z.value=e:null}),onSearch:t[2]||(t[2]=function(e){return x($)({name:x(u)},x(z))}),placeholder:"请输入日志内容名称"},null,8,["modelValue"]),L(x(G),{onRefresh:t[3]||(t[3]=function(e){return x($)({name:x(u)},x(z))})})])]})),_:1},8,["onTabClick","menu-options","logContent"])])}}}))}}}))}();
Save File
Cancel