Files
yakpanel-core/YakPanel/static/vite/js/domain-verification-b3GxBSNA.js
2026-04-07 02:04:22 +05:30

3 lines
7.8 KiB
JavaScript

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/change-verification-BJr3SNLM.js?v=1773287522785","js/index-DIKmrNCq.js?v=1773287522785","js/index-BTglIPU2.js?v=1773287522785","js/vue-core-DJjvd5ZC.js?v=1773287522785","js/prismjs-BZPoR7_J.js?v=1773287522785","css/prismjs-D-3FhBe_.css?v=1773287522785","js/naive-ui--dJnpVcV.js?v=1773287522785","css/index-DEM1fxGq.css?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785","js/ssl-Bm8jcneQ.js?v=1773287522785"])))=>i.map(i=>d[i]);
import{_ as A,l as q,i as M,m as G,p as Z,P as z}from"./index-BTglIPU2.js?v=1773287522785";import{_ as J}from"./index-DIKmrNCq.js?v=1773287522785";import{a0 as K,A as Q}from"./ssl-Bm8jcneQ.js?v=1773287522785";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{c as C}from"./copy-D-wIKr0q.js?v=1773287522785";import{a1 as R,b as F,B as x,k as g,g as W}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{k as D,ab as X,$ as h,Z as V,_ as c,a0 as e,a9 as n,j as p,aa as _,S as a,R as T,O as U,e as Y,r as L,c as ee,n as te,a8 as P,a3 as ne}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{u as ae}from"./useTableColumns-DDeyYvje.js?v=1773287522785";import{u as le}from"./useTableData-BmkIKQ_R.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./index-S15tYq5l.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785";import"./index-Cg6fMjw6.js?v=1773287522785";const se={class:"text-14px mb-20px!"},ie=D({__name:"dns-verification",props:{form:{}},setup(S){return(o,u)=>{const r=A,y=X("i18n-t"),d=F,i=x,t=R,v=g,l=N;return h(),V("div",null,[c("div",se,[e(y,{keypath:"SSL.Business.index_15",scope:"global"},{a:n(()=>[e(r,null,{default:n(()=>[p(_(o.form.domain_name),1)]),_:1})]),b:n(()=>[p(_(o.form.record_type),1)]),_:1})]),e(l,{model:o.form,"label-width":"100px"},{default:n(()=>[e(t,{label:o.$t("Mail.Domain.index_37")},{default:n(()=>[e(d,{class:"w-380px!",value:o.form.host_record,"onUpdate:value":u[0]||(u[0]=m=>o.form.host_record=m),readonly:""},null,8,["value"]),e(i,{class:"ml-10px!",type:"primary",onClick:u[1]||(u[1]=m=>a(C)(o.form.host_record))},{default:n(()=>[p(_(o.$t("Public.Btn.Copy")),1)]),_:1})]),_:1},8,["label"]),e(t,{label:o.$t("Mail.Domain.index_36")},{default:n(()=>[e(d,{class:"w-380px!",value:o.form.record_type,"onUpdate:value":u[2]||(u[2]=m=>o.form.record_type=m),readonly:""},null,8,["value"])]),_:1},8,["label"]),e(t,{label:o.$t("Mail.Domain.index_38")},{default:n(()=>[e(v,null,{default:n(()=>[e(d,{type:"textarea",class:"w-380px!",value:o.form.record_value,"onUpdate:value":u[3]||(u[3]=m=>o.form.record_value=m),readonly:""},null,8,["value"]),e(i,{type:"primary",onClick:u[4]||(u[4]=m=>a(C)(o.form.record_value))},{default:n(()=>[p(_(o.$t("Public.Btn.Copy")),1)]),_:1})]),_:1})]),_:1},8,["label"])]),_:1},8,["model"])])}}}),re={class:"text-14px mb-20px!"},ue={class:"text-primary"},me=D({__name:"http-verification",props:{form:{},paths:{}},setup(S){const{t:o}=T(),u=S,{form:r,paths:y}=U(u),{columns:d}=le([{title:"URL",key:"url",width:"50%",ellipsis:{tooltip:!0}},{title:"Verification Result",key:"status",render:i=>i.status===-1?e("span",{class:"color-error"},[o("Failed"),p("("),i.status,p(")"),e(q,{class:"ml-5px! cursor-pointer",name:"base-problem",onClick:()=>{window.open("https://www.yakpanel.com/docs/Function/BusinessCertificate.html#http-and-https-file-verification-methods","_blank")}},null)]):e("span",{class:"text-primary"},[o("Site.PHP.index_35")])},ae({width:150,options:i=>[{label:o("Public.Btn.Copy"),onClick:()=>{C(i.url)}},{label:o("Config.Panel.index_83_1"),onClick:()=>{window.open(i.url,"_blank")}},{label:"Re-verify",onClick:async()=>{try{const{message:t}=await K({url:i.url,content:u.form.file_content});M(t)&&(i.status=t.status)}catch(t){i.status=W(t,"message.status",-1)}}}]})]);return(i,t)=>{const v=F,l=x,m=R,$=g,B=N,k=oe;return h(),V("div",null,[c("div",re,[t[6]||(t[6]=p(" Please add a verification file to the following domain name [ ")),c("span",ue,_(a(r).domain_name),1),t[7]||(t[7]=p(" ], the verification information is as follows: "))]),e(B,{model:a(r),"label-width":"100px"},{default:n(()=>[e(m,{label:"File Location"},{default:n(()=>[e(v,{class:"w-380px!",value:a(r).file_path,"onUpdate:value":t[0]||(t[0]=f=>a(r).file_path=f),readonly:""},null,8,["value"]),e(l,{class:"ml-10px!",type:"primary",onClick:t[1]||(t[1]=f=>a(C)(a(r).file_path))},{default:n(()=>[p(_(i.$t("Public.Btn.Copy")),1)]),_:1})]),_:1}),e(m,{label:i.$t("file.fileName")},{default:n(()=>[e(v,{class:"w-380px!",value:a(r).file_name,"onUpdate:value":t[2]||(t[2]=f=>a(r).file_name=f),readonly:""},null,8,["value"]),e(l,{class:"ml-10px!",type:"primary",onClick:t[3]||(t[3]=f=>a(C)(a(r).file_name))},{default:n(()=>[p(_(i.$t("Public.Btn.Copy")),1)]),_:1})]),_:1},8,["label"]),e(m,{label:i.$t("SSL.Domain.index_13")},{default:n(()=>[e($,null,{default:n(()=>[e(v,{type:"textarea",class:"w-380px!",value:a(r).file_content,"onUpdate:value":t[4]||(t[4]=f=>a(r).file_content=f),readonly:""},null,8,["value"]),e(l,{type:"primary",onClick:t[5]||(t[5]=f=>a(C)(a(r).file_content))},{default:n(()=>[p(_(i.$t("Public.Btn.Copy")),1)]),_:1})]),_:1})]),_:1},8,["label"])]),_:1},8,["model"]),e(k,{columns:a(d),data:a(y)},null,8,["columns","data"])])}}}),pe={class:"p-40px",show:!1},ge=D({__name:"domain-verification",props:{uc_id:{},verify:{},paths:{},request:{type:Boolean},onRefresh:{type:Function}},emits:["close"],setup(S,{emit:o}){const{t:u}=T(),r=S,{uc_id:y,verify:d,request:i,paths:t}=U(r),v=o,l=Y({host_record:"",record_type:"",record_value:"",domain_name:"",file_path:"/.well-known/pki-validation/",file_name:"",file_content:""}),m=L([]),$=L(""),B=ee(()=>$.value=="CNAME_CSR_HASH"),k=async()=>{const{message:s}=await Q({uc_id:y.value});M(s)&&(s.certStatus==="PENDING"?G.success(u("SSL.Business.index_23")):(r.onRefresh(),v("close")),l.host_record=s.data.DCVdnsHost,l.record_type=s.data.DCVdnsType,l.record_value=s.data.DCVdnsValue,l.domain_name=s.data.dcvList.map(b=>b.domainName).join(","),$.value=s.data.dcvList[0].dcvMethod,l.file_name=s.data.DCVfileName,l.file_content=s.data.DCVfileContent,m.value=s.paths)},f=()=>{v("close")};te(()=>{i.value?k():H()});const H=()=>{l.host_record=d.value.DCVdnsHost,l.record_type=d.value.DCVdnsType,l.record_value=d.value.DCVdnsValue,l.domain_name=d.value.dcvList.map(s=>s.domainName).join(","),$.value=d.value.dcvList[0].dcvMethod,l.file_name=d.value.DCVfileName,l.file_content=d.value.DCVfileContent,m.value=(t==null?void 0:t.value)||[]},E=()=>{Z({title:"Modify the verification method",width:500,minHeight:200,data:{uc_id:y.value,onRefresh:k},footer:!0,component:ne(()=>z(()=>import("./change-verification-BJr3SNLM.js?v=1773287522785"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])))})};return(s,b)=>{const j=A,I=J,w=x,O=g;return h(),V("div",pe,[a(B)?(h(),P(ie,{key:0,form:a(l)},null,8,["form"])):(h(),P(me,{key:1,form:a(l),paths:a(m)},null,8,["form","paths"])),e(I,{class:"my-20px"},{default:n(()=>[b[0]||(b[0]=c("li",null,"Check for the existence of CAA records, and if they exist, please remove the relevant CAA records.",-1)),c("li",null,_(s.$t("SSL.Business.index_16")),1),c("li",null,_(s.$t("SSL.Business.index_17")),1),c("li",null,_(s.$t("SSL.Business.index_18")),1),c("li",null,_(s.$t("SSL.Business.index_19")),1),c("li",null,[e(j,{href:"https://www.yakpanel.com/docs/Function/BusinessCertificate.html",target:"_blank"},{default:n(()=>[p(_(s.$t("SSL.Business.index_20")),1)]),_:1})])]),_:1,__:[0]}),e(O,null,{default:n(()=>[e(w,{type:"primary",onClick:k},{default:n(()=>[p(_(s.$t("SSL.Business.index_21")),1)]),_:1}),e(w,{onClick:E},{default:n(()=>b[1]||(b[1]=[p("Modifiy verify")])),_:1,__:[1]}),e(w,{onClick:f},{default:n(()=>[p(_(s.$t("SSL.Business.index_22")),1)]),_:1})]),_:1})])}}});export{ge as default};