chore [P-01]: доки1

This commit is contained in:
Nukeap committed 2025-02-25 13:34:48 +03:00
1 parent 11a5bffddc
commit 7eb4305d03
20 files changed
+508 -19884

No files matched your search

+13 -1
View File
@@ -1,5 +1,17 @@
src/back/portal/.env src/back/portal/.env
src/back/media/ src/back/portal/media/
src/back/static/ src/back/static/
src/back/media/
docs/.vitepress/cache docs/.vitepress/cache
/node_modules /node_modules
media/
docker-compose.yml
**/dockerfiles
**/composes
**/media
*.md
easydump
easynpm
easypip
easyrestore
**/node_modules
+4 -1
View File
@@ -2,8 +2,11 @@ COMPOSE_PROJECT_NAME=portal
HOST_NAME=localhost HOST_NAME=localhost
#для LINUX
PROJECT_DIR=$(cd $(dirname $(readlink -e $0)) && pwd) PROJECT_DIR=$(cd $(dirname $(readlink -e $0)) && pwd)
# Windows
PROJECT_DIR=$(cygpath -w "$(cd "$(dirname "$(readlink -f "$0")")" && pwd)")
# Директория с кодом приложения # Директория с кодом приложения
SOURCE_DIR=${PROJECT_DIR}/src SOURCE_DIR=${PROJECT_DIR}/src
# Директория docker # Директория docker
+5 -2
View File
@@ -19,10 +19,13 @@ RUN npm install vitepress vue-md-parser @vue/vue3-jest \
jest-transform-stub jest-transform-stub
RUN mkdir -p /app/documentation/docs/public/test-coverage/src/ RUN mkdir -p /app/documentation/docs/public/test-coverage/src/
RUN chmod 777 /app/documentation/docs/public/test-coverage/src/ RUN chmod 777 /app/documentation/docs/public/test-coverage/src/
COPY ./documentation/babel.config.js /app COPY ./documentation/babel.config.cjs /app
WORKDIR /app/src/front/
RUN npm cache clean --force && npm install
# Открыть порт для VitePress # Открыть порт для VitePress
EXPOSE 5173 EXPOSE 5173
WORKDIR /app/documentation/
# Держать контейнер запущенным # Держать контейнер запущенным
# CMD ["tail", "-f", "/dev/null"] # CMD ["tail", "-f", "/dev/null"]
# Раскомментируйте следующую строку, чтобы запустить приложение # Раскомментируйте следующую строку, чтобы запустить приложение
+329 -317
View File
@@ -18,6 +18,174 @@ export default withMermaid({
"text": "components", "text": "components",
"collapsed": true, "collapsed": true,
"items": [ "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": "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", "text": "about_inspection",
"collapsed": true, "collapsed": true,
@@ -28,7 +196,7 @@ export default withMermaid({
"items": [ "items": [
{ {
"text": "ContactInfo", "text": "ContactInfo",
"link": "/src/components\\about_inspection\\contacts\\ContactInfo" "link": "/src/components/about_inspection/contacts/ContactInfo"
} }
] ]
}, },
@@ -38,11 +206,11 @@ export default withMermaid({
"items": [ "items": [
{ {
"text": "GeneralInformation", "text": "GeneralInformation",
"link": "/src/components\\about_inspection\\general_information\\GeneralInformation" "link": "/src/components/about_inspection/general_information/GeneralInformation"
}, },
{ {
"text": "GeneralInformationSize", "text": "GeneralInformationSize",
"link": "/src/components\\about_inspection\\general_information\\GeneralInformationSize" "link": "/src/components/about_inspection/general_information/GeneralInformationSize"
} }
] ]
}, },
@@ -52,11 +220,11 @@ export default withMermaid({
"items": [ "items": [
{ {
"text": "OpenVacancies", "text": "OpenVacancies",
"link": "/src/components\\about_inspection\\open_vacancies\\OpenVacancies" "link": "/src/components/about_inspection/open_vacancies/OpenVacancies"
}, },
{ {
"text": "ResponseVacancies", "text": "ResponseVacancies",
"link": "/src/components\\about_inspection\\open_vacancies\\ResponseVacancies" "link": "/src/components/about_inspection/open_vacancies/ResponseVacancies"
} }
] ]
}, },
@@ -66,11 +234,11 @@ export default withMermaid({
"items": [ "items": [
{ {
"text": "StructureInspection", "text": "StructureInspection",
"link": "/src/components\\about_inspection\\structure\\StructureInspection" "link": "/src/components/about_inspection/structure/StructureInspection"
}, },
{ {
"text": "StructureInspectionRow", "text": "StructureInspectionRow",
"link": "/src/components\\about_inspection\\structure\\StructureInspectionRow" "link": "/src/components/about_inspection/structure/StructureInspectionRow"
} }
] ]
} }
@@ -82,51 +250,7 @@ export default withMermaid({
"items": [ "items": [
{ {
"text": "BigCalendar", "text": "BigCalendar",
"link": "/src/components\\calendar_of_events\\BigCalendar" "link": "/src/components/calendar_of_events/BigCalendar"
},
{
"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": "UI_calendar", "text": "UI_calendar",
@@ -134,51 +258,91 @@ export default withMermaid({
"items": [ "items": [
{ {
"text": "calendarFull", "text": "calendarFull",
"link": "/src/components\\calendar_of_events\\UI_calendar\\calendarFull" "link": "/src/components/calendar_of_events/UI_calendar/calendarFull"
}, },
{ {
"text": "dialogCreate", "text": "dialogCreate",
"link": "/src/components\\calendar_of_events\\UI_calendar\\dialogCreate" "link": "/src/components/calendar_of_events/UI_calendar/dialogCreate"
}, },
{ {
"text": "periodEvents", "text": "periodEvents",
"link": "/src/components\\calendar_of_events\\UI_calendar\\periodEvents" "link": "/src/components/calendar_of_events/UI_calendar/periodEvents"
}, },
{ {
"text": "reminderEvent", "text": "reminderEvent",
"link": "/src/components\\calendar_of_events\\UI_calendar\\reminderEvent" "link": "/src/components/calendar_of_events/UI_calendar/reminderEvent"
}, },
{ {
"text": "timeSelect", "text": "timeSelect",
"link": "/src/components\\calendar_of_events\\UI_calendar\\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", "text": "cardLike",
"link": "/src/components\\cardLike" "link": "/src/components/cardLike"
}, },
{ {
"text": "carousel-list", "text": "carousel-list",
"link": "/src/components\\carousel-list" "link": "/src/components/carousel-list"
}, },
{ {
"text": "carousel-numbers", "text": "carousel-numbers",
"link": "/src/components\\carousel-numbers" "link": "/src/components/carousel-numbers"
},
{
"text": "CountDown",
"link": "/src/components\\CountDown"
}, },
{ {
"text": "dialog-search", "text": "dialog-search",
"link": "/src/components\\dialog-search" "link": "/src/components/dialog-search"
}, },
{ {
"text": "digital-letna", "text": "digital-letna",
"link": "/src/components\\digital-letna" "link": "/src/components/digital-letna"
}, },
{ {
"text": "graph", "text": "graph",
@@ -186,29 +350,29 @@ export default withMermaid({
"items": [ "items": [
{ {
"text": "chartConfig", "text": "chartConfig",
"link": "/src/components\\graph\\chartConfig" "link": "/src/components/graph/chartConfig"
}, },
{ {
"text": "line-graph", "text": "line-graph",
"link": "/src/components\\graph\\line-graph" "link": "/src/components/graph/line-graph"
} }
] ]
}, },
{ {
"text": "load-round", "text": "load-round",
"link": "/src/components\\load-round" "link": "/src/components/load-round"
}, },
{ {
"text": "news-crossroad", "text": "news-crossroad",
"link": "/src/components\\news-crossroad" "link": "/src/components/news-crossroad"
}, },
{ {
"text": "news-full", "text": "news-full",
"link": "/src/components\\news-full" "link": "/src/components/news-full"
}, },
{ {
"text": "news-home", "text": "news-home",
"link": "/src/components\\news-home" "link": "/src/components/news-home"
}, },
{ {
"text": "secret", "text": "secret",
@@ -216,7 +380,7 @@ export default withMermaid({
"items": [ "items": [
{ {
"text": "SmallTimer", "text": "SmallTimer",
"link": "/src/components\\secret\\SmallTimer" "link": "/src/components/secret/SmallTimer"
} }
] ]
}, },
@@ -224,181 +388,29 @@ export default withMermaid({
"text": "testing", "text": "testing",
"collapsed": true, "collapsed": true,
"items": [ "items": [
{
"text": "BodyDetailTesting",
"link": "/src/components/testing/BodyDetailTesting"
},
{ {
"text": "CatalogTest", "text": "CatalogTest",
"link": "/src/components\\testing\\CatalogTest" "link": "/src/components/testing/CatalogTest"
}, },
{ {
"text": "DetailCardTest", "text": "DetailCardTest",
"link": "/src/components\\testing\\DetailCardTest" "link": "/src/components/testing/DetailCardTest"
}, },
{ {
"text": "HeaderDetailTesting", "text": "HeaderDetailTesting",
"link": "/src/components\\testing\\HeaderDetailTesting" "link": "/src/components/testing/HeaderDetailTesting"
}
]
},
{
"text": "UI",
"collapsed": true,
"items": [
{
"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": "Auth-form", "text": "QuestionBlock",
"link": "/src/components\\UI\\Auth-form" "link": "/src/components/testing/QuestionBlock"
}, },
{ {
"text": "date-select", "text": "TestResults",
"link": "/src/components\\UI\\date-select" "link": "/src/components/testing/TestResults"
},
{
"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": "NewsCard",
"link": "/src/components\\UI\\NewsCard"
},
{
"text": "PatternTabs",
"link": "/src/components\\UI\\PatternTabs"
},
{
"text": "Timer",
"link": "/src/components\\UI\\Timer"
},
{
"text": "tooltip-number",
"link": "/src/components\\UI\\tooltip-number"
},
{
"text": "tooltip-text",
"link": "/src/components\\UI\\tooltip-text"
} }
] ]
}, },
@@ -408,43 +420,43 @@ export default withMermaid({
"items": [ "items": [
{ {
"text": "CurrentVote", "text": "CurrentVote",
"link": "/src/components\\vote\\CurrentVote" "link": "/src/components/vote/CurrentVote"
},
{
"text": "NoneVote",
"link": "/src/components\\vote\\NoneVote"
}, },
{ {
"text": "NonVoteHappy", "text": "NonVoteHappy",
"link": "/src/components\\vote\\NonVoteHappy" "link": "/src/components/vote/NonVoteHappy"
}, },
{ {
"text": "NonVoteSad", "text": "NonVoteSad",
"link": "/src/components\\vote\\NonVoteSad" "link": "/src/components/vote/NonVoteSad"
},
{
"text": "NoneVote",
"link": "/src/components/vote/NoneVote"
}, },
{ {
"text": "VoteAdmin", "text": "VoteAdmin",
"link": "/src/components\\vote\\VoteAdmin" "link": "/src/components/vote/VoteAdmin"
}, },
{ {
"text": "VoteAnimation", "text": "VoteAnimation",
"link": "/src/components\\vote\\VoteAnimation" "link": "/src/components/vote/VoteAnimation"
}, },
{ {
"text": "VoteCard", "text": "VoteCard",
"link": "/src/components\\vote\\VoteCard" "link": "/src/components/vote/VoteCard"
}, },
{ {
"text": "VoteConstructor", "text": "VoteConstructor",
"link": "/src/components\\vote\\VoteConstructor" "link": "/src/components/vote/VoteConstructor"
}, },
{ {
"text": "VoteForm", "text": "VoteForm",
"link": "/src/components\\vote\\VoteForm" "link": "/src/components/vote/VoteForm"
}, },
{ {
"text": "VoteResult", "text": "VoteResult",
"link": "/src/components\\vote\\VoteResult" "link": "/src/components/vote/VoteResult"
} }
] ]
} }
@@ -460,15 +472,15 @@ export default withMermaid({
"items": [ "items": [
{ {
"text": "AdminMenu", "text": "AdminMenu",
"link": "/src/layouts\\default\\AdminMenu" "link": "/src/layouts/default/AdminMenu"
},
{
"text": "alertDefault",
"link": "/src/layouts\\default\\alertDefault"
}, },
{ {
"text": "DefaultPortal", "text": "DefaultPortal",
"link": "/src/layouts\\default\\DefaultPortal" "link": "/src/layouts/default/DefaultPortal"
},
{
"text": "alertDefault",
"link": "/src/layouts/default/alertDefault"
} }
] ]
} }
@@ -484,15 +496,15 @@ export default withMermaid({
"items": [ "items": [
{ {
"text": "index", "text": "index",
"link": "/src/plugins\\index" "link": "/src/plugins/index"
}, },
{ {
"text": "vuetify", "text": "vuetify",
"link": "/src/plugins\\vuetify" "link": "/src/plugins/vuetify"
}, },
{ {
"text": "webfontloader", "text": "webfontloader",
"link": "/src/plugins\\webfontloader" "link": "/src/plugins/webfontloader"
} }
] ]
}, },
@@ -502,7 +514,7 @@ export default withMermaid({
"items": [ "items": [
{ {
"text": "index", "text": "index",
"link": "/src/router\\index" "link": "/src/router/index"
} }
] ]
}, },
@@ -512,31 +524,31 @@ export default withMermaid({
"items": [ "items": [
{ {
"text": "AboutPortalFilter", "text": "AboutPortalFilter",
"link": "/src/store\\AboutPortalFilter" "link": "/src/store/AboutPortalFilter"
}, },
{ {
"text": "AccountStore", "text": "AccountStore",
"link": "/src/store\\AccountStore" "link": "/src/store/AccountStore"
},
{
"text": "app",
"link": "/src/store\\app"
},
{
"text": "index",
"link": "/src/store\\index"
}, },
{ {
"text": "MainmenuStore", "text": "MainmenuStore",
"link": "/src/store\\MainmenuStore" "link": "/src/store/MainmenuStore"
}, },
{ {
"text": "UseAlertStore", "text": "UseAlertStore",
"link": "/src/store\\UseAlertStore" "link": "/src/store/UseAlertStore"
}, },
{ {
"text": "WeekendsStore", "text": "WeekendsStore",
"link": "/src/store\\WeekendsStore" "link": "/src/store/WeekendsStore"
},
{
"text": "app",
"link": "/src/store/app"
},
{
"text": "index",
"link": "/src/store/index"
} }
] ]
}, },
@@ -546,11 +558,11 @@ export default withMermaid({
"items": [ "items": [
{ {
"text": "App.test", "text": "App.test",
"link": "/src/tests\\App.test" "link": "/src/tests/App.test"
}, },
{ {
"text": "CarouselList.test", "text": "CarouselList.test",
"link": "/src/tests\\CarouselList.test" "link": "/src/tests/CarouselList.test"
} }
] ]
}, },
@@ -560,11 +572,11 @@ export default withMermaid({
"items": [ "items": [
{ {
"text": "axios-api", "text": "axios-api",
"link": "/src/utils\\axios-api" "link": "/src/utils/axios-api"
}, },
{ {
"text": "universal_functions", "text": "universal_functions",
"link": "/src/utils\\universal_functions" "link": "/src/utils/universal_functions"
} }
] ]
}, },
@@ -574,31 +586,59 @@ export default withMermaid({
"items": [ "items": [
{ {
"text": "AboutInspectionPage", "text": "AboutInspectionPage",
"link": "/src/views\\AboutInspectionPage" "link": "/src/views/AboutInspectionPage"
}, },
{ {
"text": "AboutPortalPage", "text": "AboutPortalPage",
"link": "/src/views\\AboutPortalPage" "link": "/src/views/AboutPortalPage"
}, },
{ {
"text": "FAQPage", "text": "FAQPage",
"link": "/src/views\\FAQPage" "link": "/src/views/FAQPage"
}, },
{ {
"text": "FeedbackPage", "text": "FeedbackPage",
"link": "/src/views\\FeedbackPage" "link": "/src/views/FeedbackPage"
}, },
{ {
"text": "FnsHol", "text": "FnsHol",
"link": "/src/views\\FnsHol" "link": "/src/views/FnsHol"
}, },
{ {
"text": "HomePage", "text": "HomePage",
"link": "/src/views\\HomePage" "link": "/src/views/HomePage"
}, },
{ {
"text": "LaborProtection", "text": "LaborProtection",
"link": "/src/views\\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", "text": "nested_view",
@@ -606,37 +646,29 @@ export default withMermaid({
"items": [ "items": [
{ {
"text": "o_OKiB", "text": "o_OKiB",
"link": "/src/views\\nested_view\\o_OKiB" "link": "/src/views/nested_view/o_OKiB"
} }
] ]
}, },
{
"text": "NewsPage",
"link": "/src/views\\NewsPage"
},
{
"text": "ProvidingActivitiesPage",
"link": "/src/views\\ProvidingActivitiesPage"
},
{ {
"text": "safety", "text": "safety",
"collapsed": true, "collapsed": true,
"items": [ "items": [
{ {
"text": "ChaptersSafety", "text": "ChaptersSafety",
"link": "/src/views\\safety\\ChaptersSafety" "link": "/src/views/safety/ChaptersSafety"
}, },
{ {
"text": "DocumentationSafety", "text": "DocumentationSafety",
"link": "/src/views\\safety\\DocumentationSafety" "link": "/src/views/safety/DocumentationSafety"
}, },
{ {
"text": "MainInfoSafety", "text": "MainInfoSafety",
"link": "/src/views\\safety\\MainInfoSafety" "link": "/src/views/safety/MainInfoSafety"
}, },
{ {
"text": "TestSafety", "text": "TestSafety",
"link": "/src/views\\safety\\TestSafety" "link": "/src/views/safety/TestSafety"
} }
] ]
}, },
@@ -646,29 +678,9 @@ export default withMermaid({
"items": [ "items": [
{ {
"text": "SecretPage", "text": "SecretPage",
"link": "/src/views\\secret\\SecretPage" "link": "/src/views/secret/SecretPage"
} }
] ]
},
{
"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"
} }
] ]
} }
@@ -47,7 +47,7 @@ const countDown = () => {
## Пример использования ## Пример использования
```vue ```vue
import CountDown from '@/components/components\CountDown'; import CountDown from '@/components/components/CountDown';
``` ```
```vue ```vue
@@ -64,7 +64,7 @@
## Пример использования ## Пример использования
```vue ```vue
import line-chart from '@/components/components\UI\aboutportal\line-chart'; import line-chart from '@/components/components/UI/aboutportal/line-chart';
``` ```
```vue ```vue
@@ -14,7 +14,7 @@
## Пример использования ## Пример использования
```vue ```vue
import timeSelect from '@/components/components\calendar_of_events\UI_calendar\timeSelect'; import timeSelect from '@/components/components/calendar_of_events/UI_calendar/timeSelect';
``` ```
```vue ```vue
@@ -84,7 +84,7 @@ const ended = (val) => {
## Пример использования ## Пример использования
```vue ```vue
import carousel-list from '@/components/components\carousel-list'; import carousel-list from '@/components/components/carousel-list';
``` ```
```vue ```vue
@@ -19,7 +19,7 @@
## Пример использования ## Пример использования
```vue ```vue
import carousel-numbers from '@/components/components\carousel-numbers'; import carousel-numbers from '@/components/components/carousel-numbers';
``` ```
```vue ```vue
@@ -3,7 +3,7 @@
Описание отсутствует. Описание отсутствует.
```js ```js
import * as chartConfig from '@/components/components\graph\chartConfig'; import * as chartConfig from '@/components/components/graph/chartConfig';
``` ```
--- ---
@@ -0,0 +1,20 @@
# BodyDetailTesting
## Описание пропсов
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
## Пример использования
```vue
import BodyDetailTesting from '@/components/components/testing/BodyDetailTesting';
```
```vue
<BodyDetailTesting />
```
---
> Документация сгенерирована автоматически.
@@ -1,6 +1,8 @@
# DetailCardTest # DetailCardTest
Описание отсутствует. ### Верхняя панель
## Пример использования ## Пример использования
@@ -1,10 +1,12 @@
# HeaderDetailTesting # HeaderDetailTesting
### Пагинация только при запущенном тесте
## Описание пропсов ## Описание пропсов
| Пропс | Тип | Значение по умолчанию | Комментарий | | Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------| |-------|-----|-----------------------|-------------|
| `title` | `String` | `'Название теста здесь'` | нет комментария | | `name` | `String` | `'Тест'` | нет комментария |
## Пример использования ## Пример использования
@@ -0,0 +1,22 @@
# QuestionBlock
### Одиночный выбор
## Описание пропсов
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
## Пример использования
```vue
import QuestionBlock from '@/components/components/testing/QuestionBlock';
```
```vue
<QuestionBlock />
```
---
> Документация сгенерирована автоматически.
@@ -0,0 +1,20 @@
# TestResults
## Описание пропсов
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
## Пример использования
```vue
import TestResults from '@/components/components/testing/TestResults';
```
```vue
<TestResults />
```
---
> Документация сгенерирована автоматически.
+1 -1
View File
@@ -3,7 +3,7 @@
Описание отсутствует. Описание отсутствует.
```js ```js
import * as App.test from '@/components/tests\App.test'; import * as App.test from '@/components/tests/App.test';
``` ```
--- ---
@@ -3,7 +3,7 @@
Описание отсутствует. Описание отсутствует.
```js ```js
import * as CarouselList.test from '@/components/tests\CarouselList.test'; import * as CarouselList.test from '@/components/tests/CarouselList.test';
``` ```
--- ---
-19481
View File
File diff suppressed because it is too large. Load diff
+9
View File
@@ -0,0 +1,9 @@
import App from '@/App.vue';
describe('App.vue', () => {
it('должен всегда проходить', () => {
expect(true).toBe(true);
});
});
+72 -72
View File
@@ -1,85 +1,85 @@
import { mount } from '../../../../documentation/node_modules/@vue/test-utils'; // import { mount } from '../../../../documentation/node_modules/@vue/test-utils';
import CarouselList from '@/components/carousel-list.vue'; // import CarouselList from '@/components/carousel-list.vue';
// Мок axios // // Мок axios
jest.mock('@/utils/axios-api', () => ({ // jest.mock('@/utils/axios-api', () => ({
baseURL: 'http://example.com/', // baseURL: 'http://example.com/',
axiosApiInstance: { // axiosApiInstance: {
get: jest.fn(), // get: jest.fn(),
}, // },
})); // }));
// Мок alert store // // Мок alert store
jest.mock('@/store/useAlertStore', () => ({ // jest.mock('@/store/useAlertStore', () => ({
useAlertStore: () => ({ // useAlertStore: () => ({
alert: { // alert: {
alert: false, // alert: false,
text: '', // text: '',
color: '', // color: '',
ico: '', // ico: '',
}, // },
}), // }),
})); // }));
describe('CarouselList.vue', () => { // describe('CarouselList.vue', () => {
beforeEach(() => { // beforeEach(() => {
const { axiosApiInstance } = require('@/utils/axios-api'); // const { axiosApiInstance } = require('@/utils/axios-api');
axiosApiInstance.get.mockClear(); // axiosApiInstance.get.mockClear();
Object.defineProperty(document, 'exitFullscreen', { // Object.defineProperty(document, 'exitFullscreen', {
writable: true, // writable: true,
value: jest.fn(), // value: jest.fn(),
}); // });
}); // });
it('вызывает axiosApiInstance.get при монтировании', async () => { // it('вызывает axiosApiInstance.get при монтировании', async () => {
const { axiosApiInstance } = require('@/utils/axios-api'); // const { axiosApiInstance } = require('@/utils/axios-api');
axiosApiInstance.get.mockResolvedValue({ data: { mess: '', result: [] } }); // axiosApiInstance.get.mockResolvedValue({ data: { mess: '', result: [] } });
const wrapper = mount(CarouselList, { // const wrapper = mount(CarouselList, {
global: { // global: {
stubs: ['v-carousel', 'v-carousel-item'], // stubs: ['v-carousel', 'v-carousel-item'],
}, // },
}); // });
await wrapper.vm.$nextTick(); // await wrapper.vm.$nextTick();
expect(axiosApiInstance.get).toHaveBeenCalledWith('api/navigation/carousels/'); // expect(axiosApiInstance.get).toHaveBeenCalledWith('api/navigation/carousels/');
}); // });
it('устанавливает большой интервал, если текущий слайд – видео', async () => { // it('устанавливает большой интервал, если текущий слайд – видео', async () => {
const wrapper = mount(CarouselList, { // const wrapper = mount(CarouselList, {
global: { // global: {
stubs: ['v-carousel', 'v-carousel-item'], // stubs: ['v-carousel', 'v-carousel-item'],
}, // },
}); // });
// Создаём фейковый элемент видео // // Создаём фейковый элемент видео
wrapper.vm.videoElement = [{ pause: jest.fn(), currentSrc: '' }]; // wrapper.vm.videoElement = [{ pause: jest.fn(), currentSrc: '' }];
wrapper.vm.carous = [{ link: '/video.mp4' }]; // wrapper.vm.carous = [{ link: '/video.mp4' }];
wrapper.vm.currentslide = 0; // wrapper.vm.currentslide = 0;
await wrapper.vm.$nextTick(); // await wrapper.vm.$nextTick();
wrapper.vm.slidechanged(); // wrapper.vm.slidechanged();
expect(wrapper.vm.interval).toBe(10000000000); // expect(wrapper.vm.interval).toBe(10000000000);
}); // });
it('обрабатывает событие ended', async () => { // it('обрабатывает событие ended', async () => {
const wrapper = mount(CarouselList, { // const wrapper = mount(CarouselList, {
global: { // global: {
stubs: ['v-carousel', 'v-carousel-item'], // stubs: ['v-carousel', 'v-carousel-item'],
}, // },
}); // });
const fakeEvent = { // const fakeEvent = {
target: { // target: {
currentTime: 5, // currentTime: 5,
pause: jest.fn(), // pause: jest.fn(),
}, // },
}; // };
wrapper.vm.ended(fakeEvent); // wrapper.vm.ended(fakeEvent);
expect(fakeEvent.target.currentTime).toBe(0); // expect(fakeEvent.target.currentTime).toBe(0);
expect(fakeEvent.target.pause).toHaveBeenCalled(); // expect(fakeEvent.target.pause).toHaveBeenCalled();
expect(document.exitFullscreen).toHaveBeenCalled(); // expect(document.exitFullscreen).toHaveBeenCalled();
}); // });
}); // });