← Back
Editing: index-legacy68.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"];function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function r(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){o(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 o(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function i(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function a(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function c(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */c=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.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(e){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),u=new I(r||[]);return i(a,"_invoke",{value:L(t,n,u)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var d="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function b(){}function w(){}function x(){}var _={};f(_,u,(function(){return this}));var j=Object.getPrototypeOf,k=j&&j(j(N([])));k&&k!==r&&o.call(k,u)&&(_=k);var O=x.prototype=b.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function C(e,n){function r(i,a,u,c){var l=h(e[i],e,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&o.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 a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function L(t,n,r){var o=d;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var c=P(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===d)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var l=h(t,n,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 P(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function N(n){if(n||""===n){var r=n[u];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function t(){for(;++i<n.length;)if(o.call(n,i))return t.value=n[i],t.done=!1,t;return t.value=e,t.done=!0,t};return a.next=a}}throw new TypeError(t(n)+" is not iterable")}return w.prototype=x,i(O,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,s,"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,f(t,s,"GeneratorFunction")),t.prototype=Object.create(O),t},n.awrap=function(t){return{__await:t}},S(C.prototype),f(C.prototype,l,(function(){return this})),n.AsyncIterator=C,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new C(p(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(O),f(O,s,"Generator"),f(O,u,(function(){return this})),f(O,"toString",(function(){return"[object Generator]"})),n.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}},n.values=N,I.prototype={constructor:I,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(T),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function r(r,o){return u.type="throw",u.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.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&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.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),T(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;T(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}function l(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 s(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){l(i,r,o,a,u,"next",t)}function u(t){l(i,r,o,a,u,"throw",t)}a(void 0)}))}}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./index-legacy117.js?v=VERSION_NUMBER","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=VERSION_NUMBER","./site-legacy.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","./useController-legacy5.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./index-legacy130.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./index-legacy124.js?v=VERSION_NUMBER","./useMethod-legacy5.js?v=VERSION_NUMBER"],(function(t,n){"use strict";var o,u,l,f,p,h,d,y,v,m,g,b,w,x,_,j,k,O,S,C,L,P,E,T,I,N,A,B,G,W,D,F,H,R,q,M,V,U,Y,J,Q,$,z,K,X,Z,tt,et,nt,rt,ot,it,at,ut,ct,lt,st,ft,pt,ht,dt,yt,vt,mt,gt,bt,wt,xt;return{setters:[function(t){o=t.u,u=t.aM,l=t.a6,f=t.q,p=t.w,h=t.a7,d=t.cu,y=t.cv,v=t.L,m=t.a8,g=t.j},function(t){b=t._},function(t){w=t._},function(t){x=t._},function(t){_=t.delSorted,j=t.addSiteTypes,k=t.modifySiteTypes,O=t.removeSiteType},function(t){S=t.B},function(t){C=t.u},function(t){L=t.c,P=t.t,E=t.s,T=t.w,I=t.e,N=t.B,A=t.D,B=t.p,G=t.n,W=t.q,D=t.v,F=t.x,H=t.A,R=t.y,q=t.J,M=t.P},null,null,function(t){V=t.a,U=t.b,Y=t.d,J=t.k,Q=t.g,$=t.u},function(t){z=t.b,K=t.c,X=t.d,Z=t.e,tt=t.f},function(t){et=t.S},function(t){nt=t.S,rt=t.a,ot=t.p,it=t.b,at=t.c,ut=t.d,ct=t.t,lt=t.e,st=t.f,ft=t.g,pt=t.o,ht=t.r,dt=t.h,yt=t.i,vt=t.j,mt=t.k,gt=t.l,bt=t.m,wt=t.n,xt=t.q},null,null,null,null,null],execute:function(){var _t={class:"p-[20px] pb-[24px]"};t("default",L({__name:"index",setup:function(t){var L=o(),jt=L.payment,kt=(L.mainHeight,L.plugin),Ot=L.enterpriseRec,St=P(jt.value).authType,Ct=E(et()),Lt=Ct.activeType,Pt=Ct.isRefreshList,Et=Ct.searchWidth,Tt=et().getClassList,It=E(nt()),Nt=It.pluginInfo,At=It.scanData,Bt=nt().getPhpList;T(Z,(function(t){null!=t&&t.pluginInfo&&(Nt.value=t.pluginInfo)}),{immediate:!0,deep:!0});var Gt,Wt,Dt,Ft=C({key:"type",name:"PHP分类",options:function(){return[{label:"全部分类",value:"all"}]},event:{get:(Gt=s(c().mark((function t(){var e,n;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Tt();case 2:return e=t.sent,n=e.data,gt.value=n,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t)}))),function(){return Gt.apply(this,arguments)}),add:function(t){return j(t,Lt.value)},update:function(t){return k(t,Lt.value)},delete:function(t){return O(t,Lt.value)}},ignore:["0","-2"],field:"name"}),Ht=m(xt),Rt=u({options:[{type:"button",label:"添加站点",active:!0,onClick:rt},{type:"dropdown",label:"高级设置",onClick:ot,options:[{label:"修改默认页面",onClick:ot},{label:"默认站点",onClick:function(){return ot("defaultSite")}},{label:"PHP命令行版本",onClick:function(){return ot("phpCommandLine")}},{label:"HTTPS防窜站",onClick:function(){return ot("httpsOfficersSite")}},{label:"TLS设置",onClick:function(){return ot("tlsSetting")}},{label:"全局设置",onClick:function(){return ot("globalSetting")}},{label:"关联数据库",onClick:function(){return ot("associatedDatabase")}}]}].concat(a(Ot.value?[{type:"custom",render:function(){return I(A,{onClick:it},{default:function(){var t,e;return[N("漏洞扫描"),I("span",{class:"ml-4px py-1px px-4px text-white text-center font-bold ".concat((null===(t=At.value)||void 0===t?void 0:t.loophole_num)>0?"bg-[red]":"bg-[#f0ad4e]")},[null===(e=At.value)||void 0===e?void 0:e.loophole_num])]}})}},{type:"custom",render:function(){return I(A,{onClick:at},{default:function(){var t,e;return[N("网站安全"),I("span",{class:"ml-4px py-1px px-4px text-white text-center font-bold ".concat((null===(t=At.value)||void 0===t?void 0:t.web_scaning_times)>0?"bg-[red]":"bg-[#f0ad4e]")},[null===(e=At.value)||void 0===e?void 0:e.web_scaning_times])]}})}}]:[]),[{type:"custom",render:function(){return I(S,{class:"ml-1rem",isRequest:!1,pluginInfo:Nt.value},null)}}])}).BtOperation,qt=l({request:(Dt=s(c().mark((function t(n){var o,a,u,l;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=n.type,a=i(n,e),t.next=3,Bt(r(r({type:f(o)||"all"===o?"-1":o},a),{},{table:"sites",order:Zt.order||""}));case 3:return u=t.sent,l=ut("/site/php_column"),u.data.forEach((function(t){t.isWaf=null==l||!l.length||l[1].isCustom})),ct.value=u.data,t.abrupt("return",u);case 8:case"end":return t.stop()}}),t)}))),function(t){return Dt.apply(this,arguments)}),sort:(Wt=s(c().mark((function t(e){var n,r,o,i;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.column,n=e.prop,r=e.order,o=n,r){t.next=9;break}return o="",t.next=6,_();case 6:Zt.order="",t.next=11;break;case 9:i={orderName:o,orderStatus:"ascending"===r?"asc":"desc"},Zt.order="".concat(i.orderName," ").concat(i.orderStatus);case 11:Kt();case 12:case"end":return t.stop()}}),t)}))),function(t){return Wt.apply(this,arguments)}),columns:[V({type:"page",key:"id"}),{subtitle:"WAF图标",isCustom:!0,isLtd:!0,isHide:!0,showClick:function(t){Zt.data.forEach((function(e){e.isWaf=t}))}},z({label:"网站名",type:Lt.value,openPlugin:lt,onClick:st}),U({width:80,sortable:"custom",event:bt,data:["已停止","运行中"]}),{label:"备份",width:65,isCustom:!0,render:function(t){return I("span",{onClick:function(){return ft(t)},class:"".concat(t.backup_count?"text-[#20a53a]":"text-warning"," cursor-pointer")},[t.backup_count?"有(".concat(t.backup_count,")"):"无备份"])}},Y({prop:"path",labelClassName:"php-table-path",minWidth:140})].concat(a(Ot.value?[r(r({},J({event:function(t){return st(r(r({},t),{},{tabName:"flowQuota"}),"directory")}})),{},{isCustom:!1}),{label:"日流量",width:80,isCustom:!0,isLtd:!0,render:function(t){return"free"===St.value?I("span",{class:"cursor-pointer bt-link",onClick:function(){pt(t)}},[N("查看")]):kt.value.total?null!=t&&null!==(e=t.net)&&void 0!==e&&e.hasOwnProperty("one_day_total_flow")?p((null==t||null===(n=t.net)||void 0===n?void 0:n.one_day_total_flow)||0,!0,2):"--":I("span",{class:"cursor-pointer bt-link",onClick:function(){pt(t)}},[N("查看")]);var e,n}}]:[]),[K(),Q({table:"sites",minWidth:110,width:"auto"}),{label:"PHP",isCustom:!0,minWidth:80,width:80,render:function(t){var e=!t.php_version_status;return I("span",{class:"cursor-pointer "+(e&&"静态"!==t.php_version?"bt-warn":"bt-link"),onClick:function(){return st(t,"php")}},[e&&"静态"!==t.php_version?t.php_version+"[未安装]":"其它"==t.php_version?"自定义":t.php_version])}},X({onClick:function(t){st(t,"ssl")}}),$([{onClick:function(t){lt(t,"monitor-setting")},title:"统计"},{onClick:function(t){lt(t,"bt_waf")},title:"WAF"},{title:"设置",onClick:function(t){return st(t)}},{title:"删除",onClick:function(t){return wt(t)}}])]),extension:[Ft,Ht,h(Pt),d("search",{name:"sites",key:"php",list:ht.value}),y()],empty:function(){return I("span",null,[N("您的列表为空,您可以"),I("span",{class:"bt-link",onClick:rt},[N("添加一个项目")])])}}),Mt=qt.BtTable,Vt=qt.BtPage,Ut=qt.BtRefresh,Yt=qt.BtTableCategory,Jt=qt.BtRecommendSearch,Qt=qt.BtColumn,$t=qt.BtBatch,zt=qt.BtErrorMask,Kt=qt.refresh,Xt=qt.categoryRef,Zt=qt.config;return B((function(){G((function(){dt.value=Xt(),v((function(){return n.import("./index-legacy356.js?v=VERSION_NUMBER")}),void 0,n.meta.url),v((function(){return n.import("./index-legacy210.js?v=VERSION_NUMBER")}),void 0,n.meta.url),Ot.value&&yt()}))})),function(t,e){var n=w,r=g,o=b;return W(),D("div",null,[I(x,{ref_key:"envRef",ref:Z,onInit:F(Kt)},null,8,["onInit"]),I(F(zt)),I(o,null,{"header-left":H((function(){return[I(F(Rt)),R("div",{class:"flex items-center ml-1rem",onClick:e[0]||(e[0]=function(){return F(tt)&&F(tt).apply(void 0,arguments)})},e[2]||(e[2]=[R("i",{class:"svgtofont-desired text-[1.6rem]"},null,-1),R("span",{class:"bt-link"},"需求反馈",-1)]))]})),"header-right":H((function(){return[I(F(Yt),{class:"!w-[140px] mr-[10px]"}),I(F(Jt),{type:"php",placeholder:"请输入域名或备注",class:q(["mr-[10px]","!w-[".concat(F(Et),"px]")])},null,8,["class"]),I(F(Ut),{class:"mr-[10px]"}),I(F(Qt))]})),content:H((function(){return[I(F(Mt))]})),"footer-left":H((function(){return[I(F($t))]})),"footer-right":H((function(){return[I(F(Vt))]})),popup:H((function(){return[I(r,{title:"插件预览",modelValue:F(vt),"onUpdate:modelValue":e[1]||(e[1]=function(t){return M(vt)?vt.value=t:null}),area:66},{default:H((function(){return[R("div",_t,[I(n,{data:F(mt)},null,8,["data"])])]})),_:1},8,["modelValue"])]})),_:1})])}}}))}}}))}();
Save File
Cancel