2026-04-02 02:30:21 -04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<title>notgraph Report</title>
|
2026-04-02 03:50:53 -04:00
|
|
|
<script src="https://unpkg.com/mermaid@11/dist/mermaid.min.js"></script>
|
2026-04-02 02:30:21 -04:00
|
|
|
<style>
|
2026-04-02 03:04:27 -04:00
|
|
|
:root {{
|
|
|
|
|
--bg: #1a1a1a;
|
|
|
|
|
--bg2: #242424;
|
|
|
|
|
--bg3: #2e2e2e;
|
|
|
|
|
--border: #3a3a3a;
|
|
|
|
|
--text: #e0e0e0;
|
|
|
|
|
--accent: #4a9eff;
|
|
|
|
|
--heading-border: #4a9eff;
|
2026-04-02 20:53:07 -04:00
|
|
|
--cycle-bg: #3a1a1a;
|
|
|
|
|
--cycle-text: #f44336;
|
2026-04-02 03:04:27 -04:00
|
|
|
}}
|
|
|
|
|
* {{ box-sizing: border-box; }}
|
|
|
|
|
body {{ font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); margin: 0; padding: 2rem; max-width: 1200px; }}
|
|
|
|
|
h1 {{ color: var(--accent); margin-bottom: 0.5rem; }}
|
2026-04-02 20:53:07 -04:00
|
|
|
h2 {{ border-bottom: 2px solid var(--heading-border); padding-bottom: 0.3rem; color: var(--text); margin-top: 2.5rem; }}
|
|
|
|
|
h3 {{ color: var(--accent); margin-top: 1.5rem; margin-bottom: 0.5rem; }}
|
|
|
|
|
.graph-wrap {{ background: var(--bg2); border: 1px solid var(--border); border-radius: 4px; padding: 1.5rem; margin-bottom: 1.5rem; overflow-x: auto; }}
|
2026-04-02 02:30:21 -04:00
|
|
|
table {{ border-collapse: collapse; width: 100%; margin-bottom: 2rem; }}
|
2026-04-02 03:04:27 -04:00
|
|
|
th, td {{ border: 1px solid var(--border); padding: 0.4rem 0.8rem; text-align: left; }}
|
|
|
|
|
th {{ background: var(--bg3); cursor: pointer; user-select: none; color: var(--accent); }}
|
|
|
|
|
th:hover {{ background: var(--border); }}
|
|
|
|
|
td {{ background: var(--bg2); }}
|
|
|
|
|
tr:hover td {{ background: var(--bg3); }}
|
|
|
|
|
p {{ color: var(--text); }}
|
2026-04-02 20:53:07 -04:00
|
|
|
.cycle-entry {{ background: var(--cycle-bg); color: var(--cycle-text); padding: 0.4rem 0.8rem; border-left: 3px solid var(--cycle-text); border-radius: 2px; font-family: monospace; }}
|
|
|
|
|
.legend {{ display: flex; gap: 1.5rem; margin-bottom: 1rem; font-size: 0.85rem; color: #888; }}
|
|
|
|
|
.legend-item {{ display: flex; align-items: center; gap: 0.4rem; }}
|
|
|
|
|
.legend-swatch {{ width: 14px; height: 14px; border-radius: 2px; border: 1px solid #4a9eff; }}
|
2026-04-02 02:30:21 -04:00
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<h1>notgraph Report</h1>
|
2026-04-02 20:53:07 -04:00
|
|
|
|
2026-04-02 02:30:21 -04:00
|
|
|
<h2>Crate Dependency Graph</h2>
|
2026-04-02 20:53:07 -04:00
|
|
|
<div class="legend">
|
|
|
|
|
<div class="legend-item"><div class="legend-swatch" style="background:#1e3a5f"></div> low fan-in</div>
|
|
|
|
|
<div class="legend-item"><div class="legend-swatch" style="background:#1e72ff"></div> high fan-in</div>
|
|
|
|
|
<div class="legend-item"><div class="legend-swatch" style="background:#7a1a1a;border-color:#f44336"></div> cycle</div>
|
|
|
|
|
</div>
|
2026-04-02 03:50:53 -04:00
|
|
|
<div class="graph-wrap">
|
|
|
|
|
<pre class="mermaid">
|
|
|
|
|
%%{{init: {{'theme':'dark','themeVariables':{{'darkMode':true,'background':'#242424','primaryColor':'#1e3a5f','primaryBorderColor':'#4a9eff','primaryTextColor':'#e0e0e0','lineColor':'#4a9eff','edgeLabelBackground':'#242424'}}}}}}%%
|
|
|
|
|
{graph_diagram}</pre>
|
|
|
|
|
</div>
|
2026-04-02 20:53:07 -04:00
|
|
|
|
|
|
|
|
<h2>Module Graphs</h2>
|
|
|
|
|
{module_diagrams}
|
|
|
|
|
|
2026-04-02 02:30:21 -04:00
|
|
|
<h2>Hotspots</h2>
|
|
|
|
|
<table id="hotspots">
|
|
|
|
|
<thead><tr>
|
|
|
|
|
<th onclick="sortTable('hotspots',0,this)">Name</th>
|
|
|
|
|
<th onclick="sortTable('hotspots',1,this)">Kind</th>
|
|
|
|
|
<th onclick="sortTable('hotspots',2,this)">Score</th>
|
|
|
|
|
</tr></thead>
|
|
|
|
|
<tbody>{hotspot_rows}</tbody>
|
|
|
|
|
</table>
|
2026-04-02 20:53:07 -04:00
|
|
|
|
2026-04-02 02:30:21 -04:00
|
|
|
<h2>Cycle Report</h2>
|
|
|
|
|
{cycle_html}
|
2026-04-02 20:53:07 -04:00
|
|
|
|
2026-04-02 02:30:21 -04:00
|
|
|
<script>
|
2026-04-02 03:50:53 -04:00
|
|
|
mermaid.initialize({{ startOnLoad: true }});
|
2026-04-02 02:30:21 -04:00
|
|
|
function sortTable(id, col, th) {{
|
|
|
|
|
const t = document.getElementById(id);
|
|
|
|
|
const asc = th.dataset.dir !== 'asc';
|
|
|
|
|
th.dataset.dir = asc ? 'asc' : 'desc';
|
|
|
|
|
const rows = Array.from(t.querySelectorAll('tbody tr'));
|
|
|
|
|
rows.sort((a, b) => {{
|
|
|
|
|
const av = a.cells[col].textContent.trim();
|
|
|
|
|
const bv = b.cells[col].textContent.trim();
|
|
|
|
|
const cmp = av.localeCompare(bv, undefined, {{numeric: true}});
|
|
|
|
|
return asc ? cmp : -cmp;
|
|
|
|
|
}});
|
|
|
|
|
const tbody = t.querySelector('tbody');
|
|
|
|
|
rows.forEach(r => tbody.appendChild(r));
|
|
|
|
|
}}
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|