/
component---src-templates-post-template-js-bda50f73c062a39087f8.js
2 lines (2 loc) · 8 KB
/
component---src-templates-post-template-js-bda50f73c062a39087f8.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{J4bc:function(e,t,a){"use strict";a.r(t),a.d(t,"query",(function(){return N}));var n=a("q1tI"),r=a.n(n),o=a("Zttt"),i=a("Wbzz"),s=a("KAs/"),u=a("RPjP"),l=a.n(u),c=a("gGy4"),m=function(e){var t=e.postTitle,a=e.postSlug,n=Object(c.b)(),o=n.url,i=n.disqusShortname;return i?r.a.createElement(l.a,{shortname:i,identifier:t,title:t,url:o+a}):null},d=a("zKEF"),h=a("wd/R"),f=a.n(h),_=a("myfg"),p=a.n(_),g=function(e){var t=e.date;return r.a.createElement("div",{className:p.a.meta},r.a.createElement("p",{className:p.a.meta__date},"Published ",f()(t).format("D MMM YYYY")))},y=a("WXWR"),b=a.n(y),v=function(e){var t=e.tags,a=e.tagSlugs;return r.a.createElement("div",{className:b.a.tags},r.a.createElement("ul",{className:b.a.tags__list},a&&a.map((function(e,a){return r.a.createElement("li",{className:b.a["tags__list-item"],key:t[a]},r.a.createElement(i.Link,{to:e,className:b.a["tags__list-item-link"]},t[a]))}))))},E=a("gt/k"),w=a.n(E),k=function(e){var t=e.post,a=t.html,n=t.fields,o=n.tagSlugs,u=n.slug,l=t.frontmatter,c=l.tags,h=l.title,f=l.date;return r.a.createElement("div",{className:w.a.post},r.a.createElement(i.Link,{className:w.a["post__home-button"],to:"/"},"Home"),r.a.createElement("div",{className:w.a.post__content},r.a.createElement(d.a,{body:a,title:h})),r.a.createElement("div",{className:w.a.post__footer},r.a.createElement(g,{date:f}),c&&o&&r.a.createElement(v,{tags:c,tagSlugs:o}),r.a.createElement(s.a,null)),r.a.createElement("div",{className:w.a.post__comments},r.a.createElement(m,{postSlug:u,postTitle:t.frontmatter.title})))},N="1228609577";t.default=function(e){var t=e.data,a=Object(c.b)(),n=a.title,i=a.subtitle,s=t.markdownRemark.frontmatter,u=s.title,l=s.description,m=s.socialImage,d=null!==l?l:i;return r.a.createElement(o.a,{title:u+" - "+n,description:d,socialImage:m},r.a.createElement(k,{post:t.markdownRemark}))}},"KAs/":function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));a("E5k/"),a("pJf4");var n=a("zucU"),r=a("q1tI"),o=a.n(r),i=a("Wbzz"),s=a("d+ly"),u=a.n(s),l=function(e){var t=e.author;return o.a.createElement("div",{className:u.a.author},o.a.createElement("div",{className:u.a.author__header},o.a.createElement(i.Link,{to:"/",className:u.a["author__header-photo"]},o.a.createElement("img",{src:Object(i.withPrefix)(t.photo),width:70,height:70,alt:t.name})),o.a.createElement("div",{className:u.a["author__header-right"]},o.a.createElement("h4",{className:u.a["author__header-right-name"]},o.a.createElement(i.Link,{className:u.a["author__header-right-name-link"],to:"/",rel:"author"},t.name)),o.a.createElement("p",{className:u.a["author__header-right-bio"],dangerouslySetInnerHTML:{__html:t.bio}}))))},c=function(e){return o.a.createElement(i.StaticQuery,{query:"3509649085",render:function(t){return o.a.createElement(l,Object.assign({},e,{author:t.site.siteMetadata.author}))},data:n})}},Mvws:function(e,t,a){e.exports={content:"Content-module--content--3p512",content__title:"Content-module--content__title--2BDW9",content__body:"Content-module--content__body--2TrQ-"}},RPjP:function(e,t,a){"use strict";e.exports=a("SLms")},SLms:function(e,t,a){"use strict";a("sC2a"),a("JHok"),a("wZFJ"),a("rzGZ"),a("Dq+y"),a("8npG"),a("Ggvi"),a("U6Bt"),a("sc67"),a("LagC"),a("pS08"),a("E5k/"),a("R48M"),Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),o=s(a("q1tI")),i=s(a("17x9"));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=["shortname","identifier","title","url","category_id","onNewComment","language"],m=!1;function d(e,t){var a=t.onNewComment,n=t.language,r=function(e,t){var a={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}(t,["onNewComment","language"]);for(var o in r)e.page[o]=r[o];e.language=n,a&&(e.callbacks={onNewComment:[a]})}var h=function(e){function t(){return u(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.loadDisqus()}},{key:"componentDidUpdate",value:function(){this.loadDisqus()}},{key:"shouldComponentUpdate",value:function(e,t){return e.identifier!==this.props.identifier}},{key:"render",value:function(){var e=this,t=Object.keys(this.props).reduce((function(t,a){return c.some((function(e){return e===a}))?t:n({},t,function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}({},a,e.props[a]))}),{});return o.default.createElement("div",t,o.default.createElement("div",{id:"disqus_thread"}))}},{key:"addDisqusScript",value:function(){if(!m){var e=this.disqus=document.createElement("script"),t=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0];e.async=!0,e.type="text/javascript",e.src="//"+this.props.shortname+".disqus.com/embed.js",t.appendChild(e),m=!0}}},{key:"loadDisqus",value:function(){var e=this,t={};c.forEach((function(a){"shortname"!==a&&e.props[a]&&(t[a]=e.props[a])})),"undefined"!=typeof DISQUS?DISQUS.reset({reload:!0,config:function(){d(this,t),this.page.url=this.page.url.replace(/#/,"")+"#!newthread"}}):(window.disqus_config=function(){d(this,t)},this.addDisqusScript())}}]),t}(o.default.Component);h.displayName="DisqusThread",h.propTypes={id:i.default.string,shortname:i.default.string.isRequired,identifier:i.default.string,title:i.default.string,url:i.default.string,category_id:i.default.string,onNewComment:i.default.func,language:i.default.string},h.defaultProps={url:"undefined"==typeof window?null:window.location.href},t.default=h},WXWR:function(e,t,a){e.exports={tags:"Tags-module--tags--1L_ct",tags__list:"Tags-module--tags__list--91FqN","tags__list-item":"Tags-module--tags__list-item--1M30P","tags__list-item-link":"Tags-module--tags__list-item-link--3SL_8"}},"d+ly":function(e,t,a){e.exports={author:"Author-module--author--2Yefr",author__header:"Author-module--author__header--3DKEp","author__header-photo":"Author-module--author__header-photo--ZxZ-e","author__header-right":"Author-module--author__header-right--22yyW","author__header-right-name":"Author-module--author__header-right-name--2jDHy","author__header-right-name-link":"Author-module--author__header-right-name-link--2dXix","author__header-right-bio":"Author-module--author__header-right-bio--3ljLZ",author__bio:"Author-module--author__bio--1Rnp-"}},"gt/k":function(e,t,a){e.exports={post__footer:"Post-module--post__footer--3WzWU",post__comments:"Post-module--post__comments--25y6I","post__home-button":"Post-module--post__home-button--16Kl0"}},myfg:function(e,t,a){e.exports={meta__date:"Meta-module--meta__date--29eD7"}},zKEF:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a("q1tI"),r=a.n(n),o=a("Mvws"),i=a.n(o),s=function(e){var t=e.body,a=e.title;return r.a.createElement("div",{className:i.a.content},r.a.createElement("h1",{className:i.a.content__title},a),r.a.createElement("div",{className:i.a.content__body,dangerouslySetInnerHTML:{__html:t}}))}},zucU:function(e){e.exports=JSON.parse('{"data":{"site":{"siteMetadata":{"author":{"name":"Anthony Cho","bio":"SWE @ Google","photo":"/me.jpeg"}}}}}')}}]);
//# sourceMappingURL=component---src-templates-post-template-js-bda50f73c062a39087f8.js.map