Implement distribution management API and UI forms; add distribution model and tests
This commit is contained in:
25
templates/Dashboard.html
Normal file
25
templates/Dashboard.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>CalMiner Dashboard</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Simulation Results Dashboard</h1>
|
||||
<div id="report-summary"></div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
<script>
|
||||
// TODO: fetch summary report and render charts
|
||||
async function loadReport() {
|
||||
const response = await fetch('/api/reporting/summary', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify([])
|
||||
});
|
||||
const data = await response.json();
|
||||
document.getElementById('report-summary').innerText = JSON.stringify(data);
|
||||
}
|
||||
loadReport();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user