55 lines
1.9 KiB
HTML
55 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="it">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>ZeroCentral - Network Monitor</title>
|
|
<link rel="icon" type="image/png" href="{{ url_for('static', filename='favicon.png') }}">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<header>
|
|
<h1>🌐 ZeroCentral</h1>
|
|
<p class="subtitle">ZeroTier Network Monitor</p>
|
|
</header>
|
|
|
|
<div class="config-section">
|
|
<label for="networkId">Network ID:</label>
|
|
<input
|
|
type="text"
|
|
id="networkId"
|
|
placeholder="Inserisci l'ID della rete ZeroTier"
|
|
maxlength="16"
|
|
>
|
|
<button onclick="setNetwork()">Connetti</button>
|
|
<span id="status-indicator" class="status-dot offline"></span>
|
|
</div>
|
|
|
|
<div class="stats-section">
|
|
<div class="stat-box">
|
|
<div class="stat-label">Nodi Totali</div>
|
|
<div class="stat-value" id="total-nodes">-</div>
|
|
</div>
|
|
<div class="stat-box">
|
|
<div class="stat-label">Nodi Online</div>
|
|
<div class="stat-value" id="online-nodes">-</div>
|
|
</div>
|
|
<div class="stat-box">
|
|
<div class="stat-label">Ultimo Aggiornamento</div>
|
|
<div class="stat-value" id="last-update">-</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="nodes-section">
|
|
<h2>Nodi della Rete</h2>
|
|
<div id="nodes-container" class="nodes-grid">
|
|
<p class="empty-state">Inserisci un Network ID per visualizzare i nodi</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="{{ url_for('static', filename='dashboard.js') }}"></script>
|
|
</body>
|
|
</html>
|