-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-templates-category-template-jsx-cf1c8b990648253d5738.js.map
1 lines (1 loc) · 11.5 KB
/
component---src-templates-category-template-jsx-cf1c8b990648253d5738.js.map
1
{"version":3,"sources":["webpack:///component---src-templates-category-template-jsx-cf1c8b990648253d5738.js","webpack:///./src/components/CategoryTemplateDetails/index.jsx","webpack:///./src/templates/category-template.jsx"],"names":["webpackJsonp","220","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","_Post","_Post2","CategoryTemplateDetails","_React$Component","this","apply","arguments","render","items","category","props","pathContext","posts","data","allMarkdownRemark","edges","forEach","post","push","createElement","key","node","fields","slug","className","React","Component","234","pageQuery","undefined","_reactHelmet","_reactHelmet2","_Sidebar","_Sidebar2","_CategoryTemplateDetails","_CategoryTemplateDetails2","CategoryTemplate","title","site","siteMetadata"],"mappings":"AAAAA,cAAc,iBAERC,IACA,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,cAAc,KAAeR,IAAYE,O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A8BD,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,cAAc,KAAeR,IAAYE,OAAOO,eAAiBP,OAAOO,eAAeV,EAAUC,GAAcD,EAASW,UAAYV,GAzBjehB,EAAQI,YAAa,EACrBJ,EAAQyD,UAAYC,MEjFrB,IAAA/B,GAAA1B,EAAA,GFqFK2B,EAAU1B,EAAuByB,GEpFtCgC,EAAA1D,EAAA,IFwFK2D,EAAgB1D,EAAuByD,GEvF5CE,EAAA5D,EAAA,IF2FK6D,EAAY5D,EAAuB2D,GE1FxCE,EAAA9D,EAAA,KF8FK+D,EAA4B9D,EAAuB6D,GE5FlDE,EFsGkB,SAAUjC,GAG/B,QAASiC,KAGP,MAFA3D,GAAgB2B,KAAMgC,GAEfvD,EAA2BuB,KAAMD,EAAiBE,MAAMD,KAAME,YAiBvE,MAtBArB,GAAUmD,EAAkBjC,GAQ5BiC,EAAiBhD,UE9GlBmB,OF8GqC,WE9G5B,GACC8B,GAAUjC,KAAKM,MAAMG,KAAKyB,KAAKC,aAA/BF,MACA5B,EAAaL,KAAKM,MAAMC,YAAxBF,QAER,OACEV,GAAAvB,QAAA2C,cAAA,WACEpB,EAAAvB,QAAA2C,cAACY,EAAAvD,SAAO6D,MAAU5B,EAAV,MAAwB4B,IAChCtC,EAAAvB,QAAA2C,cAACc,EAAAzD,QAAY4B,KAAKM,OAClBX,EAAAvB,QAAA2C,cAACgB,EAAA3D,QAA4B4B,KAAKM,SFoHhC0B,GE7HqBX,UAAMC,UFgIpCvD,GAAQK,QEjHM4D,CAEFR","file":"component---src-templates-category-template-jsx-cf1c8b990648253d5738.js","sourcesContent":["webpackJsonp([90179704293519],{\n\n/***/ 220:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\tvar _react = __webpack_require__(1);\n\t\n\tvar _react2 = _interopRequireDefault(_react);\n\t\n\tvar _Post = __webpack_require__(58);\n\t\n\tvar _Post2 = _interopRequireDefault(_Post);\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 CategoryTemplateDetails = function (_React$Component) {\n\t _inherits(CategoryTemplateDetails, _React$Component);\n\t\n\t function CategoryTemplateDetails() {\n\t _classCallCheck(this, CategoryTemplateDetails);\n\t\n\t return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n\t }\n\t\n\t CategoryTemplateDetails.prototype.render = function render() {\n\t var items = [];\n\t var category = this.props.pathContext.category;\n\t\n\t var posts = this.props.data.allMarkdownRemark.edges;\n\t posts.forEach(function (post) {\n\t items.push(_react2.default.createElement(_Post2.default, { data: post, key: post.node.fields.slug }));\n\t });\n\t\n\t return _react2.default.createElement(\n\t 'div',\n\t { className: 'content' },\n\t _react2.default.createElement(\n\t 'div',\n\t { className: 'content__inner' },\n\t _react2.default.createElement(\n\t 'div',\n\t { className: 'page' },\n\t _react2.default.createElement(\n\t 'h1',\n\t { className: 'page__title' },\n\t category\n\t ),\n\t _react2.default.createElement(\n\t 'div',\n\t { className: 'page__body' },\n\t items\n\t )\n\t )\n\t )\n\t );\n\t };\n\t\n\t return CategoryTemplateDetails;\n\t}(_react2.default.Component);\n\t\n\texports.default = CategoryTemplateDetails;\n\tmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ 234:\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__(1);\n\t\n\tvar _react2 = _interopRequireDefault(_react);\n\t\n\tvar _reactHelmet = __webpack_require__(19);\n\t\n\tvar _reactHelmet2 = _interopRequireDefault(_reactHelmet);\n\t\n\tvar _Sidebar = __webpack_require__(24);\n\t\n\tvar _Sidebar2 = _interopRequireDefault(_Sidebar);\n\t\n\tvar _CategoryTemplateDetails = __webpack_require__(220);\n\t\n\tvar _CategoryTemplateDetails2 = _interopRequireDefault(_CategoryTemplateDetails);\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 title = this.props.data.site.siteMetadata.title;\n\t var category = this.props.pathContext.category;\n\t\n\t\n\t return _react2.default.createElement(\n\t 'div',\n\t null,\n\t _react2.default.createElement(_reactHelmet2.default, { title: category + ' - ' + title }),\n\t _react2.default.createElement(_Sidebar2.default, this.props),\n\t _react2.default.createElement(_CategoryTemplateDetails2.default, this.props)\n\t );\n\t };\n\t\n\t return CategoryTemplate;\n\t}(_react2.default.Component);\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-template-jsx-cf1c8b990648253d5738.js","import React from 'react';\nimport Post from '../Post';\n\nclass CategoryTemplateDetails extends React.Component {\n render() {\n const items = [];\n const { category } = this.props.pathContext;\n const posts = this.props.data.allMarkdownRemark.edges;\n posts.forEach((post) => {\n items.push(<Post data={post} key={post.node.fields.slug} />);\n });\n\n return (\n <div className=\"content\">\n <div className=\"content__inner\">\n <div className=\"page\">\n <h1 className=\"page__title\">\n {category}\n </h1>\n <div className=\"page__body\">\n {items}\n </div>\n </div>\n </div>\n </div>\n );\n }\n}\n\nexport default CategoryTemplateDetails;\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/CategoryTemplateDetails/index.jsx","import React from 'react';\nimport Helmet from 'react-helmet';\nimport Sidebar from '../components/Sidebar';\nimport CategoryTemplateDetails from '../components/CategoryTemplateDetails';\n\nclass CategoryTemplate extends React.Component {\n render() {\n const { title } = this.props.data.site.siteMetadata;\n const { category } = this.props.pathContext;\n\n return (\n <div>\n <Helmet title={`${category} - ${title}`} />\n <Sidebar {...this.props} />\n <CategoryTemplateDetails {...this.props} />\n </div>\n );\n }\n}\n\nexport default CategoryTemplate;\n\nexport const pageQuery = graphql`\n query CategoryPage($category: String) {\n site {\n siteMetadata {\n title\n subtitle\n copyright\n menu {\n label\n path\n }\n author {\n name\n email\n github\n }\n }\n }\n allMarkdownRemark(\n limit: 1000,\n filter: { frontmatter: { category: { eq: $category }, layout: { eq: \"post\" }, draft: { ne: true } } },\n sort: { order: DESC, fields: [frontmatter___date] }\n ){\n edges {\n node {\n fields {\n slug\n categorySlug\n }\n frontmatter {\n title\n date\n category\n description\n }\n }\n }\n }\n }\n`;\n\n\n\n// WEBPACK FOOTER //\n// ./src/templates/category-template.jsx"],"sourceRoot":""}