PageSourceSearch

https://bbon.me/component---src-pages-search-tsx-8aa1760cce3d05cf6462.js

js bbon.me collected 2026-10-04 08:02:39 UTC 4,668 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkbbon_me=self.webpackChunkbbon_me||[]).push([[334],{5768:function(e,t,a){a.d(t,{o:function(){return r},v:function(){return c}});var l=a(7294);const r=e=>{let{categories:t,selectedCategory:a,onChange:r}=e;return l.createElement("ul",{className:"flex flex-row flex-wrap break-words gap-3 px-4 py-3"},null==t?void 0:t.map((e=>{return l.createElement("li",{key:e.fieldValue,className:"cursor-pointer text-green-600 dark:text-green-600  p-2 "+(a===e.fieldValue?"cursor-not-allowed border-green-600 border-b-2":""),onClick:(t=e.fieldValue,()=>{r&&r(t)})},e.fieldValue," (",e.totalCount,")");var t})))};var n=a(4854),o=a(1804),s=a.n(o);const c=e=>{let{categories:t}=e;return l.createElement("ul",{className:"list-style-none flex gap-3 flex-wrap break-words"},null==t?void 0:t.map((e=>l.createElement("li",{key:e},l.createElement(n.Link,{to:`/categories/${s()(e)}`,className:"text-base md:text-sm text-green-500 no-underline hover:underline"},e)))))}},3859:function(e,t,a){var l=a(4854),r=a(7294),n=a(5419),o=a(5768);t.Z=e=>{var t;let{post:a}=e;const s=+new Date<Date.parse(`${a.node.frontmatter.date}`)+6912e5;return r.createElement("article",{className:"post-list-item py-6",itemScope:!0,itemType:"http://schema.org/Article"},r.createElement("header",{className:"pt-6"},r.createElement("aside",null,a.node.frontmatter.categories&&r.createElement(o.v,{categories:a.node.frontmatter.categories})),r.createElement("h2",{className:"font-bold font-sans break-words text-gray-900 dark:text-gray-100 pb-2 text-3xl md:text-4xl "},r.createElement(l.Link,{to:a.node.fields.slug,itemProp:"url"},r.createElement("span",{itemProp:"headline"},a.node.frontmatter.title))),r.createElement("div",{className:"indicator pr-10"},s&&r.createElement("span",{className:"indicator-item indicator-end indicator-middle badge badge-secondary"},"NEW"),r.createElement("div",null,r.createElement("span",{className:"pr-2"},"🗓️"),r.createElement("small",{className:"text-sm md:text-base font-normal text-gray-600 dark:text-gray-400"},a.node.frontmatter.date.toLocaleString())))),r.createElement("section",{className:"article-body mt-1 break-words"},r.createElement("p",{dangerouslySetInnerHTML:{__html:null!==(t=a.node.frontmatter.description||a.node.excerpt)&&void 0!==t?t:""},itemProp:"description"})),r.createElement("footer",null,r.createElement("aside",{className:"text-base md:text-sm text-gray-500 flex flex-row"},r.createElement(n.zy,{tags:a.node.frontmatter.tags}))))}},4681:function(e,t,a){a.r(t);var l=a(7294),r=a(9108),n=a(4001),o=a(3859);t.default=e=>{var t,a,s,c,d;let{data:i,location:m}=e;const[u,p]=l.useState({}),g=(null===(t=i.site.siteMetadata)||void 0===t?void 0:t.title)||"Title",f=i.allMarkdownRemark.edges,E=l.useMemo((()=>(null!=f?f:[]).filter((e=>{var t;if(null==u||null===(t=u.values)||void 0===t||!t.keyword)return!1;const a=new RegExp(`.*${u.values.keyword}.*`,"ig");return!(!e.node.rawMarkdownBody||!a.test(e.node.rawMarkdownBody))||!(!e.node.frontmatter.title||!a.test(e.node.frontmatter.title))}))),[u.values]);return f&&0===f.length?l.createElement(r.Z,{location:m,title:g},l.createElement(n.Z,{title:"All posts"}),l.createElement("p",null,'No blog posts found. Add markdown posts to "content/blog" (or the directory you specified for the "gatsby-source-filesystem" plugin in gatsby-config.js).')):l.createElement(r.Z,{location:m,title:g},l.createElement(n.Z,{title:"Search"}),l.createElement("header",null,l.createElement("h1",null,"Search")),l.createElement("main",null,l.createElement("div",{className:"w-full"},l.createElement("label",{className:"block"},l.createElement("input",{type:"text",name:"keyword",className:"mt-1 block w-full rounded-md shadow-sm border-green-600 focus:border-green-300 focus:ring focus:ring-green-200 focus:ring-opacity-50 dark:bg-gray-800",onChange:e=>{const t=e.target.value,a=e.target.name;p((e=>({...null!=e?e:{},values:{...(null!=e?e:{}).values,[a]:t}})))},value:null!==(a=null===(s=u.values)||void 0===s?void 0:s.keyword)&&void 0!==a?a:"",placeholder:"Keyword"}))),l.createElement("div",{className:"flex flex-col justify-center items-center"},E.length>0?l.createElement(l.Fragment,null,l.createElement("p",{className:"py-4 self-start"},`Found ${E.length} post${E.length>
11?"s":""}`),l.createElement("ol",{className:"list-style-none"},E.map((e=>l.createElement("li",{key:e.node.fields.slug},l.createElement(o.Z,{post:e})))))):null!==(c=u.values)&&void 0!==c&&c.keyword?l.createElement("p",{className:"py-4"},"Does not find post about ",null===(d=u.values)||void 0===d?void 0:d.keyword):l.createElement("p",null))))}}}]);
2//# sourceMappingURL=component---src-pages-search-tsx-8aa1760cce3d05cf6462.js.map

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.