extra data in stats
This commit is contained in:
@@ -419,3 +419,35 @@ form.inline-form {
|
|||||||
background-color: #f8d7da;
|
background-color: #f8d7da;
|
||||||
color: #721c24;
|
color: #721c24;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.auto-refresh-toggle {
|
||||||
|
margin-top: 1rem;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
background-color: var(--card-bg);
|
||||||
|
border: 1px solid #666;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
|
color: var(--fg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.auto-refresh-toggle label {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
font-weight: bold;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.auto-refresh-toggle input[type="checkbox"] {
|
||||||
|
transform: scale(1.2);
|
||||||
|
accent-color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.auto-refresh-toggle #refresh-status {
|
||||||
|
font-style: italic;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|||||||
@@ -21,6 +21,14 @@
|
|||||||
<button type="submit">Update</button>
|
<button type="submit">Update</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<div class="auto-refresh-toggle">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" id="auto-refresh-checkbox">
|
||||||
|
Auto-refresh every 30s
|
||||||
|
</label>
|
||||||
|
<span id="refresh-status"></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="stats-container">
|
<div class="stats-container">
|
||||||
|
|
||||||
<!-- Access-Accept Card -->
|
<!-- Access-Accept Card -->
|
||||||
@@ -32,6 +40,7 @@
|
|||||||
<th>MAC Address</th>
|
<th>MAC Address</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
<th>Vendor</th>
|
<th>Vendor</th>
|
||||||
|
<th>VLAN</th>
|
||||||
<th>Time</th>
|
<th>Time</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -41,6 +50,7 @@
|
|||||||
<td>{{ entry.mac_address }}</td>
|
<td>{{ entry.mac_address }}</td>
|
||||||
<td>{{ entry.description or '' }}</td>
|
<td>{{ entry.description or '' }}</td>
|
||||||
<td class="vendor-cell" data-mac="{{ entry.mac_address }}">{{ entry.vendor or '...' }}</td>
|
<td class="vendor-cell" data-mac="{{ entry.mac_address }}">{{ entry.vendor or '...' }}</td>
|
||||||
|
<td>{{ entry.vlan_id or '?' }}</td>
|
||||||
<td>{{ entry.ago }}</td>
|
<td>{{ entry.ago }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
@@ -158,14 +168,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="auto-refresh-toggle">
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" id="auto-refresh-checkbox">
|
|
||||||
Auto-refresh every 30s
|
|
||||||
</label>
|
|
||||||
<span id="refresh-status" style="margin-left: 1em; font-size: 0.9em; color: gray;"></span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
// MAC vendor lookup
|
// MAC vendor lookup
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ services:
|
|||||||
- .env
|
- .env
|
||||||
ports:
|
ports:
|
||||||
- "1812:1812/udp"
|
- "1812:1812/udp"
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- webnet
|
- webnet
|
||||||
|
|
||||||
@@ -70,4 +70,4 @@ volumes:
|
|||||||
|
|
||||||
networks:
|
networks:
|
||||||
webnet:
|
webnet:
|
||||||
driver: overlay
|
name: webnet
|
||||||
Reference in New Issue
Block a user