mobina-dashboards/dashboards/infra-verify-live.html

31 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<title>داشبورد زنده وضعیت سیستم — mobina</title>
<style>
body { font-family: 'Vazirmatn', Tahoma, sans-serif; background: #f8fafc; color: #0f172a; margin: 24px; direction: rtl; }
.badge { display: inline-block; background: #dcfce7; color: #166534; padding: 6px 12px; border-radius: 8px; font-weight: bold; margin-bottom: 16px; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.info-icon { cursor: help; color: #2563eb; font-weight: bold; margin-right: 6px; }
</style>
</head>
<body>
<div class="badge" data-provenance="LIVE_POSTGRES">🟢 شناسنامه اصالت داده: زنده از دیتابیس PostgreSQL 17 (ekeepa_bi & t4f)</div>
<div class="card">
<h2>شاخص کلیدی سلامت زیرساخت (mobina) <span class="info-icon" title="محاسبه شده از کوئری زنده دیتابیس PostgreSQL 17 و ذخیره شده در /api/db/state">ⓘ (i)</span></h2>
<p>تعداد محصولات فعال در دیتابیس t4f: <strong>0</strong></p>
<p>وضعیت ذخیره‌سازی تعاملی: متصل به <code>/api/db/state</code> در PostgreSQL 17</p>
</div>
<script>
async function syncState() {
try {
const res = await fetch('/api/db/state?key=health_check');
const data = await res.json();
console.log('Loaded from PostgreSQL:', data);
} catch (e) {}
}
syncState();
</script>
</body>
</html>