import{_ as e}from"./index245.js?v=1763625242172";import{k as a,P as n,R as s,S as t,X as l,V as i,r as o,a2 as r,a3 as u,F as p,O as c,U as m,a4 as d,an as _,j as v,a0 as x,aj as g}from"./vue.js?v=1763625242172";import{eZ as y,c as f,e_ as w,e$ as h,x as j,T as k,eK as b,u as P}from"./page_layout.js?v=1763625242172";import{_ as A,a as S}from"./index.vue_vue_type_script_setup_true_lang18.js?v=1763625242172";import{_ as U}from"./index.vue_vue_type_script_setup_true_lang19.js?v=1763625242172";import{c as C,d as O,h as T}from"./public.js?v=1763625242172";import{df as K,dV as B,d9 as H,aC as L}from"./naive.js?v=1763625242172";import{_ as R}from"./index104.js?v=1763625242172";import{O as W}from"./index259.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./common.js?v=1763625242172";import"./php.js?v=1763625242172";import"./soft.js?v=1763625242172";import"./site.js?v=1763625242172";import"./alarm.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang11.js?v=1763625242172";import"./index100.js?v=1763625242172";import"./theme-monokai.js?v=1763625242172";import"./file.js?v=1763625242172";import"./leader-line-vue.js?v=1763625242172";const q=a({__name:"index",setup(e,{expose:a}){const{t:o}=n(),{table:r,columns:u}=C([{key:"title",title:o("Plugin.Apache.index_12")},{width:"30%",key:"value",title:o("Plugin.Apache.index_13")}]),p={RestartTime:o("Plugin.Apache.index_1"),UpTime:o("Plugin.Apache.index_2"),TotalAccesses:o("Plugin.Apache.index_3"),TotalKBytes:o("Plugin.Apache.index_4"),ReqPerSec:o("Plugin.Apache.index_5"),BusyWorkers:o("Plugin.Apache.index_6"),IdleWorkers:o("Plugin.Apache.index_7"),workercpu:o("Plugin.Apache.index_8"),workermem:o("Plugin.Apache.index_9")},{loading:c,setLoading:m}=O(),d=async()=>{try{m(!0);const{message:e}=await y();f(e)&&(r.data=Object.entries(e).map((([e,a])=>({title:"".concat(p[e],"(").concat(e,")"),value:a}))))}finally{m(!1)}};return d(),a({init:d}),(e,a)=>{const n=T;return s(),t("div",null,[l(n,{data:i(r).data,columns:i(u),loading:i(c)},null,8,["data","columns","loading"])])}}}),F={class:"w-150px! text-right"},I={class:"w-250px! color-#666"},N={class:"text-center"},V=a({__name:"index",setup(e,{expose:a}){const{t:x}=n(),g=o(),y=[{label:x("Config.Panel.index_83_1"),value:"On"},{label:x("Config.Safe.index_84"),value:"Off"}],f=async()=>{const e=g.value.reduce(((e,a)=>(e[a.name]=a.value,e)),{});await w(e)},{loading:b,setLoading:P}=O(),A=async()=>{try{P(!0);const{message:e}=await h();j(e)&&(g.value=e)}finally{P(!1)}};return A(),a({init:A}),(e,a)=>{const n=K,o=B,x=H,w=L,h=k;return s(),r(h,{show:i(b)},{default:u((()=>[(s(!0),t(p,null,c(i(g),((e,a)=>(s(),r(x,{class:"items-center flex-nowrap! py-2px mb-16px",key:a},{default:u((()=>[m("div",F,d(e.name),1),"KeepAlive"!==e.name?(s(),r(n,{key:0,class:"w-150px!",value:e.value,"onUpdate:value":a=>e.value=a,min:0,"show-button":!1},null,8,["value","onUpdate:value"])):_("",!0),"KeepAlive"===e.name?(s(),r(o,{key:1,class:"w-150px!",value:e.value,"onUpdate:value":a=>e.value=a,options:y},null,8,["value","onUpdate:value"])):_("",!0),m("div",I,d(e.ps),1)])),_:2},1024)))),128)),m("div",N,[l(w,{type:"primary",onClick:f},{default:u((()=>[v(d(e.$t("Public.Btn.Save")),1)])),_:1})])])),_:1},8,["show"])}}}),$=a({__name:"index",setup(e,{expose:a}){const n=o("None"),{loading:t,setLoading:p}=O(),c=async()=>{try{p(!0);const{message:e}=await b({path:"/www/wwwlogs/error_log"});f(e)&&(n.value=e.result?e.result:"None")}finally{p(!1)}};return c(),a({init:c}),(e,a)=>{const o=R,p=k;return s(),r(p,{class:"h-580px",show:i(t)},{default:u((()=>[l(o,{log:i(n)},null,8,["log"])])),_:1},8,["show"])}}}),z=a({__name:"index",setup(a){const{t:t}=n(),{multiService:l}=x(P()),u=o("service"),p=[{key:"service",label:t("Security.History.Index_10"),component:A},{key:"webserver",label:"Web server",component:W},{key:"file",label:t("Site.Config.index_15"),data:{path:"/www/server/apache/conf/httpd.conf"},component:S},{key:"version",label:t("Plugin.Ftp.index_9"),component:U},{key:"load",label:t("Home.index_30"),component:q},{key:"optimization",label:t("Plugin.Mysql.index_27"),component:V},{key:"logs",label:t("Docker.App.index_5"),component:$}];return u.value=l.value?"webserver":"service",(a,n)=>{const t=e;return s(),r(t,{value:i(u),"onUpdate:value":n[0]||(n[0]=e=>g(u)?u.value=e:null),data:p},null,8,["value"])}}});export{z as default};
