← Back
Editing: index-legacy442.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,r){if(t){if("string"==typeof t)return n(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?n(t,r):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 r=0,e=Array(n);r<n;r++)e[r]=t[r];return e}function r(){/*! 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:{},i=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function u(r,o,i,a){var u=o&&o.prototype instanceof f?o:f,l=Object.create(u.prototype);return e(l,"_invoke",function(r,e,o){var i,a,u,f=0,l=o||[],s=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(n,r){return i=n,a=0,u=t,p.n=r,c}};function y(r,e){for(a=r,u=e,n=0;!s&&f&&!o&&n<l.length;n++){var o,i=l[n],y=p.p,d=i[2];r>3?(o=d===e)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&y<i[1])?(a=0,p.v=e,p.n=i[1]):y<d&&(o=r<3||i[0]>e||e>d)&&(i[4]=r,i[5]=e,p.n=d,a=0))}if(o||r>1)return c;throw s=!0,e}return function(o,l,d){if(f>1)throw TypeError("Generator is already running");for(s&&1===l&&y(l,d),a=l,u=d;(n=a<2?t:u)||!s;){i||(a?a<3?(a>1&&(p.n=-1),y(a,u)):p.n=u:p.v=u);try{if(f=2,i){if(a||(o="next"),n=i[o]){if(!(n=n.call(i,u)))throw TypeError("iterator result is not an object");if(!n.done)return n;u=n.value,a<2&&(a=0)}else 1===a&&(n=i.return)&&n.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((n=(s=p.n<0)?u:r.call(e,p))!==c)break}catch(n){i=t,a=1,u=n}finally{f=1}}return{value:n,done:s}}}(r,i,a),!0),l}var c={};function f(){}function l(){}function s(){}n=Object.getPrototypeOf;var p=[][i]?n(n([][i]())):(e(n={},i,function(){return this}),n),y=s.prototype=f.prototype=Object.create(p);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,e(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t}return l.prototype=s,e(y,"constructor",s),e(s,"constructor",l),l.displayName="GeneratorFunction",e(s,a,"GeneratorFunction"),e(y),e(y,a,"Generator"),e(y,i,function(){return this}),e(y,"toString",function(){return"[object Generator]"}),(r=function(){return{w:u,m:d}})()}function e(t,n,r,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}e=function(t,n,r,o){function a(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?i?i(t,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[n]=r:(a("next",0),a("throw",1),a("return",2))},e(t,n,r,o)}function o(t,n,r,e,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?n(c):Promise.resolve(c).then(e,o)}function i(t){return function(){var n=this,r=arguments;return new Promise(function(e,i){var a=t.apply(n,r);function u(t){o(a,e,i,u,c,"next",t)}function c(t){o(a,e,i,u,c,"throw",t)}u(void 0)})}}System.register(["./index-legacy93.js?v=1765440387","./utils-lib-legacy.js?v=1765440387","./base-lib-legacy.js?v=1765440387","./index-legacy91.js?v=1765440387","./firewall-legacy.js?v=1765440387","./column-legacy.js?v=1765440387","./validator-legacy.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387","./index-legacy94.js?v=1765440387"],function(n,e){"use strict";var o,a,u,c,f,l,s,p,y,d,h,m,v,b,g,j,w,_,O,S,k,x,A,G;return{setters:[function(t){o=t._},function(t){a=t.K,u=t.o,c=t.k,f=t.b},function(t){l=t.c,s=t.U,p=t.k,y=t.p,d=t.G,h=t.q,m=t.v,v=t.e,b=t.A,g=t.x,j=t.B,w=t.H,_=t.D},function(t){O=t._},function(t){S=t.bh,k=t.bi,x=t.bj},function(t){A=t.u},function(t){G=t.f},null,null],execute:function(){var e={class:"p-[2rem]"};n("default",l({__name:"index",setup:function(n){var l=f(),P=s([]),T=p({path:"",type:"dir"}),q=function(){var t=i(r().m(function t(){return r().w(function(t){for(;;)switch(t.n){case 0:a({request:S(),data:{"msg.scan_dir":[Array,function(t){P.value=t.map(function(t){return{path:t}})}]}});case 1:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),C=function(){var t=i(r().m(function t(n){return r().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,u({icon:"question-filled",title:"删除检测目录",width:"34rem",content:"删除检测目录【"+n.path+"】,是否继续操作?"});case 1:return t.n=2,a({request:k({path:JSON.stringify([n.path])}),loading:"正在删除检测目录,请稍后...",message:!0});case 2:q();case 3:return t.a(2)}},t)}));return function(n){return t.apply(this,arguments)}}(),E=function(){var t=i(r().m(function t(){return r().w(function(t){for(;;)switch(t.n){case 0:if(T.path){t.n=1;break}return l.error("请填写检测目录"),t.a(2);case 1:return t.n=2,a({request:x({dir:T.path}),loading:"正在添加检测目录,请稍后...",message:!0});case 2:q(),T.path="";case 3:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),I=[{label:"所在目录",prop:"path"},A([{onClick:C,title:"删除",isHide:function(t){return["/bin/","/sbin/","/usr/bin/","/usr/sbin/"].includes(t.path)}}])];return y(function(){q()}),function(n,r){var i=O,a=_,u=c,f=o,l=d("bt-loading");return h(),m("div",e,[v(f,null,{"header-left":b(function(){return[v(i,{modelValue:g(T).path,"onUpdate:modelValue":r[0]||(r[0]=function(t){return g(T).path=t}),name:"path",placeholder:"选择目录",icon:"icon-file_mode",onIconClick:r[1]||(r[1]=function(t){G({type:"dir",path:"/",change:function(t,n){t=t.replace(/\/\//g,"/"),T.path=t,T.type=n}})}),onChangePassive:r[2]||(r[2]=function(t){var n;T[n="path"]=T[n].replace(/\s+/g,"")}),width:"32rem"},null,8,["modelValue"]),v(a,{type:"primary",class:"!ml-[.8rem]",onClick:E},{default:b(function(){return t(r[3]||(r[3]=[j(" 添加 ",-1)]))}),_:1})]}),content:b(function(){return[w(v(u,{ref:"detecList",column:I,data:g(P),description:"检测列表为空"},null,8,["data"]),[[l,"正在加载检测列表,请稍后...","title"]])]}),_:1})])}}}))}}})}();
Save File
Cancel