Merge branch 'develop' into сja
This commit is contained in:
commit
a32731c422
7 files changed
+3215
-21208
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,117 @@
|
||||
<!-- Раздел с назначенным тестированием -->
|
||||
<template>
|
||||
<div class="my-4 text-h5"> {{ title }} </div>
|
||||
<v-container :fluid="true">
|
||||
<v-row>
|
||||
<v-text-field
|
||||
v-model="search"
|
||||
append-inner-icon="mdi-magnify"
|
||||
label="Найти тестирование по названию"
|
||||
variant="solo"
|
||||
@click:append-inner="searchTest"
|
||||
clearable/>
|
||||
</v-row>
|
||||
</v-container>
|
||||
<!-- Карточка где буду отрисовываться тесты в цикле -->
|
||||
<v-card v-for="cardValue in searchTest" :key="cardValue.id" class="my-2">
|
||||
<v-row class="pa-2">
|
||||
<v-col cols="1">
|
||||
<v-img height="125" :src="cardValue.file" />
|
||||
</v-col>
|
||||
<v-col cols="auto" class="d-flex flex-grow-1">
|
||||
<div class="d-flex flex-column justify-center flex-grow-1">
|
||||
<div class="text-body-1 font-weight-medium mb-2">{{ cardValue.name }}</div>
|
||||
<div class="text-body-1 text-disabled mb-2">{{ cardValue.description }}</div>
|
||||
<div class="d-flex ga-4">
|
||||
<div v-for="icon in icons">
|
||||
<v-icon :color="icon.color" :icon="icon.icon" size="large" />
|
||||
<span class="ml-1">{{ cardValue[icon.field] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</v-col>
|
||||
<v-col cols="auto" class="align-self-center">
|
||||
<slot name="buttons"></slot>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
<v-container v-if="!searchTest.length" :fluid="true">
|
||||
<v-row class="align-center flex-column">
|
||||
<v-icon icon="mdi-note-off-outline" color="grey-lighten-1" size="x-large" />
|
||||
<v-card-title class="text-h4 text-grey-lighten-1">Данные не найдены</v-card-title>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref, computed } from 'vue';
|
||||
|
||||
export default {
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: 'Не забыть передать тайтл сюда!'
|
||||
},
|
||||
testingCard: {
|
||||
type: Array,
|
||||
default: () => [
|
||||
{
|
||||
id: 1,
|
||||
name: 'Комплекс тестовых вопросов на знание в области информационно-коммуникационных технологий',
|
||||
type: 'test',
|
||||
description: 'Краткое описание тестирования',
|
||||
file: 'https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg',
|
||||
dateend: `до ${'31.02.2025'}`,
|
||||
questionCount: 20,
|
||||
time: '15 минут',
|
||||
attempts_number: 1,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: 'Удобство раздела тестирования',
|
||||
type: 'test',
|
||||
description: 'Опрос среди сотрудников ЦОД МФ',
|
||||
file: 'https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg',
|
||||
dateend: `до ${'31.06.2025'}`,
|
||||
questionCount: 28,
|
||||
time: '15 минут',
|
||||
},
|
||||
]
|
||||
}
|
||||
},
|
||||
setup(props) {
|
||||
const search = ref('');
|
||||
const icons = [
|
||||
{
|
||||
icon: 'mdi-calendar-clock',
|
||||
field: 'dateend',
|
||||
color: 'teal-darken-1',
|
||||
},
|
||||
{
|
||||
icon: 'mdi-clipboard-list-outline',
|
||||
field: 'questionCount',
|
||||
color: 'teal-darken-1',
|
||||
},
|
||||
// иконки для использования на вкладке назначенные использовать можно эти
|
||||
// {
|
||||
// icon: 'mdi-timer-outline',
|
||||
// field: 'time',
|
||||
// color: 'teal-darken-1',
|
||||
// },
|
||||
// {
|
||||
// icon: 'mdi-fire',
|
||||
// field: 'attempts_number',
|
||||
// color: '#FF9800'
|
||||
// },
|
||||
]
|
||||
|
||||
const searchTest = computed(() => {
|
||||
if (!search.value) return props.testingCard
|
||||
return props.testingCard.filter(item => item.name.toLowerCase().includes(search.value.toLowerCase()))
|
||||
})
|
||||
|
||||
return { icons, search, searchTest }
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
@@ -1,27 +1,60 @@
|
||||
<template>
|
||||
<!-- <v-container>
|
||||
<TimerUI :endTime="end" />
|
||||
<SmallTimer :endTime="end"/>
|
||||
</v-container> -->
|
||||
<VoteCard />
|
||||
<v-container :fluid="true">
|
||||
<v-tabs v-model="activeTab" class="mb-2 text-teal-darken-4">
|
||||
<v-tab v-for="tab in tabs" :key="tab.value" :value="tab.value"> {{ tab.title }} </v-tab>
|
||||
</v-tabs>
|
||||
<v-tabs-window v-model="activeTab" class="border-t-thin">
|
||||
<v-tabs-window-item class="my-2 ">
|
||||
<CatalogTest />
|
||||
</v-tabs-window-item>
|
||||
<v-tabs-window-item>
|
||||
<div>Сюда заврешенные!</div>
|
||||
</v-tabs-window-item>
|
||||
<v-tabs-window-item>
|
||||
<CatalogTest title="Каталог">
|
||||
<template #buttons>
|
||||
<v-btn color="#00897B1F" class="mr-2 text-teal-darken-1" elevation="0">
|
||||
Тренироваться
|
||||
</v-btn>
|
||||
<v-btn color="teal-darken-1" elevation="0">
|
||||
Пройти
|
||||
</v-btn>
|
||||
</template>
|
||||
</CatalogTest>
|
||||
</v-tabs-window-item>
|
||||
</v-tabs-window>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// import TimerUI from "@/components/secret/TimerUI.vue"
|
||||
// import SmallTimer from "@/components/secret/SmallTimer.vue"
|
||||
import VoteCard from "@/components/vote/VoteCard.vue"
|
||||
import CatalogTest from "@/components/testing/CatalogTest.vue";
|
||||
import { ref } from "vue"
|
||||
|
||||
export default {
|
||||
components: {
|
||||
// TimerUI,
|
||||
// SmallTimer,
|
||||
VoteCard
|
||||
CatalogTest
|
||||
},
|
||||
setup() {
|
||||
// const end = new Date(2025, 0, 14, 15, 58, 5)
|
||||
const activeTab = ref(0);
|
||||
|
||||
const test = [
|
||||
{
|
||||
text: 'awdawd',
|
||||
},
|
||||
{
|
||||
text: 'awdawd',
|
||||
},
|
||||
]
|
||||
|
||||
const tabs = ref([
|
||||
{ value: 0, title: `Назначенные (${test.length})`, },
|
||||
{ value: 1, title: 'Завершенные', },
|
||||
{ value: 2, title: 'Каталог', },
|
||||
])
|
||||
|
||||
return {
|
||||
// end
|
||||
activeTab,
|
||||
tabs
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user