← Back
Editing: index-legacy47.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},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",s=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(n){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),u=new O(r||[]);return a(i,"_invoke",{value:F(t,n,u)}),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 v="suspendedStart",y="suspendedYield",d="executing",m="completed",g={};function b(){}function x(){}function w(){}var _={};f(_,c,(function(){return this}));var j=Object.getPrototypeOf,k=j&&j(j(C([])));k&&k!==o&&i.call(k,c)&&(_=k);var P=w.prototype=b.prototype=Object.create(_);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function T(e,n){function r(o,a,u,c){var l=h(e[o],e,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&i.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){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(l.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 F(t,e,r){var o=v;return function(i,a){if(o===d)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 u=r.delegate;if(u){var c=E(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===v)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var l=h(t,e,r);if("normal"===l.type){if(o=r.done?m:y,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=m,r.method="throw",r.arg=l.arg)}}}function E(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,E(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 S(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 B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function C(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 x.prototype=w,a(P,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:x,configurable:!0}),x.displayName=f(w,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,s,"GeneratorFunction")),t.prototype=Object.create(P),t},r.awrap=function(t){return{__await:t}},L(T.prototype),f(T.prototype,l,(function(){return this})),r.AsyncIterator=T,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new T(p(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(P),f(P,s,"Generator"),f(P,c,(function(){return this})),f(P,"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=C,O.prototype={constructor:O,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(B),!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 u.type="throw",u.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],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){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(!l)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),B(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;B(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}},r}function n(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.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 u(t){n(a,o,i,u,c,"next",t)}function c(t){n(a,o,i,u,c,"throw",t)}u(void 0)}))}}System.register(["./index-legacy108.js?v=VERSION_NUMBER","./useStore-legacy8.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./index-legacy107.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./index-legacy141.js?v=VERSION_NUMBER","./index-legacy130.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./index-legacy131.js?v=VERSION_NUMBER","./index-legacy109.js?v=VERSION_NUMBER","./index-legacy110.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./index-legacy124.js?v=VERSION_NUMBER","./index.vue_vue_type_style_index_0_scoped_b3c4124c_lang-legacy.js?v=VERSION_NUMBER"],(function(t,n){"use strict";var o,i,a,u,c,l,s,f,p,h,v,y,d,m,g,b,x,w,_,j,k,P,L,T,F,E,S,B,O,C,I,q,M,N,R,G,D,A,z,H,Y,Z,W,J,K,Q,U,V,X,$,tt,et,nt,rt,ot,it,at,ut,ct,lt;return{setters:[function(t){o=t.u},function(t){i=t.u,a=t.a,u=t.g,c=t.b,l=t.c,s=t.d,f=t.e,p=t.f,h=t.h,v=t.o,y=t.i,d=t.j,m=t.k,g=t.s,b=t.l,x=t.m},function(t){w=t.u,_=t.aM,j=t.a6,k=t.R,P=t.a7,L=t.cu,T=t.cv,F=t.A,E=t.n,S=t.L,B=t.a8,O=t.c,C=t.M},function(t){I=t._},function(t){q=t._},function(t){M=t._},function(t){N=t.u},function(t){R=t._},function(t){G=t.r,D=t.as,A=t.c,z=t.e,H=t.F,Y=t.p,Z=t.q,W=t.v,J=t.x,K=t.A,Q=t.y,U=t.z,V=t.B,X=t.a4,$=t.M},function(t){tt=t.a,et=t.i,nt=t.b,rt=t.j,ot=t.d,it=t.k,at=t.g,ut=t.u},function(t){ct=t.p},function(t){lt=t.B},null,null,null,null,null],execute:function(){var st=A({__name:"index",setup:function(t){var o,x,X=w(),$=X.serverIp,st=X.mainHeight,ft=X.payment,pt=i(),ht=pt.ftpPort,vt=pt.rowData,yt=pt.pluginInfo,dt=pt.isRefreshFtpList,mt=a().isEdit,gt=function(t){return vt.value=t,mt.value=!!t,E({title:"".concat(t?"修改FTP用户【".concat(t.name,"】"):"添加FTP用户"),area:50,btn:"".concat(t?"保存":"确认"),compData:t||{},component:function(){return S((function(){return n.import("./index-legacy302.js?v=VERSION_NUMBER")}),void 0,n.meta.url)}})},bt=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"ltd"===ft.value.authType?xt(t):ct({sourceId:e?260:52})},xt=function(t){vt.value=t,E({title:"【".concat(t.name,"】FTP配额容量"),area:50,btn:!0,compData:t,component:function(){return S((function(){return n.import("./index-legacy304.js?v=VERSION_NUMBER")}),void 0,n.meta.url)}})},wt=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];b.value=t,E({title:"FTP日志扫描工具",area:[70,52],component:function(){return S((function(){return n.import("./index-legacy306.js?v=VERSION_NUMBER").then((function(t){return t.k}))}),void 0,n.meta.url)}})},_t=N({key:"type_id",name:"FTP分类",options:function(){return[{label:"全部分类",value:"all"}]},event:{get:l,add:s,update:f,delete:p}}),jt=[{name:"容量限制",callback:function(){if(0===Mt.data.length)return C.error("暂无FTP用户,请先添加FTP用户");bt(Mt.data[0],!0)}},{name:"FTP日志分析",callback:wt}],kt=_({options:[{type:"button",label:"添加FTP",active:!0,onClick:function(){return gt()}},{type:"button",label:"修改FTP端口",onClick:function(){E({title:"修改FTP端口",area:40,btn:!0,component:function(){return S((function(){return n.import("./index-legacy305.js?v=VERSION_NUMBER")}),void 0,n.meta.url)}})}},{type:"button",label:"FTP日志分析",onClick:function(){return wt(!1)}},{type:"divider"},{type:"custom",render:function(){return z(lt,{class:"ml-1rem",isRequest:!1,pluginInfo:yt.value},null)}}]}).BtOperation,Pt=B([{label:"启用FTP",value:"start",event:m},{label:"停用FTP",value:"stop",event:m},{label:"改密FTP",value:"exitPaw",event:(x=r(e().mark((function t(r,o,i,a,u,c){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return vt.value={selectedList:i,clearSelection:u,config:c},t.next=3,E({title:"批量修改FTP密码",area:"auto",btn:!0,compData:{selectedList:i,clearSelection:u,config:c},component:function(){return S((function(){return n.import("./index-legacy309.js?v=VERSION_NUMBER")}),void 0,n.meta.url)}});case 3:case"end":return t.stop()}}),t)}))),function(t,e,n,r,o,i){return x.apply(this,arguments)})},{label:"设置分类",value:"setClass",event:(o=r(e().mark((function t(n,r,o,i,a,u){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:g(o,a,qt,u);case 1:case"end":return t.stop()}}),t)}))),function(t,e,n,r,i,a){return o.apply(this,arguments)})},{label:"删除FTP",value:"delete",event:m}]),Lt=j({request:function(t){return"all"===t.type_id&&(t.type_id=""),u(t)},columns:[tt({type:"page",key:"id"}),{label:"用户名",prop:"name",minWidth:120},et({width:160}),nt({event:h,data:["已停用","已启用"]}),rt({label:"快速连接",width:80,title:"复制快速连接信息",text:"点击查看",event:function(t){vt.value=t,E({title:"快速连接",area:48,compData:t,component:function(){return S((function(){return n.import("./index-legacy308.js?v=VERSION_NUMBER")}),void 0,n.meta.url)}})}}),ot(),{label:"密码有效期",isCustom:!0,width:120,title:"设置密码有效期",prop:"end_time",render:function(t){var e=c(t),r=e.isOrange,o=e.isEnd;return z("span",{onClick:function(){vt.value=t,function(t){E({title:"设置密码有效期",area:46,btn:!0,compData:t,component:function(){return S((function(){return n.import("./index-legacy303.js?v=VERSION_NUMBER")}),void 0,n.meta.url)}})}(t)},title:"设置密码有效期",style:"color:#".concat(o?"ef0808":r?"f0ad4e":"20a53a",";cursor:pointer")},["0"!==t.end_time?k(Number(t.end_time),"yyyy-MM-dd"):"永久"])}},it({event:bt,width:100}),at({table:"ftps",width:"auto"}),ut([{onClick:function(t){vt.value=t,E({title:"修改FTP权限配置-[".concat(t.name,"]"),area:72,btn:"保存",compData:t,component:function(){return S((function(){return n.import("./index-legacy307.js?v=VERSION_NUMBER")}),void 0,n.meta.url)}})},title:"配置"},{onClick:gt,title:"修改"},{onClick:v,title:"日志"},{onClick:y,title:"删除"}])],extension:[_t,Pt,P(dt),L("search",{name:"ftps",list:jt}),T()]}),Tt=Lt.BtTable,Ft=Lt.BtPage,Et=Lt.BtRecommendSearch,St=Lt.BtRefresh,Bt=Lt.BtColumn,Ot=Lt.BtBatch,Ct=Lt.BtTableCategory,It=Lt.BtErrorMask,qt=(Lt.tableRef,Lt.classList),Mt=(Lt.refresh,Lt.config),Nt=function(t){if(!t.request&&!t.options)throw new Error("请传入request或者options参数");var n,o=G({name:"",version:"",setup:!1,status:!1,title:t.name||""}),i=D("_".concat(t.name,"_mask"),!1),a=function(){var n=r(e().mark((function n(){var r;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.request){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.request();case 4:r=e.sent,o.value=r,i.value=!o.value.setup;case 7:case"end":return e.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return null!=t&&t.extension&&t.extension.length&&(null==t||t.extension.forEach((function(t){t.install(o.value)}))),null!=t&&t.options&&(o.value=t.options,i.value=!o.value.setup),{init:(n=r(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a();case 2:return t.abrupt("return",{BtSoftInstallMask:A((function(){return function(){return o.value.setup?null:z(R,{options:o.value},null)}}))});case 3:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)}),checkInstallRequest:a,BtSoftInstallMask:function(){return z(H,null,[i.value?z(R,{options:o.value},null):null])}}}({request:d,name:"Pure-FTPd",extension:[]}),Rt=Nt.BtSoftInstallMask,Gt=Nt.checkInstallRequest;return Y(Gt),function(t,e){var n=M,r=O,o=q,i=I;return Z(),W(H,null,[z(J(Rt)),z(J(It)),z(o,{class:"!mb-[12px]",closable:!1,type:"info","show-icon":""},{title:K((function(){return[e[2]||(e[2]=Q("span",null,"当前FTP地址为:",-1)),Q("span",{class:"cursor-pointer",title:"点击复制FTP路径",onClick:e[0]||(e[0]=function(t){return J(F)({value:"ftp://".concat(J($),":").concat(J(ht))})})}," ftp://"+U(J($)||"IP地址")+":"+U(J(ht)||"端口"),1),z(n),z(r,{target:"_blank",class:"bt-link",href:"https://download.bt.cn/win/filezilla/FileZilla-setup.exe"},{default:K((function(){return e[1]||(e[1]=[V(" 下载FTP连接工具(FileZilla, 免费开源) ")])})),_:1})]})),_:1}),z(i,null,{"header-left":K((function(){return[z(J(kt))]})),"header-right":K((function(){return[z(J(Ct),{class:"!w-[140px] mr-[10px]"}),z(J(Et),{type:"ftps",placeholder:"请输入FTP用户/备注",class:"!w-[270px] mr-[10px]"}),z(J(St),{class:"mr-[10px]"}),z(J(Bt))]})),content:K((function(){return[z(J(Tt),{"min-height":J(st)},null,8,["min-height"])]})),"footer-left":K((function(){return[z(J(Ot))]})),"footer-right":K((function(){return[z(J(Ft))]})),_:1})],64)}}});t("default",A({__name:"index",setup:function(t){var e=o({level:!0}).BtRouterTabs;return X((function(){x()})),function(t,n){return Z(),$(J(e),null,{default:K((function(){return[z(st)]})),_:1})}}}))}}}))}();
Save File
Cancel