-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-templates-page-template-js-ca6f86cfc131b0d3d631.js.map
1 lines (1 loc) · 12.3 KB
/
component---src-templates-page-template-js-ca6f86cfc131b0d3d631.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/templates/page-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/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"],"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","DarkModeToggler","React","lazy","Sidebar","useSiteMetadata","isSSR","window","Suspense","fallback","PageTemplate","data","siteTitle","title","siteSubtitle","subtitle","pageBody","markdownRemark","html","frontmatter","pageTitle","description","pageDescription","socialImage","metaDescription","socialImageUrl","publicURL","dangerouslySetInnerHTML","__html","module","exports","Page","children","pageRef","useRef","useEffect","current","scrollIntoView","ref"],"mappings":"0LAqCeA,EAxBA,SAAC,GAAD,IAAGC,EAAH,EAAGA,OAAQC,EAAX,EAAWA,QAAX,OACb,yBAAKC,UAAWC,IAAM,QACpB,kBAAC,OAAD,CAAMC,GAAG,KACP,yBACEC,IAAKC,qBAAWN,EAAOO,OACvBL,UAAWC,IAAM,cACjBK,MAAM,KACNC,OAAO,KACPC,IAAKV,EAAOW,SAGF,IA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EAAQG,QAAQC,oBAIhB,yBAAKC,IAAKL,EAASlE,UAAWC,IAAM,MAClC,yBAAKD,UAAWC,IAAM,aAClB6C,GAAS,wBAAI9C,UAAWC,IAAM,aAAkB6C,GAClD,yBAAK9C,UAAWC,IAAM,YACnBgE,O,qBCnBXH,EAAOC,QAAU,CAAC,QAAU,iCAAiC,eAAiB,0C,uBCA9ED,EAAOC,QAAU,CAAC,SAAW,mCAAmC,eAAiB,yCAAyC,sBAAsB,8CAA8C,2BAA2B,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","file":"component---src-templates-page-template-js-ca6f86cfc131b0d3d631.js","sourcesContent":["import 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 { 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","import 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","import 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 } from '../../hooks';\n// import DarkModeToggler from '../DarkModeToggler';\n\ntype Props = {\n isIndex?: boolean,\n};\n\nconst DarkModeToggler = React.lazy(() => import('../DarkModeToggler'));\n\nconst Sidebar = ({ isIndex }: Props) => {\n const { author, copyright, menu } = useSiteMetadata();\n const isSSR = typeof window === 'undefined';\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 {!isSSR && (\n <React.Suspense fallback={<div />}>\n <DarkModeToggler className={styles['sidebar__toggler']}/>\n </React.Suspense>\n )}\n <Contacts contacts={author.contacts} />\n <Copyright copyright={copyright} />\n </div>\n </div>\n );\n};\n\nexport default Sidebar;\n","// @flow strict\nimport React from 'react';\nimport { graphql } from 'gatsby';\nimport Layout from '../components/Layout';\nimport Sidebar from '../components/Sidebar';\nimport Page from '../components/Page';\nimport { useSiteMetadata } from '../hooks';\nimport type { MarkdownRemark } from '../types';\n\ntype Props = {\n data: {\n markdownRemark: MarkdownRemark\n }\n};\n\nconst PageTemplate = ({ data }: Props) => {\n const { title: siteTitle, subtitle: siteSubtitle } = useSiteMetadata();\n const { html: pageBody } = data.markdownRemark;\n const { frontmatter } = data.markdownRemark;\n const { title: pageTitle, description: pageDescription = '', socialImage } = frontmatter;\n const metaDescription = pageDescription || siteSubtitle;\n const socialImageUrl = socialImage?.publicURL;\n\n return (\n <Layout title={`${pageTitle} - ${siteTitle}`} description={metaDescription} socialImage={socialImageUrl} >\n <Sidebar />\n <Page title={pageTitle}>\n <div dangerouslySetInnerHTML={{ __html: pageBody }} />\n </Page>\n </Layout>\n );\n};\n\nexport const query = graphql`\n query PageBySlug($slug: String!) {\n markdownRemark(fields: { slug: { eq: $slug } }) {\n id\n html\n frontmatter {\n title\n date\n description\n }\n }\n }\n`;\n\nexport default PageTemplate;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"copyright\":\"Copyright-module--copyright--1YLES\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"page\":\"Page-module--page--V2155\",\"page__inner\":\"Page-module--page__inner--3xzwp\",\"page__title\":\"Page-module--page__title--t1zKX\",\"page__body\":\"Page-module--page__body--1A7TB\"};","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--1zM7S\",\"sidebar__inner\":\"Sidebar-module--sidebar__inner--2Tprz\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"contacts\":\"Contacts-module--contacts--3fb7G\",\"contacts__list\":\"Contacts-module--contacts__list--27zok\",\"contacts__list-item\":\"Contacts-module--contacts__list-item--1Adud\",\"contacts__list-item-link\":\"Contacts-module--contacts__list-item-link--2L60c\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"icon\":\"Icon-module--icon--1T2h2\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"author__photo\":\"Author-module--author__photo--HnDWV\",\"author__title\":\"Author-module--author__title--ZztQd\",\"author__title-link\":\"Author-module--author__title-link--BY7f8\",\"author__subtitle\":\"Author-module--author__subtitle--3hbMX\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"menu\":\"Menu-module--menu--2aN3O\",\"menu__list\":\"Menu-module--menu__list--1uKDu\",\"menu__list-item\":\"Menu-module--menu__list-item--27cxj\",\"menu__list-item-link\":\"Menu-module--menu__list-item-link--29Sd-\",\"menu__list-item-link--active\":\"Menu-module--menu__list-item-link--active--2HzKy\"};"],"sourceRoot":""}