Sync from main server - 2026-04-15 13:03:38
This commit is contained in:
@@ -1,67 +1,108 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="en" data-theme="dark">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Navitrends - Management Platform</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&display=swap" rel="stylesheet">
|
||||
<title>Navitrends — Ops Platform</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Geist+Mono:wght@300;400;500&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
<div class="app">
|
||||
<div class="sidebar">
|
||||
<div class="sidebar-header">
|
||||
<h2>Navitrends</h2>
|
||||
<p>Management Platform</p>
|
||||
</div>
|
||||
<div class="nav-menu">
|
||||
<div class="nav-item active" data-page="dashboard">
|
||||
<i class="fas fa-chart-line nav-icon"></i>
|
||||
<span>Dashboard</span>
|
||||
</div>
|
||||
<div class="nav-item" data-page="restore">
|
||||
<i class="fas fa-rotate-right nav-icon"></i>
|
||||
<span>Restore Actions</span>
|
||||
</div>
|
||||
<div class="nav-item" data-page="backups">
|
||||
<i class="fas fa-database nav-icon"></i>
|
||||
<span>Backups</span>
|
||||
</div>
|
||||
<div class="nav-item" data-page="settings">
|
||||
<i class="fas fa-sliders-h nav-icon"></i>
|
||||
<span>Settings</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layout">
|
||||
|
||||
<div class="main-content">
|
||||
<div class="top-bar">
|
||||
<h3 id="page-title">Dashboard Overview</h3>
|
||||
<div class="server-status">
|
||||
<div class="status-indicator">
|
||||
<span class="status-dot" id="server-status-dot"></span>
|
||||
<span id="server-status-text">Checking...</span>
|
||||
</div>
|
||||
<button class="btn btn-secondary" onclick="refreshStatus()">
|
||||
<i class="fas fa-sync-alt"></i> Refresh
|
||||
<!-- ── SIDEBAR ── -->
|
||||
<aside class="sidebar">
|
||||
<div class="sidebar-brand">
|
||||
<div class="brand-mark">NV</div>
|
||||
<div>
|
||||
<div class="brand-name">Navitrends</div>
|
||||
<div class="brand-sub">OPS PLATFORM</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<nav class="nav">
|
||||
<div class="nav-section-label">MONITOR</div>
|
||||
<a class="nav-item active" data-page="dashboard" href="#">
|
||||
<i class="fas fa-gauge-high"></i><span>Dashboard</span>
|
||||
</a>
|
||||
<a class="nav-item" data-page="containers" href="#">
|
||||
<i class="fas fa-cubes"></i><span>All Containers</span>
|
||||
<span class="nav-badge" id="nav-badge-containers">—</span>
|
||||
</a>
|
||||
|
||||
<div class="nav-section-label" style="margin-top:20px;">OPERATIONS</div>
|
||||
<a class="nav-item" data-page="restore" href="#">
|
||||
<i class="fas fa-rotate-right"></i><span>Restore</span>
|
||||
</a>
|
||||
<a class="nav-item" data-page="backups" href="#">
|
||||
<i class="fas fa-database"></i><span>Backups</span>
|
||||
</a>
|
||||
|
||||
<div class="nav-section-label" style="margin-top:20px;">ADMIN</div>
|
||||
<a class="nav-item" data-page="users" href="#">
|
||||
<i class="fas fa-users-gear"></i><span>Users</span>
|
||||
<span class="nav-badge" id="nav-badge-users">—</span>
|
||||
</a>
|
||||
<a class="nav-item" data-page="settings" href="#">
|
||||
<i class="fas fa-sliders"></i><span>Settings</span>
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
<div class="sidebar-footer">
|
||||
<div class="server-pill" id="server-pill">
|
||||
<span class="pulse-dot" id="pulse-dot"></span>
|
||||
<span id="server-status-text">Checking…</span>
|
||||
</div>
|
||||
<!-- Theme toggle -->
|
||||
<button class="theme-toggle" id="theme-toggle" title="Toggle light/dark mode" onclick="toggleTheme()">
|
||||
<i class="fas fa-moon" id="theme-icon"></i>
|
||||
</button>
|
||||
<a href="/logout" class="logout-btn" title="Logout"><i class="fas fa-right-from-bracket"></i></a>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<!-- ── MAIN ── -->
|
||||
<main class="main">
|
||||
<header class="topbar">
|
||||
<div class="topbar-left">
|
||||
<h1 class="page-title" id="page-title">Dashboard</h1>
|
||||
<span class="page-subtitle" id="page-subtitle">{{ main_server }}</span>
|
||||
</div>
|
||||
<div class="topbar-right">
|
||||
<button class="icon-btn" onclick="refreshAll()" title="Refresh">
|
||||
<i class="fas fa-sync-alt" id="refresh-icon"></i>
|
||||
</button>
|
||||
<a href="/logout">
|
||||
<button class="btn btn-secondary">
|
||||
<i class="fas fa-sign-out-alt"></i> Logout
|
||||
</button>
|
||||
</a>
|
||||
<div class="uptime-chip" id="uptime-chip">—</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
<div class="footer">
|
||||
<i class="fas fa-shield-alt"></i> Navitrends Management Platform
|
||||
<div class="content">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script src="{{ url_for('static', filename='js/main.js') }}"></script>
|
||||
<script>
|
||||
// ── Theme persistence ───────────────────────────────────────
|
||||
(function() {
|
||||
const saved = localStorage.getItem('nv-theme') || 'dark';
|
||||
applyTheme(saved);
|
||||
})();
|
||||
|
||||
function applyTheme(theme) {
|
||||
document.documentElement.setAttribute('data-theme', theme);
|
||||
const icon = document.getElementById('theme-icon');
|
||||
if (icon) icon.className = theme === 'dark' ? 'fas fa-moon' : 'fas fa-sun';
|
||||
localStorage.setItem('nv-theme', theme);
|
||||
}
|
||||
|
||||
function toggleTheme() {
|
||||
const current = document.documentElement.getAttribute('data-theme') || 'dark';
|
||||
applyTheme(current === 'dark' ? 'light' : 'dark');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,48 +4,76 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Navitrends — Login</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Geist+Mono:wght@400;500&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: 'Inter', sans-serif;
|
||||
display: flex; justify-content: center; align-items: center;
|
||||
min-height: 100vh;
|
||||
background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
|
||||
font-family: 'Syne', sans-serif;
|
||||
background: #0a0b0e;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
min-height: 100vh; color: #e8ecf4;
|
||||
}
|
||||
.login-card {
|
||||
background: white; border-radius: 24px;
|
||||
padding: 48px 40px; width: 380px;
|
||||
text-align: center;
|
||||
box-shadow: 0 25px 60px rgba(0,0,0,0.3);
|
||||
body::before {
|
||||
content: ''; position: fixed; inset: 0;
|
||||
background-image:
|
||||
linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
|
||||
background-size: 40px 40px; pointer-events: none;
|
||||
}
|
||||
h1 { font-size: 26px; font-weight: 700; color: #1e1b4b; }
|
||||
p { color: #6b7280; margin: 6px 0 28px; font-size: 14px; }
|
||||
input {
|
||||
width: 100%; padding: 13px 16px; margin-bottom: 12px;
|
||||
border: 1.5px solid #e5e7eb; border-radius: 12px;
|
||||
font-size: 14px; transition: border-color 0.15s;
|
||||
.card {
|
||||
background: #111318; border: 1px solid #1e2330;
|
||||
border-radius: 20px; padding: 44px 40px; width: 380px; position: relative;
|
||||
}
|
||||
input:focus { outline: none; border-color: #6366f1; }
|
||||
.card::before {
|
||||
content: ''; position: absolute; top: 0; left: 40px; right: 40px; height: 2px;
|
||||
background: linear-gradient(90deg, #3b82f6, #60a5fa, #a78bfa);
|
||||
border-radius: 0 0 4px 4px;
|
||||
}
|
||||
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
|
||||
.brand-mark {
|
||||
width: 40px; height: 40px; background: #3b82f6; border-radius: 10px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-family: 'Geist Mono', monospace; font-weight: 500; font-size: 13px; color: #fff;
|
||||
}
|
||||
.brand-name { font-size: 18px; font-weight: 700; }
|
||||
.brand-sub { font-size: 11px; color: #4a5568; font-family: 'Geist Mono', monospace; letter-spacing: 0.08em; }
|
||||
label { display: block; font-size: 11px; font-weight: 600; color: #8892a4; letter-spacing: 0.1em; margin-bottom: 7px; }
|
||||
input[type="password"] {
|
||||
width: 100%; padding: 11px 14px; background: #181c24;
|
||||
border: 1px solid #262d3d; border-radius: 10px;
|
||||
font-size: 14px; font-family: 'Geist Mono', monospace;
|
||||
color: #e8ecf4; letter-spacing: 0.1em; margin-bottom: 20px;
|
||||
transition: border-color 0.18s;
|
||||
}
|
||||
input[type="password"]:focus { outline: none; border-color: #3b82f6; }
|
||||
button {
|
||||
width: 100%; padding: 13px;
|
||||
background: #6366f1; color: white;
|
||||
border: none; border-radius: 12px;
|
||||
font-size: 15px; font-weight: 600;
|
||||
cursor: pointer; transition: background 0.15s;
|
||||
width: 100%; padding: 12px; background: #3b82f6; color: #fff;
|
||||
border: none; border-radius: 10px; font-size: 14px; font-weight: 600;
|
||||
font-family: 'Syne', sans-serif; cursor: pointer; transition: background 0.18s;
|
||||
}
|
||||
button:hover { background: #2563eb; }
|
||||
.error {
|
||||
color: #ef4444; font-size: 12px; margin-bottom: 14px;
|
||||
padding: 9px 12px; background: rgba(239,68,68,0.08);
|
||||
border: 1px solid rgba(239,68,68,0.2); border-radius: 8px;
|
||||
}
|
||||
button:hover { background: #4f46e5; }
|
||||
.error { color: #ef4444; font-size: 13px; margin-bottom: 12px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="login-card">
|
||||
<h1>Navitrends</h1>
|
||||
<p>Management Platform</p>
|
||||
{% if error %}<div class="error">⚠️ {{ error }}</div>{% endif %}
|
||||
<div class="card">
|
||||
<div class="brand">
|
||||
<div class="brand-mark">NV</div>
|
||||
<div>
|
||||
<div class="brand-name">Navitrends</div>
|
||||
<div class="brand-sub">OPS PLATFORM</div>
|
||||
</div>
|
||||
</div>
|
||||
{% if error %}<div class="error">⚠ {{ error }}</div>{% endif %}
|
||||
<form method="post">
|
||||
<input type="password" name="password" placeholder="Enter password" required autofocus>
|
||||
<button type="submit">Login →</button>
|
||||
<label>ACCESS PASSWORD</label>
|
||||
<input type="password" name="password" placeholder="••••••••••" required autofocus>
|
||||
<button type="submit">Sign In →</button>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user