feat: Add initial PolyWeather legacy dashboard application with map, detail panel, and temperature charts.

This commit is contained in:
2569718930@qq.com
2026-03-08 13:24:34 +08:00
parent 0417387c0b
commit b53f1f74bd
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ export default function HomePage() {
<main className="h-screen w-screen overflow-hidden bg-black">
<iframe
title="PolyWeather Legacy Dashboard"
src="/legacy/index.html?v=legacy-v2"
src="/legacy/index.html?v=legacy-v3"
className="h-full w-full border-0"
/>
</main>
+2 -2
View File
@@ -16,7 +16,7 @@
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="/static/style.css">
<link rel="stylesheet" href="/static/style.css?v=legacy-v3">
</head>
<body>
@@ -211,7 +211,7 @@
<script src="https://leaflet.github.io/Leaflet.heat/dist/leaflet-heat.js"></script>
<!-- Chart.js -->
<script src="https://cdn.jsdelivr.net/npm/chart.js@4/dist/chart.umd.min.js"></script>
<script src="/static/app.js"></script>
<script src="/static/app.js?v=legacy-v3"></script>
</body>
</html>
+3 -3
View File
@@ -1325,9 +1325,9 @@ async function openHistoryModal() {
selectedCity === "ankara" && mgms.some((value) => value != null);
statsDiv.innerHTML = `
<div class="h-stat-card"><span class="label">DEB ???? (WU)</span><span class="val">${hitRate === "--" ? "--" : `${hitRate}%`}</span></div>
<div class="h-stat-card"><span class="label">DEB MAE</span><span class="val">${debMae}?</span></div>
<div class="h-stat-card"><span class="label">?15??????</span><span class="val">${settledData.length}?</span></div>
<div class="h-stat-card"><span class="label">DEB 结算胜率 (WU)</span><span class="val">${hitRate === "--" ? "--" : `${hitRate}%`}</span></div>
<div class="h-stat-card"><span class="label">DEB MAE</span><span class="val">${debMae}&deg;</span></div>
<div class="h-stat-card"><span class="label">15天已结算样本</span><span class="val">${settledData.length}</span></div>
`;
const datasets = [