← Back
Editing: index-legacy281.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 h(t,e,n,r){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),u=new P(r||[]);return a(i,"_invoke",{value:k(t,n,u)}),i}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var d="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function w(){}function b(){}function x(){}var _={};f(_,c,(function(){return this}));var L=Object.getPrototypeOf,j=L&&L(L(T([])));j&&j!==o&&i.call(j,c)&&(_=j);var E=x.prototype=w.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function O(e,n){function r(o,a,u,c){var l=p(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 k(t,e,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:n,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var c=F(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=p(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 F(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,F(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=p(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 N(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 G(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(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 b.prototype=x,a(E,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=f(x,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,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},r.awrap=function(t){return{__await:t}},S(O.prototype),f(O.prototype,l,(function(){return this})),r.AsyncIterator=O,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new O(h(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),f(E,s,"Generator"),f(E,c,(function(){return this})),f(E,"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=T,P.prototype={constructor:P,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(G),!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),G(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;G(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(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(["./utils-lib-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./index-legacy112.js?v=VERSION_NUMBER","./index-legacy145.js?v=VERSION_NUMBER","./firewall-legacy.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER"],(function(t,n){"use strict";var o,i,a,u,c,l,s,f,h,p,d,y,v,m,g,w,b,x,_,L,j,E,S,O,k,F,N,G,P,T,A,H,q,C,D;return{setters:[function(t){o=t.w,i=t.n,a=t.L,u=t.K,c=t.aj,l=t.l,s=t.W,f=t.j,h=t.e},function(t){p=t.c,d=t.r,y=t.k,v=t.aB,m=t.p,g=t.G,w=t.q,b=t.v,x=t.e,_=t.A,L=t.y,j=t.B,E=t.H,S=t.x,O=t.z,k=t.ar,F=t.D,N=t.bN,G=t.bM},function(t){P=t._},function(t){T=t._},function(t){A=t._},function(t){H=t.a9,q=t.aa,C=t.ab},function(t){D=t.u},null,null],execute:function(){var I={class:"flex items-center"},M={class:"p-[2rem]"},U={class:"mt-1rem detail-info"},V=p({__name:"index",setup:function(t){var h=d({total:0,loading:!1,data:[]}),p=y({p:1,limit:50}),V=y({visible:!1,data:{Describe:"",File:"",NewHash:"",OldHash:"",Status:0,Suggestion:"",Time:"",id:0}}),z=[{active:!0,content:"立即检测",event:function(){J()}},{content:"检测目录",event:function(){i({title:"检测目录",area:58,isAsync:!0,component:function(){return a((function(){return n.import("./index-legacy464.js?v=VERSION_NUMBER")}),void 0,n.meta.url)}})}}],B=[{content:"注意:初次使用请先添加检测目录,当前表格仅展示检测目录的结果"},{content:"检测内容主要以系统重要执行文件为主"},{content:"若出现风险项将在首页上展示"}],W=function(){var t=r(e().mark((function t(n){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u({request:H({path:n.File}),message:!0,success:function(t){t.status&&Q()}});case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Y=function(){i({title:"定期扫描",area:48,isAsync:!0,showFooter:!0,component:function(){return a((function(){return n.import("./index-legacy465.js?v=VERSION_NUMBER")}),void 0,n.meta.url)}})},K=[{label:"所在目录",prop:"File"},{label:"描述",prop:"Describe"},{label:"状态",prop:"Status",render:function(t){return v("span",{class:1!==t.Status?"text-primary":"text-warning"},1!==t.Status?"正常":"异常")}},{label:"最后一次修改时间",prop:"Mtime",minWidth:120},D([{onClick:W,title:"已处理",width:50},{onClick:function(t){V.visible=!0,V.data=t},title:"详情"}])],J=function(){var t=r(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u({request:q(),loading:"正在检测中,请稍后...",message:!0,success:function(t){t.status&&Q()}});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Q=function(){var t=r(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u({request:C(p),loading:k(h.value,"loading"),data:{data:[Array,k(h.value,"data")],page:[String,function(t){h.value.total=c(t)}]}});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return m((function(){Q()})),function(t,e){var n=A,r=F,i=l,a=T,u=P,c=s,d=N,y=G,v=f,m=g("bt-loading");return w(),b("div",null,[x(u,null,{"header-left":_((function(){return[L("div",I,[x(n,{options:z}),e[4]||(e[4]=L("div",{class:"bg-[#ccc] w-1px h-2rem mx-8"},null,-1)),x(r,{type:"default",onClick:Y},{default:_((function(){return e[3]||(e[3]=[j("定期扫描")])})),_:1})])]})),content:_((function(){return[E(x(i,{ref:"portTable",column:K,data:S(h).data,"max-height":"500",description:"文件完整性列表为空"},null,8,["data"]),[[m,S(h).loading],[m,"正在加载文件完整性列表,请稍后...","title"]])]})),"footer-right":_((function(){return[x(a,{page:S(p).p,"onUpdate:page":e[0]||(e[0]=function(t){return S(p).p=t}),row:S(p).limit,"onUpdate:row":e[1]||(e[1]=function(t){return S(p).limit=t}),total:S(h).total,onChange:Q},null,8,["page","row","total"])]})),_:1}),x(c,{options:B,class:"mx-[1.6rem] my-[0.6rem]"}),x(v,{title:"[".concat(S(V).data.File,"]详情"),modelValue:S(V).visible,"onUpdate:modelValue":e[2]||(e[2]=function(t){return S(V).visible=t}),"show-footer":!1,area:[60]},{default:_((function(){return[L("div",M,[x(y,{class:"margin-top table-descriptions",column:2,border:""},{default:_((function(){return[x(d,{label:"文件大小"},{default:_((function(){return[j(O(S(o)(S(V).data.Size)),1)]})),_:1}),x(d,null,{label:_((function(){return e[5]||(e[5]=[j("最近一次修改时间")])})),default:_((function(){return[j(" "+O(S(V).data.Mtime),1)]})),_:1}),x(d,{span:2},{label:_((function(){return e[6]||(e[6]=[j("创建时间")])})),default:_((function(){return[j(" "+O(S(V).data.Time),1)]})),_:1}),x(d,null,{label:_((function(){return e[7]||(e[7]=[j("建议")])})),default:_((function(){return[j(" "+O(S(V).data.Suggestion),1)]})),_:1})]})),_:1}),L("div",U,[L("div",null,[e[8]||(e[8]=L("div",{class:""},"文件路径",-1)),L("p",null,O(S(V).data.File),1)]),L("div",null,[e[10]||(e[10]=L("div",{class:""},"MD5",-1)),L("p",null,[j(" 新:"+O(S(V).data.NewHash)+" ",1),e[9]||(e[9]=L("br",null,null,-1)),j(" 旧:"+O(S(V).data.OldHash),1)])])])])]})),_:1},8,["title","modelValue"])])}}});t("default",h(V,[["__scopeId","data-v-e3d031de"]]))}}}))}();
Save File
Cancel