Files

2 lines
8.4 KiB
JavaScript
Raw Permalink Normal View History

2026-04-07 02:04:22 +05:30
import{_ as I}from"./index-DIKmrNCq.js?v=1773287522785";import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{i as V,t as Q,l as Z,Q as H,m as J,C as K}from"./index-BTglIPU2.js?v=1773287522785";import{k as G,am as ee,r as B,c as te,$ as d,a8 as f,a9 as s,S as o,Z as q,ak as v,a0 as n,_ as u,j as C,R as oe,e as ae,l as j,v as F,aa as T}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{ae as ne,af as se}from"./mail-COTHIXbY.js?v=1773287522785";import{g as ie}from"./data-BVsViUMm.js?v=1773287522785";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{g as re}from"./index-BsHsIKON.js?v=1773287522785";import{g as de}from"./ssl-Bm8jcneQ.js?v=1773287522785";import{u as ue}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{u as me}from"./useTableData-BmkIKQ_R.js?v=1773287522785";import{k as L,ad as pe,B as _e,a9 as ce,a1 as fe,a3 as ve,a4 as be,b as ye,_ as ge,a6 as he}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DgjjuUjT.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-B7YvCBmY.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-C5hb-Th7.js?v=1773287522785";import"./useTableColumns-DDeyYvje.js?v=1773287522785";import"./index-S15tYq5l.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785";import"./index-Cg6fMjw6.js?v=1773287522785";const xe={key:0,class:"color-desc"},we={key:3,class:"color-desc"},ke=G({__name:"automatic",props:{domain:{}},setup(P,{expose:E}){const N=ee(),b=P,{table:w,columns:k}=me([{key:"type",title:"Type",width:50},{key:"record",title:"Record",width:120,ellipsis:{tooltip:!0}},{key:"value",title:"Value",ellipsis:{tooltip:!0}},{key:"priority",title:"MX priority",render:r=>r.priority!==-1?r.priority:"-",width:90},{key:"status",title:"Status",width:110}]),m=B(),p=te(()=>{var r;return(r=m.value)==null?void 0:r.support.includes("auto")}),D=()=>{N.push("/ssl_domain/domain")},{loading:h,setLoading:x}=ue();return E({getParseStatus:async()=>{const{message:r}=await de({domain:b.domain});if(V(r)&&(m.value=r,p.value))try{x(!0);const{message:i}=await re({domain:b.domain,hash:r.hash});V(i)&&(w.data=[{type:"A",record:i.A.record,value:i.A.record_value,priority:i.A.priority,status:i.A.status?"Added":"Waiting to add"},{type:"MX",record:i.MX.record,value:i.MX.record_value,priority:i.MX.priority,status:i.MX.status?"Added":"Waiting to add"},...i.TXT.map(_=>({type:"TXT",record:_.record,value:_.record_value,priority:_.priority,status:_.status?"Added":"Waiting to add"}))])}finally{x(!1)}},parseStatus:m,isSupportAuto:p}),(r,i)=>{const _=_e,y=L,M=pe,R=ce,a=le;return d(),f(y,null,{default:s(()=>[o(m)?v("",!0):(d(),q("span",xe," *The program will use the APl to automatically add the required DNS records forthe mail server and complete the installation of the SSL certifcate. ")),o(m)?(d(),f(y,{key:1},{default:s(()=>[o(p)?(d(),f(M,{key:1,type:"success"},{default:s(()=>i[2]||(i[2]=[C(" Your domain has been connccted to the domain managementccnter, and you can use this fcature to complcte onc-click deployment. ")])),_:1,__:[2]})):(d(),f(M,{key:0,type:"error"},{default:s(()=>[n(y,{class:"items-center flex-nowrap!"},{default:s(()=>[i[1]||(i[1]=u("span",null,"Your domain has not yet been integrated with the Domain Name Management Center.",-1)),n(_,{type:"primary",size:"small",ghost:"",onClick:D},{default:s(()=>i[0]||(i[0]=[C("Add Now")])),_:1,__:[0]})]),_:1,__:[1]})]),_:1})),o(h)?(d(),f(y,{key:2,class:"items-center!"},{default:s(()=>[i[3]||(i[3]=u("span",{class:"color-desc"},"Checking for records to be added",-1)),n(R,{size:"small"})]),_:1,__:[3]})):v("",!0),!o(h)&&o(p)?(d(),q("span",we,"The records that will be automatically added")):v("",!0),!o(h)&&o(p)?(d(),f(a,{key:4,data:o(w).data,columns:o(k)},null,8,["data","columns"])):v("",!0)]),_:1})):v("",!0)]),_:1})}}}),De={class:"p-20px"},Me={class:"flex h-15px items-center mr-16px