-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-templates-blog-list-index-js-b2ccdedc96acd00ebe16.js.map
1 lines (1 loc) · 23.1 KB
/
component---src-templates-blog-list-index-js-b2ccdedc96acd00ebe16.js.map
1
{"version":3,"sources":["webpack:///./src/templates/blogList/blogPreview.js","webpack:///./src/templates/blogList/index.js","webpack:///./.cache/gatsby-browser-entry.js","webpack:///./.cache/public-page-renderer.js","webpack:///./.cache/public-page-renderer-prod.js","webpack:///./src/components/navbar.js","webpack:///./src/components/footer/index.js","webpack:///./src/components/layout.js"],"names":["blogPreview","_ref","path","title","mainImage","n","date","author","description","categories","children","text","substring","react_default","a","createElement","className","gatsby_browser_entry","to","src","MdCalendar_default","color","Date","toLocaleDateString","MdPerson_default","MdPricetags_default","map","category","BlogList","render","pagesBetween","_this$props$pageConte","this","props","pageContext","currentPage","numPages","location","numberPagesBetween","Array","from","length","item","index","layout","gatsby_plugin_breadcrumb","crumbLabel","crumbStyle","crumbActiveStyle","data","allSitePage","edges","node","blogList_blogPreview","context","number","React","Component","blogListQuery","__webpack_require__","r","__webpack_exports__","d","graphql","StaticQueryContext","StaticQuery","useStaticQuery","react__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_0___default","prop_types__WEBPACK_IMPORTED_MODULE_1__","prop_types__WEBPACK_IMPORTED_MODULE_1___default","gatsby_link__WEBPACK_IMPORTED_MODULE_2__","gatsby_link__WEBPACK_IMPORTED_MODULE_2___default","_public_page_renderer__WEBPACK_IMPORTED_MODULE_3__","_public_page_renderer__WEBPACK_IMPORTED_MODULE_3___default","createContext","Consumer","staticQueryData","query","useContext","Error","propTypes","PropTypes","object","string","isRequired","func","m","module","exports","require","default","ProdPageRenderer","pageResources","loader","getResourcesForPathnameSync","pathname","InternalPageRenderer","Object","assign","json","shape","navbar","componentDidMount","$navbarBurgers","prototype","slice","call","document","querySelectorAll","forEach","el","addEventListener","target","dataset","$target","getElementById","classList","toggle","react__WEBPACK_IMPORTED_MODULE_2___default","class","gatsby__WEBPACK_IMPORTED_MODULE_6__","id","data-target","gatsby__WEBPACK_IMPORTED_MODULE_1__","href","Layout","react__WEBPACK_IMPORTED_MODULE_1___default","gatsby__WEBPACK_IMPORTED_MODULE_3__","Fragment","_navbar__WEBPACK_IMPORTED_MODULE_4__","_footer_index__WEBPACK_IMPORTED_MODULE_6__","_public_static_d_1280114691_json__WEBPACK_IMPORTED_MODULE_0__"],"mappings":"mOAgDeA,EAxCK,SAAAC,GAAyE,IAAtEC,EAAsED,EAAtEC,KAAMC,EAAgEF,EAAhEE,MAAOC,EAAyDH,EAAzDG,UAAWC,EAA8CJ,EAA9CI,EAAGC,EAA2CL,EAA3CK,KAAMC,EAAqCN,EAArCM,OAAQC,EAA6BP,EAA7BO,YAAaC,EAAgBR,EAAhBQ,WAU3E,OAFAD,EAAcA,EAAYE,SAAS,GAAGC,KAAKC,UAAU,EAAE,KAGrDC,EAAAC,EAAAC,cAAA,OACEC,UAAS,iBACD,IAANX,EAAU,QAAgB,IAANA,EAAU,SAAW,UAG3CQ,EAAAC,EAAAC,cAACE,EAAA,KAAD,CAAMC,GAAIhB,GACRW,EAAAC,EAAAC,cAAA,OAAKI,IAAKf,IACVS,EAAAC,EAAAC,cAAA,OAAKC,UAAU,WACbH,EAAAC,EAAAC,cAAA,KAAGC,UAAU,SAASb,GACtBU,EAAAC,EAAAC,cAAA,OAAKC,UAAU,QACbH,EAAAC,EAAAC,cAAA,QAAMC,UAAU,QAAOH,EAAAC,EAAAC,cAACK,EAAAN,EAAD,CAAYO,MAAM,sBACxC,IAAIC,KAAKhB,GAAMiB,mBAAmB,UAEnCV,EAAAC,EAAAC,cAAA,QAAMC,UAAU,UAAhB,IAA0BH,EAAAC,EAAAC,cAACS,EAAAV,EAAD,CAAUO,MAAM,sBACvCd,GAEHM,EAAAC,EAAAC,cAAA,MAAIC,UAAU,cAAaH,EAAAC,EAAAC,cAACU,EAAAX,EAAD,CAAaO,MAAM,sBAC3CZ,EA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D,EAAAtD,EAAAC,cAAC6G,EAAA,KAAD,CAAM1G,GAAG,UAAT,WAGZkD,EAAAtD,EAAAC,cAAA,OAAKyG,MAAM,gBACPpD,EAAAtD,EAAAC,cAAA,sBACAqD,EAAAtD,EAAAC,cAAA,UACIqD,EAAAtD,EAAAC,cAAA,4FACAqD,EAAAtD,EAAAC,cAAA,UAAIqD,EAAAtD,EAAAC,cAAA,iDACJqD,EAAAtD,EAAAC,cAAA,UAAIqD,EAAAtD,EAAAC,cAAA,8BACJqD,EAAAtD,EAAAC,cAAA,UAAIqD,EAAAtD,EAAAC,cAAA,uCACJqD,EAAAtD,EAAAC,cAAA,MAAIyG,MAAM,mBACNpD,EAAAtD,EAAAC,cAAA,KAAG8G,KAAK,2BAA2BZ,OAAO,UAAS7C,EAAAtD,EAAAC,cAAA,KAAGyG,MAAM,4BAC5DpD,EAAAtD,EAAAC,cAAA,KAAG8G,KAAK,gEAAgEZ,OAAO,UAAS7C,EAAAtD,EAAAC,cAAA,KAAGyG,MAAM,6BAKjHpD,EAAAtD,EAAAC,cAAA,KAAGyG,MAAM,aAAT,kMCjCNM,EAAS,SAAA7H,GAAA,IAAGS,EAAHT,EAAGS,SAAH,OACbqH,EAAAjH,EAAAC,cAACiH,EAAA,YAAD,CACElD,MAAK,aAULjD,OAAQ,SAAAoB,GAAI,OACV8E,EAAAjH,EAAAC,cAAAgH,EAAAjH,EAAAmH,SAAA,KACEF,EAAAjH,EAAAC,cAACmH,EAAA,EAAD,MACAH,EAAAjH,EAAAC,cAAA,YAAOL,GACPqH,EAAAjH,EAAAC,cAACoH,EAAA,EAAD,QAfNlF,KAAAmF,KAqBFN,EAAO7C,UAAY,CACjBvE,SAAUwE,IAAU9B,KAAKiC,YAGZyC","file":"component---src-templates-blog-list-index-js-b2ccdedc96acd00ebe16.js","sourcesContent":["import React from \"react\"\nimport { Link } from \"gatsby\"\n\nimport MdCalendar from \"react-ionicons/lib/MdCalendar\"\nimport MdPerson from \"react-ionicons/lib/MdPerson\"\nimport MdPriceTags from \"react-ionicons/lib/MdPricetags\"\n\n\nconst blogPreview = ({ path, title, mainImage, n, date, author, description, categories}) => {\n const dateOptions = {\n weekday: \"long\",\n year: \"numeric\",\n month: \"long\",\n day: \"numeric\",\n }\n\n description = description.children[0].text.substring(0,100);\n\n return (\n <div\n className={`blog-preview ${\n n === 1 ? \"first\" : n === 2 ? \"second\" : \"third\"\n }`}\n >\n <Link to={path}>\n <img src={mainImage} />\n <div className=\"details\">\n <p className=\"title\">{title}</p>\n <div className=\"info\">\n <span className=\"date\"><MdCalendar color=\"rgb(112, 148, 37)\"/>\n {new Date(date).toLocaleDateString(\"es-MX\")}\n </span>\n <span className=\"author\"> <MdPerson color=\"rgb(112, 148, 37)\"/>\n {author}\n </span>\n <ul className=\"categories\"><MdPriceTags color=\"rgb(112, 148, 37)\"/>\n {categories.map(category=>{\n return <span>{category.title}</span>\n })}\n </ul>\n </div>\n <p className=\"description\">{description}...</p>\n </div>\n </Link>\n </div>\n )\n}\n\nexport default blogPreview\n","import React from \"react\"\nimport { Link, graphql } from \"gatsby\"\n\nimport \"./index.css\"\n\nimport Layout from \"../../components/layout\"\nimport BlogPreview from \"./blogPreview\"\nimport { Breadcrumb } from \"gatsby-plugin-breadcrumb\"\n\nexport default class BlogList extends React.Component {\n render() {\n const { currentPage, numPages } = this.props.pageContext\n const { location } = this.props\n const numberPagesBetween = numPages - currentPage\n let pagesBetween\n\n if (numberPagesBetween > 3) {\n pagesBetween = Array.from({ length: 3 }).map((item, index) => {\n return currentPage + index\n })\n } else {\n pagesBetween = Array.from({ length: numberPagesBetween }).map(\n (item, index) => {\n return currentPage + index + 1\n }\n )\n }\n\n return (\n <Layout>\n <div className=\"blog-list\">\n <Breadcrumb\n location={location}\n crumbLabel={\"Blog\"}\n crumbStyle={{ color: \"#ccc\" }}\n crumbActiveStyle={{ color: \"#122c47\" }}\n />\n <h2>Nuestro blog</h2>\n <div className=\"blog-container\">\n {this.props.data.allSitePage.edges.map((node, index) => {\n return (\n <BlogPreview\n author={node.node.context.author}\n description={node.node.context.description}\n categories={node.node.context.categories}\n date={node.node.context.date}\n path={node.node.path}\n title={node.node.context.title}\n mainImage={node.node.context.mainImage}\n n={index + 1}\n />\n )\n })}\n </div>\n </div>\n <ul className=\"blog-navigation-wrapper\">\n {!(currentPage === 1) && (\n <li className=\"blog-navigation-item\">\n {\" \"}\n <Link\n to={`/blog/${currentPage - 1 === 1 ? \"\" : currentPage - 1}`}\n >\n Prev.\n </Link>\n </li>\n )}\n <li className=\"blog-navigation-item current\">{currentPage}</li>\n {pagesBetween.map(number => {\n return (\n <li className=\"blog-navigation-item\">\n <Link to={`/blog/${number}`}>{number}</Link>\n </li>\n )\n })}\n {!(currentPage === numPages) && (\n <li className=\"blog-navigation-item\">\n {\" \"}\n <Link to={`/blog/${currentPage + 1}`}>Sig.</Link>\n </li>\n )}\n </ul>\n </Layout>\n )\n }\n}\n\nexport const blogListQuery = graphql`\n query blogPostsQuery($skip: Int!, $limit: Int!) {\n allSitePage(filter: {context: {blog: {eq: true}}}, sort: {fields: [context___date], order: DESC}, limit: $limit, skip: $skip) {\n edges {\n node {\n context {\n date\n blog\n title\n mainImage\n author\n description {\n children {\n text\n }\n }\n categories {\n title\n }\n }\n path\n }\n }\n }\n }\n`\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\nimport Link, {\n withPrefix,\n navigate,\n push,\n replace,\n navigateTo,\n parsePath,\n} from \"gatsby-link\"\nimport PageRenderer from \"./public-page-renderer\"\n\nconst StaticQueryContext = React.createContext({})\n\nconst StaticQuery = props => (\n <StaticQueryContext.Consumer>\n {staticQueryData => {\n if (\n props.data ||\n (staticQueryData[props.query] && staticQueryData[props.query].data)\n ) {\n return (props.render || props.children)(\n props.data ? props.data.data : staticQueryData[props.query].data\n )\n } else {\n return <div>Loading (StaticQuery)</div>\n }\n }}\n </StaticQueryContext.Consumer>\n)\n\nconst useStaticQuery = query => {\n if (\n typeof React.useContext !== `function` &&\n process.env.NODE_ENV === `development`\n ) {\n throw new Error(\n `You're likely using a version of React that doesn't support Hooks\\n` +\n `Please update React and ReactDOM to 16.8.0 or later to use the useStaticQuery hook.`\n )\n }\n const context = React.useContext(StaticQueryContext)\n if (context[query] && context[query].data) {\n return context[query].data\n } else {\n throw new Error(\n `The result of this StaticQuery could not be fetched.\\n\\n` +\n `This is likely a bug in Gatsby and if refreshing the page does not fix it, ` +\n `please open an issue in https://github.com/gatsbyjs/gatsby/issues`\n )\n }\n}\n\nStaticQuery.propTypes = {\n data: PropTypes.object,\n query: PropTypes.string.isRequired,\n render: PropTypes.func,\n children: PropTypes.func,\n}\n\nfunction graphql() {\n throw new Error(\n `It appears like Gatsby is misconfigured. Gatsby related \\`graphql\\` calls ` +\n `are supposed to only be evaluated at compile time, and then compiled away,. ` +\n `Unfortunately, something went wrong and the query was left in the compiled code.\\n\\n.` +\n `Unless your site has a complex or custom babel/Gatsby configuration this is likely a bug in Gatsby.`\n )\n}\n\nexport {\n Link,\n withPrefix,\n graphql,\n parsePath,\n navigate,\n push, // TODO replace for v3\n replace, // TODO remove replace for v3\n navigateTo, // TODO: remove navigateTo for v3\n StaticQueryContext,\n StaticQuery,\n PageRenderer,\n useStaticQuery,\n}\n","const preferDefault = m => (m && m.default) || m\n\nif (process.env.BUILD_STAGE === `develop`) {\n module.exports = preferDefault(require(`./public-page-renderer-dev`))\n} else if (process.env.BUILD_STAGE === `build-javascript`) {\n module.exports = preferDefault(require(`./public-page-renderer-prod`))\n} else {\n module.exports = () => null\n}\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\n\nimport InternalPageRenderer from \"./page-renderer\"\nimport loader from \"./loader\"\n\nconst ProdPageRenderer = ({ location }) => {\n const pageResources = loader.getResourcesForPathnameSync(location.pathname)\n return React.createElement(InternalPageRenderer, {\n location,\n pageResources,\n ...pageResources.json,\n })\n}\n\nProdPageRenderer.propTypes = {\n location: PropTypes.shape({\n pathname: PropTypes.string.isRequired,\n }).isRequired,\n}\n\nexport default ProdPageRenderer\n","import React from 'react'\n\nimport 'bulma/css/bulma.css'\nimport './navbar.css';\n\nimport $ from 'jquery';\n\nimport {Link} from 'gatsby'\n\nclass navbar extends React.Component {\n\n componentDidMount(){\n // Get all \"navbar-burger\" elements\n const $navbarBurgers = Array.prototype.slice.call(\n document.querySelectorAll(\".navbar-burger\"),\n 0\n );\n\n // Check if there are any navbar burgers\n if ($navbarBurgers.length > 0) {\n // Add a click event on each of them\n $navbarBurgers.forEach(el => {\n el.addEventListener(\"click\", () => {\n // Get the target from the \"data-target\" attribute\n const target = el.dataset.target;\n const $target = document.getElementById(target);\n\n // Toggle the \"is-active\" class on both the \"navbar-burger\" and the \"navbar-menu\"\n el.classList.toggle(\"is-active\");\n $target.classList.toggle(\"is-active\");\n });\n });\n }\n }\n\n render(){\n return (\n <nav className=\"navbar\">\n <div class=\"navbar-brand\">\n <Link class=\"navbar-item\" to=\"/index.html\"><img id=\"logo-cimb\" src=\"https://cimb.com.mx/img/logos/logo-cimb.png\" /></Link>\n <div class=\"navbar-burger burger\" data-target=\"mainNav\">\n <span></span>\n <span></span>\n <span></span>\n </div>\n </div>\n\n <div id=\"mainNav\" class=\"navbar-menu\">\n <div class=\"navbar-start\">\n\n </div>\n <div class=\"navbar-end\">\n <Link class=\"navbar-item\" to=\"./index.html\">\n Inicio\n </Link>\n <Link class=\"navbar-item\" to=\"./proyectos/index.html\">\n Proyectos\n </Link>\n <Link class=\"navbar-item\" to=\"./videos/index.html\">\n Videos\n </Link>\n <Link class=\"navbar-item\" to=\"./divulgacion/index.html\">\n Divulgación\n </Link>\n <Link class=\"navbar-item\" to=\"./equipo/index.html\">\n Equipo de Investigación\n </Link>\n <Link class=\"navbar-item\" to=\"./contacto/index.html\">\n Contacto\n </Link>\n <Link class=\"navbar-item\" to=\"../blog/\">\n Blog\n </Link>\n <Link class=\"navbar-item\" to=\"index-eng.html\">\n Eng/Esp</Link>\n </div>\n </div>\n </nav>\n\n )\n }\n}\n\nexport default navbar\n","import React from 'react'\n\nimport {Link} from 'gatsby'\n\nimport 'bulma/css/bulma.css'\n\nimport './index.css';\n\nfunction index() {\n return (\n <div>\n <footer>\n <div class=\"footer-left\">\n <a href=\"https://tec.mx/es\" target=\"_blank\"><img src=\"https://cimb.com.mx/img/logos/logo-tec-largo.png\" /></a>\n <Link to=\"/index.html\"><img src=\"https://cimb.com.mx/img/logos/logo-cimb.png\" /></Link>\n </div>\n <div class=\"footer-center\">\n <h3>Mapa del sitio</h3>\n <ul>\n <li><Link to=\"/\">Inicio</Link></li>\n <li><Link to=\"/proyectos/index.html\">Proyectos</Link></li>\n <li><Link to=\"/videos/index.html\">Videos</Link></li>\n <li><Link to=\"/divulgacion/index.html\">Divulgación</Link></li>\n <li><Link to=\"/equipo/\">Equipo de investigación</Link></li>\n <li><Link to=\"/contacto/index.html\">Contacto</Link></li>\n <li><Link to=\"/blog/\">Blog</Link></li>\n </ul>\n </div>\n <div class=\"footer-right\">\n <h3>Contacto</h3>\n <ul>\n <li>Calle del Puente #222 Col. Ejidos de Huipulco, Tlalpan C.P. 14380, México D.F.</li>\n <li><a>Dr. Martín Rogelio Bustamante Bello</a></li>\n <li><a>Cel: 553075 1447</a></li>\n <li><a>Correo: [email protected]</a></li>\n <li class=\"contact-socials\">\n <a href=\"https://www.facebook.com\" target=\"_blank\"><i class=\"fab fa-facebook-square\"></i></a>\n <a href=\"https://www.researchgate.net/profile/Rogelio_Bustamante-Bello\" target=\"_blank\"><i class=\"fab fa-researchgate\"></i></a>\n </li>\n </ul>\n </div>\n </footer>\n <p class=\"trademark\">Instituto Tecnológico y de Estudios Superiores de Monterrey. México 2018.</p>\n </div>\n )\n}\n\nexport default index\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\nimport { StaticQuery, graphql } from \"gatsby\"\n\nimport Navbar from \"./navbar\"\nimport \"./layout.css\"\nimport Footer from './footer/index';\n\n\nconst Layout = ({ children }) => (\n <StaticQuery\n query={graphql`\n query SiteTitleQuery {\n site {\n siteMetadata {\n title\n \n }\n }\n }\n `}\n render={data => (\n <>\n <Navbar></Navbar>\n <main>{children}</main>\n <Footer></Footer>\n </>\n )}\n />\n)\n\nLayout.propTypes = {\n children: PropTypes.node.isRequired,\n}\n\nexport default Layout\n"],"sourceRoot":""}