From e4f7a53bce7c4db5322df8b528ea7c3f508c9564 Mon Sep 17 00:00:00 2001 From: Denis Voinovich Date: Mon, 2 Jun 2025 10:53:10 +0300 Subject: [PATCH 1/7] =?UTF-8?q?fix=20[P-237]:=20=D1=82=D0=B8=D1=82=D1=83?= =?UTF-8?q?=D0=BB=20=D1=82=D0=B5=D1=81=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/router/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/front/src/router/index.js b/src/front/src/router/index.js index ddf603cc8..cd457b15a 100644 --- a/src/front/src/router/index.js +++ b/src/front/src/router/index.js @@ -181,7 +181,11 @@ const routes = [ path: "/test/testdetail/:id", name: "TestDetail", component: () => - import("@/components/testing/DetailCardTest.vue") + import("@/components/testing/DetailCardTest.vue"), + meta: { + title: "Тестирование", + ico: "mdi-account", + }, }, { path: '/secret', From 06e80baff83dabe2bd5aaad1b301b8b44e53bd7f Mon Sep 17 00:00:00 2001 From: Denis Voinovich Date: Mon, 2 Jun 2025 10:58:09 +0300 Subject: [PATCH 2/7] =?UTF-8?q?fix=20[P-237]:=20=D0=BE=D0=BA=D0=BE=D0=BD?= =?UTF-8?q?=D1=87=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B4=D0=BB=D1=8F=20=D0=BC?= =?UTF-8?q?=D0=B8=D0=BD=D1=83=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/testing/BodyDetailTesting.vue | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/front/src/components/testing/BodyDetailTesting.vue b/src/front/src/components/testing/BodyDetailTesting.vue index 8b5145784..ee00baa5c 100644 --- a/src/front/src/components/testing/BodyDetailTesting.vue +++ b/src/front/src/components/testing/BodyDetailTesting.vue @@ -12,7 +12,7 @@ {{ data?.description }}

- Время на прохождение — {{ data?.time }} минут + Время на прохождение — {{ data?.time }} {{ timeWordDeclension }}

@@ -43,12 +43,25 @@ export default { default: false } }, - setup() { + setup(props) { const route = useRoute(); const isExamMode = computed(() => route.query.mode === 'exam'); + const timeWordDeclension = computed(() => { + if (!props.data?.time) return 'минут'; + + const lastDigit = props.data.time % 10; + const lastTwoDigits = props.data.time % 100; + + if (lastTwoDigits >= 11 && lastTwoDigits <= 14) return 'минут'; + if (lastDigit === 1) return 'минута'; + if (lastDigit >= 2 && lastDigit <= 4) return 'минуты'; + return 'минут'; + }); + return { - isExamMode + isExamMode, + timeWordDeclension }; } }; From 5d437e7bd1d79772c3cfaa5a505cdcbf92080fe4 Mon Sep 17 00:00:00 2001 From: Denis Voinovich Date: Mon, 2 Jun 2025 11:08:32 +0300 Subject: [PATCH 3/7] =?UTF-8?q?fix=20[P-239]:=20=20=D1=84=D0=B8=D0=BA?= =?UTF-8?q?=D1=81=20=D1=80=D0=B0=D0=B7=D0=BC=D0=B5=D1=80=D0=B0=20=D0=BA?= =?UTF-8?q?=D0=B0=D1=80=D1=82=D0=B8=D0=BD=D0=BE=D0=BA=20=D0=B2=20=D0=BE?= =?UTF-8?q?=D1=82=D0=B2=D0=B5=D1=82=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/components/testing/QuestionBlock.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/front/src/components/testing/QuestionBlock.vue b/src/front/src/components/testing/QuestionBlock.vue index 5d6cd7343..afb2bf184 100644 --- a/src/front/src/components/testing/QuestionBlock.vue +++ b/src/front/src/components/testing/QuestionBlock.vue @@ -1,7 +1,7 @@