import{am as a}from"./site.js?v=20260328163632";import{u as s,l as t,x as e}from"./utils-lib.js?v=20260328163632";import{B as l}from"./index118.js?v=20260328163632";import{B as o}from"./naive-ui.js?v=20260328163632";import{k as i,a9 as p,r as n,o as r,V as m,W as c,X as u,O as d,a3 as j,j as v,Z as f,Y as x}from"./base-lib.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";const _={class:"flex flex-col p-20px"},b={class:"mb-10px"},g=i({__name:"index",props:{compData:{default:()=>({uuid:""})}},setup(i){const g=i,{panel:y}=s(),{paths:h}=p(y.value),k=n("");n();const B=n({count:0,limit:999999,log_end:!0,maxPage:200,page:1}),D=async(s="")=>{try{await e({request:a({path:h.value.panel+"/vhost/letsencrypt/".concat(g.compData.uuid,"/apply.log"),limit:B.value.limit,orderby:!0,p:B.value.page}),success:a=>{k.value=s+a.data.data.join("\n"),Object.assign(B.value,a.data.page)}})}catch(t){}};return r((()=>{D()})),(a,s)=>{const e=o;return m(),c("div",_,[u("div",b,[d(e,{type:"primary",onClick:s[0]||(s[0]=a=>D())},{default:j((()=>[v(f(x(t)("刷新日志")),1)])),_:1})]),d(l,{content:x(k),isHtml:!0,class:"!h-410px"},null,8,["content"])])}}});export{g as default};
