PageSourceSearch

https://openwritings.net/_next/static/chunks/pages/postx-0386c2cf5b4c60c3.js

js openwritings.net collected 2026-10-05 22:19:33 UTC 3,361 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6661],{71565:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/postx",function(){return n(30850)}])},30850:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return m},default:function(){return p}});var l=n(85893),r=n(9008),s=n.n(r),a=n(41664),i=n.n(a);function c(e,t){let n=new Date(e.frontmatter.date);return new Date(t.frontmatter.date)-n}function o(e){let{mdxfiles:t}=e,n=[...t].sort(c);return(0,l.jsx)("div",{className:"mx-auto w-full flex flow-row flex-wrap justify-center",children:n.map(e=>(0,l.jsx)("div",{className:"m-2 p-2 text-center rounded shadow-sm",children:(0,l.jsx)(i(),{href:e.uriPath,className:"p-2 text-blue-600 hover:underline",children:e.frontmatter.title?e.frontmatter.title:e.uriPath.replace("/postx/","").replace(".mdx","")})},e.uriPath))})}class h{static shuffle(e){let t=e.slice();for(let e=t.length-1;e>0;e--){let n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t}static getLongestString(e){return e.reduce(function(e,t){return e.length>t.length?e:t})}static chunk(e,t){let n=[];for(let l=0;l<e.length;l+=t)n.push(e.slice(l,l+t));return n}}var u=n(67294);let d=e=>{let{node:t}=e,[n,r]=(0,u.useState)(!0);return(0,l.jsxs)("div",{children:[(0,l.jsxs)("span",{onClick:t.children?()=>{r(!n)}:null,role:t.children?"button":null,children:[t.children&&(n?"▼ ":"► "),null==t.children?(0,l.jsx)("div",{className:"shadow-sm mb-1 px-2",children:(0,l.jsx)(i(),{href:t.fullpath,className:"text-blue-600 hover:underline",children:t.frontmatter.title?t.frontmatter.title:t.name})}):t.name]}),t.children&&n&&(0,l.jsx)("div",{style:{marginLeft:"20px"},children:t.children.map((e,t)=>(0,l.jsx)(d,{node:e},t))})]})},x=e=>{let{files:t,replaceBasePath:n}=e,r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"postx/p/",n={name:"root",children:[]};return e.forEach(e=>{let l=e.uriPath.replace(t,""),r=l.split("/"),s=n.children;r.forEach((n,a)=>{let i=s.find(e=>e.name===n);i||(i={name:n},a<r.length-1&&(i.children=[]),s.push(i)),i.fullpath=t+l,i.frontmatter=e.frontmatter,s=i.children})}),n}(t,n);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:r.children.map((e,t)=>(0,l.jsx)(d,{node:e},t))}),!1]})};function f(e){let{mdxfiles:t,replaceBasePath:n}=e,r=[...t].sort((e,t)=>e.uriPath.localeCompare(t.uriPath)),s=Math.ceil(r.length/3),a=h.chunk(r,s);return(0,l.jsx)("div",{className:"mx-auto w-full flex flow-row flex-wrap justify-center",children:a.map((e,t)=>(0,l.jsx)("div",{className:"p-4 m-2 flex-1 shadow-sm",children:(0,l.jsx)(x,{files:e,replaceBasePath:n})},t))})}var m=!0;function p(e){let{mdxfiles:t}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s(),{children:(0,l.jsx)("title",{children:"All posts"})}),(0,l.jsxs)("main",{className:"max-w-7xl mx-auto py-20",children:[(0,l.jsxs)("section",{className:"mx-auto",children:[(0,l.jsx)("h2",{className:"text-3xl font-bold text-center mb-8",children:"All posts by date"}),(0,l.jsx)(o,{mdxfiles:t})]}),(0,l.jsxs)("section",{className:"mx-auto py-16",children:[(0,l.jsx)("h2",{className:"text-3xl font-bold text-center mb-8",children:"All posts by categories"}),(0,l.jsx)(f,{mdxfiles:t,replaceBasePath:"postx/p/"})]})]}),!1]})}},9008:function(e,t,n){e.exports=n(23867)}},function(e){e.O(0,[1664,2888,9774,179],function(){return e(e.s=71565)}),_N_E=e.O()}]);

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.