-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-index-js-97f22cc067830817265b.js
2 lines (2 loc) · 3.39 KB
/
component---src-pages-index-js-97f22cc067830817265b.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{144:function(e,t,n){"use strict";n.r(t);var a=n(0),r=n.n(a),i=n(146),u=(n(73),n(7)),o=n.n(u),c=n(165),l=function(e){function t(t){var n;return(n=e.call(this,t)||this).getOrCreateIndex=function(){return n.index?n.index:c.Index.load(n.props.searchIndex)},n.search=function(e){var t=e.target.value;n.index=n.getOrCreateIndex(),n.setState({query:t,results:n.index.search(t,{}).map(function(e){var t=e.ref;return n.index.documentStore.getDoc(t)})})},n.state={query:"",results:[]},n}return o()(t,e),t.prototype.render=function(){return r.a.createElement("div",null,r.a.createElement("input",{type:"text",value:this.state.query,onChange:this.search,placeholder:"Search..."}),r.a.createElement("ul",null,this.state.results.map(function(e){return r.a.createElement("li",{key:e.id},r.a.createElement(i.Link,{to:e.path},e.title),":"," ",e.keywords.join(","))})))},t}(a.Component);n.d(t,"query",function(){return s});t.default=function(e){var t=e.data;return r.a.createElement("div",{style:{margin:"3rem auto",maxWidth:600}},r.a.createElement("h1",null,"jmn's blog"),r.a.createElement(l,{searchIndex:t.siteSearchIndex.index}),t.allMarkdownRemark.edges.map(function(e){var t=e.node;return r.a.createElement("div",{key:t.id,className:"article-box"},r.a.createElement(i.Link,{to:t.fields.slug,style:{textDecoration:"none",color:"inherit"}},r.a.createElement("h3",{className:"title"},t.frontmatter.title)),r.a.createElement("p",{className:"date"},t.fields.date,", ",t.timeToRead," min read"),r.a.createElement("p",{className:"excerpt"},t.excerpt),r.a.createElement("hr",null))}))};var s="2307618169"},146:function(e,t,n){"use strict";n.r(t),n.d(t,"graphql",function(){return f}),n.d(t,"StaticQueryContext",function(){return p}),n.d(t,"StaticQuery",function(){return m});var a=n(0),r=n.n(a),i=n(4),u=n.n(i),o=n(145),c=n.n(o);n.d(t,"Link",function(){return c.a}),n.d(t,"withPrefix",function(){return o.withPrefix}),n.d(t,"navigate",function(){return o.navigate}),n.d(t,"push",function(){return o.push}),n.d(t,"replace",function(){return o.replace}),n.d(t,"navigateTo",function(){return o.navigateTo});var l=n(147),s=n.n(l);n.d(t,"PageRenderer",function(){return s.a});var d=n(32);n.d(t,"parsePath",function(){return d.a});var p=r.a.createContext({}),m=function(e){return r.a.createElement(p.Consumer,null,function(t){return e.data||t[e.query]&&t[e.query].data?(e.render||e.children)(e.data?e.data.data:t[e.query].data):r.a.createElement("div",null,"Loading (StaticQuery)")})};function f(){throw new Error("It appears like Gatsby is misconfigured. Gatsby related `graphql` calls are supposed to only be evaluated at compile time, and then compiled away,. Unfortunately, something went wrong and the query was left in the compiled code.\n\n.Unless your site has a complex or custom babel/Gatsby configuration this is likely a bug in Gatsby.")}m.propTypes={data:u.a.object,query:u.a.string.isRequired,render:u.a.func,children:u.a.func}},147:function(e,t,n){var a;e.exports=(a=n(148))&&a.default||a},148:function(e,t,n){"use strict";n.r(t);n(33);var a=n(0),r=n.n(a),i=n(4),u=n.n(i),o=n(52),c=n(2),l=function(e){var t=e.location,n=c.default.getResourcesForPathnameSync(t.pathname);return r.a.createElement(o.a,Object.assign({location:t,pageResources:n},n.json))};l.propTypes={location:u.a.shape({pathname:u.a.string.isRequired}).isRequired},t.default=l}}]);
//# sourceMappingURL=component---src-pages-index-js-97f22cc067830817265b.js.map