-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-templates-index-template-js-d99b374dcbfd9bb38db3.js.map
1 lines (1 loc) · 20.4 KB
/
component---src-templates-index-template-js-d99b374dcbfd9bb38db3.js.map
1
{"version":3,"sources":["webpack:///./src/components/Sidebar/Author/Author.js","webpack:///./src/components/Icon/Icon.js","webpack:///./src/components/Sidebar/Contacts/Contacts.js","webpack:///./src/components/Sidebar/Copyright/Copyright.js","webpack:///./src/components/Sidebar/Menu/Menu.js","webpack:///./src/components/Sidebar/Sidebar.js","webpack:///./src/components/Feed/Feed.module.scss","webpack:///./src/components/Feed/Feed.js","webpack:///./src/templates/index-template.js","webpack:///./src/components/Sidebar/Copyright/Copyright.module.scss","webpack:///./src/components/Page/Page.module.scss","webpack:///./src/components/Page/Page.js","webpack:///./src/components/Sidebar/Sidebar.module.scss","webpack:///./src/components/Pagination/Pagination.module.scss","webpack:///./node_modules/classnames/bind.js","webpack:///./src/components/Sidebar/Contacts/Contacts.module.scss","webpack:///./src/components/Icon/Icon.module.scss","webpack:///./src/components/Sidebar/Author/Author.module.scss","webpack:///./src/components/Sidebar/Menu/Menu.module.scss","webpack:///./src/components/Pagination/Pagination.js"],"names":["Author","author","isIndex","className","styles","to","src","withPrefix","photo","width","height","alt","name","bio","Icon","icon","viewBox","d","path","Contacts","contacts","Object","keys","map","key","href","getContactHref","rel","target","getIcon","Copyright","copyright","Menu","menu","item","activeClassName","label","Sidebar","useSiteMetadata","tags","useTagsList","Tags","tag","fieldValue","tagSlugs","toLowerCase","inSidebar","module","exports","Feed","edges","edge","node","fields","slug","dateTime","moment","frontmatter","date","format","categorySlug","category","title","description","IndexTemplate","data","pageContext","siteTitle","siteSubtitle","subtitle","currentPage","hasNextPage","hasPrevPage","prevPagePath","nextPagePath","allMarkdownRemark","pageTitle","Page","children","pageRef","useRef","useEffect","current","scrollIntoView","ref","hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","argType","push","this","Array","isArray","apply","call","join","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,qD,qBCAzND,EAAOC,QAAU,CAAC,KAAO,6B,qBCAzBD,EAAOC,QAAU,CAAC,cAAgB,sCAAsC,cAAgB,sCAAsC,qBAAqB,2CAA2C,iBAAmB,2C,qBCAjND,EAAOC,QAAU,CAAC,KAAO,2BAA2B,WAAa,iCAAiC,kBAAkB,sCAAsC,uBAAuB,2CAA2C,+BAA+B,qD,+JCarPsD,EAAKf,IAAWgB,KAAKnG,KA8BZoG,EA5BI,SAAC,GAKN,IAJZ/B,EAIW,EAJXA,aACAC,EAGW,EAHXA,aACAH,EAEW,EAFXA,YACAC,EACW,EADXA,YAEMiC,EAAgBH,EAAG,CACvB,yBAAyB,EACzB,kCAAmC9B,IAG/BkC,EAAgBJ,EAAG,CACvB,yBAAyB,EACzB,kCAAmC/B,IAGrC,OACE,yBAAKpE,UAAWC,IAAM,YACpB,yBAAKD,UAAWC,IAAM,kBACpB,kBAAC,OAAD,CAAMuB,IAAI,OAAOtB,GAAImE,EAAcC,EAAe,IAAKtE,UAAWsG,GAAgBE,IAAWC,YAE/F,yBAAKzG,UAAWC,IAAM,kBACpB,kBAAC,OAAD,CAAMuB,IAAI,OAAOtB,GAAIkE,EAAcG,EAAe,IAAKvE,UAAWuG,GAAgBC,IAAWE","file":"component---src-templates-index-template-js-d99b374dcbfd9bb38db3.js","sourcesContent":["// @flow strict\nimport React from 'react';\nimport { withPrefix, Link } from 'gatsby';\nimport styles from './Author.module.scss';\n\ntype Props = {\n author: {\n name: string,\n bio: string,\n photo: string\n },\n isIndex: ?boolean\n};\n\nconst Author = ({ author, isIndex }: Props) => (\n <div className={styles['author']}>\n <Link to=\"/\">\n <img\n src={withPrefix(author.photo)}\n className={styles['author__photo']}\n width=\"75\"\n height=\"75\"\n alt={author.name}\n />\n </Link>\n\n { isIndex === true ? (\n <h1 className={styles['author__title']}>\n <Link className={styles['author__title-link']} to=\"/\">{author.name}</Link>\n </h1>\n ) : (\n <h2 className={styles['author__title']}>\n <Link className={styles['author__title-link']} to=\"/\">{author.name}</Link>\n </h2>\n )}\n <p className={styles['author__subtitle']}>{author.bio}</p>\n </div>\n);\n\nexport default Author;\n","// @flow strict\nimport React from 'react';\nimport styles from './Icon.module.scss';\n\ntype Props = {\n name: string,\n icon: {\n viewBox?: string,\n path?: string\n }\n};\n\nconst Icon = ({ name, icon }: Props) => (\n <svg className={styles['icon']} viewBox={icon.viewBox}>\n <title>{name}</title>\n <path d={icon.path} />\n </svg>\n);\n\nexport default Icon;\n","// @flow strict\nimport React from 'react';\nimport { getContactHref, getIcon } from '../../../utils';\nimport Icon from '../../Icon';\nimport styles from './Contacts.module.scss';\n\ntype Props = {\n contacts: {\n [string]: string,\n },\n};\n\nconst Contacts = ({ contacts }: Props) => (\n <div className={styles['contacts']}>\n <ul className={styles['contacts__list']}>\n {Object.keys(contacts).map((name) => (!contacts[name] ? null : (\n <li className={styles['contacts__list-item']} key={name}>\n <a\n className={styles['contacts__list-item-link']}\n href={getContactHref(name, contacts[name])}\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n >\n <Icon name={name} icon={getIcon(name)} />\n </a>\n </li>\n )))}\n </ul>\n </div>\n);\n\nexport default Contacts;\n","// @flow strict\nimport React from 'react';\nimport styles from './Copyright.module.scss';\n\ntype Props = {\n copyright: string\n};\n\nconst Copyright = ({ copyright }: Props) => (\n <div className={styles['copyright']}>\n {copyright}\n </div>\n);\n\nexport default Copyright;\n","// @flow strict\nimport React from 'react';\nimport { Link } from 'gatsby';\nimport styles from './Menu.module.scss';\n\ntype Props = {\n menu: {\n label: string,\n path: string\n }[]\n};\n\nconst Menu = ({ menu }: Props) => (\n <nav className={styles['menu']}>\n <ul className={styles['menu__list']}>\n {menu.map((item) => (\n <li className={styles['menu__list-item']} key={item.path}>\n <Link\n to={item.path}\n className={styles['menu__list-item-link']}\n activeClassName={styles['menu__list-item-link--active']}\n >\n {item.label}\n </Link>\n </li>\n ))}\n </ul>\n </nav>\n);\n\nexport default Menu;\n","// @flow\nimport React from 'react';\nimport Author from './Author';\nimport Contacts from './Contacts';\nimport Copyright from './Copyright';\nimport Menu from './Menu';\nimport styles from './Sidebar.module.scss';\nimport { useSiteMetadata, useTagsList } from '../../hooks';\nimport Tags from '../Post/Tags';\n\ntype Props = {\n isIndex?: boolean\n};\n\nconst Sidebar = ({ isIndex }: Props) => {\n const { author, copyright, menu } = useSiteMetadata();\n const tags = useTagsList();\n\n return (\n <div className={styles['sidebar']}>\n <div className={styles['sidebar__inner']}>\n <Author author={author} isIndex={isIndex} />\n <Menu menu={menu} />\n <Contacts contacts={author.contacts} />\n <Copyright copyright={copyright} />\n <Tags\n tags={tags.map((tag) => tag.fieldValue)}\n tagSlugs={tags.map((tag) => `/tag/${tag.fieldValue.toLowerCase()}`)}\n inSidebar\n />\n </div>\n </div>\n );\n};\n\nexport default Sidebar;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"feed__item\":\"Feed-module--feed__item--2D5rE\",\"feed__item-title\":\"Feed-module--feed__item-title--3nigr\",\"feed__item-title-link\":\"Feed-module--feed__item-title-link--iFMRs\",\"feed__item-description\":\"Feed-module--feed__item-description--1uO8e\",\"feed__item-meta-time\":\"Feed-module--feed__item-meta-time--3t1fg\",\"feed__item-meta-divider\":\"Feed-module--feed__item-meta-divider--N-Q0A\",\"feed__item-meta-category-link\":\"Feed-module--feed__item-meta-category-link--23f8F\",\"feed__item-readmore\":\"Feed-module--feed__item-readmore--1u6bI\"};","// @flow strict\nimport React from 'react';\nimport moment from 'moment';\nimport { Link } from 'gatsby';\nimport type { Edges } from '../../types';\nimport styles from './Feed.module.scss';\n\ntype Props = {\n edges: Edges\n};\n\nconst Feed = ({ edges }: Props) => (\n <div className={styles['feed']}>\n {edges.map((edge) => (\n <div className={styles['feed__item']} key={edge.node.fields.slug}>\n <div className={styles['feed__item-meta']}>\n <time className={styles['feed__item-meta-time']} dateTime={moment(edge.node.frontmatter.date).format('MMMM D, YYYY')}>\n {moment(edge.node.frontmatter.date).format('MMMM YYYY')}\n </time>\n <span className={styles['feed__item-meta-divider']} />\n <span className={styles['feed__item-meta-category']}>\n <Link to={edge.node.fields.categorySlug} className={styles['feed__item-meta-category-link']}>{edge.node.frontmatter.category}</Link>\n </span>\n </div>\n <h2 className={styles['feed__item-title']}>\n <Link className={styles['feed__item-title-link']} to={edge.node.fields.slug}>{edge.node.frontmatter.title}</Link>\n </h2>\n <p className={styles['feed__item-description']}>{edge.node.frontmatter.description}</p>\n <Link className={styles['feed__item-readmore']} to={edge.node.fields.slug}>Read</Link>\n </div>\n ))}\n </div>\n);\n\nexport default Feed;\n","// @flow strict\nimport React from 'react';\nimport { graphql } from 'gatsby';\nimport Layout from '../components/Layout';\nimport Sidebar from '../components/Sidebar';\nimport Feed from '../components/Feed';\nimport Page from '../components/Page';\nimport Pagination from '../components/Pagination';\nimport { useSiteMetadata } from '../hooks';\nimport type { PageContext, AllMarkdownRemark } from '../types';\n\ntype Props = {\n data: AllMarkdownRemark,\n pageContext: PageContext\n};\n\nconst IndexTemplate = ({ data, pageContext }: Props) => {\n const { title: siteTitle, subtitle: siteSubtitle } = useSiteMetadata();\n\n const {\n currentPage,\n hasNextPage,\n hasPrevPage,\n prevPagePath,\n nextPagePath\n } = pageContext;\n\n\n const { edges } = data.allMarkdownRemark;\n const pageTitle = currentPage > 0 ? `Posts - Page ${currentPage} - ${siteTitle}` : siteTitle;\n\n return (\n <Layout title={pageTitle} description={siteSubtitle}>\n <Sidebar isIndex />\n <Page>\n <Feed edges={edges} />\n <Pagination\n prevPagePath={prevPagePath}\n nextPagePath={nextPagePath}\n hasPrevPage={hasPrevPage}\n hasNextPage={hasNextPage}\n />\n </Page>\n </Layout>\n );\n};\n\nexport const query = graphql`\n query IndexTemplate($postsLimit: Int!, $postsOffset: Int!) {\n allMarkdownRemark(\n limit: $postsLimit,\n skip: $postsOffset,\n filter: { frontmatter: { template: { 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\nexport default IndexTemplate;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"copyright\":\"Copyright-module--copyright--1ariN\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"page\":\"Page-module--page--2nMky\",\"page__inner\":\"Page-module--page__inner--2M_vz\",\"page__title\":\"Page-module--page__title--GPD8L\",\"page__body\":\"Page-module--page__body--Ic6i6\"};","import React, { useRef, useEffect } from 'react';\nimport styles from './Page.module.scss';\n\ntype Props = {\n title?: string,\n children: React.Node\n};\n\nconst Page = ({ title, children }: Props) => {\n const pageRef = useRef();\n\n useEffect(() => {\n pageRef.current.scrollIntoView();\n });\n\n return (\n <div ref={pageRef} className={styles['page']}>\n <div className={styles['page__inner']}>\n { title && <h1 className={styles['page__title']}>{title}</h1>}\n <div className={styles['page__body']}>\n {children}\n </div>\n </div>\n </div>\n );\n};\n\nexport default Page;","// extracted by mini-css-extract-plugin\nmodule.exports = {\"sidebar\":\"Sidebar-module--sidebar--X4z2p\",\"sidebar__inner\":\"Sidebar-module--sidebar__inner--Jdc5s\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"pagination\":\"Pagination-module--pagination--2H3nO\",\"pagination__prev\":\"Pagination-module--pagination__prev--bet5s\",\"pagination__prev-link\":\"Pagination-module--pagination__prev-link--1Nzs6\",\"pagination__prev-link--disable\":\"Pagination-module--pagination__prev-link--disable--Yklx9\",\"pagination__next\":\"Pagination-module--pagination__next--3hFiN\",\"pagination__next-link\":\"Pagination-module--pagination__next-link--3FUtA\",\"pagination__next-link--disable\":\"Pagination-module--pagination__next-link--disable--30UwZ\"};","/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n\n/* global define */\n(function () {\n 'use strict';\n\n var hasOwn = {}.hasOwnProperty;\n\n function classNames() {\n var classes = [];\n\n for (var i = 0; i < arguments.length; i++) {\n var arg = arguments[i];\n if (!arg) continue;\n var argType = typeof arg;\n\n if (argType === 'string' || argType === 'number') {\n classes.push(this && this[arg] || arg);\n } else if (Array.isArray(arg)) {\n classes.push(classNames.apply(this, arg));\n } else if (argType === 'object') {\n for (var key in arg) {\n if (hasOwn.call(arg, key) && arg[key]) {\n classes.push(this && this[key] || key);\n }\n }\n }\n }\n\n return classes.join(' ');\n }\n\n if (typeof module !== 'undefined' && module.exports) {\n classNames.default = classNames;\n module.exports = classNames;\n } else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n // register as 'classnames', consistent with npm package name\n define('classnames', [], function () {\n return classNames;\n });\n } else {\n window.classNames = classNames;\n }\n})();","// extracted by mini-css-extract-plugin\nmodule.exports = {\"contacts\":\"Contacts-module--contacts--1rGd1\",\"contacts__list\":\"Contacts-module--contacts__list--3OgdW\",\"contacts__list-item\":\"Contacts-module--contacts__list-item--16p9q\",\"contacts__list-item-link\":\"Contacts-module--contacts__list-item-link--2MIDn\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"icon\":\"Icon-module--icon--Gpyvw\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"author__photo\":\"Author-module--author__photo--36xCH\",\"author__title\":\"Author-module--author__title--2CaTb\",\"author__title-link\":\"Author-module--author__title-link--Yrism\",\"author__subtitle\":\"Author-module--author__subtitle--cAaEB\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"menu\":\"Menu-module--menu--Efbin\",\"menu__list\":\"Menu-module--menu__list--31Zeo\",\"menu__list-item\":\"Menu-module--menu__list-item--1lJ6B\",\"menu__list-item-link\":\"Menu-module--menu__list-item-link--10Ush\",\"menu__list-item-link--active\":\"Menu-module--menu__list-item-link--active--2CbUO\"};","// @flow strict\nimport React from 'react';\nimport classNames from 'classnames/bind';\nimport { Link } from 'gatsby';\nimport { PAGINATION } from '../../constants';\nimport styles from './Pagination.module.scss';\n\ntype Props = {\n prevPagePath: string,\n nextPagePath: string,\n hasNextPage: boolean,\n hasPrevPage: boolean\n};\n\nconst cx = classNames.bind(styles);\n\nconst Pagination = ({\n prevPagePath,\n nextPagePath,\n hasNextPage,\n hasPrevPage\n}: Props) => {\n const prevClassName = cx({\n 'pagination__prev-link': true,\n 'pagination__prev-link--disable': !hasPrevPage\n });\n\n const nextClassName = cx({\n 'pagination__next-link': true,\n 'pagination__next-link--disable': !hasNextPage\n });\n\n return (\n <div className={styles['pagination']}>\n <div className={styles['pagination__prev']}>\n <Link rel=\"prev\" to={hasPrevPage ? prevPagePath : '/'} className={prevClassName}>{PAGINATION.PREV_PAGE}</Link>\n </div>\n <div className={styles['pagination__next']}>\n <Link rel=\"next\" to={hasNextPage ? nextPagePath : '/'} className={nextClassName}>{PAGINATION.NEXT_PAGE}</Link>\n </div>\n </div>\n );\n};\n\nexport default Pagination;\n"],"sourceRoot":""}