Merge remote-tracking branch 'origin/сja' into Alex
This commit is contained in:
commit
8f9f49b8ee
14 files changed
+3367
-21249
No files matched your search
@@ -1,19 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"module": "esnext",
|
||||
"baseUrl": "./",
|
||||
"moduleResolution": "node",
|
||||
"paths": {
|
||||
"@/*": [
|
||||
"src/*"
|
||||
]
|
||||
},
|
||||
"lib": [
|
||||
"esnext",
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"scripthost"
|
||||
]
|
||||
}
|
||||
}
|
||||
Generated
+3017
-21121
File diff suppressed because it is too large.
Load diff
+28
-48
@@ -6,67 +6,47 @@
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"lint": "eslint . --fix --ignore-path .gitignore",
|
||||
"storybook": "storybook dev -p 6006",
|
||||
"build-storybook": "storybook build"
|
||||
"docs": "vuepress build docs"
|
||||
},
|
||||
"dependencies": {
|
||||
"-": "^0.0.1",
|
||||
"@ckeditor/ckeditor5-build-classic": "^41.4.2",
|
||||
"@ckeditor/ckeditor5-dev-translations": "^40.0.0",
|
||||
"@ckeditor/ckeditor5-vue": "^5.1.0",
|
||||
"@mdi/font": "7.0.96",
|
||||
"@vue-flow/background": "^1.3.0",
|
||||
"@vue-flow/controls": "^1.1.1",
|
||||
"@vue-flow/core": "^1.33.5",
|
||||
"@vue-flow/minimap": "^1.4.0",
|
||||
"@vue-flow/node-resizer": "^1.3.6",
|
||||
"@ckeditor/ckeditor5-build-classic": "^44.1.0",
|
||||
"@ckeditor/ckeditor5-dev-translations": "^43.0.1",
|
||||
"@ckeditor/ckeditor5-vue": "^7.3.0",
|
||||
"@mdi/font": "7.4.47",
|
||||
"@vuelidate/core": "^2.0.3",
|
||||
"@vuelidate/validators": "^2.0.3",
|
||||
"@vuelidate/validators": "^2.0.4",
|
||||
"adapter": "^1.0.0-beta.10",
|
||||
"axios": "^1.4.0",
|
||||
"chart.js": "^4.4.1",
|
||||
"chartjs": "^0.3.24",
|
||||
"axios": "^1.7.9",
|
||||
"chart.js": "^4.4.7",
|
||||
"chartjs-adapter-moment": "^1.0.1",
|
||||
"chartjs-plugin-datalabels": "^2.2.0",
|
||||
"date-fns": "^2.30.0",
|
||||
"express-vue": "^5.12.0",
|
||||
"date-fns": "^4.1.0",
|
||||
"file-saver": "^2.0.5",
|
||||
"ical.js": "^2.0.0",
|
||||
"ical.js": "^2.1.0",
|
||||
"moment": "^2.30.1",
|
||||
"pinia": "^2.0.23",
|
||||
"roboto-fontface": "*",
|
||||
"rrule": "^2.8.1",
|
||||
"v-tooltip": "^2.1.3",
|
||||
"vee-validate": "^4.12.8",
|
||||
"vue": "^3.2.0",
|
||||
"vue-cal": "^4.8.1",
|
||||
"vue-chartjs": "^5.3.0",
|
||||
"pinia": "^2.3.1",
|
||||
"rrule": "^2.8.1",
|
||||
"vue": "^3.5.13",
|
||||
"vue-cal": "^4.10.2",
|
||||
"vue-chartjs": "^5.3.2",
|
||||
"vue-jwt-decode": "^0.1.0",
|
||||
"vue-pdf-embed": "^2.0.3",
|
||||
"vue-router": "^4.0.0",
|
||||
"vue3-autocounter": "^1.0.6",
|
||||
"vue-pdf-embed": "^2.1.2",
|
||||
"vue-router": "^4.5.0",
|
||||
"vue3-autocounter": "^1.0.8",
|
||||
"vuelidate": "^0.7.7",
|
||||
"vuetify": "^3.6.11",
|
||||
"webfontloader": "^1.0.0",
|
||||
"yup": "^1.4.0"
|
||||
"vuetify": "^3.7.8",
|
||||
"webfontloader": "^1.6.28"
|
||||
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-essentials": "^7.4.6",
|
||||
"@storybook/addon-interactions": "^7.4.6",
|
||||
"@storybook/addon-links": "^7.4.6",
|
||||
"@storybook/blocks": "^7.4.6",
|
||||
"@storybook/testing-library": "^0.2.2",
|
||||
"@storybook/vue3": "^7.4.6",
|
||||
"@storybook/vue3-vite": "^7.4.6",
|
||||
"@vitejs/plugin-vue": "^4.0.0",
|
||||
"@vitejs/plugin-vue": "^5.2.1",
|
||||
"@vue-leaflet/vue-leaflet": "^0.10.1",
|
||||
"eslint": "^8.22.0",
|
||||
"eslint-plugin-storybook": "^0.6.14",
|
||||
"eslint-plugin-vue": "^9.3.0",
|
||||
"eslint": "^9.19.0",
|
||||
"eslint-plugin-vue": "^9.32.0",
|
||||
"leaflet": "^1.9.4",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"vite": "^4.2.0",
|
||||
"vite-plugin-vuetify": "^1.0.0"
|
||||
"sass-embedded": "^1.83.4",
|
||||
"vite": "^6.0.11",
|
||||
"vite-plugin-vuetify": "^2.0.4"
|
||||
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -121,11 +121,11 @@
|
||||
import { formatComa } from "@/utils/universal_functions";
|
||||
import { ref } from "vue";
|
||||
import { axiosApiInstance } from "@/utils/axios-api";
|
||||
import CKEditor from "@ckeditor/ckeditor5-vue";
|
||||
import ClassicEditor from "@ckeditor/ckeditor5-build-classic";
|
||||
import "@ckeditor/ckeditor5-build-classic/build/translations/ru";
|
||||
import EventDialogEditParticipant from "./event-dialog-edit-participant.vue";
|
||||
import eventDialogEdit from "@/components/calendar_of_events/event-dialog-edit.vue";
|
||||
// import CKEditor from "@ckeditor/ckeditor5-vue";
|
||||
// import ClassicEditor from "@ckeditor/ckeditor5-build-classic";
|
||||
// import "@ckeditor/ckeditor5-build-classic/build/translations/ru";
|
||||
// import EventDialogEditParticipant from "./event-dialog-edit-participant.vue";
|
||||
|
||||
|
||||
export default {
|
||||
props: {
|
||||
@@ -136,8 +136,8 @@ export default {
|
||||
},
|
||||
components: {
|
||||
// Use the <ckeditor> component in this view.
|
||||
ckeditor: CKEditor.component,
|
||||
EventDialogEditParticipant,
|
||||
// ckeditor: CKEditor.component,
|
||||
// EventDialogEditParticipant,
|
||||
},
|
||||
|
||||
setup(props, { emit }) {
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
<template>
|
||||
<v-card-title>{{ item.title }}</v-card-title>
|
||||
<v-card-subtitle>
|
||||
<div>{{ item.description }}</div>
|
||||
</v-card-subtitle>
|
||||
<v-card-actions class="ga-4">
|
||||
<div>
|
||||
<v-icon color="teal-darken-4">mdi-calendar</v-icon>
|
||||
<strong> До:</strong> {{ new Date(item.date).toLocaleDateString() }}
|
||||
</div>
|
||||
<div>
|
||||
<v-icon color="teal-darken-4">mdi-calendar-text</v-icon>
|
||||
<strong> Вопросов:</strong> {{ item.questions }}
|
||||
</div>
|
||||
<div v-if="item.time">
|
||||
<v-icon color="teal-darken-4">mdi-clock</v-icon>
|
||||
<strong> Время:</strong> {{ item.time }}
|
||||
</div>
|
||||
<div v-if="item.attempts">
|
||||
<v-icon color="deep-orange-accent-4">mdi-alert-outline</v-icon>
|
||||
<strong> Попытки:</strong> {{ item.attempts }}
|
||||
</div>
|
||||
</v-card-actions>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
item: {
|
||||
type: Object,
|
||||
required: true
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
@@ -1,49 +1,41 @@
|
||||
<template>
|
||||
<v-container>
|
||||
<v-tabs v-model="activeTab" class="mb-4 text-teal-darken-4">
|
||||
<v-tab>Назначенные ({{ tests.length }})</v-tab>
|
||||
<v-tab>Завершенные</v-tab>
|
||||
<v-tab>Назначенные ({{ scheduledTests.length }})</v-tab>
|
||||
<v-tab>Завершенные ({{ completedTests.length }})</v-tab>
|
||||
<v-tab>Каталог</v-tab>
|
||||
</v-tabs>
|
||||
|
||||
<v-tabs-window v-model="activeTab">
|
||||
<!-- Назначенные -->
|
||||
<v-tabs-window-item>
|
||||
<v-card class="mb-6" outlined>
|
||||
<v-card outlined>
|
||||
<v-card-title>
|
||||
Назначенные
|
||||
</v-card-title>
|
||||
|
||||
<v-text-field
|
||||
v-model="search"
|
||||
class="mb-4 mx-4"
|
||||
class="mx-4"
|
||||
clearable
|
||||
label="Найти тестирование по названию"
|
||||
variant="outlined"
|
||||
></v-text-field>
|
||||
/>
|
||||
|
||||
<v-data-table
|
||||
:headers="headers"
|
||||
:items="filteredTests"
|
||||
:items="filteredScheduledTests"
|
||||
hide-default-footer
|
||||
hide-default-header
|
||||
item-value="id"
|
||||
>
|
||||
|
||||
<template #item.image="{ item }">
|
||||
<v-img :src="item.image" alt="Test Image" height="200" width="200"/>
|
||||
<v-img :src="item.image" alt="Test Image" height="100" width="100"/>
|
||||
</template>
|
||||
|
||||
<template #item.title="{ item }">
|
||||
<v-card-title>
|
||||
{{ item.title }}
|
||||
</v-card-title>
|
||||
<v-card-subtitle>
|
||||
<div>{{ item.description }}</div>
|
||||
</v-card-subtitle>
|
||||
<v-card-actions class="ga-4">
|
||||
<div><v-icon color="teal-darken-4">mdi-calendar</v-icon><strong> До:</strong> {{ item.date }}</div>
|
||||
<div><v-icon color="teal-darken-4">mdi-calendar-text</v-icon> <strong> Вопросов:</strong> {{ item.questions }}</div>
|
||||
<div v-if="item.time"><v-icon color="teal-darken-4">mdi-clock</v-icon><strong> Время:</strong> {{ item.time }}</div>
|
||||
<div v-if="item.attempts"><v-icon color="deep-orange-accent-4">mdi-alert-outline</v-icon><strong> Попытки:</strong> {{ item.attempts }}</div>
|
||||
</v-card-actions>
|
||||
<TestCard :item="item"/>
|
||||
</template>
|
||||
|
||||
<template #item.actions="{ item }">
|
||||
@@ -55,32 +47,82 @@
|
||||
</v-card>
|
||||
</v-tabs-window-item>
|
||||
|
||||
<!-- Завершенные -->
|
||||
<v-tabs-window-item>
|
||||
<v-card class="mb-6" outlined>
|
||||
<v-card-title>
|
||||
Завершенные
|
||||
</v-card-title>
|
||||
<p>Список завершенных тестов будет здесь.</p>
|
||||
<v-data-table
|
||||
:headers="headers"
|
||||
:items="filteredCompletedTests"
|
||||
hide-default-footer
|
||||
hide-default-header
|
||||
item-value="id"
|
||||
>
|
||||
<template #item.image="{ item }">
|
||||
<v-img :src="item.image" alt="Test Image" height="100" width="100"/>
|
||||
</template>
|
||||
|
||||
<template #item.title="{ item }">
|
||||
<TestCard :item="item"/>
|
||||
</template>
|
||||
|
||||
<template #item.actions="{ item }">
|
||||
<v-btn color="teal-darken-4">Посмотреть результаты</v-btn>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-card>
|
||||
</v-tabs-window-item>
|
||||
|
||||
<!-- Каталог -->
|
||||
<v-tabs-window-item>
|
||||
<v-card class="mb-6" outlined>
|
||||
<v-card outlined>
|
||||
<v-card-title>
|
||||
Каталог
|
||||
</v-card-title>
|
||||
<p>Список доступных тестов будет здесь.</p>
|
||||
|
||||
<v-text-field
|
||||
v-model="search"
|
||||
class="mx-4"
|
||||
clearable
|
||||
label="Найти тестирование по названию"
|
||||
variant="outlined"
|
||||
/>
|
||||
|
||||
<v-data-table
|
||||
:headers="headers"
|
||||
:items="filteredTests"
|
||||
hide-default-footer
|
||||
hide-default-header
|
||||
item-value="id"
|
||||
>
|
||||
<template #item.image="{ item }">
|
||||
<v-img :src="item.image" alt="Test Image" height="100" width="100"/>
|
||||
</template>
|
||||
|
||||
<template #item.title="{ item }">
|
||||
<TestCard :item="item"/>
|
||||
</template>
|
||||
|
||||
<template #item.actions="{ item }">
|
||||
<v-btn v-if="item.type === 'test'" class="mr-4" color="teal-darken-4" variant="tonal">Тренироваться
|
||||
</v-btn>
|
||||
<v-btn color="teal-darken-4">Пройти</v-btn>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-card>
|
||||
</v-tabs-window-item>
|
||||
</v-tabs-window>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
import {computed, ref} from 'vue';
|
||||
import TestCard from "@/components/tests/TestCard.vue";
|
||||
|
||||
export default {
|
||||
components: {TestCard},
|
||||
setup() {
|
||||
const activeTab = ref(0);
|
||||
const search = ref('');
|
||||
@@ -97,7 +139,7 @@ export default {
|
||||
title: 'Комплекс тестовых вопросов на знание в области информационно-коммуникационных технологий',
|
||||
type: 'test',
|
||||
description: 'Краткое описание тестирования',
|
||||
date: '28.02.2025',
|
||||
date: '2025-02-28',
|
||||
questions: 20,
|
||||
time: '15 минут',
|
||||
attempts: 1,
|
||||
@@ -108,27 +150,67 @@ export default {
|
||||
title: 'Удобство раздела тестирования',
|
||||
type: 'survey',
|
||||
description: 'Опрос среди сотрудников ЦОД МФ',
|
||||
date: '22.06.2025',
|
||||
date: '2025-06-22',
|
||||
questions: 28,
|
||||
time: null,
|
||||
attempts: null,
|
||||
image: 'https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg',
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: 'Законченная карточка законченного тестирования',
|
||||
type: 'survey',
|
||||
description: 'законченное описание законченного тестирования',
|
||||
date: '2024-06-22',
|
||||
questions: 1,
|
||||
time: null,
|
||||
attempts: null,
|
||||
image: 'https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg',
|
||||
},
|
||||
]);
|
||||
|
||||
const filteredTests = computed(() => {
|
||||
if (!search.value) return tests.value;
|
||||
return tests.value.filter((test) =>
|
||||
const currentDate = new Date();
|
||||
|
||||
const scheduledTests = computed(() => {
|
||||
return tests.value.filter(test => new Date(test.date) > currentDate);
|
||||
});
|
||||
|
||||
const completedTests = computed(() => {
|
||||
return tests.value.filter(test => new Date(test.date) <= currentDate);
|
||||
});
|
||||
|
||||
const filteredScheduledTests = computed(() => {
|
||||
if (!search.value) return scheduledTests.value;
|
||||
return scheduledTests.value.filter(test =>
|
||||
test.title.toLowerCase().includes(search.value.toLowerCase())
|
||||
);
|
||||
});
|
||||
|
||||
const filteredCompletedTests = computed(() => {
|
||||
if (!search.value) return completedTests.value;
|
||||
return completedTests.value.filter(test =>
|
||||
test.title.toLowerCase().includes(search.value.toLowerCase())
|
||||
);
|
||||
});
|
||||
|
||||
const filteredTests = computed(() => {
|
||||
if (!search.value) return tests.value.filter(test => new Date(test.date) > currentDate);
|
||||
return tests.value.filter(test => new Date(test.date) > currentDate)
|
||||
.filter((test) =>
|
||||
test.title.toLowerCase().includes(search.value.toLowerCase())
|
||||
);
|
||||
});
|
||||
|
||||
return {
|
||||
activeTab,
|
||||
search,
|
||||
headers,
|
||||
tests,
|
||||
filteredTests,
|
||||
filteredScheduledTests,
|
||||
filteredCompletedTests,
|
||||
scheduledTests,
|
||||
completedTests,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user