Initial commit: InfoUser Monitor with FastAPI, agent, Docker, JWT auth, notifications, filters and CSV export

This commit is contained in:
2026-07-16 11:53:51 +07:00
commit cf2727da2b
31 changed files with 1957 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
function escapeHtml(text) {
if (text == null) return '';
return text.toString()
.replace(/&/g, '&')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;');
}
document.addEventListener('DOMContentLoaded', () => {
const logout = document.getElementById('logout-link');
if (logout) {
logout.addEventListener('click', async (e) => {
e.preventDefault();
await fetch('/api/auth/logout', { method: 'POST' });
window.location.href = '/login';
});
}
});
+36
View File
@@ -0,0 +1,36 @@
body {
background-color: #f5f6f7;
}
.navbar-brand {
font-weight: 600;
}
.card {
border-radius: 0.75rem;
border: 0;
}
.table th {
font-weight: 600;
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.badge {
font-size: 0.85rem;
}
.last-seen {
white-space: nowrap;
font-size: 0.9rem;
}
#computers-table tbody tr {
cursor: default;
}
#computers-table tbody tr:hover {
background-color: #f8f9fa;
}