You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pgfqe6ch8/public/react-gatsby/public/component---src-pages-page-...

1 line
9.0 KiB

{"version":3,"sources":["webpack:///./src/pages/page-2.js","webpack:///./.cache/gatsby-browser-entry.js","webpack:///./.cache/public-page-renderer.js","webpack:///./.cache/public-page-renderer-prod.js","webpack:///./src/components/header.js","webpack:///./src/components/layout.js"],"names":["__webpack_require__","r","__webpack_exports__","react__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_0___default","n","gatsby__WEBPACK_IMPORTED_MODULE_1__","_components_layout__WEBPACK_IMPORTED_MODULE_2__","SecondPage","a","createElement","to","d","graphql","StaticQueryContext","StaticQuery","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","_wait_for_route_change__WEBPACK_IMPORTED_MODULE_3__","_public_page_renderer__WEBPACK_IMPORTED_MODULE_4__","_public_page_renderer__WEBPACK_IMPORTED_MODULE_4___default","_parse_path__WEBPACK_IMPORTED_MODULE_5__","React","createContext","props","Consumer","staticQueryData","data","query","render","children","Error","propTypes","PropTypes","object","string","isRequired","func","m","module","exports","require","default","ProdPageRenderer","_ref","location","pageResources","loader","getResourcesForPathnameSync","pathname","InternalPageRenderer","Object","assign","json","shape","Header","siteTitle","_react_16_5_2_react_default","style","background","marginBottom","margin","maxWidth","padding","gatsby_browser_entry","color","textDecoration","Layout","Fragment","Helmet_default","title","site","siteMetadata","meta","name","content","lang","header","paddingTop","_755544856","node"],"mappings":"0FAAAA,EAAAC,EAAAC,GAAA,IAAAC,EAAAH,EAAA,GAAAI,EAAAJ,EAAAK,EAAAF,GAAAG,EAAAN,EAAA,KAAAO,EAAAP,EAAA,KAaeQ,UARI,kBACjBJ,EAAAK,EAAAC,cAACH,EAAA,EAAD,KACEH,EAAAK,EAAA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oE,KAAK,QAEbnB,EAAAlD,EAAAC,cAACqE,EAAD,CAAQrB,UAAW7B,EAAK4C,KAAKC,aAAaF,QAC1Cb,EAAAlD,EAAAC,cAAA,OACEkD,MAAO,CACLG,OAAQ,SACRC,SAAU,IACVC,QAAS,wBACTe,WAAY,IAGbhD,KA9BTH,KAAAoD,MAqCFZ,EAAOnC,UAAY,CACjBF,SAAUG,IAAU+C,KAAK5C,YAGZ+B","file":"component---src-pages-page-2-js-0bf4b6d9be3261b6e588.js","sourcesContent":["import React from 'react'\r\nimport { Link } from 'gatsby'\r\n\r\nimport Layout from '../components/layout'\r\n\r\nconst SecondPage = () => (\r\n <Layout>\r\n <h1>Hi from the second page</h1>\r\n <p>Welcome to page 2</p>\r\n <Link to=\"/\">Go back to the homepage</Link>\r\n </Layout>\r\n)\r\n\r\nexport default SecondPage\r\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\nimport Link, {\n withPrefix,\n navigate,\n push,\n replace,\n navigateTo,\n} from \"gatsby-link\"\nimport { waitForRouteChange } from \"./wait-for-route-change\"\nimport PageRenderer from \"./public-page-renderer\"\nimport parsePath from \"./parse-path\"\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\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 waitForRouteChange,\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'\r\nimport { Link } from 'gatsby'\r\n\r\nconst Header = ({ siteTitle }) => (\r\n <div\r\n style={{\r\n background: 'rebeccapurple',\r\n marginBottom: '1.45rem',\r\n }}\r\n >\r\n <div\r\n style={{\r\n margin: '0 auto',\r\n maxWidth: 960,\r\n padding: '1.45rem 1.0875rem',\r\n }}\r\n >\r\n <h1 style={{ margin: 0 }}>\r\n <Link\r\n to=\"/\"\r\n style={{\r\n color: 'white',\r\n textDecoration: 'none',\r\n }}\r\n >\r\n {siteTitle}\r\n </Link>\r\n </h1>\r\n </div>\r\n </div>\r\n)\r\n\r\nexport default Header\r\n","import React from 'react'\r\nimport PropTypes from 'prop-types'\r\nimport Helmet from 'react-helmet'\r\nimport { StaticQuery, graphql } from 'gatsby'\r\n\r\nimport Header from './header'\r\nimport './layout.css'\r\n\r\nconst Layout = ({ children }) => (\r\n <StaticQuery\r\n query={graphql`\r\n query SiteTitleQuery {\r\n site {\r\n siteMetadata {\r\n title\r\n }\r\n }\r\n }\r\n `}\r\n render={data => (\r\n <>\r\n <Helmet\r\n title={data.site.siteMetadata.title}\r\n meta={[\r\n { name: 'description', content: 'Sample' },\r\n { name: 'keywords', content: 'sample, something' },\r\n ]}\r\n >\r\n <html lang=\"en\" />\r\n </Helmet>\r\n <Header siteTitle={data.site.siteMetadata.title} />\r\n <div\r\n style={{\r\n margin: '0 auto',\r\n maxWidth: 960,\r\n padding: '0px 1.0875rem 1.45rem',\r\n paddingTop: 0,\r\n }}\r\n >\r\n {children}\r\n </div>\r\n </>\r\n )}\r\n />\r\n)\r\n\r\nLayout.propTypes = {\r\n children: PropTypes.node.isRequired,\r\n}\r\n\r\nexport default Layout\r\n"],"sourceRoot":""}