2 lines
2.2 KiB
JavaScript
2 lines
2.2 KiB
JavaScript
import{as as t,a3 as e}from"./index-BTglIPU2.js?v=1773287522785";const n=()=>t.post("/safe/ssh/GetSshInfo"),a=()=>t.post("/ssh_security?action=get_config"),c=()=>t.post("/mod/ssh/com/get_ssh_intrusion"),r=s=>t.post("/firewall?action=SetSshStatus",s,{requestOptions:{loading:e.global.t("Security.SSH.Api.index_1"),successMessage:!0}}),u=s=>t.post("/ssh_security?action=".concat(s.status?"set_password":"stop_password"),s,{requestOptions:{loading:e.global.t("Security.SSH.Api.index_2"),successMessage:!0}}),g=(s,o=!0)=>t.post("/ssh_security?action=set_sshkey",s,{requestOptions:{loading:e.global.t("Security.SSH.Api.index_3"),successMessage:o}}),p=()=>t.post("/ssh_security?action=stop_key",{},{requestOptions:{loading:e.global.t("Security.SSH.Api.index_4"),successMessage:!0}}),S=s=>t.post("/firewall?action=SetSshPort",s,{requestOptions:{loading:e.global.t("Security.SSH.Api.index_5"),successMessage:!0}}),l=s=>t.post("/ssh_security?action=set_root",s,{requestOptions:{loading:e.global.t("Security.SSH.Api.index_6"),successMessage:!0}}),_=s=>t.post("/ssh_security?action=set_root_password",s,{requestOptions:{loading:e.global.t("Security.SSH.Api.index_7"),successMessage:!0}}),d=()=>t.post("/ssh_security?action=get_key"),h=s=>t.post("/mod/ssh/com/get_ssh_list",{data:JSON.stringify(s)}),y=s=>t.post("/safe/syslog/create_ip_rules",{data:JSON.stringify(s)},{requestOptions:{loading:e.global.t("Security.SSH.Api.index_8")}}),f=s=>t.post("/safe/syslog/remove_ip_rules",{data:JSON.stringify(s)},{requestOptions:{loading:e.global.t("Security.SSH.Api.index_8")}}),O=s=>t.post("/ssh_security?action=get_logs",s),q=()=>t.post("/ssh_security?action=get_login_send"),b=(s,o)=>t.post("/ssh_security?action=".concat(s?"set_login_send":"clear_login_send"),o,{requestOptions:{loading:e.global.t("Security.SSH.Api.index_9"),successMessage:!0}}),x=()=>t.post("/ssh_security?action=return_ip"),A=s=>t.post("/ssh_security?action=add_return_ip",s,{requestOptions:{loading:e.global.t("Security.SSH.Api.index_10"),successMessage:!0}}),H=s=>t.post("/ssh_security?action=del_return_ip",s,{requestOptions:{loading:e.global.t("Security.SSH.Api.index_11"),successMessage:!0}});export{h as a,d as b,l as c,a as d,u as e,p as f,n as g,_ as h,q as i,y as j,c as k,r as l,b as m,O as n,g as o,H as p,x as q,f as r,S as s,A as t};
|