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-index...

1 line
9.4 KiB

{"version":3,"sources":["webpack:///./src/pages/index.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__","antd__WEBPACK_IMPORTED_MODULE_3__","IndexPage","a","createElement","type","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,KAAAQ,EAAAR,EAAA,KAAAA,EAAA,KAoBeS,U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AAAnD,EAAA8D,SAAA,KACEX,EAAAnD,EAAAC,cAAC8D,EAAA/D,EAAD,CACEgE,MAAO3C,EAAK4C,KAAKC,aAAaF,MAC9BG,KAAM,CACJ,CAAEC,KAAM,cAAeC,QAAS,UAChC,CAAED,KAAM,WAAYC,QAAS,uBAG/BlB,EAAAnD,EAAAC,cAAA,QAAMqE,KAAK,QAEbnB,EAAAnD,EAAAC,cAACsE,EAAD,CAAQrB,UAAW7B,EAAK4C,KAAKC,aAAaF,QAC1Cb,EAAAnD,EAAAC,cAAA,OACEmD,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-index-js-af0ba0656a0e9d0f3486.js","sourcesContent":["import React from 'react'\r\nimport { Link } from 'gatsby'\r\n\r\nimport Layout from '../components/layout'\r\nimport { Button } from 'antd';\r\nimport 'antd/dist/antd.min.css'\r\nconst IndexPage = () => (\r\n <Layout>\r\n <h1>Hi people 你好</h1>\r\n <Button type=\"primary\">Primary1</Button>\r\n\r\n <p>Welcome to your new Gatsby site.</p>\r\n <p>Now go build something great.</p>\r\n <Link to=\"/page-2/\">Go to page 2</Link>\r\n\r\n\r\n <Link to=\"/test/table-cell-combine\">table-cell-combine</Link>\r\n </Layout>\r\n)\r\n\r\nexport default IndexPage\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":""}