PageSourceSearch

https://admin.servebolt.com/assets/ExpiringSslListView-DlogMsUX.js

js servebolt.com collected 2026-10-02 06:00:23 UTC 8,938 bytes, 2 lines download raw bytes

1import{d as H,f as j,w as J,p as s,G as r,k as m,y as c,u as a,B as h,af as W,r as k,c as E,C as n,F as R,L as X,x as v,A as N,E as _,av as Y,m as t}from"./vendor-D7HY6vXs.js";import{u as Z}from"./vendor-i18n-BAJQGTf1.js";import{d as ee,f as te,u as se,A as q}from"./index-Dx3_aswN.js";import{s as ie,c as ae,d as ne,e as g,b as f}from"./vendor-servebolt-BwnDPTSW.js";import{a as re}from"./formatDate-DucSE2Oc.js";import{I as M}from"./inactive-E9UtwCz1.js";import{u as oe}from"./useCronAntComponents-DeVBZY2i.js";import"./vendor-auth0-B88dyU-W.js";import"./vendor-toast-BA6wVAZy.js";import"./vendor-antdv-base-QySV-hqZ.js";import"./vendor-lodash-BvL3EwUt.js";import"./vendor-antdv-slider-CkgCtKC6.js";import"./vendor-antdv-table-DFhwV24V.js";const{t:x}=ee.global,de=[{title:x("domain"),dataIndex:"domain",key:"domain",responsive:["md"]},{title:x("customer"),dataIndex:"customer",key:"customer",responsive:["md"]},{title:x("environment"),dataIndex:"environment",key:"environment",responsive:["md"]},{title:x("sslId"),key:"id",dataIndex:"id",sorter:!0,sortDirections:["desce
1nd","ascend"],responsive:["md"]},{title:x("sslOrderId"),key:"sslOrderId",dataIndex:"sslOrderId",responsive:["md"]},{title:x("automaticRenewal"),key:"renewalEnabled",dataIndex:"renewalEnabled",responsive:["md"]},{title:x("expiration"),key:"expiration",dataIndex:"expiration",sorter:!0,sortDirections:["descend","ascend"],responsive:["md"]},{title:x("support"),key:"support",dataIndex:"support",sorter:!0,sortDirections:["descend","ascend"],responsive:["md"]},{title:x("progress"),key:"progress",dataIndex:"progress",sorter:!0,sortDirections:["descend","ascend"],responsive:["md"]},{title:"",dataIndex:"mobile",key:"mobile",responsive:["xs"]}];class le extends te{constructor(p){super(p)}async fetchSslExpiringList(p){const{data:u}=await this.getQuery(`expiring-certificates?${p}`);return u}async claimExpiringSsl(p){const{data:u}=await this.postQuery(`expiring-certificates/${p}/claim`,{});return u}async claimExpiringSslDone(p){const{data:u}=await this.postQuery(`expiring-certificates/${p}/claim`,{done:!0});return u}async createCertificate(p,u){const{data:I}=await this.postQuery(`domains/${p}/certificates`,u);return I}}const ce="admin",D=new le(ce),pe={class:"mb-[50px] md:mb-[86px] flex flex-col"},ue={class:"border border-solid border-border p-[16px] md:p-[24px]"},me={class:"md:max-w-[60%] lg:min-w-[277px] w-full mb-[24px]"},he={key:0,class:"text-caption"},xe={key:0,class:"text-caption"},ve={key:0,class:"text-caption"},_e={key:1,class:"whitespace-no-wrap"},fe={key:2,class:"text-secondary whitespace-no-wrap"},ye={key:0},be={key:0,class:"whitespace-no-wrap"},ke={key:0,class:"whitespace-no-wrap"},ge={key:0},we={key:1},Ie={key:2},Se={key:0,class:"border border-border pt-[14px] px-[16px] mb-[10px] rounded-[5px]"},Oe={class:"flex flex-col mb-[40px]"},Ce={class:"mobile-header-table-block"},Ee={class:"grid grid-cols-2 gap-4"},De={key:0},$e={key:0},Be={class:"text-[9px] mb-[4px]"},Le={key:1},ze={class:"text-[9px] mb-[4px]"},Qe={key:2},Ve={class:"text-[9px] mb-[4px]"},Ae={key:1,class:"whitespace-no-wrap"},Re={key:2,class:"text-secondary whitespace-no-wrap"},Ne={key:3},qe={class:"text-[9px] mb-[4px]"},Me={key:4},Pe={class:"text-[9px] mb-[4px]"},Te={class:"whitespace-no-wrap"},Ue={class:"mb-4"},Fe={class:"text-[9px] mb-[4px]"},Ge={class:"text-[13px] mb-[4px]"},Ke={class:"whitespace-no-wrap"},He={key:0},je={key:1},Je={key:2},lt=H({__name:"ExpiringSslListView",setup(P){oe();let p=k();const u=k(),I=k(),O=k(!0),y=k(null),S=se("tailwind");let C=k({page:1});const{t:$}=Z({useScope:"global"}),T=Y(),B=E(()=>T.getters.getAccountId),L=E(()=>S.breakpoint==="md"||S.breakpoint==="lg"||S.breakpoint==="xl"||S.breakpoint==="2xl"),U=E(()=>L.value?1100:0);j(()=>{b()}),J(y,()=>{y.value||b()});function F(){const o=new URLSearchParams;for(let i in C.value)o.append(i,C.value[i]);return y.value&&o.append("q",y.value),o}async function b(){O.value=!0;const o=new URLSearchParams(F()).toString();try{u.value=await D.fetchSslExpiringList(o),p.value=u.value.meta,K(u.value.data)}catch(i){console.log({err:i})}finally{O.value=!1}}async function z(o){await D.claimExpiringSsl(o),await b()}async function Q(o){await D.claimExpiringSslDone(o),await b()}function G(o){C.value={...o.value},b()}function K(o){I.value=o.map(i=>({domain:i.attributes.domain||"-",domainId:i.attributes.domainId||"-",customer:i.attributes.customer||"-",environment:i.attributes.environment?{path:i.links.environment,name:i.attributes.environment}:"-",id:i.id?{path:i.links.certificate,sslId:i.id}:"-",sslOrderId:{id:i.attributes.sslOrderId,sslOrder:i.links.sslOrder,empty:"Missing Order"},renewalEnabled:i.attributes.renewalEnabled||!1,expiration:i.attributes.expiration||"-",support:i.relationships?.staffClaim?.data?.attributes?.user||"-",progress:i.relationships?.staffClaim?.data?.attributes?.done||"",claim:i.relationships?.staffClaim?.data}))}function V(){b()}function A(o){return o?re(o):"Never"}return(o,i)=>(t(),s("div",null,[r("div",pe,[m(a(ie),{class:"md:mt-0"},{default:c(()=>[h(n(a($)("expiringSsl")),1)]),_:1})]),i[1]||(i[1]=r("p",{class:"mb-[24px]"},[h(" This page lists SSL certificate that will expire in a week. "),r("br"),h(" SSL certificates should normally auto-renew 14 days before they expire. If you see a certificate in this list, it likely requires investigation/intervention from the support team. ")],-1)),r("div",ue,[r("div",me,[m(a(ae),{modelValue:y.value,"onUpdate:modelValue":i[0]||(i[0]=d=>y.value=d),placeholder:a($)("searchBy"),isButton:"",search:"",btnText:"Search",onClickBtn:V,onKeyup:W(V,["enter"])},null,8,["modelValue","placeholder"])]),m(a(ne),{data:I.value,loading:O.value,scheme:a(de),meta:a(p),onSetQuery:G,scroll:U.value},{enviroment:c(({column:d,record:e})=>[d.key==="environment"?(t(),s("div",he,[m(a(g),{href:e.environment.path},{default:c(()=>[h(n(e.environment.name),1)]),_:2},1032,["href"])])):_("",!0)]),id:c(({column:d,record:e})=>[d.key==="id"?(t(),s("div",xe,[m(a(g),{href:e.id.path},{default:c(()=>[h(n(e.id.sslId),1)]),_:2},1032,["href"])])):_("",!0)]),sslOrderId:c(({column:d,record:e})=>[d.key==="sslOrderId"?(t(),s("div",ve,[e.sslOrderId.sslOrder?(t(),v(a(g),{key:0,href:e.sslOrderId.sslOrder},{default:c(()=>[h(n(e.sslOrderId.id),1)]),_:2},1032,["href"])):e.sslOrderId.id?(t(),s("p",_e,n(e.sslOrderId.id),1)):(t(),s("p",fe,"Missing Order"))])):_("",!0)]),renewalEnabled:c(({column:d,record:e})=>[d.key==="renewalEnabled"?(t(),s("div",ye,[(t(),v(N(e.renewalEnabled?a(q):a(M)),{width:"18",height:"18"}))])):_("",!0)]),expiration:c(({column:d,record:e})=>[d.key==="expiration"?(t(),s("p",be,n(A(e.expiration)),1)):_("",!0)]),progress:c(({column:d,record:e})=>[d.key==="progress"?(t(),s("div",ke,[e.progress?(t(),s("div",ge,[m(a(f),{text:"Done",type:"outline",size:"sm",disabled:!0})])):e.claim?(t(),s("div",we,[e.claim.attributes.userId===B.value?(t(),v(a(f),{key:0,text:"Reserved",type:"outline",size:"sm",onClick:w=>Q(e.domainId)},null,8,["onClick"])):(t(),v(a(f),{key:1,text:"Reserved",type:"outline",size:"sm",disabled:!0}))])):(t(),s("div",Ie,[m(a(f),{text:"Claim",type:"outline",size:"sm",onClick:w=>z(e.domainId)},null,8,["onClick"])]))])):_("",!0)]),mobile:c(({column:d,record:e})=>[d&&d.key==="mobile"&&!L.value?(t(),s("div",Se,[r("div",Oe,[r("div",Ce,n(e.domain),1)]),r("div",Ee,[(t(!0),s(R,null,X(e,(w,l)=>(t(),s(R,{key:l},[String(l)!=="domain"?(t(),s("div",De,[String(l)==="environment"?(t(),s("div",$e,[r("div",Be,n(l),1),m(a(g),{href:e.environment.path},{default:c(()=>[h(n(e.environment.name),1)]),_:2},1032,["href"])])):String(l)==="id"?(t(),s("div",Le,[r("div",ze,n(l),1),m(a(g),{href:e.id.path},{default:c(()=>[h(n(e.id.sslId),1)]),_:2},1032,["href"])])):String(l)==="sslOrderId"?(t(),s("div",Qe,[r("div",Ve,n(l),1),e.sslOrderId.sslOrder?(t(),v(a(g),{key:0,href:e.sslOrderId.sslOrder},{default:c(()=>[h(n(e.sslOrderId.id),1)]),_:2},1032,["href"])):e.sslOrderId.id?(t(),s("p",Ae,n(e.sslOrderId.id),1)):(t(),s("p",Re,"Missing Order"))])):String(l)==="renewalEnabled"?(t(),s("div",Ne,[r("div",qe,n(l),1),(t(),v(N(e.renewalEnabled?a(q):a(M)),{width:"18",height:"18"}))])):String(l)==="expiration"?(t(),s("div",Me,[r("div",Pe,n(l),1),r("span",Te,n(A(e.expiration)),1)])):(t(),s("div",{key:l,class:"text-gray-700"},[r("div",Ue,[r("div",Fe,n(l),1),r("div",Ge,n(w),1)])]))])):_("",!0)],64))),128)),r("div",Ke,[e.progress?(t(),s("div",He,[m(a(f),{text:"Done",type:"outline",size:"small",disabled:!0})])):e.claim?(t(),s("div",je,[e.claim.attributes.userId===B.value?(t(),v(a(f),{key:0,text:"Reserved",type:"outline",size:"small",onClick:w=>Q(e.domainId)},null,8,["onClick"])):(t(),v(a(f),{key:1,text:"Reserved",type:"outline",size:"small",disabled:!0}))])):(t(),s("div",Je,[m(a(f),{text:"Claim",type:"outline",size:"small",onClick:w=>z(e.domainId)},null,8,["onClick"])]))])])])):_("",!0)]),_:1},8,["data","loading","scheme","meta","scroll"])])]))}});
1export{lt as default};
2//# sourceMappingURL=ExpiringSslListView-DlogMsUX.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.