- ajoute un .dockerignore. - ajoute un Dockerfile. - met à jour les dépendances. - utilise bun comme gestionnaire de paquets npm. - utilise une configuration Vite en TypeScript. - ajoute les fichiers compilés JavaScript aux fichiers pris en charge par Git.
1 line
5.8 KiB
JavaScript
1 line
5.8 KiB
JavaScript
System.register(["./index-legacy.BZucyBbQ.js","./api-legacy.BVjX3txO.js","./dom-legacy.BJVKv9nc.js"],function(t,r){"use strict";var e,i,n,a,s,o,u,c,h,f,l,y,m;return{setters:[t=>{e=t.M},t=>{i=t.i},t=>{n=t.al,a=t.bb,s=t.bc,o=t.a0,u=t.bd,c=t.be,h=t.Y,f=t.bf,l=t.bg,y=t.bh,m=t.X}],execute:function(){var r;const p={liftEither(t){if(t.isRight())return Promise.resolve(t.extract());throw t.extract()},fromPromise:t=>t.then(p.liftEither),throwE(t){throw t}};class w{constructor(t){this.runPromise=t,this[r]="EitherAsync",this.then=(t,r)=>this.run().then(t,r)}leftOrDefault(t){return this.run().then(r=>r.leftOrDefault(t))}orDefault(t){return this.run().then(r=>r.orDefault(t))}join(){return g(async t=>{const r=await(this);if(r.isRight()){const e=await r.extract();return t.liftEither(e)}return t.liftEither(r)})}ap(t){return g(async r=>{const e=await t;if(e.isRight()){const t=await this.run();return t.isRight()?e.extract()(t.extract()):r.liftEither(t)}return r.liftEither(e)})}alt(t){return g(async r=>{const e=await this.run();if(e.isRight())return e.extract();{const e=await t;return r.liftEither(e)}})}extend(t){return g(async r=>{const e=await this.run();if(e.isRight()){const i=g.liftEither(e);return r.liftEither(a(t(i)))}return r.liftEither(e)})}async run(){try{return a(await this.runPromise(p))}catch(t){return s(t)}}bimap(t,r){return g(async e=>{const i=await this.run();try{return await e.liftEither(i.bimap(t,r))}catch(n){throw await n}})}map(t){return g(r=>this.runPromise(r).then(t))}mapLeft(t){return g(async r=>{try{return await this.runPromise(r)}catch(e){throw await t(e)}})}chain(t){return g(async r=>{const e=await this.runPromise(r);return r.fromPromise(t(e))})}chainLeft(t){return g(async r=>{try{return await this.runPromise(r)}catch(e){return r.fromPromise(t(e))}})}toMaybeAsync(){return E(async({liftMaybe:t})=>t((await this.run()).toMaybe()))}swap(){return g(async t=>{const r=await this.run();return r.isRight()&&t.throwE(r.extract()),t.liftEither(a(r.extract()))})}ifLeft(t){return g(async r=>{const e=await this.run();return e.ifLeft(t),r.liftEither(e)})}ifRight(t){return g(async r=>{const e=await this.run();return e.ifRight(t),r.liftEither(e)})}void(){return this.map(t=>{})}caseOf(t){return this.run().then(r=>r.caseOf(t))}finally(t){return g(({fromPromise:r})=>r(this.run().finally(t)))}}r=Symbol.toStringTag,w.prototype["fantasy-land/chain"]=w.prototype.chain,w.prototype["fantasy-land/alt"]=w.prototype.alt;const g=t("E",Object.assign(t=>new w(t),{fromPromise:t=>g(({fromPromise:r})=>r(t())),liftEither:t=>g(({liftEither:r})=>r(t)),lefts:t=>Promise.all(t.map(t=>t.run())).then(n.lefts),rights:t=>Promise.all(t.map(t=>t.run())).then(n.rights),sequence:t=>g(async r=>{let e=[];for await(const i of t){if(i.isLeft())return r.liftEither(i);e.push(i.extract())}return r.liftEither(a(e))}),all:t=>g.fromPromise(async()=>Promise.all(t).then(n.sequence))}));var b;w.prototype.constructor=g;const P={liftMaybe(t){if(t.isJust())return Promise.resolve(t.extract());throw u},fromPromise:t=>t.then(P.liftMaybe)};class d{constructor(t){this.runPromise=t,this[b]="MaybeAsync"}orDefault(t){return this.run().then(r=>r.orDefault(t))}join(){return E(async t=>{const r=await this.run();if(r.isJust()){const e=await r.extract();return t.liftMaybe(e)}return t.liftMaybe(u)})}ap(t){return E(async r=>{const e=await t;if(e.isJust()){const t=await this.run();return t.isJust()?e.extract()(t.extract()):r.liftMaybe(u)}return r.liftMaybe(u)})}alt(t){return E(async r=>{const e=await this.run();if(e.isJust())return e.extract();{const e=await t;return r.liftMaybe(e)}})}extend(t){return E(async r=>{const e=await this.run();if(e.isJust()){const i=E.liftMaybe(e);return r.liftMaybe(c(t(i)))}return r.liftMaybe(u)})}filter(t){return E(async r=>{const e=await this.run();return r.liftMaybe(e.filter(t))})}async run(){try{return c(await this.runPromise(P))}catch{return u}}map(t){return E(r=>this.runPromise(r).then(t))}chain(t){return E(async r=>{const e=await this.runPromise(r);return r.fromPromise(t(e))})}toEitherAsync(t){return g(async({liftEither:r})=>r((await this.run()).toEither(t)))}ifJust(t){return E(async r=>{const e=await this.run();return e.ifJust(t),r.liftMaybe(e)})}ifNothing(t){return E(async r=>{const e=await this.run();return e.ifNothing(t),r.liftMaybe(e)})}void(){return this.map(t=>{})}caseOf(t){return this.run().then(r=>r.caseOf(t))}finally(t){return E(({fromPromise:r})=>r(this.run().finally(t)))}then(t,r){return this.run().then(t,r)}}b=Symbol.toStringTag,d.prototype["fantasy-land/chain"]=d.prototype.chain,d.prototype["fantasy-land/filter"]=d.prototype.filter,d.prototype["fantasy-land/alt"]=d.prototype.alt;const E=Object.assign(t=>new d(t),{catMaybes:t=>Promise.all(t).then(o.catMaybes),fromPromise:t=>E(({fromPromise:r})=>r(t())),liftMaybe:t=>E(({liftMaybe:r})=>r(t))});d.prototype.constructor=E,t("g",t=>fetch(`${t.route}?${t.searchParams}`,{credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json",[i]:t.nonce,...t.authString&&{Authorization:`Basic ${t.authString}`}},method:"GET",mode:"same-origin",signal:AbortSignal.timeout(5e3)})),t("a",t=>fetch(t.route,{body:t.corps,credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json",[i]:t.nonce,...t.authString&&{Authorization:`Basic ${t.authString}`}},method:"POST",mode:"same-origin",signal:AbortSignal.timeout(5e3)})),t("p",(t,r)=>(e,n,a)=>fetch(e,{body:n,credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json",[i]:t,...r&&a&&{Authorization:`Basic ${r}`}},method:"POST",mode:"same-origin",signal:AbortSignal.timeout(5e3)})),t("s",t=>g(async()=>await t)),t("n",async t=>({body:await t.json(),status:t.status})),t("t",t=>e(t).with({status:400},()=>new h).with({status:401},()=>new f).with({status:403},()=>new l).with({status:404},()=>new y).with({status:500},()=>new m).otherwise(t=>new Error(String(t.status))))}}});
|