-
Notifications
You must be signed in to change notification settings - Fork 3
/
component---src-templates-category-jsx-3a50fee79b9519c47f96.js.map
1 lines (1 loc) · 11.7 KB
/
component---src-templates-category-jsx-3a50fee79b9519c47f96.js.map
1
{"version":3,"sources":["webpack:///component---src-templates-category-jsx-3a50fee79b9519c47f96.js","webpack:///./src/components/PostListing/PostListing.jsx","webpack:///./src/templates/category.jsx"],"names":["webpackJsonp","82","module","exports","__webpack_require__","_interopRequireDefault","obj","__esModule","default","_classCallCheck","instance","Constructor","TypeError","_possibleConstructorReturn","self","call","ReferenceError","_inherits","subClass","superClass","prototype","Object","create","constructor","value","enumerable","writable","configurable","setPrototypeOf","__proto__","_react","_react2","_gatsbyLink","_gatsbyLink2","PostListing","_React$Component","this","apply","arguments","getPostList","postList","props","postEdges","forEach","postEdge","push","path","node","fields","slug","tags","frontmatter","cover","title","date","excerpt","timeToRead","render","createElement","map","post","to","key","React","Component","226","pageQuery","undefined","_reactHelmet","_reactHelmet2","_PostListing","_PostListing2","_SiteConfig","_SiteConfig2","CategoryTemplate","category","pathContext","data","allMarkdownRemark","edges","className","config","siteTitle"],"mappings":"AAAAA,cAAc,iBAERC,GACA,SAAUC,EAAQC,EAASC,GAEhC,YAYA,SAASC,GAAuBC,GAAO,MAAOA,IAAOA,EAAIC,WAAaD,GAAQE,QAASF,GAEvF,QAASG,GAAgBC,EAAUC,GAAe,KAAMD,YAAoBC,IAAgB,KAAM,IAAIC,WAAU,qCAEhH,QAASC,GAA2BC,EAAMC,GAAQ,IAAKD,EAAQ,KAAM,IAAIE,gBAAe,4DAAgE,QAAOD,GAAyB,gBAATA,IAAqC,kBAATA,GAA8BD,EAAPC,EAElO,QAASE,GAAUC,EAAUC,GAAc,GAA0B,kBAAfA,IAA4C,OAAfA,EAAuB,KAAM,IAAIP,WAAU,iEAAoEO,GAAeD,GAASE,UAAYC,OAAOC,OAAOH,GAAcA,EAAWC,WAAaG,aAAeC,MAAON,EAAUO,YAAY,EAAOC,UAAU,EAAMC,c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file":"component---src-templates-category-jsx-3a50fee79b9519c47f96.js","sourcesContent":["webpackJsonp([129745722219136],{\n\n/***/ 82:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _react = __webpack_require__(3);\n\t\n\tvar _react2 = _interopRequireDefault(_react);\n\t\n\tvar _gatsbyLink = __webpack_require__(15);\n\t\n\tvar _gatsbyLink2 = _interopRequireDefault(_gatsbyLink);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar PostListing = function (_React$Component) {\n\t _inherits(PostListing, _React$Component);\n\t\n\t function PostListing() {\n\t _classCallCheck(this, PostListing);\n\t\n\t return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n\t }\n\t\n\t PostListing.prototype.getPostList = function getPostList() {\n\t var postList = [];\n\t this.props.postEdges.forEach(function (postEdge) {\n\t postList.push({\n\t path: postEdge.node.fields.slug,\n\t tags: postEdge.node.frontmatter.tags,\n\t cover: postEdge.node.frontmatter.cover,\n\t title: postEdge.node.frontmatter.title,\n\t date: postEdge.node.frontmatter.date,\n\t excerpt: postEdge.node.excerpt,\n\t timeToRead: postEdge.node.timeToRead\n\t });\n\t });\n\t return postList;\n\t };\n\t\n\t PostListing.prototype.render = function render() {\n\t var postList = this.getPostList();\n\t return _react2.default.createElement(\n\t \"div\",\n\t null,\n\t /* Your post list here. */\n\t postList.map(function (post) {\n\t return _react2.default.createElement(\n\t _gatsbyLink2.default,\n\t { to: post.path, key: post.title },\n\t _react2.default.createElement(\n\t \"h1\",\n\t null,\n\t post.title\n\t )\n\t );\n\t })\n\t );\n\t };\n\t\n\t return PostListing;\n\t}(_react2.default.Component);\n\t\n\texports.default = PostListing;\n\tmodule.exports = exports[\"default\"];\n\n/***/ }),\n\n/***/ 226:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\texports.pageQuery = undefined;\n\t\n\tvar _react = __webpack_require__(3);\n\t\n\tvar _react2 = _interopRequireDefault(_react);\n\t\n\tvar _reactHelmet = __webpack_require__(26);\n\t\n\tvar _reactHelmet2 = _interopRequireDefault(_reactHelmet);\n\t\n\tvar _PostListing = __webpack_require__(82);\n\t\n\tvar _PostListing2 = _interopRequireDefault(_PostListing);\n\t\n\tvar _SiteConfig = __webpack_require__(23);\n\t\n\tvar _SiteConfig2 = _interopRequireDefault(_SiteConfig);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar CategoryTemplate = function (_React$Component) {\n\t _inherits(CategoryTemplate, _React$Component);\n\t\n\t function CategoryTemplate() {\n\t _classCallCheck(this, CategoryTemplate);\n\t\n\t return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n\t }\n\t\n\t CategoryTemplate.prototype.render = function render() {\n\t var category = this.props.pathContext.category;\n\t var postEdges = this.props.data.allMarkdownRemark.edges;\n\t return _react2.default.createElement(\n\t \"div\",\n\t { className: \"category-container\" },\n\t _react2.default.createElement(_reactHelmet2.default, {\n\t title: \"Posts in category \\\"\" + category + \"\\\" | \" + _SiteConfig2.default.siteTitle\n\t }),\n\t _react2.default.createElement(_PostListing2.default, { postEdges: postEdges })\n\t );\n\t };\n\t\n\t return CategoryTemplate;\n\t}(_react2.default.Component);\n\t\n\t/* eslint no-undef: \"off\"*/\n\t\n\t\n\texports.default = CategoryTemplate;\n\tvar pageQuery = exports.pageQuery = \"** extracted graphql fragment **\";\n\n/***/ })\n\n});\n\n\n// WEBPACK FOOTER //\n// component---src-templates-category-jsx-3a50fee79b9519c47f96.js","import React from \"react\";\nimport Link from \"gatsby-link\";\n\nclass PostListing extends React.Component {\n getPostList() {\n const postList = [];\n this.props.postEdges.forEach(postEdge => {\n postList.push({\n path: postEdge.node.fields.slug,\n tags: postEdge.node.frontmatter.tags,\n cover: postEdge.node.frontmatter.cover,\n title: postEdge.node.frontmatter.title,\n date: postEdge.node.frontmatter.date,\n excerpt: postEdge.node.excerpt,\n timeToRead: postEdge.node.timeToRead\n });\n });\n return postList;\n }\n render() {\n const postList = this.getPostList();\n return (\n <div>\n {/* Your post list here. */\n postList.map(post =>\n <Link to={post.path} key={post.title}>\n <h1>\n {post.title}\n </h1>\n </Link>\n )}\n </div>\n );\n }\n}\n\nexport default PostListing;\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/PostListing/PostListing.jsx","import React from \"react\";\nimport Helmet from \"react-helmet\";\nimport PostListing from \"../components/PostListing/PostListing\";\nimport config from \"../../data/SiteConfig\";\n\nexport default class CategoryTemplate extends React.Component {\n render() {\n const category = this.props.pathContext.category;\n const postEdges = this.props.data.allMarkdownRemark.edges;\n return (\n <div className=\"category-container\">\n <Helmet\n title={`Posts in category \"${category}\" | ${config.siteTitle}`}\n />\n <PostListing postEdges={postEdges} />\n </div>\n );\n }\n}\n\n/* eslint no-undef: \"off\"*/\nexport const pageQuery = graphql`\n query CategoryPage($category: String) {\n allMarkdownRemark(\n limit: 1000\n sort: { fields: [frontmatter___date], order: DESC }\n filter: { frontmatter: { category: { eq: $category } } }\n ) {\n totalCount\n edges {\n node {\n fields {\n slug\n }\n excerpt\n timeToRead\n frontmatter {\n title\n tags\n cover\n date\n }\n }\n }\n }\n }\n`;\n\n\n\n// WEBPACK FOOTER //\n// ./src/templates/category.jsx"],"sourceRoot":""}