mirror of https://github.com/FastGitORG/uptime
2 lines
3.9 KiB
JavaScript
2 lines
3.9 KiB
JavaScript
![]() |
import{S as e,i as t,s as a,r as i,j as r,e as s,t as n,v as o,F as c,d as l,k as d,c as h,a as u,b as f,f as m,g as E,h as p,n as v,q as x,J as w,K as L,B as g,L as b,C as T}from"./client.f43faa63.js";function P(e){let t,a,o,c,v,x,w,P,S,k,y,A=i.i18n.rateLimitExceededGitHubPAT+"",H=i.i18n.rateLimitExceededSaveToken+"";return{c(){t=s("form"),a=s("label"),o=s("span"),c=n(A),v=r(),x=s("input"),w=r(),P=s("button"),S=n(H),this.h()},l(e){t=h(e,"FORM",{});var i=u(t);a=h(i,"LABEL",{class:!0});var r=u(a);o=h(r,"SPAN",{class:!0});var s=u(o);c=f(s,A),s.forEach(l),v=d(r),x=h(r,"INPUT",{type:!0,placeholder:!0,class:!0}),r.forEach(l),w=d(i),P=h(i,"BUTTON",{class:!0,type:!0});var n=u(P);S=f(n,H),n.forEach(l),i.forEach(l),this.h()},h(){m(o,"class","svelte-1x7uoin"),m(x,"type","text"),m(x,"placeholder",i.i18n.rateLimitExceededCopyPastePAT),m(x,"class","svelte-1x7uoin"),m(a,"class","svelte-1x7uoin"),m(P,"class","submit-button svelte-1x7uoin"),m(P,"type","submit")},m(i,r){E(i,t,r),p(t,a),p(a,o),p(o,c),p(a,v),p(a,x),L(x,e[0]),p(t,w),p(t,P),p(P,S),k||(y=[g(x,"input",e[4]),g(t,"submit",b(e[2]))],k=!0)},p(e,t){1&t&&x.value!==e[0]&&L(x,e[0])},d(e){e&&l(t),k=!1,T(y)}}}function S(e){let t,a,o,c,x,w,L,b=i.i18n.rateLimitExceededHasSet+"",T=i.i18n.rateLimitExceededRemoveToken+"";return{c(){t=s("p"),a=n(b),o=r(),c=s("button"),x=n(T),this.h()},l(e){t=h(e,"P",{});var i=u(t);a=f(i,b),i.forEach(l),o=d(e),c=h(e,"BUTTON",{class:!0});var r=u(c);x=f(r,T),r.forEach(l),this.h()},h(){m(c,"class","svelte-1x7uoin")},m(i,r){E(i,t,r),p(t,a),E(i,o,r),E(i,c,r),p(c,x),w||(L=g(c,"click",e[3]),w=!0)},p:v,d(e){e&&l(t),e&&l(o),e&&l(c),w=!1,L()}}}function k(e){let t,a,x,w,L,g,b,T,k,y,A,H,I,N,B,F,C,M,O,U,j,G,R,q,D=i.i18n.rateLimitExceededTitle+"",J=i.i18n.rateLimitExceededIntro+"",K=i.i18n.rateLimitExceededWhatDoesErrorMean+"",W=i.i18n.rateLimitExceededErrorMeaning+"",_=i.i18n.rateLimitExceededErrorHowCanFix+"",z=i.i18n.rateLimitExceededErrorFix+"",Q=i.i18n.rateLimitExceededGeneratePAT+"";function V(e,t){return e[1]?S:P}document.title=t=i.i18n.rateLimitExceededTitle;let X=V(e),Y=X(e);return{c(){a=r(),x=s("h1"),w=n(D),L=r(),g=s("p"),b=n(J),T=r(),k=s("h2"),y=n(K),A=r(),H=s("p"),I=n(W),N=r(),B=s("h2"),F=n(_),C=r(),M=s("p"),O=n(z),U=r(),j=s("a"),G=n(Q),R=r(),Y.c(),q=o(),this.h()},l(e){c('[data-svelte="svelte-1xny0el"]',document.head).forEach(l),a=d(e),x=h(e,"H1",{});var t=u(x);w=f(t,D),t.forEach(l),L=d(e),g=h(e,"P",{class:!0});var i=u(g);b=f(i,J),i.forEach(l),T=d(e),k=h(e,"H2",{});var r=u(k);y=f(r,K),r.forEach(l),A=d(e),H=h(e,"P",{});var s=u(H);I=f(s,W),s.forEach(l),N=d(e),B=h(e,"H2",{});var n=u(B);F=f(n,_),n.forEach(l),C=d(e),M=h(e,"P",{});var m=u(M);O=f(m,z),U=d(m),j=h(m,"A",{href:!0,target:!0});var E=u(j);G=f(E,Q),E.forEach(l),m.forEach(l),R=d(e),Y.l(e),q=o(),this.h()},h(){m(g,"class","lead svelte-1x7uoin"),m(j,"href","https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token"),m(j,"target","_blank")},m(e,t){E(e,a,t),E(e,x,t),p(x,w),E(e,L,t),E(e,g,t),p(g,b),E(e,T,t),E(e,k,t),p(k,y),E(e,A,t),E(e,H,t),p(H,I),E(e,N,t),E(e,B,t),p(B,F),E(e,C,t),E(e,M,t),p(M,O),p(M,U),p(M,j),p(j,G),E(e,R,t),Y.m(e,t),E(e,q,t)},p(e,[a]){0&a&&t!==(t=i.i18n.rateLimitExceededTitle)&&(document.title=t),X===(X=V(e))&&Y?Y.p(e,a):(Y.d(1),Y=X(e),Y&&(Y.c(),Y.m(q.parentNode,q)))},i:v,o:v,d(e){e&&l(a),e&&l(x),e&&l(L),e&&l(g),e&&l(T),e&&l(k),e&&l(A),e&&l(H),e&&l(N),e&&l(B),e&&l(C),e&&l(M),e&&l(R),Y.d(e),e&&l(q)}}}function y(e,t,a){let r="",s=!1;return x((()=>{"undefined"!=typeof window&&"localStorage"in window&&localStorage.getItem("personal-access-token")&&a(1,s=!0)})),[r,s,()=>{"undefined"!=typeof window&&"localStorage"in window&&window.localStorage.setItem("personal-access-token",r),w(i.path)},()=>{a(0,r=""),a(1,s=!1),"undefined"!=typeof window&&"localStorage"in window&&window.localStorage.removeItem("personal-access-token")},function(){r=this.value,a(0,r)}]}export default class extends e{constructor(e){super(),t(this,e,y,k,a,{})}}
|