-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-templates-post-template-js-d922a2a3813ce756c39b.js.map
1 lines (1 loc) · 21.3 KB
/
component---src-templates-post-template-js-d922a2a3813ce756c39b.js.map
1
{"version":3,"sources":["webpack:///./src/components/Post/Author/Author.js","webpack:///./src/components/Post/Comments/Comments.js","webpack:///./src/components/Post/Content/Content.js","webpack:///./src/components/Post/Meta/Meta.js","webpack:///./src/components/Post/Post.js","webpack:///./src/templates/post-template.js","webpack:///./src/components/Post/Content/Content.module.scss","webpack:///./node_modules/react-disqus-comments/build/main.js","webpack:///./node_modules/react-disqus-comments/build/components/DisqusThread.js","webpack:///./src/components/Post/Author/Author.module.scss","webpack:///./src/components/Post/Post.module.scss","webpack:///./src/components/Post/Meta/Meta.module.scss"],"names":["Author","author","useSiteMetadata","className","styles","bio","Comments","postTitle","postSlug","url","disqusShortname","shortname","identifier","title","Content","body","dangerouslySetInnerHTML","__html","Meta","date","moment","format","Post","post","html","fields","tagSlugs","slug","frontmatter","tags","to","Tags","PostTemplate","data","siteTitle","siteSubtitle","subtitle","markdownRemark","postDescription","description","metaDescription","Layout","module","exports","Object","defineProperty","value","_extends","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","_createClass","defineProperties","props","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","_react2","_interopRequireDefault","_propTypes2","obj","__esModule","default","_classCallCheck","instance","TypeError","_possibleConstructorReturn","self","ReferenceError","DISQUS_CONFIG","__disqusAdded","copyProps","context","onNewComment","language","rest","keys","indexOf","_objectWithoutProperties","prop","page","callbacks","DisqusThread","_React$Component","this","__proto__","getPrototypeOf","apply","subClass","superClass","create","constructor","setPrototypeOf","_inherits","loadDisqus","nextProps","nextState","_this2","reduce","memo","some","config","_defineProperty","createElement","id","child","disqus","document","parent","getElementsByTagName","async","type","src","appendChild","_this3","forEach","DISQUS","reset","reload","replace","window","disqus_config","addDisqusScript","Component","displayName","propTypes","string","isRequired","category_id","func","defaultPro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GACnBnC,GAAgB,KAEjB,CACD3B,IAAK,aACLR,MAAO,WACL,IAAI+E,EAAS9B,KAETnC,EAAQ,GAEZoB,EAAc8C,SAAQ,SAAUpC,GAEjB,cAATA,GAA0BmC,EAAOjE,MAAM8B,KACzC9B,EAAM8B,GAAQmC,EAAOjE,MAAM8B,OAIT,oBAAXqC,OACTA,OAAOC,MAAM,CACXC,QAAQ,EACRjB,OAAQ,WACN9B,EAAUa,KAAMnC,GAEhBmC,KAAKJ,KAAKlF,IAAMsF,KAAKJ,KAAKlF,IAAIyH,QAAQ,IAAK,IAAM,kBAKrDC,OAAOC,cAAgB,WACrBlD,EAAUa,KAAMnC,IAGlBmC,KAAKsC,uBAKJxC,EAvFU,CAwFjBzB,EAAQK,QAAQ6D,WAElBzC,EAAa0C,YAAc,eAC3B1C,EAAa2C,UAAY,CACvBrB,GAAI7C,EAAYG,QAAQgE,OAOxB9H,UAAW2D,EAAYG,QAAQgE,OAAOC,WAWtC9H,WAAY0D,EAAYG,QAAQgE,OAQhC5H,MAAOyD,EAAYG,QAAQgE,OAS3BhI,IAAK6D,EAAYG,QAAQgE,OAOzBE,YAAarE,EAAYG,QAAQgE,OAOjCrD,aAAcd,EAAYG,QAAQmE,KAOlCvD,SAAUf,EAAYG,QAAQgE,QAEhC5C,EAAagD,aAAe,CAC1BpI,IAAuB,oBAAX0H,OAAyB,KAAOA,OAAOW,SAASC,MAE9DpG,EAAQ8B,QAAUoB,G,uBC3RlBnD,EAAOC,QAAU,CAAC,OAAS,+BAA+B,sBAAsB,8C,uBCAhFD,EAAOC,QAAU,CAAC,aAAe,mCAAmC,eAAiB,qCAAqC,oBAAoB,0C,qBCA9ID,EAAOC,QAAU,CAAC,WAAa","file":"component---src-templates-post-template-js-d922a2a3813ce756c39b.js","sourcesContent":["// @flow strict\nimport React from 'react';\nimport { getContactHref } from '../../../utils';\nimport styles from './Author.module.scss';\nimport { useSiteMetadata } from '../../../hooks';\n\nconst Author = () => {\n const { author } = useSiteMetadata();\n\n return (\n <div className={styles['author']}>\n <p className={styles['author__bio']}>\n {author.bio}\n {/* <a\n className={styles['author__bio-twitter']}\n href={getContactHref('twitter', author.contacts.twitter)}\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n >\n <strong>{author.name}</strong> on Twitter\n </a> */}\n </p>\n </div>\n );\n};\n\nexport default Author;\n","// @flow strict\nimport React from 'react';\nimport ReactDisqusComments from 'react-disqus-comments';\nimport { useSiteMetadata } from '../../../hooks';\n\ntype Props = {\n postTitle: string,\n postSlug: string\n};\n\nconst Comments = ({ postTitle, postSlug }: Props) => {\n const { url, disqusShortname } = useSiteMetadata();\n\n if (!disqusShortname) {\n return null;\n }\n\n return (\n <ReactDisqusComments\n shortname={disqusShortname}\n identifier={postTitle}\n title={postTitle}\n url={url + postSlug}\n />\n );\n};\n\nexport default Comments;\n","// @flow strict\nimport React from 'react';\nimport styles from './Content.module.scss';\n\ntype Props = {\n body: string,\n title: string\n};\n\nconst Content = ({ body, title }: Props) => (\n <div className={styles['content']}>\n <h1 className={styles['content__title']}>{title}</h1>\n <div className={styles['content__body']} dangerouslySetInnerHTML={{ __html: body }} />\n </div>\n);\n\nexport default Content;\n","// @flow strict\nimport React from 'react';\nimport moment from 'moment';\nimport styles from './Meta.module.scss';\n\ntype Props = {\n date: string\n};\n\nconst Meta = ({ date }: Props) => (\n <div className={styles['meta']}>\n <p className={styles['meta__date']}>Published {moment(date).format('D MMM YYYY')}</p>\n </div>\n);\n\nexport default Meta;\n","// @flow strict\nimport React from 'react';\nimport { Link } from 'gatsby';\nimport Author from './Author';\nimport Comments from './Comments';\nimport Content from './Content';\nimport Meta from './Meta';\nimport Tags from './Tags';\nimport styles from './Post.module.scss';\nimport type { Node } from '../../types';\n\ntype Props = {\n post: Node\n};\n\nconst Post = ({ post }: Props) => {\n const { html } = post;\n const { tagSlugs, slug } = post.fields;\n const { tags, title, date } = post.frontmatter;\n\n return (\n <div className={styles['post']}>\n <Link className={styles['post__home-button']} to=\"/\">All Articles</Link>\n\n <div className={styles['post__content']}>\n <Content body={html} title={title} />\n </div>\n\n <div className={styles['post__footer']}>\n <Meta date={date} />\n {tags && tagSlugs && <Tags tags={tags} tagSlugs={tagSlugs} />}\n <Author />\n </div>\n \n <div className={styles['post__comments']}>\n <Comments postSlug={slug} postTitle={post.frontmatter.title} />\n </div>\n <div></div>\n </div>\n );\n};\n\nexport default Post;\n","// @flow strict\nimport React from 'react';\nimport { graphql } from 'gatsby';\nimport Layout from '../components/Layout';\nimport Post from '../components/Post';\nimport { useSiteMetadata } from '../hooks';\nimport type { MarkdownRemark } from '../types';\n\ntype Props = {\n data: {\n markdownRemark: MarkdownRemark\n }\n};\n\nconst PostTemplate = ({ data }: Props) => {\n const { title: siteTitle, subtitle: siteSubtitle } = useSiteMetadata();\n const { title: postTitle, description: postDescription } = data.markdownRemark.frontmatter;\n const metaDescription = postDescription !== null ? postDescription : siteSubtitle;\n\n return (\n <Layout title={`${postTitle} - ${siteTitle}`} description={metaDescription}>\n <Post post={data.markdownRemark} />\n </Layout>\n );\n};\n\nexport const query = graphql`\n query PostBySlug($slug: String!) {\n markdownRemark(fields: { slug: { eq: $slug } }) {\n id\n html\n fields {\n slug\n tagSlugs\n }\n frontmatter {\n date\n description\n tags\n title\n }\n }\n }\n`;\n\nexport default PostTemplate;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"content\":\"Content-module--content--3p512\",\"content__title\":\"Content-module--content__title--2BDW9\",\"content__body\":\"Content-module--content__body--2TrQ-\",\"gatsby-highlight\":\"Content-module--gatsby-highlight--2GXS_\"};","'use strict';\n\nmodule.exports = require('./components/DisqusThread');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n\nvar DISQUS_CONFIG = ['shortname', 'identifier', 'title', 'url', 'category_id', 'onNewComment', 'language'];\nvar __disqusAdded = false;\n\nfunction copyProps(context, props) {\n var onNewComment = props.onNewComment,\n language = props.language,\n rest = _objectWithoutProperties(props, ['onNewComment', 'language']);\n\n for (var prop in rest) {\n context.page[prop] = rest[prop];\n } // Setting the language - if none is provided, the default one is used\n\n\n context.language = language;\n\n if (onNewComment) {\n context.callbacks = {\n onNewComment: [onNewComment]\n };\n }\n}\n\nvar DisqusThread = function (_React$Component) {\n _inherits(DisqusThread, _React$Component);\n\n function DisqusThread() {\n _classCallCheck(this, DisqusThread);\n\n return _possibleConstructorReturn(this, (DisqusThread.__proto__ || Object.getPrototypeOf(DisqusThread)).apply(this, arguments));\n }\n\n _createClass(DisqusThread, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.loadDisqus();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n this.loadDisqus();\n }\n }, {\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps, nextState) {\n return nextProps.identifier !== this.props.identifier;\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var props = Object.keys(this.props).reduce(function (memo, key) {\n return DISQUS_CONFIG.some(function (config) {\n return config === key;\n }) ? memo : _extends({}, memo, _defineProperty({}, key, _this2.props[key]));\n }, {});\n return _react2.default.createElement('div', props, _react2.default.createElement('div', {\n id: 'disqus_thread'\n }));\n }\n }, {\n key: 'addDisqusScript',\n value: function addDisqusScript() {\n if (__disqusAdded) {\n return;\n }\n\n var child = this.disqus = document.createElement('script');\n var parent = document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0];\n child.async = true;\n child.type = 'text/javascript';\n child.src = '//' + this.props.shortname + '.disqus.com/embed.js';\n parent.appendChild(child);\n __disqusAdded = true;\n }\n }, {\n key: 'loadDisqus',\n value: function loadDisqus() {\n var _this3 = this;\n\n var props = {}; // Extract Disqus props that were supplied to this component\n\n DISQUS_CONFIG.forEach(function (prop) {\n // prop \"shortname\" is only necessary for loading the script, not for the config itself\n if (prop !== 'shortname' && !!_this3.props[prop]) {\n props[prop] = _this3.props[prop];\n }\n }); // If Disqus has already been added, reset it\n\n if (typeof DISQUS !== 'undefined') {\n DISQUS.reset({\n reload: true,\n config: function config() {\n copyProps(this, props); // Disqus needs hashbang URL, see https://help.disqus.com/customer/portal/articles/472107\n\n this.page.url = this.page.url.replace(/#/, '') + '#!newthread';\n }\n });\n } else {\n // Otherwise add Disqus to the page\n window.disqus_config = function () {\n copyProps(this, props);\n };\n\n this.addDisqusScript();\n }\n }\n }]);\n\n return DisqusThread;\n}(_react2.default.Component);\n\nDisqusThread.displayName = 'DisqusThread';\nDisqusThread.propTypes = {\n id: _propTypes2.default.string,\n\n /**\n * `shortname` tells the Disqus service your forum's shortname,\n * which is the unique identifier for your website as registered\n * on Disqus. If undefined , the Disqus embed will not load.\n */\n shortname: _propTypes2.default.string.isRequired,\n\n /**\n * `identifier` tells the Disqus service how to identify the\n * current page. When the Disqus embed is loaded, the identifier\n * is used to look up the correct thread. If disqus_identifier\n * is undefined, the page's URL will be used. The URL can be\n * unreliable, such as when renaming an article slug or changing\n * domains, so we recommend using your own unique way of\n * identifying a thread.\n */\n identifier: _propTypes2.default.string,\n\n /**\n * `title` tells the Disqus service the title of the current page.\n * This is used when creating the thread on Disqus for the first time.\n * If undefined, Disqus will use the <title> attribute of the page.\n * If that attribute could not be used, Disqus will use the URL of the page.\n */\n title: _propTypes2.default.string,\n\n /**\n * `url` tells the Disqus service the URL of the current page.\n * If undefined, Disqus will take the window.location.href.\n * This URL is used to look up or create a thread if disqus_identifier\n * is undefined. In addition, this URL is always saved when a thread is\n * being created so that Disqus knows what page a thread belongs to.\n */\n url: _propTypes2.default.string,\n\n /**\n * `category_id` tells the Disqus service the category to be used for\n * the current page. This is used when creating the thread on Disqus\n * for the first time.\n */\n category_id: _propTypes2.default.string,\n\n /**\n * `onNewComment` function accepts one parameter `comment` which is a\n * JavaScript object with comment `id` and `text`. This allows you to track\n * user comments and replies and run a script after a comment is posted.\n */\n onNewComment: _propTypes2.default.func,\n\n /**\n * `language` tells the Disqus service which language should be used.\n * Please refer to https://www.transifex.com/disqus/disqus/ on which languages can be used\n * If undefined, English is used as default one\n */\n language: _propTypes2.default.string\n};\nDisqusThread.defaultProps = {\n url: typeof window === 'undefined' ? null : window.location.href\n};\nexports.default = DisqusThread;","// extracted by mini-css-extract-plugin\nmodule.exports = {\"author\":\"Author-module--author--2Yefr\",\"author__bio-twitter\":\"Author-module--author__bio-twitter--n-O9n\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"post__footer\":\"Post-module--post__footer--3WzWU\",\"post__comments\":\"Post-module--post__comments--25y6I\",\"post__home-button\":\"Post-module--post__home-button--16Kl0\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"meta__date\":\"Meta-module--meta__date--29eD7\"};"],"sourceRoot":""}