docs [P-137]: новая версия
This commit is contained in:
1 parent
005d1e6d27
commit
28f6d1ae2d
8 files changed
+2800
-460
No files matched your search
@@ -0,0 +1,685 @@
|
||||
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": "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": "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",
|
||||
"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": "cardLike",
|
||||
"link": "/src/components\\cardLike"
|
||||
},
|
||||
{
|
||||
"text": "carousel-list",
|
||||
"link": "/src/components\\carousel-list"
|
||||
},
|
||||
{
|
||||
"text": "carousel-numbers",
|
||||
"link": "/src/components\\carousel-numbers"
|
||||
},
|
||||
{
|
||||
"text": "CountDown",
|
||||
"link": "/src/components\\CountDown"
|
||||
},
|
||||
{
|
||||
"text": "dialog-search",
|
||||
"link": "/src/components\\dialog-search"
|
||||
},
|
||||
{
|
||||
"text": "digital-letna",
|
||||
"link": "/src/components\\digital-letna"
|
||||
},
|
||||
{
|
||||
"text": "graph",
|
||||
"collapsed": true,
|
||||
"items": [
|
||||
{
|
||||
"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": "CatalogTest",
|
||||
"link": "/src/components\\testing\\CatalogTest"
|
||||
},
|
||||
{
|
||||
"text": "DetailCardTest",
|
||||
"link": "/src/components\\testing\\DetailCardTest"
|
||||
},
|
||||
{
|
||||
"text": "HeaderDetailTesting",
|
||||
"link": "/src/components\\testing\\HeaderDetailTesting"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"text": "tests",
|
||||
"collapsed": true,
|
||||
"items": [
|
||||
{
|
||||
"text": "TestCard",
|
||||
"link": "/src/components\\tests\\TestCard"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"link": "/src/components\\UI\\Auth-form"
|
||||
},
|
||||
{
|
||||
"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": "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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"text": "vote",
|
||||
"collapsed": true,
|
||||
"items": [
|
||||
{
|
||||
"text": "CurrentVote",
|
||||
"link": "/src/components\\vote\\CurrentVote"
|
||||
},
|
||||
{
|
||||
"text": "NoneVote",
|
||||
"link": "/src/components\\vote\\NoneVote"
|
||||
},
|
||||
{
|
||||
"text": "NonVoteHappy",
|
||||
"link": "/src/components\\vote\\NonVoteHappy"
|
||||
},
|
||||
{
|
||||
"text": "NonVoteSad",
|
||||
"link": "/src/components\\vote\\NonVoteSad"
|
||||
},
|
||||
{
|
||||
"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": "alertDefault",
|
||||
"link": "/src/layouts\\default\\alertDefault"
|
||||
},
|
||||
{
|
||||
"text": "DefaultPortal",
|
||||
"link": "/src/layouts\\default\\DefaultPortal"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"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": "app",
|
||||
"link": "/src/store\\app"
|
||||
},
|
||||
{
|
||||
"text": "index",
|
||||
"link": "/src/store\\index"
|
||||
},
|
||||
{
|
||||
"text": "MainmenuStore",
|
||||
"link": "/src/store\\MainmenuStore"
|
||||
},
|
||||
{
|
||||
"text": "UseAlertStore",
|
||||
"link": "/src/store\\UseAlertStore"
|
||||
},
|
||||
{
|
||||
"text": "WeekendsStore",
|
||||
"link": "/src/store\\WeekendsStore"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"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": "nested_view",
|
||||
"collapsed": true,
|
||||
"items": [
|
||||
{
|
||||
"text": "o_OKiB",
|
||||
"link": "/src/views\\nested_view\\o_OKiB"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"text": "NewsPage",
|
||||
"link": "/src/views\\NewsPage"
|
||||
},
|
||||
{
|
||||
"text": "ProvidingActivitiesPage",
|
||||
"link": "/src/views\\ProvidingActivitiesPage"
|
||||
},
|
||||
{
|
||||
"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": "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: 'Гайды',
|
||||
collapsed: true,
|
||||
items: [
|
||||
{ text: 'Как установить', link: '/guides/install' },
|
||||
{ text: 'Как использовать', link: '/guides/usage' }
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
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
|
||||
},});
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
# IS#26 Портал ЦОД-2
|
||||
|
||||
[Общие работы по проекту](/COD2/PORTAL_COD2/projects/22)
|
||||
|
||||
|
||||
Prod Portal9966/ (10.252.44.28)
|
||||
Test Potal-t/ (10.252.44.60)
|
||||
|
||||
## Стэк ##
|
||||
1. Python 3.10
|
||||
2. Vuetify3
|
||||
3. MySQL
|
||||
4. Redis
|
||||
|
||||
## Особенности веток ##
|
||||
У разработчиков у каждого своя ветка.
|
||||
|
||||
npm version patch производится на ветке razrab
|
||||
|
||||
окончательная сборка - на main
|
||||
## Схема ##
|
||||
|
||||
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
A[Клиент] <-->|Запрос к серверу PORTAL9966/ или PORTAL-t/| B{Nginx:80}
|
||||
B <-->|Фронт /| C[Vuetify 3 <br/> /var/www/PORTAL_COD2/src/front/dist]
|
||||
B <-->|бэк <br/> /api <br/> /admin <br/> /ws| D{Daphne :9966}
|
||||
D<--> |/ws| E[Django channels]
|
||||
E<-->F[Redis :6379]
|
||||
D<-->|Admin|G{Django}
|
||||
G<-->|10.252.44.13:8005|H[Авторизация FAST API сервер]
|
||||
H<-->J[Active Directory]
|
||||
G<-->|10.252.44.33:3306|I[MySQL <br/> БД Справочник]
|
||||
B<-->|/static <br/> /media|K[Файлы <br/> /var/www/PORTAL_COD2/src/media <br/> /var/www/PORTAL_COD2/src/static/ ]
|
||||
```
|
||||
|
||||
## Установка и настройка ##
|
||||
|
||||
### Первоначальная установка после клонирования в папку. В случае неисправностей, идти примерно по этому же пути ###
|
||||
|
||||
Инициализация проекта:
|
||||
|
||||
- Инициализировать git
|
||||
- Выполнить git clone
|
||||
|
||||
1. В каталоге проекта Создаем окружение
|
||||
|
||||
``` python3.10 -m venv env ```
|
||||
|
||||
2. Активируем окружение
|
||||
|
||||
``` source env/bin/activate```
|
||||
|
||||
3. устанавливаем необходимые пакеты
|
||||
|
||||
``` cd sys ```
|
||||
```pip install -r r.txt --proxy= http://...```
|
||||
|
||||
Если нет proxy:
|
||||
|
||||
На машине разработки выполнить команду ```pip download -r ../r.txt```
|
||||
|
||||
Команда для установки python
|
||||
```pip install --no-index --find-links /Путь_К_Папке_С_Пакетами/ -r r.txt```
|
||||
|
||||
Запушить изменения в ветку
|
||||
|
||||
Синхронизировать ветку на сервере
|
||||
|
||||
``` git pull ```
|
||||
|
||||
Если произошла ошибка: ``` git reset --hard ```
|
||||
|
||||
4. переходим в каталог src
|
||||
|
||||
``` cd ../src/```
|
||||
|
||||
5. В каталог src разархивируем portal.zip из sys
|
||||
Прописываем подключения в settings.py
|
||||
|
||||
|
||||
6. Для проверки запускаем сервер разработки
|
||||
|
||||
```python manage.py runserver```
|
||||
|
||||
Если в консоли не появляются ошибки и сервер стартует, переходим далее. В противном случае - доустанавливаем необходимые пакеты.
|
||||
|
||||
7. останавливаем сервер разработки (CTRL+C)
|
||||
|
||||
На этом работы непосредственно с бэкэндом завершены
|
||||
### Порты ###
|
||||
Daphne: 9966
|
||||
|
||||
### Настройка NGINX, GUNICORN, Vuetify, Daphne ###
|
||||
В каталоге sys расположены примерные файлы конфигов для тестового и боевого серверов
|
||||
|
||||
Тестовый сервер: /sys/test_server
|
||||
|
||||
При копировании убедиться, что пути соответствуют системе
|
||||
#### NGINX Vuetify ####
|
||||
Стандартный путь для файлов .conf
|
||||
/etc/nginx/sites-enabled
|
||||
|
||||
|
||||
#### Daphne ####
|
||||
Файлы .service кладем в каталог /etc/systemd/system
|
||||
|
||||
Проверяем путь виртуального окружения и порт в файле на соответствие с конфигурацией Nginx
|
||||
|
||||
#### Запуск сервера ####
|
||||
Запускаем Daphne ``` Start portaldaphne ```
|
||||
Перезагружаем Nginx ``` Restart nginx ```
|
||||
@@ -17,7 +17,7 @@ npx vitepress init
|
||||
|
||||
#### Во время инициализации вам будет предложено выбрать конфигурацию:
|
||||
|
||||
```wbnet
|
||||
```txt
|
||||
┌ Welcome to VitePress!
|
||||
│
|
||||
◇ Where should VitePress initialize the config?
|
||||
|
||||
@@ -183,3 +183,53 @@ watch(
|
||||
* Отслеживает Реагирует Синхронизирует.
|
||||
*/
|
||||
```
|
||||
|
||||
## Аргументы
|
||||
|
||||
Комментарии к аргументам оформляются с ключевым словом `@param`.
|
||||
|
||||
Пример:
|
||||
|
||||
```js
|
||||
/**
|
||||
* @arrowFunc
|
||||
* Фильтрует Преобразует Обрабатывает.
|
||||
* @param {number} idus ID пользователя.
|
||||
*/
|
||||
const getcard = async (idus) => {
|
||||
menuGetUserDialog.value = true
|
||||
iduser.value = idus
|
||||
}
|
||||
```
|
||||
|
||||
Если аргументов несколько, то каждый пишется с новой строчки:
|
||||
|
||||
```js
|
||||
/**
|
||||
* @arrowFunc
|
||||
* Фильтрует Преобразует Обрабатывает.
|
||||
* @param {number} pos Позиция.
|
||||
* @param {string} name Название раунда.
|
||||
*/
|
||||
const detailRound = (pos, name) => {
|
||||
idpos.value=pos
|
||||
namepos.value=name
|
||||
dialogDetailRound.value=!dialogDetailRound.value
|
||||
axiosApiInstance.get(api/general_vacation/dailyload/?id=pos).then(data => {
|
||||
t_dailyRound.value = data.data
|
||||
|
||||
result.value=JSON.parse(JSON.stringify(data.data.daily))
|
||||
|
||||
})
|
||||
}
|
||||
```
|
||||
|
||||
Шаблон:
|
||||
|
||||
```js
|
||||
/**
|
||||
* @arrowFunc
|
||||
* Фильтрует Преобразует Обрабатывает.
|
||||
* @param {} .
|
||||
*/
|
||||
```
|
||||
+10
-14
@@ -3,23 +3,19 @@
|
||||
layout: home
|
||||
|
||||
hero:
|
||||
name: "Portal"
|
||||
text: "Описание доки"
|
||||
tagline: My great project tagline
|
||||
name: "Портал"
|
||||
text: "Документация по порталу"
|
||||
actions:
|
||||
- theme: brand
|
||||
text: Markdown Examples
|
||||
link: /markdown-examples
|
||||
- theme: alt
|
||||
text: API Examples
|
||||
link: /api-examples
|
||||
text: Документация
|
||||
link: /README
|
||||
|
||||
features:
|
||||
- title: Feature A
|
||||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
||||
- title: Feature B
|
||||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
||||
- title: Feature C
|
||||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
||||
- title: Инструкция
|
||||
details: Подробная инструкция по установке
|
||||
link: /guides/install
|
||||
- title: Инструкция по ведению и заполнению
|
||||
details: Подробная инструкция по ведению и заполнению
|
||||
link: /guides/usage
|
||||
---
|
||||
|
||||
Reference in new issue
Block a user