modified: templates/edit_user.html modified: templates/global_admin_dashboard.html modified: templates/landing.html modified: templates/login.html modified: templates/logs.html modified: templates/navigation.html modified: templates/server_admin_dashboard.html modified: templates/user_dashboard.html modified: templates/user_giveaways.html new file: templates/user_giveaways_old.html modified: templates/user_landing_page.html
266 lines
8.1 KiB
HTML
266 lines
8.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Bot Logs</title>
|
|
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
background: linear-gradient(135deg, #0c1426 0%, #1a1f2e 25%, #2d3748 75%, #0c1426 100%);
|
|
min-height: 100vh;
|
|
color: #e2e8f0;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
}
|
|
|
|
.logs-header {
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
padding: 2rem 0;
|
|
}
|
|
|
|
.logs-title {
|
|
color: #e2e8f0;
|
|
font-weight: 700;
|
|
font-size: 2.5rem;
|
|
margin-bottom: 0.5rem;
|
|
text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.logs-subtitle {
|
|
color: #a0aec0;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.logs-container {
|
|
background: rgba(26, 31, 46, 0.8);
|
|
backdrop-filter: blur(15px);
|
|
border: 1px solid rgba(102, 126, 234, 0.2);
|
|
border-radius: 20px;
|
|
overflow: hidden;
|
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.logs-header-controls {
|
|
background: rgba(45, 55, 72, 0.6);
|
|
padding: 1.5rem;
|
|
border-bottom: 1px solid rgba(102, 126, 234, 0.1);
|
|
display: flex;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.logs-btn {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
border: none;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 50px;
|
|
color: white;
|
|
text-decoration: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
|
|
}
|
|
|
|
.logs-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
|
|
color: white;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.logs-btn.secondary {
|
|
background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
|
|
box-shadow: 0 4px 15px rgba(74, 85, 104, 0.3);
|
|
}
|
|
|
|
.logs-btn.secondary:hover {
|
|
box-shadow: 0 8px 25px rgba(74, 85, 104, 0.4);
|
|
}
|
|
|
|
.logs-btn.back-btn {
|
|
background: linear-gradient(135deg, #38b2ac 0%, #319795 100%);
|
|
box-shadow: 0 4px 15px rgba(56, 178, 172, 0.3);
|
|
}
|
|
|
|
.logs-btn.back-btn:hover {
|
|
box-shadow: 0 8px 25px rgba(56, 178, 172, 0.4);
|
|
}
|
|
|
|
.log-content {
|
|
height: 500px;
|
|
overflow-y: auto;
|
|
background: rgba(12, 20, 38, 0.9);
|
|
color: #e2e8f0;
|
|
padding: 1.5rem;
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 0.9rem;
|
|
line-height: 1.4;
|
|
border: none;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: #667eea rgba(26, 31, 46, 0.5);
|
|
}
|
|
|
|
.log-content::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.log-content::-webkit-scrollbar-track {
|
|
background: rgba(26, 31, 46, 0.5);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.log-content::-webkit-scrollbar-thumb {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.log-content::-webkit-scrollbar-thumb:hover {
|
|
background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
|
|
}
|
|
|
|
.loading-spinner {
|
|
display: none;
|
|
text-align: center;
|
|
padding: 2rem;
|
|
color: #a0aec0;
|
|
}
|
|
|
|
.loading-spinner i {
|
|
font-size: 2rem;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.status-indicator {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
color: #a0aec0;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: #48bb78;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.logs-header-controls {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
}
|
|
|
|
.logs-title {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.log-content {
|
|
height: 400px;
|
|
font-size: 0.8rem;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container mt-5">
|
|
<div class="logs-header">
|
|
<h1 class="logs-title">
|
|
<i class="fas fa-file-alt"></i> Bot Logs
|
|
</h1>
|
|
<p class="logs-subtitle">Real-time bot activity and system logs</p>
|
|
</div>
|
|
|
|
<div class="logs-container">
|
|
<div class="logs-header-controls">
|
|
<div class="d-flex gap-2 flex-wrap">
|
|
<button class="logs-btn" onclick="refreshLogs()">
|
|
<i class="fas fa-sync-alt"></i> Refresh Logs
|
|
</button>
|
|
<a href="{{ url_for('download_logs') }}" class="logs-btn secondary">
|
|
<i class="fas fa-download"></i> Download Logs
|
|
</a>
|
|
</div>
|
|
<div class="status-indicator">
|
|
<div class="status-dot"></div>
|
|
<span>Live monitoring active</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="loading-spinner" id="loading-spinner">
|
|
<i class="fas fa-spinner"></i>
|
|
<p>Loading logs...</p>
|
|
</div>
|
|
|
|
<pre id="log-content" class="log-content"></pre>
|
|
|
|
<div style="padding: 1.5rem; text-align: center; border-top: 1px solid rgba(102, 126, 234, 0.1);">
|
|
<a href="{{ url_for('admin_dashboard') }}" class="logs-btn back-btn">
|
|
<i class="fas fa-arrow-left"></i> Back to Dashboard
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script>
|
|
function refreshLogs() {
|
|
const spinner = document.getElementById("loading-spinner");
|
|
const logContent = document.getElementById("log-content");
|
|
|
|
spinner.style.display = "block";
|
|
logContent.style.display = "none";
|
|
|
|
fetch('{{ url_for("get_logs") }}')
|
|
.then(response => response.json())
|
|
.then(data => {
|
|
logContent.textContent = data.logs;
|
|
spinner.style.display = "none";
|
|
logContent.style.display = "block";
|
|
|
|
// Auto-scroll to bottom
|
|
logContent.scrollTop = logContent.scrollHeight;
|
|
})
|
|
.catch(error => {
|
|
console.error('Error fetching logs:', error);
|
|
logContent.textContent = 'Error loading logs. Please try again.';
|
|
spinner.style.display = "none";
|
|
logContent.style.display = "block";
|
|
});
|
|
}
|
|
|
|
// Auto-refresh logs every 30 seconds
|
|
setInterval(refreshLogs, 30000);
|
|
|
|
window.onload = refreshLogs;
|
|
</script>
|
|
</body>
|
|
|
|
</html> |