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 n}from"./index.vue_vue_type_script_setup_true_lang21.js?v=1753954525509";import{b as s,c as l,f as i}from"./public.js?v=1753954525509";import{ek as o,c as u,el as p,em as r,w as c,O as _,e7 as m}from"./page_layout.js?v=1753954525509";import{k as d,P as v,U as x,V as g,Q as y,X as f,r as h,a1 as w,a2 as j,F as k,O as P,W as b,a3 as A,al as U,j as O,ah as S}from"./vue.js?v=1753954525509";import{c1 as C,cG as T,bY as B,ay as H}from"./naive.js?v=1753954525509";import{_ as K}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 L=d({__name:"index",setup(e,{expose:a}){const{t:t}=v(),{table:n,columns:p}=s([{key:"title",title:t("Plugin.Apache.index_12")},{width:"30%",key:"value",title:t("Plugin.Apache.index_13")}]),r={RestartTime:t("Plugin.Apache.index_1"),UpTime:t("Plugin.Apache.index_2"),TotalAccesses:t("Plugin.Apache.index_3"),TotalKBytes:t("Plugin.Apache.index_4"),ReqPerSec:t("Plugin.Apache.index_5"),BusyWorkers:t("Plugin.Apache.index_6"),IdleWorkers:t("Plugin.Apache.index_7"),workercpu:t("Plugin.Apache.index_8"),workermem:t("Plugin.Apache.index_9")},{loading:c,setLoading:_}=l(),m=async()=>{try{_(!0);const{message:e}=await o();u(e)&&(n.data=Object.entries(e).map((([e,a])=>({title:"".concat(r[e],"(").concat(e,")"),value:a}))))}finally{_(!1)}};return m(),a({init:m}),(e,a)=>{const t=i;return x(),g("div",null,[y(t,{data:f(n).data,columns:f(p),loading:f(c)},null,8,["data","columns","loading"])])}}}),W={class:"w-150px! text-right"},q={class:"w-250px! color-#666"},F={class:"text-center"},I=d({__name:"index",setup(e,{expose:a}){const{t:t}=v(),n=h(),s=[{label:t("Config.Panel.index_83_1"),value:"On"},{label:t("Config.Safe.index_84"),value:"Off"}],i=async()=>{const e=n.value.reduce(((e,a)=>(e[a.name]=a.value,e)),{});await p(e)},{loading:o,setLoading:u}=l(),m=async()=>{try{u(!0);const{message:e}=await r();c(e)&&(n.value=e)}finally{u(!1)}};return m(),a({init:m}),(e,a)=>{const t=C,l=T,u=B,p=H,r=_;return x(),w(r,{show:f(o)},{default:j((()=>[(x(!0),g(k,null,P(f(n),((e,a)=>(x(),w(u,{class:"items-center flex-nowrap! py-2px mb-16px",key:a},{default:j((()=>[b("div",W,A(e.name),1),"KeepAlive"!==e.name?(x(),w(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"])):U("",!0),"KeepAlive"===e.name?(x(),w(l,{key:1,class:"w-150px!",value:e.value,"onUpdate:value":a=>e.value=a,options:s},null,8,["value","onUpdate:value"])):U("",!0),b("div",q,A(e.ps),1)])),_:2},1024)))),128)),b("div",F,[y(p,{type:"primary",onClick:i},{default:j((()=>[O(A(e.$t("Public.Btn.Save")),1)])),_:1})])])),_:1},8,["show"])}}}),N=d({__name:"index",setup(e,{expose:a}){const t=h("None"),{loading:n,setLoading:s}=l(),i=async()=>{try{s(!0);const{message:e}=await m({path:"/www/wwwlogs/error_log"});u(e)&&(t.value=e.result?e.result:"None")}finally{s(!1)}};return i(),a({init:i}),(e,a)=>{const s=K,l=_;return x(),w(l,{class:"h-580px",show:f(n)},{default:j((()=>[y(s,{log:f(t)},null,8,["log"])])),_:1},8,["show"])}}}),R=d({__name:"index",setup(s){const{t:l}=v(),i=h("service"),o=[{key:"service",label:l("Security.History.Index_10"),component:a},{key:"file",label:l("Site.Config.index_15"),data:{path:"/www/server/apache/conf/httpd.conf"},component:t},{key:"version",label:l("Plugin.Ftp.index_9"),component:n},{key:"load",label:l("Home.index_30"),component:L},{key:"optimization",label:l("Plugin.Mysql.index_27"),component:I},{key:"logs",label:l("Docker.App.index_5"),component:N}];return(a,t)=>{const n=e;return x(),w(n,{value:f(i),"onUpdate:value":t[0]||(t[0]=e=>S(i)?i.value=e:null),data:o},null,8,["value"])}}});export{R as default};
