-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-index-js-a68eb0ee5b790e6b2abc.js
2 lines (2 loc) · 5.63 KB
/
component---src-pages-index-js-a68eb0ee5b790e6b2abc.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{144:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),i=a(146),o=(a(73),a(7)),c=a.n(o),s=a(165),u=function(e){function t(t){var a;return(a=e.call(this,t)||this).getOrCreateIndex=function(){return a.index?a.index:s.Index.load(a.props.searchIndex)},a.search=function(e){var t=e.target.value;a.index=a.getOrCreateIndex(),a.setState({query:t,results:a.index.search(t,{}).map(function(e){var t=e.ref;return a.index.documentStore.getDoc(t)})})},a.state={query:"",results:[]},a}return c()(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}(n.Component),l=a(153),d=a(151);a.d(t,"query",function(){return m});t.default=function(e){var t=e.data;return r.a.createElement(l.a,null,r.a.createElement(d.a,{title:"Home",keywords:["jmn","blog","react"]}),r.a.createElement("div",{style:{margin:"3rem auto",maxWidth:600}},r.a.createElement(u,{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 m="2307618169"},146:function(e,t,a){"use strict";a.r(t),a.d(t,"graphql",function(){return f}),a.d(t,"StaticQueryContext",function(){return m}),a.d(t,"StaticQuery",function(){return p});var n=a(0),r=a.n(n),i=a(4),o=a.n(i),c=a(145),s=a.n(c);a.d(t,"Link",function(){return s.a}),a.d(t,"withPrefix",function(){return c.withPrefix}),a.d(t,"navigate",function(){return c.navigate}),a.d(t,"push",function(){return c.push}),a.d(t,"replace",function(){return c.replace}),a.d(t,"navigateTo",function(){return c.navigateTo});var u=a(147),l=a.n(u);a.d(t,"PageRenderer",function(){return l.a});var d=a(32);a.d(t,"parsePath",function(){return d.a});var m=r.a.createContext({}),p=function(e){return r.a.createElement(m.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.")}p.propTypes={data:o.a.object,query:o.a.string.isRequired,render:o.a.func,children:o.a.func}},147:function(e,t,a){var n;e.exports=(n=a(149))&&n.default||n},148:function(e){e.exports={data:{site:{siteMetadata:{title:"jmn's blog"}}}}},149:function(e,t,a){"use strict";a.r(t);a(33);var n=a(0),r=a.n(n),i=a(4),o=a.n(i),c=a(51),s=a(2),u=function(e){var t=e.location,a=s.default.getResourcesForPathnameSync(t.pathname);return r.a.createElement(c.a,Object.assign({location:t,pageResources:a},a.json))};u.propTypes={location:o.a.shape({pathname:o.a.string.isRequired}).isRequired},t.default=u},150:function(e,t,a){},151:function(e,t,a){"use strict";var n=a(152),r=a(0),i=a.n(r),o=a(4),c=a.n(o),s=a(154),u=a.n(s),l=a(146);function d(e){var t=e.description,a=e.lang,r=e.meta,o=e.keywords,c=e.title;return i.a.createElement(l.StaticQuery,{query:m,render:function(e){var n=t||e.site.siteMetadata.description;return i.a.createElement(u.a,{htmlAttributes:{lang:a},title:c,titleTemplate:"%s | "+e.site.siteMetadata.title,meta:[{name:"description",content:n},{property:"og:title",content:c},{property:"og:description",content:n},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"twitter:creator",content:e.site.siteMetadata.author},{name:"twitter:title",content:c},{name:"twitter:description",content:n}].concat(o.length>0?{name:"keywords",content:o.join(", ")}:[]).concat(r)})},data:n})}d.defaultProps={lang:"en",meta:[],keywords:[]},d.propTypes={description:c.a.string,lang:c.a.string,meta:c.a.array,keywords:c.a.arrayOf(c.a.string),title:c.a.string.isRequired},t.a=d;var m="1025518380"},152:function(e){e.exports={data:{site:{siteMetadata:{title:"jmn's blog",description:"",author:"@jmn"}}}}},153:function(e,t,a){"use strict";var n=a(148),r=a(0),i=a.n(r),o=a(4),c=a.n(o),s=a(146),u=function(e){var t=e.siteTitle;return i.a.createElement("div",{style:{background:"rebeccapurple",marginBottom:"1.45rem"}},i.a.createElement("div",{style:{margin:"0 auto",maxWidth:960,padding:"1.45rem 1.0875rem"}},i.a.createElement("h1",{style:{margin:0}},i.a.createElement(s.Link,{to:"/",style:{color:"white",textDecoration:"none"}},t))))};u.propTypes={siteTitle:c.a.string},u.defaultProps={siteTitle:""};var l=u,d=(a(150),function(e){var t=e.children;return i.a.createElement(s.StaticQuery,{query:"755544856",render:function(e){return i.a.createElement(i.a.Fragment,null,i.a.createElement(l,{siteTitle:e.site.siteMetadata.title}),i.a.createElement("div",{style:{margin:"0 auto",maxWidth:960,padding:"0px 1.0875rem 1.45rem",paddingTop:0}},t,i.a.createElement("footer",null,"© 2018, Built with ",i.a.createElement("a",{href:"https://www.gatsbyjs.org"},"Gatsby"))))},data:n})});d.propTypes={children:c.a.node.isRequired};t.a=d}}]);
//# sourceMappingURL=component---src-pages-index-js-a68eb0ee5b790e6b2abc.js.map