PageSourceSearch

https://maddevs.io/_nuxt/Dt2icBA2.js

js maddevs.io collected 2026-09-25 15:01:45 UTC 3,987 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./entry.DMV14cz6.css","./Banner.BZZIpdJp.css","./SpinnerLoader.C_Ypszu-.css","./Posts.DHhgz3Pb.css","./Words.D3X3VkdC.css"])))=>i.map(i=>d[i]);
2import{_}from"./3HINrSmu.js";import{f as E}from"./rHlnUceL.js";import{c as z}from"./ClPL90tB.js";import{g as S,b as k}from"./DLeNwi9e.js";import{d as W,b as A,w as C,g as M,m as I,u as R,h as P,i as o,c as g,j as v,n as V,f as $,k as O,r as T,l as G,a as f,s as H,o as u,_ as N}from"./QN_rGMVs.js";import{t as j}from"./LaRX1sYk.js";import{t as Q}from"./B-bzBRdl.js";import"./DVarW8BZ.js";import"./DTRCrlno.js";import"./PygcKd9e.js";class U{prismic;ffEnvironment;constructor(t,a){this.prismic=t,this.ffEnvironment=a}async getTags(){const{results:t}=await this.prismic.client.get({filters:[this.prismic.filter.at("document.type","tags")],orderings:{field:"my.post.date",direction:"desc"},pageSize:100});return t}async getPostsByTag(t,a=1){const s=await this.prismic.client.get({filters:[this.prismic.filter.any("document.type",["post","customer_university"]),this.prismic.filter.any("document.tags",[t]),this.ffEnvironment==="production"?this.prismic.filter.not("my.post.released",!1):"",this.ffEnvironment==="production"?this.prismic.filter.not("my.customer_university.released",!1):""],orderings:{field:"my.post.date",direction:"desc"},pageSize:100,page:a,fetchLinks:E}),r=s.results;if(!s.next_page)return r;const c=a+1,i=await this.getPostsByTag(t,c);return[...r,...i]}async getWordsByTag(t,a=1){const s=await this.prismic.client.get({filters:[this.prismic.filter.any("document.type",["glossary"]),this.prismic.filter.any("document.tags",[t])],orderings:{field:"my.glossary.date",direction:"desc"},pageSize:100,page:a,fetchLinks:E}),r=s.results;if(!s.next_page)return r;const c=a+1,i=await this.getWordsByTag(t,c);return[...r,...i]}getTag(t,a){const s=t.find(r=>z(r.tag_name)===a);if(s)return s.tag_name;throw new Error("Tag not found")}}const q=f(()=>_(()=>import("./BX9DAp3y.js"),__vite__mapDeps([0,1]),import.meta.url).then(e=>e.default||e)),F=f(()=>_(()=>import("./D5wP5rEa.js"),__vite__mapDeps([0,2]),import.meta.url).then(e=>e.default||e)),J=f(()=>_(()=>import("./3fe5klG7.js"),__vite__mapDeps([0,3]),import.meta.url).then(e=>e.default||e)),K=f(()=>_(()=>import("./CWJLayIx.js"),__vite__mapDeps([0,4]),import.meta.url).then(e=>e.default||e)),X={class:"tag"},Y={class:"tag__content"},Z={key:1},tt=W({__name:"[uid]",async setup(e){let t,a;const s=A(),r=$(),c=O(),i=new U(r,c.public.ffEnvironment),x=`${c.public.domain}/tag/${s.params.uid}/`,d=T([]),p=T([]),y=T(!0),{data:n,error:D}=([t,a]=C(async()=>G(`tagsData-${s.params?.uid||""}`,async()=>{try{const l=await i.getTags(),m=i.getTag(l[0].data.tags,s.params.uid);return{currentTag:m==="Software Development"?"Software Development ":m}}catch{H({statusMessage:"Page not found",statusCode:404})}})),t=await t,a(),t);if(D.value)throw M({statusMessage:"Page not found",statusCode:404});I(async()=>{try{const[l,m]=await Promise.all([i.getPostsByTag(n.value?.currentTag),i.getWordsByTag(n.value?.currentTag)]);d.value=j(l,r),p.value=Q(m),y.value=!1}catch{y.value=!1}});const h=S(s.params.uid);return R(k({title:h.title||`Top articles about ${n.value?.currentTag} | Mad Devs Blog`,metaTitle:h.title||`Top articles about ${n.value?.currentTag} | Mad Devs Blog`,description:h.description||`Discover articles about ${n.value?.currentTag}. Quality content curated by Mad Devs.`,url:x,image:"https://maddevs.io/md-blog.png"})),(l,m)=>{const w=q,B=F,L=J,b=K;return u(),P("div",X,[o(n)?(u(),g(w,{key:0,title:o(n).currentTag,count:{posts:o(d).length,words:o(p).length}},null,8,["title","count"])):v("",!0),V("div",Y,[o(y)?(u(),g(B,{key:0,"color-theme":"white",class:"tag__loading"})):(u(),P("div",Z,[o(n)&&o(d).length?(u(),g(L,{key:0,posts:o(d),tag:o(n).currentTag},null,8,["posts","tag"])):v("",!0),o(p).length?(u(),g(b,{key:1,words:o(p)},null,8,["words"])):v("",!0)]))])])}}}),mt=N(tt,[["__scopeId","data-v-17db9850"]]);export{mt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.