import{_ as e}from"./index237.js?v=1753954525509";import{_ as a,a as t}from"./index.vue_vue_type_script_setup_true_lang20.js?v=1753954525509";import{_ as s}from"./index.vue_vue_type_script_setup_true_lang21.js?v=1753954525509";import{b as n,c as l,f as o}from"./public.js?v=1753954525509";import{e4 as i,c as r,e5 as u,e6 as p,w as c,O as m,e7 as _}from"./page_layout.js?v=1753954525509";import{k as d,P as v,U as g,V as x,Q as y,X as w,r as f,a1 as j,a2 as k,F as h,O as b,W as U,a3 as P,al as C,j as W,ah as S}from"./vue.js?v=1753954525509";import{c1 as q,aq as N,cG as z,bY as A,ay as H}from"./naive.js?v=1753954525509";import{_ as L}from"./index101.js?v=1753954525509";import"./php.js?v=1753954525509";import"./soft.js?v=1753954525509";import"./alarm.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang10.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang14.js?v=1753954525509";import"./theme-chrome.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./file2.js?v=1753954525509";import"./common.js?v=1753954525509";const O=d({__name:"index",setup(e,{expose:a}){const{t:t}=v(),{table:s,columns:u}=n([{key:"title",title:t("Plugin.Apache.index_12")},{width:"30%",key:"value",title:t("Plugin.Apache.index_13")}]),p={active:"Active connections",accepts:"Total accepts",handled:"Total handled",requests:"Total requests",Reading:"Reading",Writing:"Writing",Waiting:"Waiting",worker:"Worker process",workercpu:"Nginx CPU usage",workermen:"Nginx memory usage"},{loading:c,setLoading:m}=l(),_=async()=>{try{m(!0);const{message:e}=await i();r(e)&&(s.data=Object.keys(e).map((a=>({title:p[a],value:e[a]}))))}finally{m(!1)}};return _(),a({init:_}),(e,a)=>{const t=o;return g(),x("div",null,[y(t,{data:w(s).data,columns:w(u),loading:w(c)},null,8,["data","columns","loading"])])}}}),T={class:"w-150px! text-right"},F={class:"w-250px! color-#666"},R={class:"text-center"},B=d({__name:"index",setup(e,{expose:a}){const{t:t}=v(),s=f(),n=[{label:t("Config.Panel.index_83_1"),value:"on"},{label:t("Config.Safe.index_84"),value:"off"}],o=async()=>{const e=s.value.reduce(((e,a)=>(e[a.name]=a.value,e)),{});await u(e)},{loading:i,setLoading:r}=l(),_=async()=>{try{r(!0);const{message:e}=await p();c(e)&&(s.value=e)}finally{r(!1)}};return _(),a({init:_}),(e,a)=>{const t=q,l=N,r=z,u=A,p=H,c=m;return g(),j(c,{show:w(i)},{default:k((()=>[(g(!0),x(h,null,b(w(s),((e,a)=>(g(),j(u,{class:"items-center flex-nowrap! py-2px mb-16px",key:a},{default:k((()=>[U("div",T,P(e.name),1),"gzip"!==e.name&&"worker_processes"!==e.name?(g(),j(t,{key:0,class:"w-150px!",value:e.value,"onUpdate:value":a=>e.value=a,min:0,"show-button":!1},null,8,["value","onUpdate:value"])):C("",!0),"worker_processes"===e.name?(g(),j(l,{key:1,class:"w-150px!",value:e.value,"onUpdate:value":a=>e.value=a},null,8,["value","onUpdate:value"])):C("",!0),"gzip"===e.name?(g(),j(r,{key:2,class:"w-150px!",value:e.value,"onUpdate:value":a=>e.value=a,options:n},null,8,["value","onUpdate:value"])):C("",!0),U("div",F,P(e.ps),1)])),_:2},1024)))),128)),U("div",R,[y(p,{type:"primary",onClick:o},{default:k((()=>[W(P(e.$t("Public.Btn.Save")),1)])),_:1})])])),_:1},8,["show"])}}}),G=d({__name:"index",setup(e,{expose:a}){const t=f("None"),{loading:s,setLoading:n}=l(),o=async()=>{try{n(!0);const{message:e}=await _({path:"/www/wwwlogs/nginx_error.log"});r(e)&&(t.value=e.result?e.result:"None")}finally{n(!1)}};return o(),a({init:o}),(e,a)=>{const n=L,l=m;return g(),j(l,{class:"h-580px",show:w(s)},{default:k((()=>[y(n,{log:w(t)},null,8,["log"])])),_:1},8,["show"])}}}),I=d({__name:"index",setup(n){const{t:l}=v(),o=f("service"),i=[{key:"service",label:l("Security.History.Index_10"),component:a},{key:"file",label:l("Site.Config.index_15"),data:{path:"/www/server/nginx/conf/nginx.conf"},component:t},{key:"version",label:l("Plugin.Ftp.index_9"),component:s},{key:"load",label:l("Home.index_30"),component:O},{key:"optimization",label:l("Plugin.Mysql.index_27"),component:B},{key:"logs",label:l("Site.Config.index_101"),component:G}];return(a,t)=>{const s=e;return g(),j(s,{value:w(o),"onUpdate:value":t[0]||(t[0]=e=>S(o)?o.value=e:null),data:i},null,8,["value"])}}});export{I as default};
