PageSourceSearch

https://www.dviramontes.com/_next/static/chunks/pages/tools/[slug]-8ea00e9e554ab459.js

js dviramontes.com collected 2026-10-03 23:19:57 UTC 7,725 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[131],{1900:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var s=n(7876),l=n(9099),r=n(4232),a=n(8230),o=n.n(a),i=n(9880),c=n(6188),d=n(4752),x=n(7438);let h=function(){let{slug:e}=(0,l.useRouter)().query,[t,n]=(0,r.useState)(null),[a,h]=(0,r.useState)(!0),[m,g]=(0,r.useState)(null);return(0,r.useEffect)(()=>{e&&fetch("https://dviramontes.github.io/tools/tools.json").then(e=>{if(!e.ok)throw Error("Failed to fetch tools");return e.json()}).then(t=>{let s=(t.tools||t).find(t=>t.slug===e);s?n(s):g("Tool not found"),h(!1)}).catch(e=>{g(e.message),h(!1)})},[e]),(0,s.jsx)(i.A,{preview:!1,children:(0,s.jsxs)(c.A,{children:[(0,s.jsx)(d.A,{}),a&&(0,s.jsx)("p",{className:"text-stone-500 dark:text-stone-400",children:"Loading..."}),m&&(0,s.jsx)("p",{className:"text-red-500",children:m}),t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o(),{href:"/tools",className:"mb-4 inline-block text-stone-500 hover:text-stone-800 dark:text-stone-400 dark:hover:text-stone-100",children:"← Back to Tools"}),(0,s.jsx)(x.A,{children:t.name}),(0,s.jsx)("p",{className:"mb-6 w-full break-words overflow-hidden text-lg leading-relaxed text-stone-600 dar
1k:text-stone-300",children:t.description.split(/(https?:\/\/[^\s]+)/g).map((e,t)=>{if(e.match(/^https?:\/\//)){let n=e.replace(/[.,;:!?]+$/,""),l=e.slice(n.length);return(0,s.jsxs)("span",{children:[(0,s.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 underline hover:text-blue-800 transition duration-300 ease-in-out",children:n}),l]},t)}return e})}),(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsxs)("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:"group inline-flex items-center gap-2 border border-stone-300 bg-stone-200 px-5 py-2 text-sm font-medium uppercase tracking-wide text-black transition-all duration-200 hover:shadow-md dark:border-stone-200 dark:bg-stone-900 dark:text-white",children:["visit tool",(0,s.jsx)("svg",{className:"w-4 h-4 transition-transform group-hover:translate-x-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 5l7 7m0 0l-7 7m7-7H3"})})]})}),(0,s.jsx)("div",{className:"mb-16",children:(0,s.jsx)("iframe",{src:t.url,className:"w-full rounded-lg border border-stone-300 dark:border-stone-700",style:{height:"80vh"},title:t.name})})]})]})})}},2627:(e,t,n)=>{"use strict";n.d(t,{j:()=>l,y:()=>s});let s="dviramontes.com",l="https://s3.us-west-2.amazonaws.com/imm.aterial.org/images/9ab5b4154210ca89.png"},4752:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var s=n(7876),l=n(8230),r=n.n(l);let a=()=>(0,s.jsx)("h2",{className:"text-2xl md:text-4xl font-bold tracking-tight md:tracking-tighter leading-tight mb-20 mt-8",children:(0,s.jsx)(r(),{href:"/",children:(0,s.jsx)("span",{className:"hover:underline",children:"Blog"})})})},6188:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var s=n(7876);let l=e=>{let{children:t}=e;return(0,s.jsx)("div",{className:"container mx-auto px-5 max-w-5xl",children:t})}},7438:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(7876);let l=e=>{let{children:t}=e;return(0,s.jsxs)("h1",{className:"".concat("font-bold tracking-tighter leading-tight md:leading-none mb-12 text-center md:text-left"," ").concat("text-4xl md:text-5xl lg:text-6xl"),children:[(0,s.jsx)("span",{className:"text-stone-800 dark:text-stone-100",children:"TIL: "}),(0,s.jsx)("span",{className:"text-brand",children:t})]})},r=e=>{let{children:t,isTIL:n}=e;return n?(0,s.jsx)(l,{children:t}):(0,s.jsx)("h1",{className:"".concat("font-bold tracking-tighter leading-tight md:leading-none mb-12 text-center md:text-left"," ").concat("text-5xl md:text-7xl lg:text-8xl"),children:t})}},8398:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/tools/[slug]",function(){return n(1900)}])},9099:(e,t,n)=>{e.exports=n(8253)},9880:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var s=n(7876),l=n(6188),r=n(8230),a=n.n(r);let o=()=>(0,s.jsx)("footer",{className:"border-t border-stone-300/70 bg-[#171717] text-white dark:border-stone-800 dark:bg-black",children:(0,s.jsx)(l.A,{children:(0,s.jsxs)("div",{className:"py-10 flex flex-col lg:flex-row items-center",children:[(0,s.jsx)("h3",{className:"text-4xl lg:text-[2.5rem] font-bold tracking-tighter leading-tight text-center lg:text-left mb-10 lg:mb-0 lg:pr-4 lg:w-1/2",children:(0,s.jsx)(a(),{href:"/",children:(0,s.jsx)("span",{className:"hover:underline",children:"~/"})})}),(0,s.jsx)("div",{className:"flex flex-col lg:flex-row justify-center items-center lg:pl-4 lg:w-1/3",children:(0,s.jsxs)("div",{className:"grid grid-cols-3 gap-y-6 gap-x-2 lg:flex lg:flex-row w-full lg:space-x-2 items-center px-4 lg:px-0",children:[(0,s.jsx)("div",{className:"w-full lg:w-auto my-2 lg:my-0 text-center",children:(0,s.jsx)(a(),{href:"/about",children:(0,s.jsx)("span",{className:"border border-white bg-stone-950 px-8 py-3 font-bold text-white transition-colors duration-200 hover:bg-stone-800 lg:px-8",children:"About"})})}),(0,s.jsx)("div",{className:"w-full lg:w-auto my-2 lg:my-0 text-center",children:(0,s.jsx)(a(),{href:"/til",children:(0,s.jsx)("span",{className:"font-bold hover:underline",children:"TIL"})})}),(0,s.jsx)("div",{className:"w-full lg:w-auto my-2 lg:my-0 text-center",children:(0,s.jsx)(a(),{href:"/",children:(0,s.jsx)("span",{className:"font-bold hover:underline",children:"Posts"})})}),(0,s.jsx)("div",{className:"w-full lg:w-auto my-2 lg:my-0 text-center",children:(0,s.jsx)(a(),{href:"/books
1helf",children:(0,s.jsx)("span",{className:"font-bold hover:underline",children:"Bookshelf"})})}),(0,s.jsx)("div",{className:"w-full lg:w-auto my-2 lg:my-0 text-center",children:(0,s.jsx)(a(),{href:"/tools",children:(0,s.jsx)("span",{className:"font-bold hover:underline",children:"Tools"})})}),(0,s.jsx)("div",{className:"w-full lg:w-auto my-2 lg:my-0 text-center",children:(0,s.jsx)(a(),{href:"/feed.xml",children:(0,s.jsx)("span",{className:"font-bold hover:underline",children:"RSS"})})})]})})]})})});var i=n(7328),c=n.n(i),d=n(2627);let x=()=>(0,s.jsxs)(c(),{children:[(0,s.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/favicon/apple-touch-icon.png"}),(0,s.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon/favicon-32x32.png"}),(0,s.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon/favicon-16x16.png"}),(0,s.jsx)("link",{rel:"manifest",href:"/favicon/site.webmanifest"}),(0,s.jsx)("link",{rel:"mask-icon",href:"/favicon/safari-pinned-tab.svg",color:"#000000"}),(0,s.jsx)("link",{rel:"shortcut icon",href:"/favicon/favicon.ico"}),(0,s.jsx)("meta",{name:"msapplication-TileColor",content:"#000000"}),(0,s.jsx)("meta",{name:"msapplication-config",content:"/favicon/browserconfig.xml"}),(0,s.jsx)("meta",{name:"theme-color",content:"#000"}),(0,s.jsx)("link",{rel:"alternate",type:"application/rss+xml",href:"/feed.xml"}),(0,s.jsx)("link",{rel:"authorization_endpoint",href:"https://indieauth.com/auth"}),(0,s.jsx)("link",{rel:"token_endpoint",href:"https://indieauth.com/token"}),(0,s.jsx)("meta",{name:"description",content:"A software development blog by David Viramontes"}),(0,s.jsx)("meta",{property:"og:image",content:d.j},"og:image")]});var h=n(6283);let m=e=>{let{preview:t,children:n}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x,{}),(0,s.jsxs)("div",{className:"min-h-screen bg-stone-200 text-stone-950 transition-colors duration-300 dark:bg-[#0f1115] dark:text-stone-100",children:[(0,s.jsx)("div",{className:"fixed right-4 top-4 z-50 md:right-6 md:top-6",children:(0,s.jsx)(h.U,{})}),(0,s.jsx)("main",{children:n})]}),(0,s.jsx)(o,{})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[695,636,593,792],()=>t(8398)),_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.