site/component---src-pages-projects-physics-js-d1fd75d95e007f45f005.js.map
2020-03-21 20:12:32 +03:00

1 line
5.2 KiB
Plaintext

{"version":3,"sources":["webpack:///./src/pages/projects/physics.js"],"names":["injectIntl","data","intl","useIntl","lang","locale","posts","ru_projects","edges","en_projects","title","formatMessage","id","className","to","style","marginTop","marginBottom","map","node","link","frontmatter","shortTitle","name","dangerouslySetInnerHTML","__html","html","query"],"mappings":"4FAAA,0GAyDeA,gCAlDK,SAAC,GAAc,IAAZC,EAAW,EAAXA,KACbC,EAAOC,oBACPC,EAAOF,EAAKG,OACdC,EAAQ,GAGZ,MAFY,OAAPF,EAAgBE,EAAQL,EAAKM,YAAYC,MAC7B,OAAPJ,IAAgBE,EAAQL,EAAKQ,YAAYD,OAE/C,kBAAC,IAAD,KACA,kBAAC,IAAD,CAAKJ,KAAMA,EAAMM,MAAOR,EAAKS,cAAc,CAAEC,GAAI,YAC7C,wBAAIC,UAAU,gBACV,wBAAIA,UAAU,YAAW,kBAAC,OAAD,CAAMD,GAAG,UAAUC,UAAU,kBAAkBC,GAAG,qBAAoB,kBAAC,mBAAD,CAAkBF,GAAG,uBACpH,wBAAIC,UAAU,YAAW,kBAAC,OAAD,CAAMD,GAAG,UAAUC,UAAU,YAAYC,GAAG,uBAAsB,kBAAC,mBAAD,CAAkBF,GAAG,yBAChH,wBAAIC,UAAU,YAAW,kBAAC,OAAD,CAAMD,GAAG,UAAUC,UAAU,YAAYC,GAAG,kBAAiB,kBAAC,mBAAD,CAAkBF,GAAG,oBAC3G,wBAAIC,UAAU,YAAW,kBAAC,OAAD,CAAMD,GAAG,UAAUC,UAAU,YAAYC,GAAG,sBAAqB,kBAAC,mBAAD,CAAkBF,GAAG,yBAGnH,wBAAIG,MAAS,CAACC,UAAU,SAAU,kBAAC,mBAAD,CAAkBJ,GAAG,mBACvD,uBAAGG,MAAO,CAACE,aAAa,QAAS,kBAAC,mBAAD,CAAkBL,GAAG,yBAEtD,4BACCN,EAAMY,KAAI,YAAa,IAAXC,EAAU,EAAVA,KACHC,EAAOD,EAAKE,YAAYC,WACxBV,EAAKO,EAAKE,YAAYT,GAC5B,OACI,4BAAI,kBAAC,OAAD,CAAME,GAAE,qBAAuBF,GAAOQ,QAKjDd,EAAMY,KAAI,YAAa,IAAXC,EAAU,EAAVA,KACHT,EAAQS,EAAKE,YAAYX,MACzBE,EAAKO,EAAKE,YAAYT,GAC5B,OACI,yBAAKC,UAAU,MAAMD,GAAIA,GACzB,yBAAKC,UAAU,aACf,6BACI,wBAAIU,KAAMX,GAAKF,GACf,uBACAc,wBAA2B,CACvBC,OAAQN,EAAKO,iBAalC,IAAMC,EAAK","file":"component---src-pages-projects-physics-js-d1fd75d95e007f45f005.js","sourcesContent":["import React from \"react\"\r\nimport { graphql } from \"gatsby\"\r\nimport { FormattedMessage, Link, useIntl, injectIntl } from \"gatsby-plugin-intl\"\r\n\r\nimport Layout from \"../../components/layout\"\r\nimport SEO from \"../../components/seo\"\r\n\r\nconst PhysicsPage = ({ data }) => {\r\n const intl = useIntl()\r\n const lang = intl.locale\r\n var posts = \"\"\r\n if ( lang===\"ru\" ) { posts = data.ru_projects.edges; } \r\n else if ( lang===\"en\" ) { posts = data.en_projects.edges; }\r\n return(\r\n <Layout>\r\n <SEO lang={lang} title={intl.formatMessage({ id: \"title\" })} />\r\n <ul className=\"nav nav-tabs\"> \r\n <li className=\"nav-item\"><Link id=\"project\" className=\"nav-link active\" to=\"/projects/physics\"><FormattedMessage id=\"physics.bc_title\"/></Link></li>\r\n <li className=\"nav-item\"><Link id=\"project\" className=\"nav-link \" to=\"/projects/education\"><FormattedMessage id=\"education.bc_title\"/></Link></li>\r\n <li className=\"nav-item\"><Link id=\"project\" className=\"nav-link \" to=\"/projects/math\"><FormattedMessage id=\"math.bc_title\"/></Link></li>\r\n <li className=\"nav-item\"><Link id=\"project\" className=\"nav-link \" to=\"/projects/software\"><FormattedMessage id=\"software.bc_title\"/></Link></li> \r\n </ul>\r\n\r\n <h1 style = {{marginTop: `20px`}}><FormattedMessage id=\"physics.title\"/></h1>\r\n <p style={{marginBottom: `5px`}}><FormattedMessage id=\"physics.description\"/></p>\r\n\r\n <ul>\r\n {posts.map(({node}) => {\r\n const link = node.frontmatter.shortTitle;\r\n const id = node.frontmatter.id;\r\n return(\r\n <li><Link to={`/projects/physics#${id}`}>{link}</Link></li>\r\n )\r\n })}\r\n </ul>\r\n\r\n {posts.map(({node}) => {\r\n const title = node.frontmatter.title;\r\n const id = node.frontmatter.id;\r\n return(\r\n <div className=\"row\" id={id}>\r\n <div className=\"col-lg-12\">\r\n <hr/>\r\n <h2 name={id}>{title}</h2>\r\n <p\r\n dangerouslySetInnerHTML = {{\r\n __html: node.html,\r\n }}\r\n />\r\n </div>\r\n </div>\r\n )\r\n })}\r\n </Layout>\r\n )\r\n}\r\n\r\nexport default injectIntl(PhysicsPage)\r\n\r\nexport const query = graphql`\r\n query{\r\n ru_projects: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: \"project_physics\"}, published: {eq: true}, language: {eq: \"ru\"}}},\r\n sort: {fields: [frontmatter___order], order: ASC}){\r\n edges{\r\n node{\r\n html\r\n frontmatter{\r\n shortTitle\r\n title\r\n id\r\n }\r\n }\r\n }}\r\n\r\n en_projects: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: \"project_physics\"}, published: {eq: true}, language: {eq: \"en\"}}},\r\n sort: {fields: [frontmatter___order], order: ASC}){\r\n edges{\r\n node{\r\n html\r\n frontmatter{\r\n shortTitle\r\n title\r\n id\r\n }\r\n }\r\n }}\r\n }\r\n`"],"sourceRoot":""}