делаю гайд для операторов
This commit is contained in:
8
app.py
8
app.py
@@ -1652,3 +1652,11 @@ async def publish_vmix_command(payload: PublishVmixCommandPayload, request: Requ
|
|||||||
async def list_vmix_clients():
|
async def list_vmix_clients():
|
||||||
clients = await vmix_ws_manager.list_clients()
|
clients = await vmix_ws_manager.list_clients()
|
||||||
return {"items": clients}
|
return {"items": clients}
|
||||||
|
|
||||||
|
@app.get("/info", response_class=HTMLResponse)
|
||||||
|
def info_page(request: Request):
|
||||||
|
return templates.TemplateResponse(
|
||||||
|
name="info.html",
|
||||||
|
request=request,
|
||||||
|
context={}
|
||||||
|
)
|
||||||
114
templates/info.html
Normal file
114
templates/info.html
Normal file
@@ -0,0 +1,114 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="ru">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>System Info</title>
|
||||||
|
|
||||||
|
<link rel="icon" href="{{ request.url_for('static', path='smith.ico') }}?v=1">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 40px;
|
||||||
|
background: #000;
|
||||||
|
color: #00ff88;
|
||||||
|
font-family: "Courier New", monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
color: #00ff88;
|
||||||
|
font-size: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
margin-top: 40px;
|
||||||
|
color: #00ffaa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.block {
|
||||||
|
margin-top: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
border: 1px solid #00ff88;
|
||||||
|
background: rgba(0, 255, 100, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.quote {
|
||||||
|
color: #00ffaa;
|
||||||
|
font-style: italic;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.code {
|
||||||
|
background: #001a0f;
|
||||||
|
padding: 10px;
|
||||||
|
border: 1px solid #00ff88;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
margin-top: 15px;
|
||||||
|
border: 1px solid #00ff88;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<h1>[ SYSTEM INFO ]</h1>
|
||||||
|
|
||||||
|
<div class="quote">
|
||||||
|
> Добро пожаловать в систему.
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- БЛОК 1 -->
|
||||||
|
<div class="block">
|
||||||
|
<h2>🔴 Вход в систему</h2>
|
||||||
|
<p>
|
||||||
|
Здесь будет описание логина.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<!-- сюда вставишь скрин -->
|
||||||
|
<!-- <img src="/static/docs/login.png"> -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- БЛОК 2 -->
|
||||||
|
<div class="block">
|
||||||
|
<h2>🔵 Список матчей</h2>
|
||||||
|
<p>
|
||||||
|
Здесь будет описание матчей.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- БЛОК 3 -->
|
||||||
|
<div class="block">
|
||||||
|
<h2>🟣 Матч-центр</h2>
|
||||||
|
<p>
|
||||||
|
Управление матчем.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- БЛОК 4 -->
|
||||||
|
<div class="block">
|
||||||
|
<h2>🟢 Live система</h2>
|
||||||
|
<p>
|
||||||
|
Scheduler и обновления.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- БЛОК 5 -->
|
||||||
|
<div class="block">
|
||||||
|
<h2>🟡 vMix</h2>
|
||||||
|
<p>
|
||||||
|
Интеграция с трансляцией.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="code">
|
||||||
|
[ SYSTEM ONLINE ]<br>
|
||||||
|
[ MATCH TRACKING ENABLED ]<br>
|
||||||
|
[ VMIX CONNECTED ]
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user