diff --git a/docs/.vitepress/theme/components/TestRunner.vue b/docs/.vitepress/theme/components/TestRunner.vue deleted file mode 100644 index da702d4ec..000000000 --- a/docs/.vitepress/theme/components/TestRunner.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - - diff --git a/docs/.vitepress/theme/index.js b/docs/.vitepress/theme/index.js deleted file mode 100644 index 66163ce60..000000000 --- a/docs/.vitepress/theme/index.js +++ /dev/null @@ -1,19 +0,0 @@ -import DefaultTheme from 'vitepress/theme'; -import { withMermaid } from 'vitepress-plugin-mermaid'; -import TestRunner from './components/TestRunner.vue'; - -export default withMermaid({ - ...DefaultTheme, - themeConfig: { - search: { - provider: 'local', - }, - }, - mermaid: {}, - mermaidPlugin: { - class: 'mermaid my-class', - }, - enhanceApp({ app }) { - app.component('TestRunner', TestRunner); - }, -}); diff --git a/docs/README.md b/docs/README.md deleted file mode 100644 index 8ce466674..000000000 --- a/docs/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Документация - -⚠️ Оригинальный README.md не найден. \ No newline at end of file diff --git a/docs/index.md b/docs/index.md deleted file mode 100644 index fcde745f3..000000000 --- a/docs/index.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -# https://vitepress.dev/reference/default-theme-home-page -layout: home - -hero: - name: "Портал" - text: "Документация по порталу" - actions: - - theme: brand - text: Документация - link: /README - -features: - - title: Инструкция - details: Подробная инструкция по установке - link: /guides/install - - title: Инструкция по ведению и заполнению - details: Подробная инструкция по ведению и заполнению - link: /guides/usage - - title: Правила коммитов - details: Подробная инструкция по наименованию коммитов - link: /guides/commits - - title: Тестирование проекта - details: Запуск автотестов - link: /tests ---- - diff --git a/docs/src/components/CountDown.md b/docs/src/components/CountDown.md deleted file mode 100644 index 78e47c772..000000000 --- a/docs/src/components/CountDown.md +++ /dev/null @@ -1,16 +0,0 @@ -# CountDown - -Описание отсутствует. - -## Пример использования - -```vue -import CountDown from '@/components/components/CountDown'; -``` - -```vue - -``` - ---- -> Документация сгенерирована автоматически. diff --git a/docs/src/components/UI/aboutportal/line-chart.md b/docs/src/components/UI/aboutportal/line-chart.md deleted file mode 100644 index a2c098c6a..000000000 --- a/docs/src/components/UI/aboutportal/line-chart.md +++ /dev/null @@ -1,75 +0,0 @@ -# line-chart - -## Описание пропсов - -| Пропс | Тип | Значение по умолчанию | Комментарий | -|-------|-----|-----------------------|-------------| -| `dataLineChart` | `Object` | `() => {` | нет комментария | -| `period` | `Object` | `() => {` | нет комментария | -| `filter` | `String` | `'d'` | нет комментария | -## Описание переменных - -| Переменная | Значение | Описание | -|------------|----------|----------| -| `baseunic` |
unicperson(fullper.value.filter(e
=> new Date(e.visitdate)
>moment(new
Date(date)).subtract(between.value*2,
'd') && new Date(e.visitdate)
<= moment(new
Date(date)).subtract(between.value,
'd')))
- let crrunic =
unicperson(fullper.value.filter(e
=> new Date(e.visitdate)
>moment(new
Date(date)).subtract(between.value,
'd') && new Date(e.visitdate)
<= new Date(date)))
- let bothuser = new
Set([...baseunic].filter(element
=> crrunic.has(element)))
-
- if (date
==formatDash(filterStore.date_period.enddate))
{
-
editCRR(bothuser.size*100/baseunic.size)
- }
-
- return baseunic.size
==0?0:bothuser.size*100/baseunic.size
- }
- - const editCRR = (val) =>
{
-
- emit('getCRR', val)
- }
-
- const unicperson = (arr)
=> {
-
- let arrnew =[]
- arr.forEach(e =>
arrnew.push(...e.user) )
- return new Set(arrnew)
- }
- - const data=computed({get()
{
-
- return
JSON.parse(JSON.stringify(dataf.value))
- }
- })
- const linear=ref(null)
- - - - const options = {
- - plugins: {
-
- datalabels: {
- color: 'grey',
- align: 'top',
- display:
'auto'
- },
- legend: {
- onHover:
(event, chartElement) => {
-
event.native.target.style.cursor
='pointer'
|
Расчет значения crr, и передача в
родительский компонент значения, на
последнюю дату в периоде для
компонента card-total
- @constructor
- @param {object} date - по
каждому дню, в указанном периоде
(пример - 2024-03-22)
- @description Для расчетного
периода с 04
| - - - -## Пример использования - -```vue -import line-chart from '@/components/components/UI/aboutportal/line-chart'; -``` - -```vue - -``` - ---- -> Документация сгенерирована автоматически. diff --git a/docs/src/components/UI/fiousercard/infoUserCard.md b/docs/src/components/UI/fiousercard/infoUserCard.md deleted file mode 100644 index 7b2aca862..000000000 --- a/docs/src/components/UI/fiousercard/infoUserCard.md +++ /dev/null @@ -1,22 +0,0 @@ -# infoUserCard - -## Описание пропсов - -| Пропс | Тип | Значение по умолчанию | Комментарий | -|-------|-----|-----------------------|-------------| -| `opendialog` | `Boolean` | `false` | нет комментария | -| `author` | `Object` | `{` | нет комментария | - - -## Пример использования - -```vue -import infoUserCard from '@/components/components\UI\fiousercard\infoUserCard'; -``` - -```vue - -``` - ---- -> Документация сгенерирована автоматически. diff --git a/docs/src/components/calendar_of_events/UI_calendar/timeSelect.md b/docs/src/components/calendar_of_events/UI_calendar/timeSelect.md deleted file mode 100644 index e2a58cbb8..000000000 --- a/docs/src/components/calendar_of_events/UI_calendar/timeSelect.md +++ /dev/null @@ -1,25 +0,0 @@ -# timeSelect - -## Описание пропсов - -| Пропс | Тип | Значение по умолчанию | Комментарий | -|-------|-----|-----------------------|-------------| -| `dateEvent` | `String` | `""` | нет комментария | -| `limitation` | `String` | `""` | нет комментария | -| `order` | `Array` | `[0` | нет комментария | -| `chek` | `Boolean` | `false` | нет комментария | -| `rule` | `Number` | `-1` | нет комментария | - - -## Пример использования - -```vue -import timeSelect from '@/components/components/calendar_of_events/UI_calendar/timeSelect'; -``` - -```vue - -``` - ---- -> Документация сгенерирована автоматически. diff --git a/docs/src/components/carousel-list.md b/docs/src/components/carousel-list.md deleted file mode 100644 index 0b6339507..000000000 --- a/docs/src/components/carousel-list.md +++ /dev/null @@ -1,18 +0,0 @@ -# carousel-list - -### currentslide=currentslide -``` - ---- -> Документация сгенерирована автоматически. diff --git a/docs/src/components/carousel-numbers.md b/docs/src/components/carousel-numbers.md deleted file mode 100644 index 6e2379c15..000000000 --- a/docs/src/components/carousel-numbers.md +++ /dev/null @@ -1,28 +0,0 @@ -# carousel-numbers - -### - -## Описание пропсов - -| Пропс | Тип | Значение по умолчанию | Комментарий | -|-------|-----|-----------------------|-------------| -| `digitalData` | `Object` | `{` | нет комментария | - - -## Пример использования - -```vue -import carousel-numbers from '@/components/components/carousel-numbers'; -``` - -```vue - -``` - ---- -> Документация сгенерирована автоматически. diff --git a/docs/src/components/vote/VoteAdmin.md b/docs/src/components/vote/VoteAdmin.md deleted file mode 100644 index 48cced183..000000000 --- a/docs/src/components/vote/VoteAdmin.md +++ /dev/null @@ -1,25 +0,0 @@ -# VoteAdmin - -### Голосование - -## Описание пропсов - -| Пропс | Тип | Значение по умолчанию | Комментарий | -|-------|-----|-----------------------|-------------| -| `usersvotedbest` | `Array` | `()=>[]` | нет комментария | -| `uservotedthanks` | `Array` | `()=>[]` | нет комментария | -| `all_cod` | `Array` | `()=>[]` | нет комментария | - - -## Пример использования - -```vue -import VoteAdmin from '@/components/components\vote\VoteAdmin'; -``` - -```vue - -``` - ---- -> Документация сгенерирована автоматически. diff --git a/docs/src/components/vote/VoteCard.md b/docs/src/components/vote/VoteCard.md deleted file mode 100644 index 2bbed2a23..000000000 --- a/docs/src/components/vote/VoteCard.md +++ /dev/null @@ -1,22 +0,0 @@ -# VoteCard - -## Описание пропсов - -| Пропс | Тип | Значение по умолчанию | Комментарий | -|-------|-----|-----------------------|-------------| -| `isFinished` | `Boolean` | `false` | нет комментария | -| `voteCard` | `Object` | `() => {` | нет комментария | - - -## Пример использования - -```vue -import VoteCard from '@/components/components\vote\VoteCard'; -``` - -```vue - -``` - ---- -> Документация сгенерирована автоматически. diff --git a/docs/src/components/vote/VoteForm.md b/docs/src/components/vote/VoteForm.md deleted file mode 100644 index 118b7dedb..000000000 --- a/docs/src/components/vote/VoteForm.md +++ /dev/null @@ -1,25 +0,0 @@ -# VoteForm - -### Форма голосования - -## Описание пропсов - -| Пропс | Тип | Значение по умолчанию | Комментарий | -|-------|-----|-----------------------|-------------| -| `type_fetch` | `String` | `'best'` | нет комментария | -| `persons` | `Array` | `() => []` | нет комментария | -| `myrealdep` | `Object` | `() => {` | нет комментария | - - -## Пример использования - -```vue -import VoteForm from '@/components/components\vote\VoteForm'; -``` - -```vue - -``` - ---- -> Документация сгенерирована автоматически. diff --git a/docs/tests.md b/docs/tests.md deleted file mode 100644 index e939aff79..000000000 --- a/docs/tests.md +++ /dev/null @@ -1,7 +0,0 @@ - - # Тестирование - - - - - \ No newline at end of file diff --git a/documentation/docs/.vitepress/config.mjs b/documentation/docs/.vitepress/config.mjs new file mode 100644 index 000000000..dc3b0b1f1 --- /dev/null +++ b/documentation/docs/.vitepress/config.mjs @@ -0,0 +1,746 @@ +import { withMermaid } from 'vitepress-plugin-mermaid'; + +export default withMermaid({ + themeConfig: { + search: { + provider: 'local' + }, + sidebar: [ + { + text: 'Структура', + collapsed: false, + items: [ + { + "text": "App", + "link": "/src/App" + }, + { + "text": "components", + "collapsed": true, + "items": [ + { + "text": "CountDown", + "link": "/src/components/CountDown" + }, + { + "text": "UI", + "collapsed": true, + "items": [ + { + "text": "Auth-form", + "link": "/src/components/UI/Auth-form" + }, + { + "text": "NewsCard", + "link": "/src/components/UI/NewsCard" + }, + { + "text": "PatternTabs", + "link": "/src/components/UI/PatternTabs" + }, + { + "text": "SearcEmployess", + "link": "/src/components/UI/SearcEmployess" + }, + { + "text": "Timer", + "link": "/src/components/UI/Timer" + }, + { + "text": "aboutportal", + "collapsed": true, + "items": [ + { + "text": "card-feedback", + "link": "/src/components/UI/aboutportal/card-feedback" + }, + { + "text": "card-top-comment", + "link": "/src/components/UI/aboutportal/card-top-comment" + }, + { + "text": "card-total", + "link": "/src/components/UI/aboutportal/card-total" + }, + { + "text": "card_top_comment", + "collapsed": true, + "items": [ + { + "text": "card-comment", + "link": "/src/components/UI/aboutportal/card_top_comment/card-comment" + } + ] + }, + { + "text": "feedmodul", + "link": "/src/components/UI/aboutportal/feedmodul" + }, + { + "text": "line-chart", + "link": "/src/components/UI/aboutportal/line-chart" + }, + { + "text": "pattern-card-feed", + "link": "/src/components/UI/aboutportal/pattern-card-feed" + }, + { + "text": "pattern-card", + "link": "/src/components/UI/aboutportal/pattern-card" + }, + { + "text": "portal-traffic", + "link": "/src/components/UI/aboutportal/portal-traffic" + }, + { + "text": "rating-page", + "link": "/src/components/UI/aboutportal/rating-page" + }, + { + "text": "toolbar-filter", + "link": "/src/components/UI/aboutportal/toolbar-filter" + }, + { + "text": "tooltip-ico", + "link": "/src/components/UI/aboutportal/tooltip-ico" + }, + { + "text": "tooltip-user", + "link": "/src/components/UI/aboutportal/tooltip-user" + }, + { + "text": "top-user", + "link": "/src/components/UI/aboutportal/top-user" + } + ] + }, + { + "text": "date-select", + "link": "/src/components/UI/date-select" + }, + { + "text": "defaultportal", + "collapsed": true, + "items": [ + { + "text": "page-counter", + "link": "/src/components/UI/defaultportal/page-counter" + }, + { + "text": "uploading-file", + "link": "/src/components/UI/defaultportal/uploading-file" + } + ] + }, + { + "text": "feedback", + "collapsed": true, + "items": [ + { + "text": "feedstar-like", + "link": "/src/components/UI/feedback/feedstar-like" + }, + { + "text": "statistik-like", + "link": "/src/components/UI/feedback/statistik-like" + } + ] + }, + { + "text": "fiousercard", + "collapsed": true, + "items": [ + { + "text": "icoUser", + "link": "/src/components/UI/fiousercard/icoUser" + }, + { + "text": "infoUserCard", + "link": "/src/components/UI/fiousercard/infoUserCard" + }, + { + "text": "listUser", + "link": "/src/components/UI/fiousercard/listUser" + }, + { + "text": "onlineUsers", + "link": "/src/components/UI/fiousercard/onlineUsers" + }, + { + "text": "vcardUser", + "link": "/src/components/UI/fiousercard/vcardUser" + } + ] + }, + { + "text": "index", + "link": "/src/components/UI/index" + }, + { + "text": "my-helper", + "link": "/src/components/UI/my-helper" + }, + { + "text": "tooltip-number", + "link": "/src/components/UI/tooltip-number" + }, + { + "text": "tooltip-text", + "link": "/src/components/UI/tooltip-text" + } + ] + }, + { + "text": "about_inspection", + "collapsed": true, + "items": [ + { + "text": "contacts", + "collapsed": true, + "items": [ + { + "text": "ContactInfo", + "link": "/src/components/about_inspection/contacts/ContactInfo" + } + ] + }, + { + "text": "general_information", + "collapsed": true, + "items": [ + { + "text": "GeneralInformation", + "link": "/src/components/about_inspection/general_information/GeneralInformation" + }, + { + "text": "GeneralInformationSize", + "link": "/src/components/about_inspection/general_information/GeneralInformationSize" + } + ] + }, + { + "text": "open_vacancies", + "collapsed": true, + "items": [ + { + "text": "OpenVacancies", + "link": "/src/components/about_inspection/open_vacancies/OpenVacancies" + }, + { + "text": "ResponseVacancies", + "link": "/src/components/about_inspection/open_vacancies/ResponseVacancies" + } + ] + }, + { + "text": "structure", + "collapsed": true, + "items": [ + { + "text": "StructureInspection", + "link": "/src/components/about_inspection/structure/StructureInspection" + }, + { + "text": "StructureInspectionRow", + "link": "/src/components/about_inspection/structure/StructureInspectionRow" + } + ] + } + ] + }, + { + "text": "calendar_of_events", + "collapsed": true, + "items": [ + { + "text": "BigCalendar", + "link": "/src/components/calendar_of_events/BigCalendar" + }, + { + "text": "UI_calendar", + "collapsed": true, + "items": [ + { + "text": "calendarFull", + "link": "/src/components/calendar_of_events/UI_calendar/calendarFull" + }, + { + "text": "dialogCreate", + "link": "/src/components/calendar_of_events/UI_calendar/dialogCreate" + }, + { + "text": "periodEvents", + "link": "/src/components/calendar_of_events/UI_calendar/periodEvents" + }, + { + "text": "reminderEvent", + "link": "/src/components/calendar_of_events/UI_calendar/reminderEvent" + }, + { + "text": "timeSelect", + "link": "/src/components/calendar_of_events/UI_calendar/timeSelect" + } + ] + }, + { + "text": "calendar-create-select", + "link": "/src/components/calendar_of_events/calendar-create-select" + }, + { + "text": "calendar-create", + "link": "/src/components/calendar_of_events/calendar-create" + }, + { + "text": "calendar-my", + "link": "/src/components/calendar_of_events/calendar-my" + }, + { + "text": "event-calendar", + "link": "/src/components/calendar_of_events/event-calendar" + }, + { + "text": "event-create", + "link": "/src/components/calendar_of_events/event-create" + }, + { + "text": "event-dialog-edit-participant", + "link": "/src/components/calendar_of_events/event-dialog-edit-participant" + }, + { + "text": "event-dialog-edit", + "link": "/src/components/calendar_of_events/event-dialog-edit" + }, + { + "text": "event-dialog-info", + "link": "/src/components/calendar_of_events/event-dialog-info" + }, + { + "text": "event-dialog", + "link": "/src/components/calendar_of_events/event-dialog" + }, + { + "text": "load-ical", + "link": "/src/components/calendar_of_events/load-ical" + }, + { + "text": "load-ical1", + "link": "/src/components/calendar_of_events/load-ical1" + } + ] + }, + { + "text": "cardLike", + "link": "/src/components/cardLike" + }, + { + "text": "carousel-list", + "link": "/src/components/carousel-list" + }, + { + "text": "carousel-numbers", + "link": "/src/components/carousel-numbers" + }, + { + "text": "dialog-search", + "link": "/src/components/dialog-search" + }, + { + "text": "digital-letna", + "link": "/src/components/digital-letna" + }, + { + "text": "graph", + "collapsed": true, + "items": [ + { + "text": "chartConfig", + "link": "/src/components/graph/chartConfig" + }, + { + "text": "line-graph", + "link": "/src/components/graph/line-graph" + } + ] + }, + { + "text": "load-round", + "link": "/src/components/load-round" + }, + { + "text": "news-crossroad", + "link": "/src/components/news-crossroad" + }, + { + "text": "news-full", + "link": "/src/components/news-full" + }, + { + "text": "news-home", + "link": "/src/components/news-home" + }, + { + "text": "secret", + "collapsed": true, + "items": [ + { + "text": "SmallTimer", + "link": "/src/components/secret/SmallTimer" + } + ] + }, + { + "text": "testing", + "collapsed": true, + "items": [ + { + "text": "BodyDetailTesting", + "link": "/src/components/testing/BodyDetailTesting" + }, + { + "text": "CatalogTest", + "link": "/src/components/testing/CatalogTest" + }, + { + "text": "DetailCardTest", + "link": "/src/components/testing/DetailCardTest" + }, + { + "text": "HeaderDetailTesting", + "link": "/src/components/testing/HeaderDetailTesting" + }, + { + "text": "QuestionBlock", + "link": "/src/components/testing/QuestionBlock" + }, + { + "text": "TestResults", + "link": "/src/components/testing/TestResults" + } + ] + }, + { + "text": "vote", + "collapsed": true, + "items": [ + { + "text": "ConstructorVote", + "collapsed": true, + "items": [ + { + "text": "AnswerList", + "link": "/src/components/vote/ConstructorVote/AnswerList" + }, + { + "text": "CreatedVote", + "link": "/src/components/vote/ConstructorVote/CreatedVote" + }, + { + "text": "MainInfo", + "link": "/src/components/vote/ConstructorVote/MainInfo" + }, + { + "text": "NewQuestion", + "link": "/src/components/vote/ConstructorVote/NewQuestion" + }, + { + "text": "QuestionHeader", + "link": "/src/components/vote/ConstructorVote/QuestionHeader" + }, + { + "text": "QuestionItem", + "link": "/src/components/vote/ConstructorVote/QuestionItem" + }, + { + "text": "QuestionSettings", + "link": "/src/components/vote/ConstructorVote/QuestionSettings" + } + ] + }, + { + "text": "CurrentVote", + "link": "/src/components/vote/CurrentVote" + }, + { + "text": "NonVoteHappy", + "link": "/src/components/vote/NonVoteHappy" + }, + { + "text": "NonVoteSad", + "link": "/src/components/vote/NonVoteSad" + }, + { + "text": "NoneVote", + "link": "/src/components/vote/NoneVote" + }, + { + "text": "VoteAdmin", + "link": "/src/components/vote/VoteAdmin" + }, + { + "text": "VoteAnimation", + "link": "/src/components/vote/VoteAnimation" + }, + { + "text": "VoteCard", + "link": "/src/components/vote/VoteCard" + }, + { + "text": "VoteConstructor", + "link": "/src/components/vote/VoteConstructor" + }, + { + "text": "VoteForm", + "link": "/src/components/vote/VoteForm" + }, + { + "text": "VoteResult", + "link": "/src/components/vote/VoteResult" + } + ] + } + ] + }, + { + "text": "layouts", + "collapsed": true, + "items": [ + { + "text": "default", + "collapsed": true, + "items": [ + { + "text": "AdminMenu", + "link": "/src/layouts/default/AdminMenu" + }, + { + "text": "DefaultPortal", + "link": "/src/layouts/default/DefaultPortal" + }, + { + "text": "alertDefault", + "link": "/src/layouts/default/alertDefault" + } + ] + } + ] + }, + { + "text": "main", + "link": "/src/main" + }, + { + "text": "plugins", + "collapsed": true, + "items": [ + { + "text": "index", + "link": "/src/plugins/index" + }, + { + "text": "vuetify", + "link": "/src/plugins/vuetify" + }, + { + "text": "webfontloader", + "link": "/src/plugins/webfontloader" + } + ] + }, + { + "text": "router", + "collapsed": true, + "items": [ + { + "text": "index", + "link": "/src/router/index" + } + ] + }, + { + "text": "store", + "collapsed": true, + "items": [ + { + "text": "AboutPortalFilter", + "link": "/src/store/AboutPortalFilter" + }, + { + "text": "AccountStore", + "link": "/src/store/AccountStore" + }, + { + "text": "MainmenuStore", + "link": "/src/store/MainmenuStore" + }, + { + "text": "WeekendsStore", + "link": "/src/store/WeekendsStore" + }, + { + "text": "app", + "link": "/src/store/app" + }, + { + "text": "index", + "link": "/src/store/index" + }, + { + "text": "useAlertStore", + "link": "/src/store/useAlertStore" + } + ] + }, + { + "text": "tests", + "collapsed": true, + "items": [ + { + "text": "App.test", + "link": "/src/tests/App.test" + }, + { + "text": "CarouselList.test", + "link": "/src/tests/CarouselList.test" + } + ] + }, + { + "text": "utils", + "collapsed": true, + "items": [ + { + "text": "axios-api", + "link": "/src/utils/axios-api" + }, + { + "text": "universal_functions", + "link": "/src/utils/universal_functions" + } + ] + }, + { + "text": "views", + "collapsed": true, + "items": [ + { + "text": "AboutInspectionPage", + "link": "/src/views/AboutInspectionPage" + }, + { + "text": "AboutPortalPage", + "link": "/src/views/AboutPortalPage" + }, + { + "text": "FAQPage", + "link": "/src/views/FAQPage" + }, + { + "text": "FeedbackPage", + "link": "/src/views/FeedbackPage" + }, + { + "text": "FnsHol", + "link": "/src/views/FnsHol" + }, + { + "text": "HomePage", + "link": "/src/views/HomePage" + }, + { + "text": "LaborProtection", + "link": "/src/views/LaborProtection" + }, + { + "text": "NewsPage", + "link": "/src/views/NewsPage" + }, + { + "text": "ProvidingActivitiesPage", + "link": "/src/views/ProvidingActivitiesPage" + }, + { + "text": "SecurityPage", + "link": "/src/views/SecurityPage" + }, + { + "text": "StructurePage", + "link": "/src/views/StructurePage" + }, + { + "text": "TestHomePage", + "link": "/src/views/TestHomePage" + }, + { + "text": "Vote", + "link": "/src/views/Vote" + }, + { + "text": "VoteHomePage", + "link": "/src/views/VoteHomePage" + }, + { + "text": "nested_view", + "collapsed": true, + "items": [ + { + "text": "o_OKiB", + "link": "/src/views/nested_view/o_OKiB" + } + ] + }, + { + "text": "safety", + "collapsed": true, + "items": [ + { + "text": "ChaptersSafety", + "link": "/src/views/safety/ChaptersSafety" + }, + { + "text": "DocumentationSafety", + "link": "/src/views/safety/DocumentationSafety" + }, + { + "text": "MainInfoSafety", + "link": "/src/views/safety/MainInfoSafety" + }, + { + "text": "TestSafety", + "link": "/src/views/safety/TestSafety" + } + ] + }, + { + "text": "secret", + "collapsed": true, + "items": [ + { + "text": "SecretPage", + "link": "/src/views/secret/SecretPage" + } + ] + } + ] + } +] + }, + { + text: 'Гайды', + collapsed: true, + items: [ + { text: 'Как установить', link: '/guides/install' }, + { text: 'Как использовать', link: '/guides/usage' }, + { text: 'Правила комитов', link: '/guides/commits' } +, + { text: 'Тесты', link: '/tests' }, + ] + } + ] + }, +mermaid: { + // refer https://mermaid.js.org/config/setup/modules/mermaidAPI.html#mermaidapi-configuration-defaults for options + }, + // optionally set additional config for plugin itself with MermaidPluginConfig + mermaidPlugin: { + class: 'mermaid my-class', // set additional css classes for parent container + },}); diff --git a/documentation/docs/src/components/testing/CatalogTest.md b/documentation/docs/src/components/testing/CatalogTest.md new file mode 100644 index 000000000..59db14775 --- /dev/null +++ b/documentation/docs/src/components/testing/CatalogTest.md @@ -0,0 +1,25 @@ +# CatalogTest + +### Карточка где буду отрисовываться тесты в цикле + +## Описание пропсов + +| Пропс | Тип | Значение по умолчанию | Комментарий | +|-------|-----|-----------------------|-------------| +| `title` | `String` | `'Не забыть передать тайтл сюда!'` | нет комментария | +| `activeTab` | `Number` | `0` | нет комментария | +| `testingCard` | `Array` | `() => []` | нет комментария | + + +## Пример использования + +```vue +import CatalogTest from '@/components/components/testing/CatalogTest'; +``` + +```vue + +``` + +--- +> Документация сгенерирована автоматически. diff --git a/documentation/docs/src/components/vote/VoteConstructor.md b/documentation/docs/src/components/vote/VoteConstructor.md new file mode 100644 index 000000000..799bfb05a --- /dev/null +++ b/documentation/docs/src/components/vote/VoteConstructor.md @@ -0,0 +1,18 @@ +# VoteConstructor + +### Основная информация + + + +## Пример использования + +```vue +import VoteConstructor from '@/components/components/vote/VoteConstructor'; +``` + +```vue + +``` + +--- +> Документация сгенерирована автоматически. diff --git a/documentation/jest.config.cjs b/documentation/jest.config.cjs new file mode 100644 index 000000000..9de5bae9c --- /dev/null +++ b/documentation/jest.config.cjs @@ -0,0 +1,22 @@ +module.exports = { + // rootDir: '../', + testEnvironment: 'jest-environment-jsdom', + roots: ['/app/src/front/src'], + setupFilesAfterEnv: ['/app/documentation/jest.setup.js'], + transform: { + '^.+\\.vue$': '@vue/vue3-jest', + '^.+\\.mjs$': 'babel-jest', + '^.+\\.js$': 'babel-jest', + '\\.(png|jpe?g|gif|svg)$': 'jest-transform-stub', + }, + moduleFileExtensions: ['js', 'json', 'vue', 'mjs'], + moduleNameMapper: { + '^@/(.*)$': '/app/src/front/src/$1', + }, + transformIgnorePatterns: ['/node_modules/(?!(vuetify|quasar)/)'], + collectCoverage: true, + collectCoverageFrom: ['/app/src/front/src/**/*.{js,vue}'], + coveragePathIgnorePatterns: ['/documentation/'], + coverageReporters: ['json', 'html'], + coverageDirectory: '/app/documentation/docs/public/test-coverage', +}; diff --git a/src/front/src/components/UI/SearcEmployess.vue b/src/front/src/components/UI/SearcEmployess.vue new file mode 100644 index 000000000..5444e86a3 --- /dev/null +++ b/src/front/src/components/UI/SearcEmployess.vue @@ -0,0 +1,108 @@ + + + diff --git a/src/front/src/components/testing/CatalogTest.vue b/src/front/src/components/testing/CatalogTest.vue index 563605fa2..29fe22bc1 100644 --- a/src/front/src/components/testing/CatalogTest.vue +++ b/src/front/src/components/testing/CatalogTest.vue @@ -66,30 +66,7 @@ export 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: new Date(), - question_count: 20, - time: 20, - attemps_number: 3, - }, - { - id: 2, - name: 'Удобство раздела тестирования', - type: 'test', - description: 'Опрос среди сотрудников ЦОД МФ', - file: 'https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg', - dateend: new Date(), - question_count: 28, - time: 15, - attemps_number: 1, - }, - ], + default: () => [], }, }, setup(props) { diff --git a/src/front/src/components/vote/ConstructorVote/AnswerList.vue b/src/front/src/components/vote/ConstructorVote/AnswerList.vue new file mode 100644 index 000000000..43225bda4 --- /dev/null +++ b/src/front/src/components/vote/ConstructorVote/AnswerList.vue @@ -0,0 +1,98 @@ + + + diff --git a/src/front/src/components/vote/ConstructorVote/CreatedVote.vue b/src/front/src/components/vote/ConstructorVote/CreatedVote.vue new file mode 100644 index 000000000..5c7b7295b --- /dev/null +++ b/src/front/src/components/vote/ConstructorVote/CreatedVote.vue @@ -0,0 +1,13 @@ + + diff --git a/src/front/src/components/vote/ConstructorVote/MainInfo.vue b/src/front/src/components/vote/ConstructorVote/MainInfo.vue new file mode 100644 index 000000000..3a3f7bd4f --- /dev/null +++ b/src/front/src/components/vote/ConstructorVote/MainInfo.vue @@ -0,0 +1,197 @@ + + + + + diff --git a/src/front/src/components/vote/ConstructorVote/NewQuestion.vue b/src/front/src/components/vote/ConstructorVote/NewQuestion.vue new file mode 100644 index 000000000..2b09eb100 --- /dev/null +++ b/src/front/src/components/vote/ConstructorVote/NewQuestion.vue @@ -0,0 +1,127 @@ + + + diff --git a/src/front/src/components/vote/ConstructorVote/QuestionHeader.vue b/src/front/src/components/vote/ConstructorVote/QuestionHeader.vue new file mode 100644 index 000000000..862b4a95c --- /dev/null +++ b/src/front/src/components/vote/ConstructorVote/QuestionHeader.vue @@ -0,0 +1,59 @@ + + + diff --git a/src/front/src/components/vote/ConstructorVote/QuestionItem.vue b/src/front/src/components/vote/ConstructorVote/QuestionItem.vue new file mode 100644 index 000000000..74c13a14d --- /dev/null +++ b/src/front/src/components/vote/ConstructorVote/QuestionItem.vue @@ -0,0 +1,266 @@ + + + diff --git a/src/front/src/components/vote/ConstructorVote/QuestionSettings.vue b/src/front/src/components/vote/ConstructorVote/QuestionSettings.vue new file mode 100644 index 000000000..9f3087231 --- /dev/null +++ b/src/front/src/components/vote/ConstructorVote/QuestionSettings.vue @@ -0,0 +1,63 @@ + + + + + diff --git a/src/front/src/components/vote/VoteConstructor.vue b/src/front/src/components/vote/VoteConstructor.vue index d977d4fd2..ce81a98d4 100644 --- a/src/front/src/components/vote/VoteConstructor.vue +++ b/src/front/src/components/vote/VoteConstructor.vue @@ -1,21 +1,13 @@