← Back
Editing: index-legacy75.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 r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return n};var e,n={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(e){s=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),u=new B(n||[]);return a(i,"_invoke",{value:P(t,r,u)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y="suspendedStart",v="suspendedYield",d="executing",g="completed",m={};function b(){}function w(){}function x(){}var j={};s(j,c,(function(){return this}));var O=Object.getPrototypeOf,_=O&&O(O(N([])));_&&_!==o&&i.call(_,c)&&(j=_);var L=x.prototype=b.prototype=Object.create(j);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(e,r){function n(o,a,u,c){var l=h(e[o],e,a);if("throw"!==l.type){var f=l.arg,s=f.value;return s&&"object"==t(s)&&i.call(s,"__await")?r.resolve(s.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(s).then((function(t){f.value=t,u(f)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var o;a(this,"_invoke",{value:function(t,e){function i(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(i,i):i()}})}function P(t,r,n){var o=y;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=h(t,r,n);if("normal"===l.type){if(o=n.done?g:v,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=g,n.method="throw",n.arg=l.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=h(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}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 I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function B(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function N(r){if(r||""===r){var n=r[c];if(n)return n.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,a=function t(){for(;++o<r.length;)if(i.call(r,o))return t.value=r[o],t.done=!1,t;return t.value=e,t.done=!0,t};return a.next=a}}throw new TypeError(t(r)+" is not iterable")}return w.prototype=x,a(L,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:w,configurable:!0}),w.displayName=s(x,f,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,s(t,f,"GeneratorFunction")),t.prototype=Object.create(L),t},n.awrap=function(t){return{__await:t}},S(E.prototype),s(E.prototype,l,(function(){return this})),n.AsyncIterator=E,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new E(p(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(L),s(L,f,"Generator"),s(L,c,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},n.values=N,B.prototype={constructor:B,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(I),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("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 n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;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,m):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),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},n}function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(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){i(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 i(e,r,n){return(r=function(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function a(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=VERSION_NUMBER","./index-legacy131.js?v=VERSION_NUMBER","./index-legacy141.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./index.vue_vue_type_style_index_0_scoped_b3c4124c_lang-legacy.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./useController-legacy6.js?v=VERSION_NUMBER","./useStore-legacy4.js?v=VERSION_NUMBER"],(function(t,n){"use strict";var i,u,c,l,f,s,p,h,y,v,d,g,m,b,w,x,j,O,_,L,S,E,P,k,T,I,B,N,C,G,F,M,R,q,D,H,A,J,Y,z,K,Q,U,V;return{setters:[function(t){i=t.n,u=t.L,c=t.M,l=t.u,f=t.aM,s=t.a6,p=t.q,h=t.a7,y=t.a8},function(t){v=t._},function(t){d=t._},function(t){g=t.B},function(t){m=t.u},function(t){b=t.j,w=t.r,x=t.c,j=t.s,O=t.w,_=t.e,L=t.B,S=t.p,E=t.n,P=t.q,k=t.v,T=t.x,I=t.A,B=t.y},function(t){N=t.f},null,function(t){C=t.a,G=t.d,F=t.g,M=t.u},function(t){R=t.b,q=t.d,D=t.e,H=t.f,A=t.h,J=t.i,Y=t.u,z=t.a,K=t.l,Q=t.j},function(t){U=t.u,V=t.S}],execute:function(){var W=U(),X=(W.activeType,W.isRefreshList),Z=V(),$=Z.addGeneralProject,tt=Z.setSiteInfo,et=function(){i({title:"添加HTML项目",area:62,component:function(){return u((function(){return n.import("./index-legacy374.js?v=VERSION_NUMBER")}),void 0,n.meta.url)},showFooter:!0})},rt=function(t){tt(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:""),i({title:"HTML项目管理["+t.name+"] -- 添加时间["+t.addtime+"]",area:[84,72],component:function(){return u((function(){return n.import("./index-legacy375.js?v=VERSION_NUMBER")}),void 0,n.meta.url)}})},nt=(t("o",(function(t,e){N({type:"dir",path:t,change:function(t){e&&e(t)}})})),t("a",function(){var t,e=(t=r().mark((function t(e){var n,i,a,u,l;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,-1!==(i=o(o({},e),{},{port:80})).webname.split("\n")[0].indexOf(":")&&(i.port=i.webname.split("\n")[0].split(":")[1]),a=i.webname.split("\n").filter((function(t){return t.length})),u=a.slice(1),i.webname=JSON.stringify({domain:i.webname.split("\n")[0],domainlist:u,count:u.length}),i.ftp||(delete i.ftp_username,delete i.ftp_password),t.next=9,$(i);case 9:if(null==(l=t.sent)||null===(n=l.data)||void 0===n||!n.siteStatus){t.next=16;break}return X.value=!0,c.success("添加成功"),t.abrupt("return",!0);case 16:return c.error(l.msg),t.abrupt("return",!1);case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(0);case 23:case"end":return t.stop()}}),t,null,[[0,20]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function u(t){a(i,n,o,u,c,"next",t)}function c(t){a(i,n,o,u,c,"throw",t)}u(void 0)}))});return function(t){return e.apply(this,arguments)}}()),b("SITE-HTML-STORE",(function(){return{pluginInfo:w({})}}))),ot=x({__name:"index",setup:function(t){l();var r=V().getSiteList,i=j(V()),a=(i.activeType,i.isRefreshList),c=j(nt()).pluginInfo;O(D,(function(t){null!=t&&t.pluginInfo&&(c.value=t.pluginInfo)}),{immediate:!0,deep:!0});var b=f({options:[{type:"button",label:"添加项目",active:!0,onClick:et},{type:"custom",render:function(){return _(g,{class:"ml-1rem",isRequest:!1,pluginInfo:c.value},null)}}]}).BtOperation,w=m({key:"type_id",name:"PHP分类",options:function(){return[{label:"全部分类",value:"all"}]},event:A,ignore:["0"],field:"type_name"}),x=y([Y(),z({classList:Q}),{label:"删除项目",value:"delete",event:K}]),N=s({request:function(t){var n=t.type_id,i=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,e);return r({data:JSON.stringify(o(o({},i),{},{type_id:p(n)||"all"===n?"":n}))})},columns:[C(),R({onClick:function(t){return rt(t)}}),G(),F({table:"sites",width:200}),q({onClick:function(t){return rt(t,"ssl")}}),M([{title:"设置",onClick:function(t){return rt(t)}},{title:"删除",onClick:function(t){return J(t)}}])],extension:[w,x,h(a)],empty:function(){return _("span",null,[L("您的列表为空,您可以"),_("span",{class:"bt-link",onClick:et},[L("添加一个项目")])])}}),U=N.BtTable,W=N.BtSearch,X=N.BtRefresh,Z=N.BtPage,$=N.BtColumn,tt=N.BtTableCategory,ot=N.BtBatch,it=N.refresh;return S((function(){E((function(){u((function(){return n.import("./index-legacy374.js?v=VERSION_NUMBER")}),void 0,n.meta.url),u((function(){return n.import("./index-legacy375.js?v=VERSION_NUMBER")}),void 0,n.meta.url)}))})),function(t,e){var r=v;return P(),k("div",null,[_(d,{ref_key:"envRef",ref:D,onInit:T(it)},null,8,["onInit"]),_(r,null,{"header-left":I((function(){return[_(T(b)),B("div",{class:"flex items-center ml-1rem",onClick:e[0]||(e[0]=function(){return T(H)&&T(H).apply(void 0,arguments)})},e[1]||(e[1]=[B("i",{class:"svgtofont-desired text-[1.6rem]"},null,-1),B("span",{class:"bt-link"},"需求反馈",-1)]))]})),"header-right":I((function(){return[_(T(tt),{class:"!w-[200px] mr-[10px]"}),_(T(W),{class:"mr-[10px]",placeholder:"请输入项目名称或备注"}),_(T(X),{class:"mr-[10px]"}),_(T($))]})),content:I((function(){return[_(T(U))]})),"footer-left":I((function(){return[_(T(ot))]})),"footer-right":I((function(){return[_(T(Z))]})),_:1})])}}}),it=Object.freeze(Object.defineProperty({__proto__:null,default:ot},Symbol.toStringTag,{value:"Module"}));t("i",it)}}}))}();
Save File
Cancel