← Back
Editing: exclude-path-legacy.js
!function(){function t(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,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,n,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",i=o.toStringTag||"@@toStringTag";function a(e,o,u,i){var a=o&&o.prototype instanceof l?o:l,f=Object.create(a.prototype);return r(f,"_invoke",function(e,r,o){var u,i,a,l=0,f=o||[],s=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(n,e){return u=n,i=0,a=t,p.n=e,c}};function d(e,r){for(i=e,a=r,n=0;!s&&l&&!o&&n<f.length;n++){var o,u=f[n],d=p.p,y=u[2];e>3?(o=y===r)&&(a=u[(i=u[4])?5:(i=3,3)],u[4]=u[5]=t):u[0]<=d&&((o=e<2&&d<u[1])?(i=0,p.v=r,p.n=u[1]):d<y&&(o=e<3||u[0]>r||r>y)&&(u[4]=e,u[5]=r,p.n=y,i=0))}if(o||e>1)return c;throw s=!0,r}return function(o,f,y){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&d(f,y),i=f,a=y;(n=i<2?t:a)||!s;){u||(i?i<3?(i>1&&(p.n=-1),d(i,a)):p.n=a:p.v=a);try{if(l=2,u){if(i||(o="next"),n=u[o]){if(!(n=n.call(u,a)))throw TypeError("iterator result is not an object");if(!n.done)return n;a=n.value,i<2&&(i=0)}else 1===i&&(n=u.return)&&n.call(u),i<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),i=1);u=t}else if((n=(s=p.n<0)?a:e.call(r,p))!==c)break}catch(n){u=t,i=1,a=n}finally{l=1}}return{value:n,done:s}}}(e,u,i),!0),f}var c={};function l(){}function f(){}function s(){}n=Object.getPrototypeOf;var p=[][u]?n(n([][u]())):(r(n={},u,function(){return this}),n),d=s.prototype=l.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,r(t,i,"GeneratorFunction")),t.prototype=Object.create(d),t}return f.prototype=s,r(d,"constructor",s),r(s,"constructor",f),f.displayName="GeneratorFunction",r(s,i,"GeneratorFunction"),r(d),r(d,i,"Generator"),r(d,u,function(){return this}),r(d,"toString",function(){return"[object Generator]"}),(e=function(){return{w:a,m:y}})()}function r(t,n,e,o){var u=Object.defineProperty;try{u({},"",{})}catch(t){u=0}r=function(t,n,e,o){function i(n,e){r(t,n,function(t){return this._invoke(n,e,t)})}n?u?u(t,n,{value:e,enumerable:!o,configurable:!o,writable:!o}):t[n]=e:(i("next",0),i("throw",1),i("return",2))},r(t,n,e,o)}function o(t,n,e,r,o,u,i){try{var a=t[u](i),c=a.value}catch(t){return void e(t)}a.done?n(c):Promise.resolve(c).then(r,o)}System.register(["./index-legacy93.js?v=1765440387","./utils-lib-legacy.js?v=1765440387","./base-lib-legacy.js?v=1765440387","./index-legacy91.js?v=1765440387","./column-legacy.js?v=1765440387","./validator-legacy.js?v=1765440387","./index-legacy307.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387","./index-legacy94.js?v=1765440387","./store-legacy5.js?v=1765440387"],function(n,r){"use strict";var u,i,a,c,l,f,s,p,d,y,v,m,h,b,g,j,_,w,x,O,S;return{setters:[function(t){u=t._},function(t){i=t.o,a=t.M,c=t.k},function(t){l=t.c,f=t.s,s=t.r,p=t.G,d=t.q,y=t.M,v=t.A,m=t.e,h=t.x,b=t.P,g=t.B,j=t.H,_=t.D},function(t){w=t._},function(t){x=t.u},function(t){O=t.f},function(t){S=t.H},null,null,null],execute:function(){n("default",l({__name:"exclude-path",setup:function(n){var r,l,A=S(),T=f(A).malwareData,k=A.setMalwareConfig,G=s(!1),P=s(""),C=s([{prop:"name",label:"路径",showOverflowTooltip:!0,minWidth:690},x([{title:"删除",onClick:(r=e().m(function t(n){return e().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,i({title:"删除排除目录",content:"是否删除【"+n.name+"】?删除后,该目录将不再被排除"});case 1:return t.n=2,k({delete_exclude_path:n.name});case 2:return t.a(2)}},t)}),l=function(){var t=this,n=arguments;return new Promise(function(e,u){var i=r.apply(t,n);function a(t){o(i,e,u,a,c,"next",t)}function c(t){o(i,e,u,a,c,"throw",t)}a(void 0)})},function(t){return l.apply(this,arguments)})}])]),E=function(){return P.value?"/"===P.value?a.error("不能添加全盘路径"):(k({add_exclude_path:P.value}),void(P.value="")):a.error("请输入或选择目录路径")},I=function(){O({type:"dir",path:P.value,change:function(t){P.value=t}})};return function(n,e){var r=w,o=_,i=c,a=u,l=p("bt-loading");return d(),y(a,null,{"header-left":v(function(){return[m(r,{class:"mr-[12px]",modelValue:h(P),"onUpdate:modelValue":e[0]||(e[0]=function(t){return b(P)?P.value=t:null}),icon:"el-folder-opened",onIconClick:I,width:"32rem",placeholder:"请填写或选择目录路径"},null,8,["modelValue"]),m(o,{type:"primary",onClick:E},{default:v(function(){return t(e[1]||(e[1]=[g(" 添加 ",-1)]))}),_:1})]}),content:v(function(){return[j(m(i,{"max-height":"370",column:h(C),data:h(T).exclude_dirs},null,8,["column","data"]),[[l,h(G)]])]}),_:1})}}}))}}})}();
Save File
Cancel