This change adds metrics for rate limits. Rate limits are now recorded via a rate limit check loop (as before), but in addition, we are now taking the rate limit info that gets returned in all github responses and we're recording that as it happens as opposed to every 30 seconds. The loop remains to update rate limits even for credentials that are used rarely. This change also adds a credentials details page in the webUI. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CeYeJX28.js","../chunks/o8CdT7B0.js","../chunks/DUMcBckj.js","../chunks/ChJfoPF0.js","../chunks/i7pKks78.js","../chunks/_9uqtkkk.js","../chunks/CnZ9nHem.js","../chunks/CPri_0tM.js","../chunks/rDPsLaF8.js","../chunks/BcoJ4GZv.js","../chunks/DJUEiJtb.js","../chunks/ByzrGryl.js","../chunks/DC7Aeygn.js","../chunks/K7MmO9Q9.js","../chunks/DTRhxHIE.js","../chunks/Bbk4dQfI.js","../assets/0.Dm58_Ye1.css","../nodes/1.B_98Cn_-.js","../nodes/2.Js7JRvA3.js","../chunks/zgwRPQVC.js","../chunks/BtzOUN4g.js","../chunks/CdEA5IGF.js","../chunks/CYPHW1bs.js","../chunks/CmC5OaZC.js","../chunks/BZiHL9L3.js","../nodes/3.CWyGlMW1.js","../chunks/UrL2GjpD.js","../chunks/CbREEdny.js","../chunks/DQsxKNC2.js","../chunks/FjbxnYNv.js","../chunks/DG4LDt2Z.js","../chunks/B-bv0ihJ.js","../chunks/Bi2FJHrT.js","../chunks/llowLxE6.js","../chunks/DwF0DbKK.js","../chunks/BqCROW90.js","../chunks/C0gwpZbz.js","../chunks/ow_oMtSd.js","../chunks/7XD7ITBY.js","../nodes/4.ByTij3bm.js","../chunks/mBfsYUjq.js","../nodes/5.DUEiiBg9.js","../nodes/6.4j84gekE.js","../chunks/Dk1ODhlO.js","../nodes/7.BPl_OEUT.js","../chunks/DGDf0Obs.js","../chunks/Ckj0xxjl.js","../chunks/Dah3498E.js","../chunks/4L8NSMkU.js","../chunks/D9ztHNzD.js","../nodes/8.B3PNRMwk.js","../nodes/9.DAMysnIX.js","../chunks/CKfnRgQC.js","../assets/ShellTerminal.Bno-wGqG.css","../nodes/10.C4Gx1pSn.js","../nodes/11.xr_vcKFj.js","../nodes/12.RzOlDK_G.js","../chunks/aK-A9Gop.js","../nodes/13.Ck8fk5zC.js","../nodes/14.3rNSWGL0.js","../nodes/15.DmnqOOd9.js","../chunks/O0YA8q4d.js","../nodes/16.CZAXeJjl.js","../chunks/Bje4SFZN.js","../chunks/DMKBQAZn.js","../nodes/17.BJrLJtRa.js","../chunks/DYis7hcW.js","../nodes/18.BaIemZME.js","../nodes/19.BpbLvCcG.js","../nodes/20.0B9Z8rET.js","../chunks/BDUel5dG.js","../nodes/21.BxFmjbkC.js","../nodes/22.DxgQgozR.js","../chunks/C98nByjP.js","../nodes/23.vWjBPYxf.js","../chunks/zrfkhNmc.js","../nodes/24.DWjVL7id.js"])))=>i.map(i=>d[i]);
|
|
import{d as D,aB as G,g as d,aD as U,an as F,m as W,p as Y,ad as H,ae as J,o as K,aE as T,aF as Q,f as y,s as X,a as Z,c as $,r as tt,aG as I,t as et}from"../chunks/DUMcBckj.js";import{d as rt,m as ot,u as st,f as C,a as P,c as V,t as at,s as it}from"../chunks/o8CdT7B0.js";import{p as b,i as w}from"../chunks/i7pKks78.js";import{c as k}from"../chunks/B-bv0ihJ.js";import{b as j}from"../chunks/DwF0DbKK.js";function nt(n){return class extends _t{constructor(t){super({component:n,...t})}}}class _t{#e;#t;constructor(t){var a=new Map,c=(o,e)=>{var s=W(e,!1,!1);return a.set(o,s),s};const m=new Proxy({...t.props||{},$$events:{}},{get(o,e){return d(a.get(e)??c(e,Reflect.get(o,e)))},has(o,e){return e===G?!0:(d(a.get(e)??c(e,Reflect.get(o,e))),Reflect.has(o,e))},set(o,e,s){return D(a.get(e)??c(e,s),s),Reflect.set(o,e,s)}});this.#t=(t.hydrate?rt:ot)(t.component,{target:t.target,anchor:t.anchor,props:m,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&U(),this.#e=m.$$events;for(const o of Object.keys(this.#t))o==="$set"||o==="$destroy"||o==="$on"||F(this,o,{get(){return this.#t[o]},set(e){this.#t[o]=e},enumerable:!0});this.#t.$set=o=>{Object.assign(m,o)},this.#t.$destroy=()=>{st(this.#t)}}$set(t){this.#t.$set(t)}$on(t,a){this.#e[t]=this.#e[t]||[];const c=(...m)=>a.call(this,...m);return this.#e[t].push(c),()=>{this.#e[t]=this.#e[t].filter(m=>m!==c)}}$destroy(){this.#t.$destroy()}}const ct="modulepreload",mt=function(n,t){return new URL(n,t).href},S={},r=function(t,a,c){let m=Promise.resolve();if(a&&a.length>0){let A=function(_){return Promise.all(_.map(l=>Promise.resolve(l).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const e=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),L=s?.nonce||s?.getAttribute("nonce");m=A(a.map(_=>{if(_=mt(_,c),_ in S)return;S[_]=!0;const l=_.endsWith(".css"),f=l?'[rel="stylesheet"]':"";if(c)for(let v=e.length-1;v>=0;v--){const i=e[v];if(i.href===_&&(!l||i.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${f}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":ct,l||(u.as="script"),u.crossOrigin="",u.href=_,L&&u.setAttribute("nonce",L),document.head.appendChild(u),l)return new Promise((v,i)=>{u.addEventListener("load",v),u.addEventListener("error",()=>i(new Error(`Unable to preload CSS for ${_}`)))})}))}function o(e){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=e,window.dispatchEvent(s),!s.defaultPrevented)throw e}return m.then(e=>{for(const s of e||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},Rt={};var ut=C('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),lt=C("<!> <!>",1);function dt(n,t){Y(t,!0);let a=b(t,"components",23,()=>[]),c=b(t,"data_0",3,null),m=b(t,"data_1",3,null);H(()=>t.stores.page.set(t.page)),J(()=>{t.stores,t.page,t.constructors,a(),t.form,c(),m(),t.stores.page.notify()});let o=T(!1),e=T(!1),s=T(null);K(()=>{const i=t.stores.page.subscribe(()=>{d(o)&&(D(e,!0),Q().then(()=>{D(s,document.title||"untitled page",!0)}))});return D(o,!0),i});const L=I(()=>t.constructors[1]);var A=lt(),_=y(A);{var l=i=>{const p=I(()=>t.constructors[0]);var E=V(),R=y(E);k(R,()=>d(p),(h,g)=>{j(g(h,{get data(){return c()},get form(){return t.form},get params(){return t.page.params},children:(O,vt)=>{var x=V(),N=y(x);k(N,()=>d(L),(q,z)=>{j(z(q,{get data(){return m()},get form(){return t.form},get params(){return t.page.params}}),B=>a()[1]=B,()=>a()?.[1])}),P(O,x)},$$slots:{default:!0}}),O=>a()[0]=O,()=>a()?.[0])}),P(i,E)},f=i=>{const p=I(()=>t.constructors[0]);var E=V(),R=y(E);k(R,()=>d(p),(h,g)=>{j(g(h,{get data(){return c()},get form(){return t.form},get params(){return t.page.params}}),O=>a()[0]=O,()=>a()?.[0])}),P(i,E)};w(_,i=>{t.constructors[1]?i(l):i(f,!1)})}var u=X(_,2);{var v=i=>{var p=ut(),E=$(p);{var R=h=>{var g=at();et(()=>it(g,d(s))),P(h,g)};w(E,h=>{d(e)&&h(R)})}tt(p),P(i,p)};w(u,i=>{d(o)&&i(v)})}P(n,A),Z()}const Ot=nt(dt),Lt=[()=>r(()=>import("../nodes/0.CeYeJX28.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url),()=>r(()=>import("../nodes/1.B_98Cn_-.js"),__vite__mapDeps([17,1,2,3,7,8,6,9]),import.meta.url),()=>r(()=>import("../nodes/2.Js7JRvA3.js"),__vite__mapDeps([18,1,2,3,4,12,5,6,14,19,20,21,22,23,15,24]),import.meta.url),()=>r(()=>import("../nodes/3.CWyGlMW1.js"),__vite__mapDeps([25,1,2,3,4,12,5,6,20,21,26,27,28,29,30,31,32,19,14,15,24,33,34,35,36,37,38]),import.meta.url),()=>r(()=>import("../nodes/4.ByTij3bm.js"),__vite__mapDeps([39,1,2,3,4,5,6,13,9,8,40,22,28,24,14,15,30,12,31,20,29,32,33,34]),import.meta.url),()=>r(()=>import("../nodes/5.DUEiiBg9.js"),__vite__mapDeps([41,1,2,3,4,5,6,20,21,26,27,28,29,19,14,15,24,30,12,31,32,35,38,23]),import.meta.url),()=>r(()=>import("../nodes/6.4j84gekE.js"),__vite__mapDeps([42,1,2,3,4,5,6,26,12,20,21,22,24,19,14,43,40,15,28,32,30,31,29,33,34,35,36,37,38]),import.meta.url),()=>r(()=>import("../nodes/7.BPl_OEUT.js"),__vite__mapDeps([44,1,2,3,4,5,6,13,9,8,43,12,20,21,24,22,40,45,28,32,19,14,30,31,29,33,34,36,37,46,47,38,15,48,49]),import.meta.url),()=>r(()=>import("../nodes/8.B3PNRMwk.js"),__vite__mapDeps([50,1,2,3,4,5,6,20,21,9,8,10,15,24]),import.meta.url),()=>r(()=>import("../nodes/9.DAMysnIX.js"),__vite__mapDeps([51,1,2,3,4,5,6,40,22,26,52,12,34,21,53,14,15,30,31,20,29,32,28,24,33,36,37,38]),import.meta.url),()=>r(()=>import("../nodes/10.C4Gx1pSn.js"),__vite__mapDeps([54,1,2,3,4,12,5,6,34,13,9,8,40,22,52,21,53,14,37,28,24,32]),import.meta.url),()=>r(()=>import("../nodes/11.xr_vcKFj.js"),__vite__mapDeps([55,1,2,3,4,5,6,20,21,9,8,10,24]),import.meta.url),()=>r(()=>import("../nodes/12.RzOlDK_G.js"),__vite__mapDeps([56,1,2,3,4,12,5,6,20,21,8,26,30,31,29,32,28,22,15,24,40,33,34,38,57,14]),import.meta.url),()=>r(()=>import("../nodes/13.Ck8fk5zC.js"),__vite__mapDeps([58,1,2,3,4,12,5,6,20,21,13,9,8,15,24,57,40,22,32]),import.meta.url),()=>r(()=>import("../nodes/14.3rNSWGL0.js"),__vite__mapDeps([59,1,2,3,4,5,6,12,20,21,22,27,28,24,19,14,43,40,26,15,32,30,31,29,33,34,35,36,37,38]),import.meta.url),()=>r(()=>import("../nodes/15.DmnqOOd9.js"),__vite__mapDeps([60,1,2,3,4,5,6,13,9,8,43,12,20,21,24,22,40,45,28,32,19,14,30,31,29,33,34,36,37,46,47,38,61,15,48,49]),import.meta.url),()=>r(()=>import("../nodes/16.CZAXeJjl.js"),__vite__mapDeps([62,1,2,3,4,5,6,26,48,12,20,21,22,24,49,14,19,63,40,30,31,29,32,28,15,33,34,35,36,37,38,64]),import.meta.url),()=>r(()=>import("../nodes/17.BJrLJtRa.js"),__vite__mapDeps([65,1,2,3,4,12,5,6,7,8,9,63,20,21,22,49,24,19,14,40,47,30,31,29,32,28,33,34,36,37,38,46,15,66]),import.meta.url),()=>r(()=>import("../nodes/18.BaIemZME.js"),__vite__mapDeps([67,1,2,3,4,5,6,12,20,21,22,24,27,28,19,14,43,40,26,15,30,31,29,32,33,34,35,36,37,38]),import.meta.url),()=>r(()=>import("../nodes/19.BpbLvCcG.js"),__vite__mapDeps([68,1,2,3,4,5,6,13,9,8,43,12,20,21,24,22,40,45,28,32,19,14,30,31,29,33,34,36,37,46,47,38,61,15,48,49]),import.meta.url),()=>r(()=>import("../nodes/20.0B9Z8rET.js"),__vite__mapDeps([69,1,2,3,4,5,6,26,12,20,21,22,49,24,14,19,70,40,30,31,29,32,28,15,33,34,35,36,37,38,64]),import.meta.url),()=>r(()=>import("../nodes/21.BxFmjbkC.js"),__vite__mapDeps([71,1,2,3,4,5,6,7,8,9,70,12,20,21,22,24,49,19,14,40,47,30,31,29,32,28,33,34,36,37,38,46,15,66]),import.meta.url),()=>r(()=>import("../nodes/22.DxgQgozR.js"),__vite__mapDeps([72,1,2,3,4,9,8,6,5,26,29,30,12,31,20,32,28,15,24,40,22,33,34,38,73,19,14]),import.meta.url),()=>r(()=>import("../nodes/23.vWjBPYxf.js"),__vite__mapDeps([74,1,2,3,4,5,6,20,21,7,8,9,29,15,24,32,46,75,34,11,22,40,73,28,14]),import.meta.url),()=>r(()=>import("../nodes/24.DWjVL7id.js"),__vite__mapDeps([76,1,2,3,4,5,6,20,34,21,9,8,7,15,24,46,75,11,22]),import.meta.url)],At=[],yt={"/":[2],"/credentials":[3],"/credentials/[id]":[4],"/endpoints":[5],"/enterprises":[6],"/enterprises/[id]":[7],"/init":[8],"/instances":[9],"/instances/[id]":[10],"/login":[11],"/objects":[12],"/objects/[id]":[13],"/organizations":[14],"/organizations/[id]":[15],"/pools":[16],"/pools/[id]":[17],"/repositories":[18],"/repositories/[id]":[19],"/scalesets":[20],"/scalesets/[id]":[21],"/templates":[22],"/templates/create":[24],"/templates/[id]":[23]},M={handleError:({error:n})=>{console.error(n)},reroute:()=>{},transport:{}},ft=Object.fromEntries(Object.entries(M.transport).map(([n,t])=>[n,t.decode])),Dt=Object.fromEntries(Object.entries(M.transport).map(([n,t])=>[n,t.encode])),Tt=!1,It=(n,t)=>ft[n](t);export{It as decode,ft as decoders,yt as dictionary,Dt as encoders,Tt as hash,M as hooks,Rt as matchers,Lt as nodes,Ot as root,At as server_loads};
|