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/index251.js
import{_ as x}from"./index118.js?v=1777008528";import{w as y,k as C,f as B,d3 as I,d4 as L}from"./utils-lib.js?v=1777008528";import{a0 as m,a1 as q}from"./firewall.js?v=1777008528";import{c as H,r as _,e as n,x as P,w as N,j as $,C as D,v as f,p as d}from"./base-lib.js?v=1777008528";import{e as E,g as M,b as O}from"./index3.js?v=1777008528";import{g as R}from"./useStore8.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./index119.js?v=1777008528";import"./index116.js?v=1777008528";const X=H({__name:"index",setup(S){const{refs:{networkActive:b}}=R(),c=_(),k=async e=>{await y({title:"解封IP",content:"解封后将允许【".concat(e.ip,"】进行访问,是否继续操作?")}),await C({loading:"正在解封,请稍后...",request:m({ip:e.ip,timeout:86400}),success:()=>{B().success("解封成功"),a()}})},g=[E({key:"ip"}),{label:"IP",prop:"ip",width:200},{label:"封锁来源",render:e=>{const t=e.source||"Nginx防火墙";return n("div",{title:t},[t])}},{label:"封禁原因",render:e=>{const t=e.reason||"IP扫描过于频繁";return t.length>20?n("div",{title:t},[t.slice(0,20),P("...")]):n("div",{title:t},[t])}},M([{onClick:k,title:"解封"}])],i=_([]),h=[{label:"解封",value:"unlock",event:async(e,t,l,o)=>{const s=async(w,V)=>{const{ip:v}=w,p=new Map([["unlock",m]]).get(u);switch(u){case"unlock":if(p)return await p({ip:v,timeout:86400});break}},{label:r,value:u}=o;await e({title:"批量".concat(r),content:"即将批量".concat(r,"选中的IP,是否继续操作?"),column:[{label:"批量解封",prop:"ip"},O()],onConfirm:async()=>(await t(s),a(),!1)})}}],a=async()=>{const{data:e}=await q();i.value=e.map(t=>({ip:t,reason:"",source:""}))};return N(b,e=>{e==="blockde"&&a()},{immediate:!0}),(e,t)=>{const l=I,o=L,s=x;return $(),D(s,null,{content:f(()=>[n(l,{ref_key:"lockListRef",ref:c,column:g,data:d(i),"max-height":"700"},null,8,["data"])]),"footer-left":f(()=>[n(o,{"table-ref":d(c),options:h},null,8,["table-ref"])]),_:1})}}});export{X as default};