elahe-dashboards/dashboards/graph.html

34 lines
No EOL
2.1 KiB
HTML

<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<title>گراف تعاملی دانش و پروژه‌های elahe</title>
<style>
body { margin: 0; padding: 0; font-family: Tahoma, sans-serif; background: #0f172a; color: #f8fafc; overflow: hidden; }
#header { position: absolute; top: 16px; right: 20px; z-index: 10; background: rgba(15,23,42,0.88); padding: 12px 20px; border-radius: 12px; border: 1px solid #334155; backdrop-filter: blur(8px); }
#header h2 { margin: 0 0 6px 0; font-size: 16px; color: #38bdf8; }
#header p { margin: 0; font-size: 12px; color: #94a3b8; }
#network { width: 100vw; height: 100vh; }
</style>
<script src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
</head>
<body>
<div id="header">
<h2>🗺 نقشه تعاملی دانش و ارتباطات فایل‌ها (elahe)</h2>
<p>تعداد گره‌ها: 3 | تعداد ارتباطات: 1 | به صورت زنده متصل به گیت و دیتابیس</p>
</div>
<div id="network"></div>
<script>
const nodes = new vis.DataSet([{"id": "INDEX.md", "label": "INDEX.md", "title": "🗂 فهرست جامع دانش‌نامه موضوعی (elahe)", "group": "md", "value": 15}, {"id": "growth-strategy-1405.md", "label": "growth-strategy-1405.md", "title": "استراتژی رشد اکیپا ۱۴۰۵", "group": "md", "value": 15}, {"id": "infra-readiness-2026.md", "label": "infra-readiness-2026.md", "title": "📚 دانش‌نامه: گزارش آمادگی زیرساخت ایجنت elahe", "group": "md", "value": 15}]);
const edges = new vis.DataSet([{"from": "INDEX.md", "to": "infra-readiness-2026.md"}]);
const container = document.getElementById('network');
const data = { nodes: nodes, edges: edges };
const options = {
nodes: { shape: 'dot', font: { color: '#f8fafc', face: 'Tahoma', size: 12 } },
edges: { color: '#64748b', arrows: 'to' },
physics: { stabilization: true, barnesHut: { gravitationalConstant: -2500, springLength: 90 } }
};
const network = new vis.Network(container, data, options);
</script>
</body>
</html>