Initial commit: InfoUser Monitor with FastAPI, agent, Docker, JWT auth, notifications, filters and CSV export
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
function escapeHtml(text) {
|
||||
if (text == null) return '';
|
||||
return text.toString()
|
||||
.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/"/g, '"');
|
||||
}
|
||||
|
||||
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';
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user