import{_ as e}from"./index245.js?v=1764233927359";import{k as a,P as n,R as s,V as t,W as l,U as i,r as o,a2 as r,a3 as u,S as p,F as c,O as d,an as m,a4 as _,j as v,a0 as x,ak as g}from"./vue.js?v=1764233927359";import{e_ as y,d as f,T as w,e$ as h,f0 as j,x as k,eL as b,u as P}from"./page_layout.js?v=1764233927359";import{_ as A,a as S}from"./index.vue_vue_type_script_setup_true_lang18.js?v=1764233927359";import{_ as U}from"./index.vue_vue_type_script_setup_true_lang19.js?v=1764233927359";import{c as C,d as O,h as T}from"./public.js?v=1764233927359";import{da as L,df as W,dV as B,aC as H}from"./naive.js?v=1764233927359";import{_ as K}from"./index104.js?v=1764233927359";import{O as R}from"./index259.js?v=1764233927359";import"./__commonjsHelpers__.js?v=1764233927359";import"./common.js?v=1764233927359";import"./php.js?v=1764233927359";import"./soft.js?v=1764233927359";import"./site.js?v=1764233927359";import"./alarm.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang11.js?v=1764233927359";import"./index100.js?v=1764233927359";import"./theme-monokai.js?v=1764233927359";import"./file.js?v=1764233927359";import"./leader-line-vue.js?v=1764233927359";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:d}=O(),m=async()=>{try{d(!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{d(!1)}};return m(),a({init:m}),(e,a)=>{const n=T;return t(),s("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 h(e)},{loading:b,setLoading:P}=O(),A=async()=>{try{P(!0);const{message:e}=await j();k(e)&&(g.value=e)}finally{P(!1)}};return A(),a({init:A}),(e,a)=>{const n=W,o=B,x=L,h=H,j=w;return t(),r(j,{show:i(b)},{default:u(()=>[(t(!0),s(c,null,d(i(g),(e,a)=>(t(),r(x,{class:"items-center flex-nowrap! py-2px mb-16px",key:a},{default:u(()=>[p("div",F,_(e.name),1),"KeepAlive"!==e.name?(t(),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"])):m("",!0),"KeepAlive"===e.name?(t(),r(o,{key:1,class:"w-150px!",value:e.value,"onUpdate:value":a=>e.value=a,options:y},null,8,["value","onUpdate:value"])):m("",!0),p("div",I,_(e.ps),1)]),_:2},1024))),128)),p("div",N,[l(h,{type:"primary",onClick:f},{default:u(()=>[v(_(e.$t("Public.Btn.Save")),1)]),_:1})])]),_:1},8,["show"])}}}),$=a({__name:"index",setup(e,{expose:a}){const n=o("None"),{loading:s,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=K,p=w;return t(),r(p,{class:"h-580px",show:i(s)},{default:u(()=>[l(o,{log:i(n)},null,8,["log"])]),_:1},8,["show"])}}}),z=a({__name:"index",setup(a){const{t:s}=n(),{multiService:l}=x(P()),u=o("service"),p=[{key:"service",label:s("Security.History.Index_10"),component:A},{key:"webserver",label:"Web server",component:R},{key:"file",label:s("Site.Config.index_15"),data:{path:"/www/server/apache/conf/httpd.conf"},component:S},{key:"version",label:s("Plugin.Ftp.index_9"),component:U},{key:"load",label:s("Home.index_30"),component:q},{key:"optimization",label:s("Plugin.Mysql.index_27"),component:V},{key:"logs",label:s("Docker.App.index_5"),component:$}];return u.value=l.value?"webserver":"service",(a,n)=>{const s=e;return t(),r(s,{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};
