← Back
Editing: index494.js
import{u as a,l as e,J as t,I as s,k as l,h as o,b as i,o as n}from"./utils-lib.js?v=VERSION_NUMBER";import{_ as r}from"./index117.js?v=VERSION_NUMBER";import{_ as u}from"./index104.js?v=VERSION_NUMBER";import{B as m}from"./index140.js?v=VERSION_NUMBER";import{_ as d}from"./index123.js?v=VERSION_NUMBER";import{c as p,r as c,k as h,p as f,G as v,q as _,v as y,x as g,M as x,A as j,y as w,e as k,B as V,P as b,H as C,D as q,al as A}from"./base-lib.js?v=VERSION_NUMBER";import{_ as E}from"./index105.js?v=VERSION_NUMBER";import{d as F,u as I}from"./column.js?v=VERSION_NUMBER";import{checkMonitorDir as S,setMonitorDir as P,webshellFileSingle as T,setHandleFile as U}from"./site.js?v=VERSION_NUMBER";import{S as B,u as D}from"./useStore4.js?v=VERSION_NUMBER";import"./__commonjsHelpers__.js?v=VERSION_NUMBER";import"./validator.js?v=VERSION_NUMBER";import"./ace.js?v=VERSION_NUMBER";const H={class:"flex items-center"},J={class:"p-20px"},O=p({__name:"index",setup(p){const{getFileEvent:O,saveFileEvent:R}=B(),G=i(),{payment:L}=a(),{siteInfo:M}=D(),N=c([]),z=c(!1),K=c(""),Q=c(!1),W=c({}),X=c(!1),Y=h({title:"动态查杀-功能介绍",ps:"当查杀站点目录中的文件发生修改就会自动的进行木马查杀并进行隔离",source:185,desc:["网页内容修改检测","木马查杀隔离"],tabImgs:[{title:"概览",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/site/dynamic_kill.png"}]}),Z=()=>{e({isAsync:!0,title:"白名单",area:[70,55],component:()=>t(()=>import("./index461.js?v=VERSION_NUMBER"),__vite__mapDeps([]),import.meta.url),showFooter:!1})},$=async()=>{try{const a=await S({path:M.value.path});X.value=a.data.is_run}catch(a){}},aa=async a=>{await s({loading:"正在设置中,请稍后...",request:P(!a,{path:M.value.path}),message:!0}),$()},ea=async()=>{const a=await R({path:W.value.path,data:K.value,encoding:"utf-8"});G.request(a)},ta=async()=>{z.value=!0;try{const a=await T({path:(M.value.path+"/").replace("//","/")});N.value=Array.isArray(a.data)?a.data:[]}catch(a){}z.value=!1},sa=c([{label:"隔离时间",prop:"time"},F(),I([{width:80,onClick:async a=>{W.value=a;const e=await O({path:a.path});if(!e.status)return G.request(e),!1;K.value=e.data.data||e.msg,Q.value=!0},title:"样本文件"},{onClick:a=>{n({title:"删除文件",content:"是否要删除关联的源文件?",type:"check",icon:"warning",check:{content:"源文件",onConfirm:e=>{s({loading:"正在删除文件中,请稍后...",request:U({data:JSON.stringify({path:a.path,md5:a.md5,type:e?"delete":""})}),message:!0,success:a=>{a.status&&ta()}})}}})},title:"删除"}])]);return f(()=>{"ltd"===L.value.authType&&($(),ta())}),(a,e)=>{const t=q,s=E,i=A,n=d,p=l,c=m,h=o,f=u,F=r,I=v("bt-loading");return _(),y("div",null,["ltd"===g(L).authType?(_(),x(f,{key:0},{"header-left":j(()=>[w("div",H,[k(t,{type:"default",onClick:Z},{default:j(()=>e[3]||(e[3]=[V(" 白名单 ")])),_:1,__:[3]}),k(s),e[4]||(e[4]=w("div",{class:"mr-8px"},"动态查杀站点",-1)),w("div",null,[k(i,{modelValue:g(X),"onUpdate:modelValue":e[0]||(e[0]=a=>b(X)?X.value=a:null),width:36,onChange:aa},null,8,["modelValue"])])])]),"header-right":j(()=>[k(n,{onRefresh:ta})]),content:j(()=>[C(k(p,{column:g(sa),"max-height":400,data:g(N)},null,8,["column","data"]),[[I,g(z)]])]),"footer-left":j(()=>e[5]||(e[5]=[w("ul",{class:"mt-8px leading-8 text-[1.2rem] list-disc ml-20px"},[w("li",null,"注意:隔离文件后的数字表示隔离文件总数。"),w("li",{class:"text-orange"},"动态查杀开启后,当查杀目录中的文件发生修改就会自动的进行木马查杀并进行隔离")],-1)])),"footer-right":j(()=>e[6]||(e[6]=[])),popup:j(()=>[k(h,{title:"在线编辑",showFooter:"",modelValue:g(Q),"onUpdate:modelValue":e[2]||(e[2]=a=>b(Q)?Q.value=a:null),area:70,onConfirm:ea},{default:j(()=>[w("div",J,[k(c,{modelValue:g(K),"onUpdate:modelValue":e[1]||(e[1]=a=>b(K)?K.value=a:null),class:"!h-[40rem]"},null,8,["modelValue"])])]),_:1},8,["modelValue"])]),_:1})):(_(),x(F,{key:1,data:g(Y)},null,8,["data"]))])}}});export{O as default}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = [] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) }
Save File
Cancel