Files
boc/aamos-admin-upgrade/web/quixzoom.html
T
Bernt 6de2455917 v1.2.0: Add Global Markets footer, translated to 9 languages
- Added GLOBAL_MARKETS_TITLE to all translation files
- Updated footer with 12 markets (4 active + 8 upcoming)
- Translated market section to: zh-cn, zh-tw, ja, ko, th, vi, id, ms, hi
- Built and deployed to production
- CloudFront invalidation: I3RTMXVFDJXWLG3SYX208OP1CC
2026-07-08 19:56:03 +00:00

235 lines
7.2 KiB
HTML

<!DOCTYPE html>
<html lang="sv" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AAMOS Admin — quiXzoom</title>
<link rel="stylesheet" href="assets/admin.css">
<style>
.qz-header {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 24px;
}
.qz-icon {
width: 56px; height: 56px;
border-radius: 16px;
background: linear-gradient(135deg, #34C759, #30D158);
display: flex; align-items: center; justify-content: center;
font-size: 28px;
}
.qz-title h1 { font-size: 24px; font-weight: 700; }
.qz-title p { color: var(--text-tertiary); }
.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
margin-bottom: 24px;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
background: var(--bg-card);
border-radius: var(--radius);
padding: 20px;
box-shadow: var(--shadow);
}
.stat-label { font-size: 13px; color: var(--text-tertiary); margin-bottom: 8px; }
.stat-value { font-size: 32px; font-weight: 700; }
.stat-change { font-size: 13px; margin-top: 4px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }
.missions-table {
width: 100%;
border-collapse: collapse;
font-size: 14px;
}
.missions-table th {
text-align: left;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.4px;
color: var(--text-tertiary);
padding: 12px 16px;
border-bottom: 1px solid var(--separator);
background: var(--bg-input);
}
.missions-table td {
padding: 12px 16px;
border-bottom: 1px solid var(--separator);
}
.status-badge {
font-size: 12px;
font-weight: 600;
padding: 3px 10px;
border-radius: 20px;
}
.status-active { background: rgba(52,199,89,0.12); color: var(--success); }
.status-pending { background: rgba(255,149,0,0.12); color: var(--warning); }
.status-completed { background: var(--bg-input); color: var(--text-tertiary); }
.payout-card {
background: linear-gradient(135deg, #34C759, #30D158);
color: white;
border-radius: var(--radius);
padding: 24px;
margin-bottom: 20px;
}
.payout-card h3 { font-size: 15px; opacity: 0.9; margin-bottom: 8px; }
.payout-card .amount { font-size: 36px; font-weight: 700; }
</style>
</head>
<body>
<aside class="sidebar">
<div class="sidebar-brand">
<div class="brand-icon">
<svg viewBox="0 0 24 24"><path d="M12 2L2 7v10l10 5 10-5V7L12 2zm0 2.18L20 8.5v7L12 19.82 4 15.5v-7l8-4.32z"/></svg>
</div>
<div class="brand-text">
<div class="brand-name">AAMOS Admin</div>
<div class="brand-sub">Unified v2.0</div>
</div>
</div>
<nav class="sidebar-nav">
<div class="nav-section-label">Overview</div>
<a class="nav-item" href="unified-dashboard.html">
<span class="nav-icon">📊</span>
Dashboard
</a>
<a class="nav-item" href="users.html">
<span class="nav-icon">👥</span>
Users
</a>
<a class="nav-item" href="modules.html">
<span class="nav-icon">🔧</span>
Modules
</a>
<div class="nav-section-label">Systems</div>
<a class="nav-item active" href="quixzoom.html">
<span class="nav-icon">📸</span>
quiXzoom
</a>
<a class="nav-item" href="landvex.html">
<span class="nav-icon">🌍</span>
LandveX
</a>
<a class="nav-item" href="economy.html">
<span class="nav-icon">💰</span>
Economy
</a>
<a class="nav-item" href="crm.html">
<span class="nav-icon">🤝</span>
CRM
</a>
<div class="nav-section-label">System</div>
<a class="nav-item" href="audit.html">
<span class="nav-icon">📋</span>
Audit Log
</a>
<a class="nav-item" href="settings.html">
<span class="nav-icon">⚙️</span>
Settings
</a>
</nav>
</aside>
<div class="main">
<header class="topbar">
<div class="topbar-title">quiXzoom</div>
</header>
<section class="page-content active">
<div class="qz-header">
<div class="qz-icon">📸</div>
<div class="qz-title">
<h1>quiXzoom Field Operations</h1>
<p>Crowdsourced infrastructure intelligence</p>
</div>
</div>
<div class="stats-grid">
<div class="stat-card">
<div class="stat-label">Total Missions</div>
<div class="stat-value" id="qz-missions"></div>
<div class="stat-change up">↑ 12% this month</div>
</div>
<div class="stat-card">
<div class="stat-label">Active Missions</div>
<div class="stat-value" id="qz-active"></div>
<div class="stat-change up">↑ 5 new today</div>
</div>
<div class="stat-card">
<div class="stat-label">Submissions</div>
<div class="stat-value" id="qz-submissions"></div>
<div class="stat-change up">↑ 89 this week</div>
</div>
<div class="stat-card">
<div class="stat-label">Contributors</div>
<div class="stat-value" id="qz-contributors"></div>
<div class="stat-change up">↑ 23 new</div>
</div>
</div>
<div class="payout-card">
<h3>Pending Payouts</h3>
<div class="amount" id="qz-payouts"></div>
</div>
<div class="card">
<div class="section-header">
<span class="section-title">Recent Missions</span>
</div>
<table class="missions-table">
<thead>
<tr>
<th>Mission</th>
<th>Location</th>
<th>Budget</th>
<th>Status</th>
<th>Submissions</th>
</tr>
</thead>
<tbody id="missions-tbody">
<tr><td colspan="5" style="text-align:center;padding:40px;color:var(--text-tertiary)">Loading...</td></tr>
</tbody>
</table>
</div>
</section>
</div>
<script src="assets/api.js"></script>
<script>
'use strict';
const api = createAdminAPI(window.location.origin);
async function loadQuixzoom() {
try {
const data = await api._get('/api/v1/unified-dashboard');
const qz = data.quixzoom || {};
document.getElementById('qz-missions').textContent = qz.total_missions?.toLocaleString() || '—';
document.getElementById('qz-active').textContent = qz.active_missions?.toLocaleString() || '—';
document.getElementById('qz-submissions').textContent = qz.total_submissions?.toLocaleString() || '—';
document.getElementById('qz-contributors').textContent = qz.contributors?.toLocaleString() || '—';
document.getElementById('qz-payouts').textContent = (qz.pending_payouts || 0).toLocaleString('sv-SE', {
style: 'currency', currency: 'SEK'
});
} catch (err) {
console.error('quiXzoom load error:', err);
}
}
loadQuixzoom();
</script>
</body>
</html>