← Back
Editing: store-legacy5.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(t){return function(t){if(Array.isArray(t))return n(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 n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(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 n(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 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,a=o.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=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(e){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof w?e:w,a=Object.create(o.prototype),u=new P(r||[]);return i(a,"_invoke",{value:E(t,n,u)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var h="suspendedStart",v="suspendedYield",m="executing",y="completed",g={};function w(){}function _(){}function b(){}var x={};f(x,c,(function(){return this}));var k=Object.getPrototypeOf,j=k&&k(k(q([])));j&&j!==o&&a.call(j,c)&&(x=j);var L=b.prototype=w.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function T(e,n){function r(o,i,u,c){var s=d(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==t(f)&&a.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){l.value=t,u(l)}),(function(t){return r("throw",t,u,c)}))}c(s.arg)}var o;i(this,"_invoke",{value:function(t,e){function a(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(a,a):a()}})}function E(t,n,r){var o=h;return function(a,i){if(o===m)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var c=O(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===h)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?y:v,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=y,r.method="throw",r.arg=s.arg)}}}function O(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,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function A(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 P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function q(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,i=function t(){for(;++o<n.length;)if(a.call(n,o))return t.value=n[o],t.done=!1,t;return t.value=e,t.done=!0,t};return i.next=i}}throw new TypeError(t(n)+" is not iterable")}return _.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:_,configurable:!0}),_.displayName=f(b,l,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,f(t,l,"GeneratorFunction")),t.prototype=Object.create(L),t},n.awrap=function(t){return{__await:t}},S(T.prototype),f(T.prototype,s,(function(){return this})),n.AsyncIterator=T,n.async=function(t,e,r,o,a){void 0===a&&(a=Promise);var i=new T(p(t,e,r,o),a);return n.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(L),f(L,l,"Generator"),f(L,c,(function(){return this})),f(L,"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=q,P.prototype={constructor:P,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 n in this)"t"===n.charAt(0)&&a.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 o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),s=a.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.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&&a.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 i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},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),I(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;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:q(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}function o(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function u(t){o(i,r,a,u,c,"next",t)}function c(t){o(i,r,a,u,c,"throw",t)}u(void 0)}))}}System.register(["./base-lib-legacy.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER"],(function(t,n){"use strict";var o,i,u,c,s,l,f,p,d,h,v,m,y,g,w,_,b,x,k;return{setters:[function(t){o=t.j,i=t.aE,u=t.r,c=t.o,s=t.g},function(t){l=t.o,f=t.u,p=t.K,d=t.S,h=t.ai,v=t.M,m=t.cE,y=t.p,g=t.Z,w=t.aq,_=t.cW},function(t){b=t.p,x=t.l,k=t.k}],execute:function(){var n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.post("plugin/get_soft_list",{data:t,check:"object"})},j=function(t){return l.post("plugin?action=add_index",{data:{sName:t},customType:"model",check:"msg"})},L=function(t){return l.post("plugin?action=remove_index",{data:{sName:t},customType:"model",check:"msg"})};t("q",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.post("warning/get_list",{data:t})})),t("h",(function(){return l.post("warning/get_result",{check:"object"})})),t("w",(function(){return l.post("project/safecloud/get_safe_overview",{customType:"model"})})),t("t",(function(){return l.post("project/safecloud/get_pending_alarm_trend",{customType:"model"})})),t("u",(function(){return l.post("project/safecloud/get_security_trend",{customType:"model"})})),t("v",(function(){return l.post("project/safecloud/get_security_dynamic",{customType:"model"})})),t("r",(function(){return l.post("/plugin?action=a&name=bt_hids&s=set_process",{customType:"model"})})),t("c",(function(){return l.post("system/ReMemory")})),t("k",(function(t){return l.post("monitor/process_management/kill_process_all",{data:t,customType:"model",check:"msg"})})),t("o",(function(){return l.post("warning/get_scan_bar",{check:"object"})})),t("p",(function(){return l.post("safe/security/get_repair_bar",{check:"object",customType:"model"})})),t("g",(function(){return l.post("panel/overview/GetOverview",{check:"array",customType:"model"})})),t("a",(function(t){return l.post("panel/overview/AddOverview",{data:t,check:"msg",customType:"model"})})),t("b",(function(t){return l.post("panel/overview/SetOverview",{data:t,check:"msg",customType:"model"})})),t("e",(function(t){return l.post("panel/overview/SortOverview",{data:t,check:"msg",customType:"model"})})),t("d",(function(t){return l.post("panel/overview/DelOverview",{data:t,check:"msg",customType:"model"})})),t("n",(function(){return l.post("warning/get_tmp_result")})),t("m",(function(){return l.post("warning/kill_get_list")})),t("s",(function(t){return l.post("system/set_rname",{data:t,check:"msg"})})),t("i",(function(t){return l.post("/mod/ssh/com/index_ssh_info",{data:t,check:"array",customType:"model"})})),t("x",(function(){return l.post("/safe/exportreport/get_pdf",{check:"object",customType:"model"})})),t("f",(function(){return l.post("/project/safecloud/get_safecloud_list",{check:"object",customType:"model"})})),t("A",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.post("/project/safecloud/get_webshell_result",{data:t,customType:"model",check:"object"})})),t("B",(function(){return l.post("/project/scanning/get_vuln_info",{check:"object",customType:"model"})})),t("j",(function(){return l.post("/project/safecloud/get_config",{customType:"model",check:"object"})})),t("l",(function(t){return l.post("/project/safecloud/set_config",{data:t,customType:"model",check:"object"})})),t("y",(function(t){return l.post("/project/safecloud/ignore_file",{data:t,customType:"model",check:"object"})})),t("z",(function(t){return l.post("/project/safecloud/deal_webshell_file",{data:t,customType:"model",check:"object"})})),t("C",(function(t){return l.post("/project/safecloud/set_alarm_config",{data:t,customType:"model",check:"object"})})),t("H",o("SOFTWARE-STORE",(function(){var t=i(),o=f(),S=o.forceLtd,T=o.aliyunEcsLtd,E=u(""),O=u(!1),A=u([]),I=u(),P=u([]),q=u([]),N=u(!1),C=u(!1),G=u(0),F=u(!1),H=u([]),R=[],M=function(){var t=a(r().mark((function t(){var e,n,o=arguments;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=o.length>0&&void 0!==o[0]?o[0]:"",!F.value){t.next=3;break}return t.abrupt("return");case 3:if(!h(e)||""===e){t.next=9;break}return F.value=!0,n=s((function(){if(!e)return H.value;var t=e.toLowerCase();return R.filter((function(e){return e.name.toLowerCase().includes(t)||e.ps.toLowerCase().includes(t)||e.title.toLowerCase().includes(t)}))})),H.value=n.value,F.value=!1,t.abrupt("return");case 9:V(e);case 10:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),V=c(function(){var t=a(r().mark((function t(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p({loading:F,request:n({p:1,type:-1,tojs:"soft.get_list",query:e,force:0,row:100}),data:{"list.data":[Array,H],"list.page":d(G)},success:function(t){H.value=t["list.data"].filter((function(t){return t.index_display})).concat(t["list.data"].filter((function(t){return!t.index_display}))),R=H.value}});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),5e3),W=function(){var t=a(r().mark((function t(e,n){var o,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=R.filter((function(t){return t.index_display})).length,R.length,H.value.length,!(o>12&&e.index_display)){t.next=7;break}return e.index_display=!e.index_display,t.abrupt("return",v.error("首页最多只能显示12个软件!"));case 7:return t.prev=7,a=e.index_display?j:L,t.next=11,p({loading:"正在处理,请稍后...",request:a(e.name),message:!0,success:function(t){t.status&&(H.value=H.value.map((function(t){return t.name==t.name&&(t.index_display=t.index_display),t})),R=R.map((function(t){return t.name==t.name&&(t.index_display=t.index_display),t})),P.value=R.filter((function(t){return t.index_display}))),D()}});case 11:t.next=17;break;case 13:t.prev=13,t.t0=t.catch(7),e.index_display=!e.index_display;case 17:case"end":return t.stop()}}),t,null,[[7,13]])})));return function(e,n){return t.apply(this,arguments)}}(),Y=function(t){var e=t?R.filter((function(e){if(e.title.toLowerCase().includes(t.trim().toLowerCase()))return{value:e.title}})):R,n=[];return e.forEach((function(t,e,r){n.push({value:t.title})})),n},B=function(){var t=a(r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p({loading:N,request:l.post("plugin/get_index_list"),success:function(t){var e=t.data.filter((function(t){return t.setup}));q.value=e,P.value=e,D(),z()}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),D=function(){if(P.value.length<=12&&(A.value.length>0&&!S.value&&!T.value?q.value=[].concat(e(P.value),e(A.value)).slice(0,12):q.value=e(P.value).slice(0,12)),q.value.length<12)for(;q.value.length<12;)q.value.push({})},K=function(){var t=a(r().mark((function t(){var e,o,a,i;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=Math.ceil(G.value/12),!((o=Math.ceil(H.value.length/12))>=e)){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,n({p:o+1,type:-1,tojs:"soft.get_list",force:0,row:12});case 6:a=t.sent,i=a.data,H.value=H.value.concat(i.list.data);case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),$=function(t){b({disablePro:!(8===t.type),sourceId:{total:41,monitor:175,btwaf:40,tamper_core:42,bt_security:43,oneav:44,security_notice:56}[t.name]||0})},z=function(){var t,e=document.querySelector(".soft-wrapper");m.create(e,{animation:500,handle:".soft-move",chosenClass:"ghost",onEnd:(t=a(r().mark((function t(e){var n;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=q.value.splice(e.oldIndex,1)[0],q.value.splice(e.newIndex,0,n),U();case 3:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})})},U=function(){var t,e=q.value.filter((function(t){return void 0!==t.id&&t.name})).map((function(t){return t.name})).join("|");p({request:(t={ssort:e},l.post("plugin/sort_index",{data:t}))})},X=function(){var t=a(r().mark((function t(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.endtime>=0||0===e.price)){t.next=4;break}x({name:e.name,pluginInfo:e}),t.next=7;break;case 4:return t.next=6,y({title:"购买插件",content:"插件已过期,是否前往购买?"});case 6:$(e);case 7:return t.abrupt("return",!1);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Z=function(){var t=a(r().mark((function t(e){var n,o;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w({sName:e.name});case 2:if(n=t.sent,"-1"!==(o=n.data).task){t.next=6;break}return t.abrupt("return",v.error("当前插件正在安装,不可重复安装"));case 6:k({name:o.name,type:"i",pluginInfo:o});case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),J=function(){var t=a(r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p({request:_(),success:function(t){var e;Array.isArray(t.data)&&t.data.length>0&&(A.value=(null===(e=t.data[1])||void 0===e?void 0:e.list)||[])}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return{popShow:C,isGetSoft:N,pluginKeyword:E,recommendList:A,containerRef:I,mySoftList:H,tableLoading:F,softShowList:q,load:K,createSoftList:D,getHomeInstallSoftData:B,getRecommendInfo:J,goSoft:function(){t.push({path:"/soft"})},showPopoverHandle:M,leave:function(t){var e=t.offsetX,n=t.offsetY,r=I.value.offsetWidth,o=I.value.offsetHeight;if(e<0||n<0||e>=r||n>=o){var a=document.querySelector(".soft-search-popover");a&&"none"!=(null==a?void 0:a.style.display)?C.value=!0:(C.value=!1,E.value="")}},querySearch:function(t,e){e(Y(t))},searchPluginHandle:function(){""==E.value?(O.value=!1,M()):(O.value=!0,M(E.value))},renderSoftImages:function(t){return"/static/img/soft_ico".concat("/ico-",t.replace(/-+[{0-9},\.,]+$/,""),".png")},changeSwitchHandle:W,openSoftView:X,softStatusColor:function(t){return t.status||"phpmyadmin"===t.name?"#20A53A":"#FF4949"},softStatus:function(t){return t.status||"phpmyadmin"===t.name?"start":"stop"},openRecommendSoftView:function(t){if(t.name&&!t.install&&!g(t.isBuy))return x({name:t.name,pluginInfo:t}),!1},openSoftPreLink:function(t){window.open(t.preview,"_blank","noopener,noreferrer")},openLtdPayView:$,openInstall:Z}})))}}}))}();
Save File
Cancel