From 1b96d697dff1b56c33da001214a34815a5db3a38 Mon Sep 17 00:00:00 2001 From: Elinorre Date: Mon, 2 Mar 2020 18:53:21 +0300 Subject: [PATCH] projects template --- src/intl/en.json | 19 ++++- src/intl/ru.json | 19 ++++- .../content/ru/projects/education/analysis.md | 1 + .../content/ru/projects/education/atom.md | 1 + .../content/ru/projects/education/kotlin.md | 1 + .../content/ru/projects/education/labs.md | 1 + .../ru/projects/education/lowbackground.md | 1 + .../content/ru/projects/math/deconvolution.md | 1 + .../content/ru/projects/math/significance.md | 1 + .../content/ru/projects/physics/gerda.md | 1 + src/pages/content/ru/projects/physics/iaxo.md | 1 + src/pages/content/ru/projects/physics/mm.md | 1 + .../content/ru/projects/physics/numass.md | 1 + .../ru/projects/physics/spectMatter.md | 1 + src/pages/content/ru/projects/physics/tgf.md | 1 + .../content/ru/projects/software/biref.md | 1 + .../content/ru/projects/software/dataforge.md | 1 + .../content/ru/projects/software/kmath.md | 1 + .../content/ru/projects/software/muon-sim.md | 1 + .../ru/projects/software/prog-seminar.md | 1 + .../content/ru/projects/software/reactor.md | 1 + src/pages/projects/education.js | 73 +++++++++++-------- src/pages/projects/math.js | 66 +++++++++++------ src/pages/projects/physics.js | 70 +++++++++++------- src/pages/projects/software.js | 66 +++++++++++------ 25 files changed, 225 insertions(+), 107 deletions(-) diff --git a/src/intl/en.json b/src/intl/en.json index 62b4151..ba5f6f9 100644 --- a/src/intl/en.json +++ b/src/intl/en.json @@ -62,5 +62,22 @@ "description_education": "Some of the students participating in the group study at the Scientific and Educational Center of the INR RAS.", "title_iki": "SRI RAS", "description_iki": "The group is involved in the mathematical modeling of electrical discharges in the atmosphere." } - } + }, + + "physics": { + "bc_title": "Physics", + "title": "Nuclear physics", + "description": "Traditionally, nuclear physics includes not only research related to the structure of the atomic nucleus and nuclear reactions, but also the entire physics of elementary particles, as well as partly some sections of astrophysics and cosmology. Currently, the efforts of our group are concentrated in the field of so-called non-accelerator experiments in elementary particle physics." }, + "education": { + "bc_title": "Education", + "title": "Education", + "description": "Educational projects in the field of nuclear physics and methods for conducting and analyzing the results of a physical experiment are one of the key activities of the group." }, + "math": { + "bc_title": "Maths", + "title": "Mathematical methods", + "description": "Mathematical modeling of physical processes and mathematical methods of data analysis are an integral part of modern experimental physics. There is a constant need for both improving existing methods and developing fundamentally new approaches." }, + "software": { + "bc_title": "Software", + "title": "Scientific software", + "description": "Modern experiments in particle physics are inconceivable without special software, which is required both at the stage of the experiment and data collection, and in processing the results. The development of scientific software is an additional, but significant area of work for the group." } } diff --git a/src/intl/ru.json b/src/intl/ru.json index 2376e66..f3ddae7 100644 --- a/src/intl/ru.json +++ b/src/intl/ru.json @@ -62,5 +62,22 @@ "description_education": "Часть студентов, участвующих в группе обучается в научно-образовательном центре ИЯИ РАН.", "title_iki": "ИКИ РАН", "description_iki": "Группа участвует в математическом моделировании электрических разрядов в атмосфере." } - } + }, + + "physics": { + "bc_title": "Физика", + "title": "Ядерная физика", + "description": "Традиционно к ядерной физике относят не только исследования, связанные со структурой атомного ядра и ядерными реакциями, но и всю физику элементарных частиц, а также отчасти некоторые разделы астрофизики и космологии. В настоящее время усилия нашей группы сосредоточены в области так называемых неускорительных экспериментов в физике элементарных частиц." }, + "education": { + "bc_title": "Образование", + "title": "Образование", + "description": "Образовательные проекты в побласти ядерной физики и методов проведения и анализа результатов физического эксперимента являются одним из ключевых направлений деятельности группы." }, + "math": { + "bc_title": "Математика", + "title": "Математические методы", + "description": "Математическое моделирование физических процессов и математические методы анализа данных являются неотъемлимой частью современной экспериментальной физики. Постоянно возникает потребность как в совершенствовании существующих методов, так и в разработке принципиально новых подходов." }, + "software": { + "bc_title": "Программное обеспечение", + "title": "Научное программное обеспечение", + "description": "Современные эксперименты в физике частиц немыслимы без специального программного обеспечения, которое требуется как на этапе проведения эксперимента и сбора данных, так и при обработке результатов. Разработка научного программного обеспечения является дополнительным, но существенным направлением работы группы." } } diff --git a/src/pages/content/ru/projects/education/analysis.md b/src/pages/content/ru/projects/education/analysis.md index 8548840..c4594c7 100644 --- a/src/pages/content/ru/projects/education/analysis.md +++ b/src/pages/content/ru/projects/education/analysis.md @@ -6,5 +6,6 @@ title: Статистические методы в эксперименталь courseName: stat-methods order: 2 published: true +language: ru --- Семестровый курс по выбору для студентов 2-4 курсов. \ No newline at end of file diff --git a/src/pages/content/ru/projects/education/atom.md b/src/pages/content/ru/projects/education/atom.md index cc9cac8..2ae500a 100644 --- a/src/pages/content/ru/projects/education/atom.md +++ b/src/pages/content/ru/projects/education/atom.md @@ -6,6 +6,7 @@ title: История атомного проекта courseName: atom order: 3 published: true +language: ru --- История атомного проекта СССР из первых рук. \ No newline at end of file diff --git a/src/pages/content/ru/projects/education/kotlin.md b/src/pages/content/ru/projects/education/kotlin.md index efbedb1..21f0220 100644 --- a/src/pages/content/ru/projects/education/kotlin.md +++ b/src/pages/content/ru/projects/education/kotlin.md @@ -6,5 +6,6 @@ title: Введение в научное программирование на courseName: kotlin order: 9 published: true +language: ru --- Факультативный курс для всех желающих. \ No newline at end of file diff --git a/src/pages/content/ru/projects/education/labs.md b/src/pages/content/ru/projects/education/labs.md index 3415d95..57266b7 100644 --- a/src/pages/content/ru/projects/education/labs.md +++ b/src/pages/content/ru/projects/education/labs.md @@ -6,6 +6,7 @@ title: Лабораторные работы на кафедре общей фи courseName: biref order: 10 published: true +language: ru --- Группа участвует в усовершенствовании лабораторных работ на кафедре общей физики МФТИ. diff --git a/src/pages/content/ru/projects/education/lowbackground.md b/src/pages/content/ru/projects/education/lowbackground.md index 81b9cf9..5d474af 100644 --- a/src/pages/content/ru/projects/education/lowbackground.md +++ b/src/pages/content/ru/projects/education/lowbackground.md @@ -6,6 +6,7 @@ title: Курс по экспериментам, проводимым в низ courseName: subterranean order: 1 published: true +language: ru --- Курс содержит краткое введение в физику частиц и ядра, которое дополняет программу курса общей физики V семестра. Рассматриваются проблемы современной физики нейтрино: масса покоя, осцилляции, нарушение лептонного числа, стерильные нейтрино. Излагаются новейшие методы исследования нейтрино различного происхождения — детектирование реакторных, солнечных, атмосферных, ускорительных, галактических и гео-нейтрино. Дается обзор подземных, подводных и подледных лабораторий мира, где ведутся низкофоновые эксперименты по физике частиц и астрофизике. \ No newline at end of file diff --git a/src/pages/content/ru/projects/math/deconvolution.md b/src/pages/content/ru/projects/math/deconvolution.md index 1c2178b..52190aa 100644 --- a/src/pages/content/ru/projects/math/deconvolution.md +++ b/src/pages/content/ru/projects/math/deconvolution.md @@ -5,6 +5,7 @@ shortTitle: Обратные задачи title: Статистическая регуляризация некорректных обратных задач order: 1 published: true +language: ru --- Одной из задач, решаемых группой, является популяризация и развитие метода статистической регуляризации, созданного В.Ф. Турчинным в 70-х годах XX века. diff --git a/src/pages/content/ru/projects/math/significance.md b/src/pages/content/ru/projects/math/significance.md index 88848a1..7943873 100644 --- a/src/pages/content/ru/projects/math/significance.md +++ b/src/pages/content/ru/projects/math/significance.md @@ -5,6 +5,7 @@ shortTitle: Функции значимости title: Оптимальное планирование эксперимента при помощи функций значимости параметров order: 2 published: true +language: ru ---
diff --git a/src/pages/content/ru/projects/physics/gerda.md b/src/pages/content/ru/projects/physics/gerda.md index d048d5b..ab94f70 100644 --- a/src/pages/content/ru/projects/physics/gerda.md +++ b/src/pages/content/ru/projects/physics/gerda.md @@ -5,6 +5,7 @@ shortTitle: GERDA title: Международный эксперимент GERDA order: 1 published: true +language: ru --- Эксперимент GERDA (GERmanium Detector Array), реализуемый в Национальной Лаборатории Гран Сассо в Италии, создан для поиска двойного безнейтринного бета-распада Ge-76. В GERDA применяются детекторы из германия, обогащенного изотопом Ge-76. Детекторы погружены в жидкий аргон, который охлаждает их до рабочей температуры (87 К) и, одновременно, служит дополнительной защитой от фонового излучения. Эксперимент проводится в несколько этапов или фаз. На данный момент закончилась вторая фаза эксперимента и планируется третья. diff --git a/src/pages/content/ru/projects/physics/iaxo.md b/src/pages/content/ru/projects/physics/iaxo.md index 934ff33..2688df5 100644 --- a/src/pages/content/ru/projects/physics/iaxo.md +++ b/src/pages/content/ru/projects/physics/iaxo.md @@ -5,6 +5,7 @@ shortTitle: IAXO title: Международная коллаборация IAXO order: 6 published: false +language: ru --- **IAXO** (International Axion Observatory) - это новое поколение аксионного гелиоскопа, чья основная задача - обнаружение аксионов (или других элементарных частиц), в большом количестве излучаемых ядром Солнца. diff --git a/src/pages/content/ru/projects/physics/mm.md b/src/pages/content/ru/projects/physics/mm.md index 7d20f76..e7f73d5 100644 --- a/src/pages/content/ru/projects/physics/mm.md +++ b/src/pages/content/ru/projects/physics/mm.md @@ -5,6 +5,7 @@ shortTitle: Мюонный монитор title: Мюонный монитор для подземных низкофоновых экспериментов order: 2 published: true +language: ru --- **Расположение:** Испания, Канфранк-Эстасьон(Canfranc-Estación), подземная лаборатория в Канфранке(LSC Laboratorio Subterráneo de diff --git a/src/pages/content/ru/projects/physics/numass.md b/src/pages/content/ru/projects/physics/numass.md index fdc8e83..712427a 100644 --- a/src/pages/content/ru/projects/physics/numass.md +++ b/src/pages/content/ru/projects/physics/numass.md @@ -5,6 +5,7 @@ shortTitle: Троицк ню-масс title: Установка по поиску массы нейтрино Троицк ню-масс order: 3 published: true +language: ru --- spectrometer diff --git a/src/pages/content/ru/projects/physics/spectMatter.md b/src/pages/content/ru/projects/physics/spectMatter.md index 3124b08..d64001a 100644 --- a/src/pages/content/ru/projects/physics/spectMatter.md +++ b/src/pages/content/ru/projects/physics/spectMatter.md @@ -5,5 +5,6 @@ shortTitle: Спектаторная материя title: Спектаторная материя order: 5 published: false +language: ru --- diff --git a/src/pages/content/ru/projects/physics/tgf.md b/src/pages/content/ru/projects/physics/tgf.md index 2513632..1ff0761 100644 --- a/src/pages/content/ru/projects/physics/tgf.md +++ b/src/pages/content/ru/projects/physics/tgf.md @@ -5,6 +5,7 @@ shortTitle: TGE/TGF title: Изучение TGE и TGF order: 4 published: false +language: ru --- **Наземные гамма-вспышки (TGF) и переходное гамма-излучение (TGE)** - загадочные явления, происходящие в атмосфере и регистрируемые на Земле. Для того чтобы объяснить их, используется механизм **RREA** (Relativistic Runaway Electron Avalanche), который также может объяснить возникновение молний. diff --git a/src/pages/content/ru/projects/software/biref.md b/src/pages/content/ru/projects/software/biref.md index b7310d8..9550d49 100644 --- a/src/pages/content/ru/projects/software/biref.md +++ b/src/pages/content/ru/projects/software/biref.md @@ -5,6 +5,7 @@ shortTitle: Двулучепреломление title: Анализ данных в лабораторной работе по двулучепреломлению order: 100 published: true +language: ru --- Обработка лабораторной работы по двулучепреломлению с двойной реализацией на Kotlin-JVM/JFreeChart и Kotlin-JS/Plotly. diff --git a/src/pages/content/ru/projects/software/dataforge.md b/src/pages/content/ru/projects/software/dataforge.md index 4654386..bd57ad6 100644 --- a/src/pages/content/ru/projects/software/dataforge.md +++ b/src/pages/content/ru/projects/software/dataforge.md @@ -5,6 +5,7 @@ shortTitle: DataForge title: Система автоматизированной обработки данных DataForge order: 1 published: true +language: ru --- [DataForge](/dataforge) - это современная платформа для сбора и анализа данных, созданная для автоматизации обработки данных в физических экспериментах и не только. \ No newline at end of file diff --git a/src/pages/content/ru/projects/software/kmath.md b/src/pages/content/ru/projects/software/kmath.md index f7e3ce9..09826a8 100644 --- a/src/pages/content/ru/projects/software/kmath.md +++ b/src/pages/content/ru/projects/software/kmath.md @@ -5,6 +5,7 @@ shortTitle: Kmath title: Экспериментальная математическая библиотека на kotlin order: 2 published: true +language: ru --- Экспериментальная библиотека для математических операций на kotlin, построенная по принципу контекстно-ориентированного diff --git a/src/pages/content/ru/projects/software/muon-sim.md b/src/pages/content/ru/projects/software/muon-sim.md index 166085b..d2b4978 100644 --- a/src/pages/content/ru/projects/software/muon-sim.md +++ b/src/pages/content/ru/projects/software/muon-sim.md @@ -5,6 +5,7 @@ shortTitle: Моделирование Muon Monitor title: Модель для анализа данных эксперимента Muon Monitor order: 9 published: true +language: ru --- Моделирование и графическая визуализация регистрации мюонов в эксперименте Muon Monitor написанные на языке Kotlin. diff --git a/src/pages/content/ru/projects/software/prog-seminar.md b/src/pages/content/ru/projects/software/prog-seminar.md index 1fc2795..48d4903 100644 --- a/src/pages/content/ru/projects/software/prog-seminar.md +++ b/src/pages/content/ru/projects/software/prog-seminar.md @@ -5,6 +5,7 @@ shortTitle: Семинар по программированию title: Программирование в экспериментальной физике order: 3 published: true +language: ru --- Не секрет, что проведение и анализ данных современного физического эксперимента практически на каждом этапе связаны diff --git a/src/pages/content/ru/projects/software/reactor.md b/src/pages/content/ru/projects/software/reactor.md index 0ddd6b1..3a6065c 100644 --- a/src/pages/content/ru/projects/software/reactor.md +++ b/src/pages/content/ru/projects/software/reactor.md @@ -5,6 +5,7 @@ shortTitle: Моделирование RL-TGE title: Макро-моделирование для реакторной модели в физике атмосферы order: 10 published: true +language: ru --- Макро-симуляция для реакторной модели в физике электронных лавин в атмосфере на языке Kotlin. diff --git a/src/pages/projects/education.js b/src/pages/projects/education.js index 915fdbf..e8c7588 100644 --- a/src/pages/projects/education.js +++ b/src/pages/projects/education.js @@ -1,37 +1,42 @@ import React from "react" -import { Link, graphql } from "gatsby" +import { graphql } from "gatsby" +import { FormattedMessage, Link, useIntl, injectIntl } from "gatsby-plugin-intl" import Layout from "../../components/layout" +import SEO from "../../components/seo" -const PhysicsPage = (props) => { - const {data} = props; +const SoftwarePage = ({ data }) => { + const intl = useIntl() + const lang = intl.locale + var posts = "" + if ( lang==="ru" ) { posts = data.ru_projects.edges; } + else if ( lang==="en" ) { posts = data.en_projects.edges; } return( + +
    -
  • Физика
  • -
  • Образование
  • -
  • Математика
  • -
  • Программное обеспечение
  • +
  • +
  • +
  • +
-

Образовательные проекты

-

Образовательные проекты в побласти ядерной - физики и методов проведения и анализа результатов физического эксперимента - являются одним из ключевых направлений деятельности группы.

+

+

    - {data.projects.nodes.map(project => { - const link = project.frontmatter.shortTitle; - const id = project.frontmatter.id; + {posts.map(({node}) => { + const link = node.frontmatter.shortTitle; + const id = node.frontmatter.id; return(
  • {link}
  • ) })}
- {data.projects.nodes.map(project => { - const title = project.frontmatter.title; - const id = project.frontmatter.id; - const courseName = project.frontmatter.courseName; + {posts.map(({node}) => { + const title = node.frontmatter.title; + const id = node.frontmatter.id; return(
@@ -39,16 +44,9 @@ const PhysicsPage = (props) => {

{title}

-

-
-

- Подробная информация доступна на странице курса -

-
-
) @@ -57,21 +55,34 @@ const PhysicsPage = (props) => { ) } -export default PhysicsPage +export default injectIntl(SoftwarePage) export const query = graphql` query{ - projects: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: "project_education"}, published: {eq: true}}}, + ru_projects: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: "project_education"}, published: {eq: true}, language: {eq: "ru"}}}, sort: {fields: [frontmatter___order], order: ASC}){ - nodes{ + edges{ + node{ html frontmatter{ shortTitle title id - courseName } } - } + }} + + en_projects: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: "project_education"}, published: {eq: true}, language: {eq: "en"}}}, + sort: {fields: [frontmatter___order], order: ASC}){ + edges{ + node{ + html + frontmatter{ + shortTitle + title + id + } + } + }} } ` \ No newline at end of file diff --git a/src/pages/projects/math.js b/src/pages/projects/math.js index ad795eb..4546e05 100644 --- a/src/pages/projects/math.js +++ b/src/pages/projects/math.js @@ -1,38 +1,42 @@ import React from "react" -import { Link, graphql } from "gatsby" +import { graphql } from "gatsby" +import { FormattedMessage, Link, useIntl, injectIntl } from "gatsby-plugin-intl" import Layout from "../../components/layout" +import SEO from "../../components/seo" -const PhysicsPage = (props) => { - const {data} = props; +const SoftwarePage = ({ data }) => { + const intl = useIntl() + const lang = intl.locale + var posts = "" + if ( lang==="ru" ) { posts = data.ru_projects.edges; } + else if ( lang==="en" ) { posts = data.en_projects.edges; } return( + +
    -
  • Физика
  • -
  • Образование
  • -
  • Математика
  • -
  • Программное обеспечение
  • +
  • +
  • +
  • +
-

Математические методы

-

Математическое моделирование физических - процессов и математические методы анализа данных являются неотъемлимой - частью современной экспериментальной физики. Постоянно возникает потребность - как в совершенствовании существующих методов, так и в разработке принципиально - новых подходов.

+

+

    - {data.projects.nodes.map(project => { - const link = project.frontmatter.shortTitle; - const id = project.frontmatter.id; + {posts.map(({node}) => { + const link = node.frontmatter.shortTitle; + const id = node.frontmatter.id; return(
  • {link}
  • ) })}
- {data.projects.nodes.map(project => { - const title = project.frontmatter.title; - const id = project.frontmatter.id; + {posts.map(({node}) => { + const title = node.frontmatter.title; + const id = node.frontmatter.id; return(
@@ -40,7 +44,7 @@ const PhysicsPage = (props) => {

{title}

@@ -51,13 +55,14 @@ const PhysicsPage = (props) => { ) } -export default PhysicsPage +export default injectIntl(SoftwarePage) export const query = graphql` query{ - projects: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: "project_math"}, published: {eq: true}}}, + ru_projects: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: "project_math"}, published: {eq: true}, language: {eq: "ru"}}}, sort: {fields: [frontmatter___order], order: ASC}){ - nodes{ + edges{ + node{ html frontmatter{ shortTitle @@ -65,6 +70,19 @@ export const query = graphql` id } } - } + }} + + en_projects: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: "project_math"}, published: {eq: true}, language: {eq: "en"}}}, + sort: {fields: [frontmatter___order], order: ASC}){ + edges{ + node{ + html + frontmatter{ + shortTitle + title + id + } + } + }} } ` \ No newline at end of file diff --git a/src/pages/projects/physics.js b/src/pages/projects/physics.js index 9739e27..74a65f1 100644 --- a/src/pages/projects/physics.js +++ b/src/pages/projects/physics.js @@ -1,38 +1,42 @@ import React from "react" -import { Link, graphql } from "gatsby" -import Layout from "../../components/layout" +import { graphql } from "gatsby" +import { FormattedMessage, Link, useIntl, injectIntl } from "gatsby-plugin-intl" -const PhysicsPage = (props) => { - const {data} = props; +import Layout from "../../components/layout" +import SEO from "../../components/seo" + +const PhysicsPage = ({ data }) => { + const intl = useIntl() + const lang = intl.locale + var posts = "" + if ( lang==="ru" ) { posts = data.ru_projects.edges; } + else if ( lang==="en" ) { posts = data.en_projects.edges; } return( +
    -
  • Физика
  • -
  • Образование
  • -
  • Математика
  • -
  • Программное обеспечение
  • +
  • +
  • +
  • +
-

Ядерная физика

-

Традиционно к ядерной физике относят не только исследования, связанные со структурой - атомного ядра и ядерными реакциями, но и всю физику элементарных частиц, - а также отчасти некоторые разделы астрофизики и космологии. - В настоящее время усилия нашей группы сосредоточены в области так называемых неускорительных - экспериментов в физике элементарных частиц.

+

+

    - {data.projects.nodes.map(project => { - const link = project.frontmatter.shortTitle; - const id = project.frontmatter.id; + {posts.map(({node}) => { + const link = node.frontmatter.shortTitle; + const id = node.frontmatter.id; return( -
  • {link}
  • +
  • {link}
  • ) })}
- {data.projects.nodes.map(project => { - const title = project.frontmatter.title; - const id = project.frontmatter.id; + {posts.map(({node}) => { + const title = node.frontmatter.title; + const id = node.frontmatter.id; return(
@@ -40,7 +44,7 @@ const PhysicsPage = (props) => {

{title}

@@ -51,13 +55,14 @@ const PhysicsPage = (props) => { ) } -export default PhysicsPage +export default injectIntl(PhysicsPage) export const query = graphql` query{ - projects: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: "project_physics"}, published: {eq: true}}}, + ru_projects: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: "project_physics"}, published: {eq: true}, language: {eq: "ru"}}}, sort: {fields: [frontmatter___order], order: ASC}){ - nodes{ + edges{ + node{ html frontmatter{ shortTitle @@ -65,6 +70,19 @@ export const query = graphql` id } } - } + }} + + en_projects: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: "project_physics"}, published: {eq: true}, language: {eq: "en"}}}, + sort: {fields: [frontmatter___order], order: ASC}){ + edges{ + node{ + html + frontmatter{ + shortTitle + title + id + } + } + }} } ` \ No newline at end of file diff --git a/src/pages/projects/software.js b/src/pages/projects/software.js index 47f536c..8823029 100644 --- a/src/pages/projects/software.js +++ b/src/pages/projects/software.js @@ -1,38 +1,42 @@ import React from "react" -import { Link, graphql } from "gatsby" +import { graphql } from "gatsby" +import { FormattedMessage, Link, useIntl, injectIntl } from "gatsby-plugin-intl" import Layout from "../../components/layout" +import SEO from "../../components/seo" -const PhysicsPage = (props) => { - const {data} = props; +const SoftwarePage = ({ data }) => { + const intl = useIntl() + const lang = intl.locale + var posts = "" + if ( lang==="ru" ) { posts = data.ru_projects.edges; } + else if ( lang==="en" ) { posts = data.en_projects.edges; } return( + +
    -
  • Физика
  • -
  • Образование
  • -
  • Математика
  • -
  • Программное обеспечение
  • +
  • +
  • +
  • +
-

Научное программное обеспечение

-

Современные эксперименты в физике частиц - немыслимы без специального программного обеспечения, которое требуется как - на этапе проведения эксперимента и сбора данных, так и при обработке результатов. - Разработка научного программного обеспечения является дополнительным, - но существенным направлением работы группы.

+

+

    - {data.projects.nodes.map(project => { - const link = project.frontmatter.shortTitle; - const id = project.frontmatter.id; + {posts.map(({node}) => { + const link = node.frontmatter.shortTitle; + const id = node.frontmatter.id; return(
  • {link}
  • ) })}
- {data.projects.nodes.map(project => { - const title = project.frontmatter.title; - const id = project.frontmatter.id; + {posts.map(({node}) => { + const title = node.frontmatter.title; + const id = node.frontmatter.id; return(
@@ -40,7 +44,7 @@ const PhysicsPage = (props) => {

{title}

@@ -51,13 +55,14 @@ const PhysicsPage = (props) => { ) } -export default PhysicsPage +export default injectIntl(SoftwarePage) export const query = graphql` query{ - projects: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: "project_software"}, published: {eq: true}}}, + ru_projects: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: "project_software"}, published: {eq: true}, language: {eq: "ru"}}}, sort: {fields: [frontmatter___order], order: ASC}){ - nodes{ + edges{ + node{ html frontmatter{ shortTitle @@ -65,6 +70,19 @@ export const query = graphql` id } } - } + }} + + en_projects: allMarkdownRemark(filter: {frontmatter: {content_type: {eq: "project_software"}, published: {eq: true}, language: {eq: "en"}}}, + sort: {fields: [frontmatter___order], order: ASC}){ + edges{ + node{ + html + frontmatter{ + shortTitle + title + id + } + } + }} } ` \ No newline at end of file