← Back
Editing: index-legacy74.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},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",s=c.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),c=new T(r||[]);return a(i,"_invoke",{value:S(t,n,c)}),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",v="suspendedYield",d="executing",m="completed",g={};function x(){}function b(){}function w(){}var _={};f(_,u,(function(){return this}));var j=Object.getPrototypeOf,k=j&&j(j(I([])));k&&k!==o&&i.call(k,u)&&(_=k);var L=w.prototype=x.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function C(e,n){function r(o,a,c,u){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,c,u)}),(function(t){r("throw",t,c,u)})):n.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,u)}))}u(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 S(t,e,r){var o=y;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 c=r.delegate;if(c){var u=O(c,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=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:v,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=m,r.method="throw",r.arg=l.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 B(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(B,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[u];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 b.prototype=w,a(L,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=f(w,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"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(L),t},r.awrap=function(t){return{__await:t}},E(C.prototype),f(C.prototype,l,(function(){return this})),r.AsyncIterator=C,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new C(p(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(L),f(L,s,"Generator"),f(L,u,(function(){return this})),f(L,"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=I,T.prototype={constructor:T,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(P),!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 c.type="throw",c.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],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){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),P(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;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}},r}function n(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,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","./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","./useController-legacy12.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./index-legacy130.js?v=VERSION_NUMBER","./index-legacy104.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","./site-legacy.js?v=VERSION_NUMBER"],(function(t,r){"use strict";var o,i,a,c,u,l,s,f,p,h,y,v,d,m,g,x,b,w,_,j,k,L,E,C,S,O,B,P,T,I,G,N,F,R,q,A,M,W,Y,H,z,D,J,K;return{setters:[function(t){o=t.u,i=t.aM,a=t.a6,c=t.a7,u=t.L,l=t.a8,s=t.e},function(t){f=t._},function(t){p=t._},function(t){h=t.B},function(t){y=t.c,v=t.s,d=t.r,m=t.w,g=t.e,x=t.B,b=t.p,w=t.n,_=t.q,j=t.v,k=t.x,L=t.A,E=t.y,C=t.C,S=t.M},function(t){O=t.a,B=t.g,P=t.u},function(t){T=t.b,I=t.d,G=t.e,N=t.f,F=t.u},function(t){R=t.S},function(t){q=t.S,A=t.o,M=t.a,W=t.b,Y=t.g,H=t.d,z=t.c,D=t.e,J=t.m,K=t.r},null,null,null,null,null,null],execute:function(){var Q={key:0,class:"flex items-center"},U={key:1,class:"flex items-center"},V=y({__name:"index",setup:function(t){o();var s=R().getSiteList,y=v(R()),V=y.activeType,X=y.isRefreshList,Z=v(q()).proxyType,$=d({});m(G,(function(t){null!=t&&t.pluginInfo&&($.value=t.pluginInfo)}),{immediate:!0,deep:!0});var tt,et,nt=i({options:[{type:"button",label:"添加反代",active:!0,onClick:W},{type:"custom",render:function(){return g(h,{class:"ml-1rem",isRequest:!1,pluginInfo:$.value},null)}}]}).BtOperation,rt=l([F(),{label:"删除项目",value:"delete",event:(tt=e().mark((function t(n,r,o,i,a){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:J(o.value,a);case 1:case"end":return t.stop()}}),t)})),et=function(){var t=this,e=arguments;return new Promise((function(r,o){var i=tt.apply(t,e);function a(t){n(i,r,o,a,c,"next",t)}function c(t){n(i,r,o,a,c,"throw",t)}a(void 0)}))},function(t,e,n,r,o){return et.apply(this,arguments)})}]),ot=a({request:s,columns:[O(),T({label:"域名",type:V.value,openPlugin:A,onClick:function(t){M(t)}}),{label:"代理地址",prop:"proxy_pass",minWidth:220,isCustom:!0,render:function(t){return g("span",{class:"flex justify-start whitespace-pre-line bt-link cursor-pointer"},[g("span",{class:"full-path",onClick:function(){M(t,"urlProxy")}},[t.proxy_pass])])}},B({table:"sites",width:200}),I({onClick:function(t){return M(t,"ssl")}}),P([{onClick:function(t){return A(t,"monitor")},title:"统计"},{onClick:function(t){return A(t,"bt_waf")},title:"WAF"},{title:"设置",onClick:function(t){return M(t)}},{title:"删除",onClick:function(t){return H(t)}}])],extension:[rt,c(X)],empty:function(){return g("span",null,[x("您的列表为空,您可以"),g("span",{class:"bt-link",onClick:W},[x("添加一个项目")])])}}),it=ot.BtTable,at=ot.BtSearch,ct=ot.BtRefresh,ut=ot.BtPage,lt=ot.BtColumn,st=ot.BtBatch,ft=ot.refresh,pt=a({request:Y,columns:[{label:"端口",prop:"listen_port",width:120},{label:"协议",prop:"protocol",isCustom:!0,width:80},{label:"目标",prop:"proxy_pass"},{label:"备注",prop:"ps"},P([{onClick:z,title:"设置"},{onClick:function(t){return D(t,yt)},title:"删除"}])],extension:[c(X)]}),ht=pt.BtTable,yt=pt.refresh,vt=pt.BtRefresh,dt=pt.BtColumn,mt=pt.BtSearch;return m((function(){return K.value}),(function(t){t&&(yt(),"tcp"!==Z.value&&(Z.value="tcp"),K.value=!1)})),b((function(){w((function(){u((function(){return r.import("./index-legacy349.js?v=VERSION_NUMBER")}),void 0,r.meta.url),u((function(){return r.import("./index-legacy350.js?v=VERSION_NUMBER")}),void 0,r.meta.url)}))})),function(t,e){var n=f;return _(),j("div",null,[g(p,{ref_key:"envRef",ref:G,onInit:k(ft)},null,8,["onInit"]),g(n,null,{"header-left":L((function(){return[g(k(nt)),E("div",{class:"flex items-center ml-1rem",onClick:e[0]||(e[0]=function(){return k(N)&&k(N).apply(void 0,arguments)})},e[1]||(e[1]=[E("i",{class:"svgtofont-desired text-[1.6rem]"},null,-1),E("span",{class:"bt-link"},"需求反馈",-1)]))]})),"header-right":L((function(){return[e[2]||(e[2]=E("div",{class:"flex items-center mr-[10px]"},null,-1)),"http"===k(Z)?(_(),j("div",Q,[g(k(at),{class:"mr-[10px]",placeholder:"请输入域名或备注"}),g(k(ct),{class:"mr-[10px]"}),g(k(lt))])):C("",!0),"tcp"===k(Z)?(_(),j("div",U,[g(k(mt),{class:"mr-[10px]",placeholder:"请输入端口"}),g(k(vt),{class:"mr-[10px]"}),g(k(dt))])):C("",!0)]})),content:L((function(){return["http"===k(Z)?(_(),S(k(it),{key:0})):(_(),S(k(ht),{key:1}))]})),"footer-left":L((function(){return["http"===k(Z)?(_(),S(k(st),{key:0})):C("",!0)]})),"footer-right":L((function(){return["http"===k(Z)?(_(),S(k(ut),{key:0})):C("",!0)]})),_:1})])}}});t("default",s(V,[["__scopeId","data-v-ee6e6603"]]))}}}))}();
Save File
Cancel