PageSourceSearch

https://www.dontpaniclondon.com/_nuxt/CcJOHYdm.js

js dontpaniclondon.com collected 2026-10-02 10:03:44 UTC 1,756 bytes, 1 lines download raw bytes

1import{_ as L}from"./TJ2be8Ud.js";import{_ as V}from"./DMF-snRS.js";import{d as A,u as E,c as s,B as F,w as H,C as I,k as M,n as R,H as S,b as c,i as f,s as x,e as y,f as v,g as e,F as T,r as q,h as j,I as z,J as D,a as J,o as t,K,z as G}from"#entry";import{s as O}from"./R-ylpWAq.js";import"./C4S0VCFn.js";const Q={class:"mb-32 lg:mb-44"},U={class:"flex justify-center mb-32 lg:mb-44"},W={key:1,class:"font-serif text-20"},X={key:1,class:"py-8 text-center sr-only"},ae=A({__name:"index",async setup(Y){let d,m;const a=E(),n=s(()=>a.blogPage),k=F(),l=s(()=>{const o=k.query.category;return o?o.toString():""}),r=s(()=>a.articles||[]),b=s(()=>a.blogCategories||[]);if([d,m]=H(()=>J("blog",()=>a.getBlogPage(l.value),{watch:[l]})),await d,m(),!n)throw I({statusCode:404,message:"Page not found"});const g=s(()=>r.value.length%12===0),u=M(!1),h=async()=>{const o=r.value.at(-1)?.date;if(!o)return;const i=r.value.length;await a.getBlogPosts(o,l.value),await z(),i===r.value.length&&(u.value=!0)},_=s(()=>{if(!(!g.value||u.value))return"/blog/page/2/"});return R(O(n.value)),S({link:[{rel:"next",href:"https://www.dontpaniclondon.com"+_.value}]}),(o,i)=>{const w=L,C=V,P=D("RouterLink"),B=G;return t(),c("div",null,[e(n)?(t(),f(w,{key:0,title:e(n).title,text:e(n).description,categories:e(b),filtered:!!e(l)},null,8,["title","text","categories","filtered"])):x("",!0),y("ul",Q,[(t(!0),c(T,null,q(e(r),(p,N)=>(t(),f(C,{key:p._id,post:p,index:N},null,8,["post","index"]))),128))]),y("div",U,[e(g)&&!e(u)?(t(),c("button",{key:0,onClick:h,class:"btn"},"Load more →")):(t(),c("div",W,"That's all!"))]),e(_)?(t(),c("div",X,[v(P,{to:e(_),rel:"next"},{default:j(()=>[...i[0]||(i[0]=[K("Next page",-1)])]),_:1},8,["to"])])):x("",!0),v(B)])}}});export{ae 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.