mirror of https://github.com/FastGitORG/uptime
2 lines
26 KiB
JavaScript
2 lines
26 KiB
JavaScript
![]() |
import{S as e,i as t,s as a,e as n,t as r,c as l,a as s,b as c,d as i,f as o,g as d,h,n as u,j as f,k as m,l as p,m as g,o as v,p as $,q as E,r as w,u as _,v as D,w as y,x as I,y as T,z as S,A as b,B as L,C as k,D as M,E as R,H as N,F as H,G as A}from"./client.70d2fc63.js";import{c as V,a as U,h as O,L as x}from"./createOctokit.90ea1b5a.js";function B(e,t,a){const n=e.slice();return n[5]=t[a],n}function C(e){let t,a,f,m=w.i18n.allSystemsOperational+"";return{c(){t=n("article"),a=r("✅ "),f=r(m),this.h()},l(e){t=l(e,"ARTICLE",{class:!0});var n=s(t);a=c(n,"✅ "),f=c(n,m),n.forEach(i),this.h()},h(){o(t,"class","up")},m(e,n){d(e,t,n),h(t,a),h(t,f)},p:u,d(e){e&&i(t)}}}function P(e){let t,a,o,p,g=w.i18n.activeIncidents+"",v=e[1],$=[];for(let t=0;t<v.length;t+=1)$[t]=j(B(e,v,t));return{c(){t=n("h2"),a=r(g),o=f();for(let e=0;e<$.length;e+=1)$[e].c();p=D()},l(e){t=l(e,"H2",{});var n=s(t);a=c(n,g),n.forEach(i),o=m(e);for(let t=0;t<$.length;t+=1)$[t].l(e);p=D()},m(e,n){d(e,t,n),h(t,a),d(e,o,n);for(let t=0;t<$.length;t+=1)$[t].m(e,n);d(e,p,n)},p(e,t){if(2&t){let a;for(v=e[1],a=0;a<v.length;a+=1){const n=B(e,v,a);$[a]?$[a].p(n,t):($[a]=j(n),$[a].c(),$[a].m(p.parentNode,p))}for(;a<$.length;a+=1)$[a].d(1);$.length=v.length}},i:u,o:u,d(e){e&&i(t),e&&i(o),y($,e),e&&i(p)}}}function F(e){let t,a;return t=new x({}),{c(){I(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,n){S(t,e,n),a=!0},p:u,i(e){a||($(t.$$.fragment,e),a=!0)},o(e){g(t.$$.fragment,e),a=!1},d(e){b(t,e)}}}function j(e){let t,a,u,p,g,v,$,E,D,y,I,T,S,b,L,k=e[5].title.replace("🛑","").replace("⚠️","").trim()+"",M=w.i18n.activeIncidentSummary.replace(/\$DATE/g,new Date(e[5].created_at).toLocaleString()).replace(/\$POSTS/g,e[5].comments)+"",R=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"";return{c(){t=n("article"),a=n("div"),u=n("div"),p=n("h4"),g=r(k),v=f(),$=n("div"),E=r(M),D=f(),y=n("div"),I=n("a"),T=r(R),b=f(),this.h()},l(e){t=l(e,"ARTICLE",{class:!0});var n=s(t);a=l(n,"DIV",{class:!0});var r=s(a);u=l(r,"DIV",{});var o=s(u);p=l(o,"H4",{});var d=s(p);g=c(d,k),d.forEach(i),v=m(o),$=l(o,"DIV",{});var h=s($);E=c(h,M),h.forEach(i),o.forEach(i),D=m(r),y=l(r,"DIV",{class:!0});var f=s(y);I=l(f,"A",{href:!0});var w=s(I);T=c(w,R),w.forEach(i),f.forEach(i),r.forEach(i),b=m(n),n.forEach(i),this.h()},h(){o(I,"href",S=`${w.path}/incident/${e[5].number}`),o(y,"class","f r"),o(a,"class","f"),o(t,"class",L="down down-active link "+(e[5].title.includes("degraded")?"degraded":""))},m(e,n){d(e,t,n),h(t,a),h(a,u),h(u,p),h(p,g),h(u,v),h(u,$),h($,E),h(a,D),h(a,y),h(y,I),h(I,T),h(t,b)},p(e,a){2&a&&k!==(k=e[5].title.replace("🛑","").replace("⚠️","").trim()+"")&&_(g,k),2&a&&M!==(M=w.i18n.activeIncidentSummary.replace(/\$DATE/g,new Date(e[5].created_at).toLocaleString()).replace(/\$POSTS/g,e[5].comments)+"")&&_(E,M),2&a&&R!==(R=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"")&&_(T,R),2&a&&S!==(S=`${w.path}/incident/${e[5].number}`)&&o(I,"href",S),2&a&&L!==(L="down down-active link "+(e[5].title.includes("degraded")?"degraded":""))&&o(t,"class",L)},d(e){e&&i(t)}}}function W(e){let t,a,r,c,h,u=!e[1].length&&!e[0]&&C();const E=[F,P],w=[];function _(e,t){return e[0]?0:e[1].length?1:-1}return~(r=_(e))&&(c=w[r]=E[r](e)),{c(){u&&u.c(),t=f(),a=n("section"),c&&c.c(),this.h()},l(e){u&&u.l(e),t=m(e),a=l(e,"SECTION",{class:!0});var n=s(a);c&&c.l(n),n.forEach(i),this.h()},h(){o(a,"class","svelte-8lnl4f")},m(e,n){u&&u.m(e,n),d(e,t,n),d(e,a,n),~r&&w[r].m(a,null),h=!0},p(e,[n]){e[1].length||e[0]?u&&(u.d(1),u=null):u?u.p(e,n):(u=C(),u.c(),u.m(t.parentNode,t));let l=r;r=_(e),r===l?~r&&w[r].p(e,n):(c&&(p(),g(w[l],1,1,(()=>{w[l]=null})),v()),~r?(c=w[r],c?c.p(e,n):(c=w[r]=E[r](e),c.c()),$(c,1),c.m(a,null)):c=null)},i(e){h||($(c),h=!0)},o(e){g(c),h=!1},d(e){u&&u.d(e),e&&i(t),e&&i(a),~r&&w[r].d()}}}function Y(e,t,a){let n=!0;const r=V(),l=w.owner,s=w.repo;let c=[];return E((async()=>{try{a(1,c=(await U(`issues-${l}-${s}`,(()=>r.issues.listForRepo({owner:l,repo:s,state:"open",filter:"all",sort:"created",direction:"desc",labels:"status"})))).data),a(1,c=c.map(((e,t)=>(e.showHeading=0===t||ne
|