← Back
Editing: cert-progress.js
import{af as a}from"./config.js?v=VERSION_NUMBER";import{c as e,r as s,p as r,aD as t,q as l,v as n,y as o,x as c}from"./base-lib.js?v=VERSION_NUMBER";import"./utils-lib.js?v=VERSION_NUMBER";import"./__commonjsHelpers__.js?v=VERSION_NUMBER";const p={class:"h-full overflow-auto bg-black text-white"},i=["innerHTML"],m=e({__name:"cert-progress",setup(e){const m=s("正在申请证书..."),u=s();return r((()=>{(async()=>{u.value=setInterval((async()=>{try{const{data:e}=await a({filename:"/www/server/panel/logs/letsencrypt.log",num:10});m.value=e.msg}catch(e){clearInterval(u.value)}}),2e3)})()})),t((()=>{clearInterval(u.value)})),(a,e)=>(l(),n("div",p,[o("pre",{innerHTML:c(m),class:"whitespace-pre-wrap p-[1rem]"},null,8,i)]))}});export{m as default};
Save File
Cancel