This commit is contained in:
Bubobubobubobubo
2024-02-09 09:17:21 +00:00
parent 4bf9484f27
commit f67301eca1
93 changed files with 150 additions and 150 deletions

View File

@ -0,0 +1,2 @@
import{s as D}from"../chunks/scheduler.aZRR5A_O.js";import{S as F,i as G,g as b,s as w,r as J,h as g,x as H,c as P,u as K,j as E,f,k as j,a as $,v as N,d as Q,t as R,w as V,A as W,m as A,n as I,y as m,o as q}from"../chunks/index.kYoizZ4A.js";import{e as M}from"../chunks/each.-oqiv04n.js";import{I as X}from"../chunks/Info.uQGne4yI.js";const Y=async({fetch:c})=>({articles:await(await c("/api/articles")).json()}),ne=Object.freeze(Object.defineProperty({__proto__:null,load:Y},Symbol.toStringTag,{value:"Module"}));function T(c,a,u){const s=c.slice();return s[1]=a[u],s}function U(c){let a,u,s,r=c[1].meta.title+"",v,h,k,o,i,C="Publié le :",p,l=c[1].meta.date+"",e,n,t,x=c[1].meta.author+"",z,S;return{c(){a=b("li"),u=b("h2"),s=b("a"),v=A(r),k=w(),o=b("p"),i=b("b"),i.textContent=C,p=w(),e=A(l),n=A(" par "),t=b("i"),z=A(x),S=w(),this.h()},l(d){a=g(d,"LI",{class:!0});var _=E(a);u=g(_,"H2",{});var L=E(u);s=g(L,"A",{href:!0});var O=E(s);v=I(O,r),O.forEach(f),L.forEach(f),k=P(_),o=g(_,"P",{class:!0});var y=E(o);i=g(y,"B",{"data-svelte-h":!0}),H(i)!=="svelte-1y3xx1s"&&(i.textContent=C),p=P(y),e=I(y,l),n=I(y," par "),t=g(y,"I",{});var B=E(t);z=I(B,x),B.forEach(f),y.forEach(f),S=P(_),_.forEach(f),this.h()},h(){j(s,"href",h=c[1].path),j(o,"class","pt-2"),j(a,"class","ml-0 list-none px-4 pb-4 my-4 rounded-lg bg-base-300 dark:bg-base-300 hover:bg-base-200 hover:dark:bg-base-200 border-1 border-color-base-100")},m(d,_){$(d,a,_),m(a,u),m(u,s),m(s,v),m(a,k),m(a,o),m(o,i),m(o,p),m(o,e),m(o,n),m(o,t),m(t,z),m(a,S)},p(d,_){_&1&&r!==(r=d[1].meta.title+"")&&q(v,r),_&1&&h!==(h=d[1].path)&&j(s,"href",h),_&1&&l!==(l=d[1].meta.date+"")&&q(e,l),_&1&&x!==(x=d[1].meta.author+"")&&q(z,x)},d(d){d&&f(a)}}}function Z(c){let a,u="Articles",s,r,v,h,k="Articles publiés",o,i,C;r=new X({props:{info:`Cette section sert pour tout les articles généralistes qui ne peuvent
pas réellement être considérés comme des guides. Publiez ce que vous voulez !`,markdown:"false"}});let p=M(c[0].articles),l=[];for(let e=0;e<p.length;e+=1)l[e]=U(T(c,p,e));return{c(){a=b("h1"),a.textContent=u,s=w(),J(r.$$.fragment),v=w(),h=b("h2"),h.textContent=k,o=w(),i=b("ul");for(let e=0;e<l.length;e+=1)l[e].c();this.h()},l(e){a=g(e,"H1",{"data-svelte-h":!0}),H(a)!=="svelte-a2vclf"&&(a.textContent=u),s=P(e),K(r.$$.fragment,e),v=P(e),h=g(e,"H2",{"data-svelte-h":!0}),H(h)!=="svelte-6efz5p"&&(h.textContent=k),o=P(e),i=g(e,"UL",{class:!0});var n=E(i);for(let t=0;t<l.length;t+=1)l[t].l(n);n.forEach(f),this.h()},h(){j(i,"class","")},m(e,n){$(e,a,n),$(e,s,n),N(r,e,n),$(e,v,n),$(e,h,n),$(e,o,n),$(e,i,n);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(i,null);C=!0},p(e,[n]){if(n&1){p=M(e[0].articles);let t;for(t=0;t<p.length;t+=1){const x=T(e,p,t);l[t]?l[t].p(x,n):(l[t]=U(x),l[t].c(),l[t].m(i,null))}for(;t<l.length;t+=1)l[t].d(1);l.length=p.length}},i(e){C||(Q(r.$$.fragment,e),C=!0)},o(e){R(r.$$.fragment,e),C=!1},d(e){e&&(f(a),f(s),f(v),f(h),f(o),f(i)),V(r,e),W(l,e)}}}function ee(c,a,u){let{data:s}=a;return c.$$set=r=>{"data"in r&&u(0,s=r.data)},[s]}class re extends F{constructor(a){super(),G(this,a,ee,Z,D,{data:0})}}export{re as component,ne as universal};