site/component---src-pages-quarks-js-83a9a3e909df4a142823.js.map
2020-03-21 20:12:32 +03:00

1 line
2.8 KiB
Plaintext

{"version":3,"sources":["webpack:///./src/pages/quarks.js"],"names":["injectIntl","data","intl","useIntl","lang","locale","pubs","ru_publications","edges","en_publications","title","formatMessage","id","aria-label","className","style","margin","to","map","node","dangerouslySetInnerHTML","__html","html","query"],"mappings":"8FAAA,0GAkCeA,gCA3BI,SAAC,GAAc,IAAZC,EAAW,EAAXA,KACZC,EAAOC,oBACPC,EAAOF,EAAKG,OACdC,EAAO,GAGX,MAFY,OAAPF,EAAgBE,EAAOL,EAAKM,gBAAgBC,MAChC,OAAPJ,IAAgBE,EAAOL,EAAKQ,gBAAgBD,OAEtD,kBAAC,IAAD,KACE,kBAAC,IAAD,CAAKJ,KAAMA,EAAMM,MAAOR,EAAKS,cAAc,CAAEC,GAAI,YAE/C,yBAAKC,aAAW,cAChB,wBAAIC,UAAU,aAAaC,MAAO,CAACC,OAAQ,IACvC,wBAAIF,UAAU,mBACV,kBAAC,OAAD,CAAMG,GAAE,qBAAuB,kBAAC,mBAAD,CAAkBL,GAAG,aAExD,wBAAIE,UAAU,0BAAd,iBAIHR,EAAKY,KAAI,YAAY,IAAVC,EAAS,EAATA,KACR,OACI,uBAAGC,wBAAyB,CAACC,OAAQF,EAAKG,eAQnD,IAAMC,EAAK","file":"component---src-pages-quarks-js-83a9a3e909df4a142823.js","sourcesContent":["import React from \"react\"\r\nimport { graphql } from \"gatsby\"\r\nimport Layout from \"../components/layout\"\r\nimport { FormattedMessage, Link, useIntl, injectIntl } from \"gatsby-plugin-intl\"\r\n\r\nimport SEO from \"../components/seo\"\r\n\r\nconst QuarksPage = ({ data }) => {\r\n const intl = useIntl()\r\n const lang = intl.locale\r\n var pubs = \"\"\r\n if ( lang===\"ru\" ) { pubs = data.ru_publications.edges; } \r\n else if ( lang===\"en\" ) { pubs = data.en_publications.edges; }\r\n return(\r\n <Layout>\r\n <SEO lang={lang} title={intl.formatMessage({ id: \"title\" })} />\r\n\r\n <nav aria-label=\"breadcrumb\">\r\n <ol className=\"breadcrumb\" style={{margin: 0}}>\r\n <li className=\"breadcrumb-item\">\r\n <Link to={`/projects/physics`}><FormattedMessage id=\"quarks\"/></Link>\r\n </li>\r\n <li className=\"breadcrumb-item active\">QUARKS-2020</li>\r\n </ol>\r\n </nav>\r\n\r\n {pubs.map(({node}) =>{\r\n return(\r\n <p dangerouslySetInnerHTML={{__html: node.html}}/>\r\n )\r\n })}\r\n </Layout>\r\n)}\r\n\r\nexport default injectIntl(QuarksPage)\r\n\r\nexport const query = graphql`\r\n query{\r\n ru_publications: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: \"quarks\"}, published: {eq: true}, language: {eq: \"ru\"}}}){\r\n edges{\r\n node{\r\n html\r\n frontmatter{\r\n title\r\n }\r\n }\r\n }}\r\n\r\n en_publications: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: \"quarks\"}, published: {eq: true}, language: {eq: \"en\"}}}){\r\n edges{\r\n node{\r\n html\r\n frontmatter{\r\n title\r\n }\r\n }\r\n }}\r\n }\r\n`"],"sourceRoot":""}