HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/index571.js
import{_ as b}from"./index109.js?v=1777008528";import{t as g,J as y,M as v,w as D,S as k,q as x,a3 as C}from"./utils-lib.js?v=1777008528";import{_ as S}from"./index130.js?v=1777008528";import{r as E,o as I,W as P,e as a,c as w,v as R,I as $,x as B,y as O,C as r,z as n,D as T,J as A,H}from"./base-lib.js?v=1777008528";import{o as L,u as M}from"./column.js?v=1777008528";import{u as V}from"./useStore3.js?v=1777008528";import{getPhpSiteSafe as j,delPhpSiteSafe as q}from"./site.js?v=1777008528";import{r as m}from"./useController27.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./index110.js?v=1777008528";import"./validator.js?v=1777008528";import"./index107.js?v=1777008528";import"./useController5.js?v=1777008528";import"./useController4.js?v=1777008528";import"./useMethod3.js?v=1777008528";import"./index118.js?v=1777008528";import"./useController26.js?v=1777008528";import"./useStore14.js?v=1777008528";const{siteInfo:p}=V();E();const i=I({list:[],load:!1}),J=[{content:"安全告警默认会监视当前网站访问非当前网站文件的行为(例:你的站点A.com访问了站点B.com的文件或者目录),通过添加监视器路径,当路径被访问时发送告警"},{content:"告警频率:60秒某一个告警行为只会发送一次告警"},{isHtml:!0,content:'<a class="bt-link"  href="https://www.bt.cn/bbs/thread-112442-1-1.html" target="_blank" rel="noreferrer noopener">使用教程</a>'}],N=()=>P([{label:"路径",prop:"path",render:t=>a("div",{class:"truncate bt-link",onClick:()=>{t.type==="dir"&&L({path:t.path})}},[t.path])},{label:"类型",prop:"type",render:t=>"".concat(t.type==="dir"?"文件夹":"文件")},{label:"告警操作",prop:"type",render:t=>{const e=[];return parseInt(t.read)&&e.push("读取"),parseInt(t.del)&&e.push("删除"),parseInt(t.reit)&&(e.push("修改"),e.push("增加")),e.join(" / ")}},M([{onClick:_,title:"编辑"},{onClick:z,title:"删除"}])]),z=async t=>{await D({title:"删除监视器",width:"35rem",icon:"warning-filled",content:"您真的要删除路径【".concat(t.path,"】的监视器吗?")}),(await k({loading:"正在删除监视器,请稍后...",request:q({domain:p.value.name,type:t.type,path:t.path}),message:!0})).status&&l()},_=async t=>{let e={name:p.value.name,path:t?t.path:m.path,refresh:l};t&&(e.row=t),g({title:"".concat(t?"编辑":"添加","文件监视器"),area:47,isAsync:!0,component:()=>y(()=>import("./add-file-monitor.js?v=1777008528"),__vite__mapDeps([]),import.meta.url),compData:e,showFooter:!0})},l=async()=>{try{i.load=!0;const t=await j();t.status||v.error(t.msg);const e=t.data.sites.find(o=>o.path===m.path&&o.site_name===p.value.name);if(e){const o=[];for(const s in e.config.file_info)Object.prototype.hasOwnProperty.call(e.config.file_info,s)&&o.push({...e.config.file_info[s],path:s});i.list=o}}catch(t){}finally{i.load=!1}},F=N(),W={class:"relative p-[16px]"},_t=w({__name:"index",setup(t){return R(()=>{l()}),(e,o)=>{const s=H,u=S,f=x,d=C,h=b,c=$("bt-loading");return B(),O("div",W,[a(h,null,{"header-left":r(()=>[a(s,{type:"primary",onClick:o[0]||(o[0]=G=>n(_)())},{default:r(()=>[...o[1]||(o[1]=[T("添加监视器",-1)])]),_:1})]),"header-right":r(()=>[a(u,{onRefresh:n(l)},null,8,["onRefresh"])]),content:r(()=>[A(a(f,{ref:"ftpTable",column:n(F),"max-height":360,data:n(i).list,description:"暂无数据"},null,8,["column","data"]),[[c,n(i).load],[c,"正在加载中,请稍后...","title"]])]),"footer-left":r(()=>[a(d,{options:n(J),class:"ml-[20px] mt-[20px]"},null,8,["options"])]),_:1})])}}});export{_t as default};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = []
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}