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/index375.js
import{_ as y}from"./index118.js?v=1777008528";import{k as i,w as C,d3 as D,f as k}from"./utils-lib.js?v=1777008528";import{c as x,V as M,H as V,o as L,I as q,j as F,k as B,e as n,v as r,p as l,x as H,J as N,z as P}from"./base-lib.js?v=1777008528";import{_ as S}from"./index116.js?v=1777008528";import{ah as j,ai as E,aj as I}from"./firewall.js?v=1777008528";import{g as J,w as O}from"./index3.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./index119.js?v=1777008528";const R={class:"p-[2rem]"},X=x({__name:"index",setup($){const c=k(),p=M([]),a=V({path:"",type:"dir"}),o=async()=>{i({request:j(),data:{"msg.scan_dir":[Array,e=>{p.value=e.map(t=>({path:t}))}]}})},m=()=>{O({type:"dir",path:"/",change(e,t){e=e.replace(/\/\//g,"/"),a.path=e,a.type=t}})},u=e=>{a[e]=a[e].replace(/\s+/g,"")},d=async e=>{await C({icon:"question-filled",title:"删除检测目录",width:"34rem",content:"删除检测目录【"+e.path+"】,是否继续操作?"}),await i({request:E({path:JSON.stringify([e.path])}),loading:"正在删除检测目录,请稍后...",message:!0}),o()},_=async()=>{if(!a.path){c.error("请填写检测目录");return}await i({request:I({dir:a.path}),loading:"正在添加检测目录,请稍后...",message:!0}),o(),a.path=""},g=[{label:"所在目录",prop:"path"},J([{onClick:d,title:"删除",isHide:e=>["/bin/","/sbin/","/usr/bin/","/usr/sbin/"].includes(e.path)}])];return L(()=>{o()}),(e,t)=>{const f=S,h=P,b=D,v=y,w=q("bt-loading");return F(),B("div",R,[n(v,null,{"header-left":r(()=>[n(f,{modelValue:l(a).path,"onUpdate:modelValue":t[0]||(t[0]=s=>l(a).path=s),name:"path",placeholder:"选择目录",icon:"icon-file_mode",onIconClick:t[1]||(t[1]=s=>m()),onChangePassive:t[2]||(t[2]=s=>u("path")),width:"32rem"},null,8,["modelValue"]),n(h,{type:"primary",class:"!ml-[.8rem]",onClick:_},{default:r(()=>[...t[3]||(t[3]=[H(" 添加 ",-1)])]),_:1})]),content:r(()=>[N(n(b,{ref:"detecList",column:g,data:l(p),description:"检测列表为空"},null,8,["data"]),[[w,"正在加载检测列表,请稍后...","title"]])]),_:1})])}}});export{X as default};