扩展模型区间端点至首尔和釜山,并做前端小幅清理

- GET /api/cities/model-range 新增 seoul/busan,总计 9 城
- 移除未使用的 react-leaflet 依赖
- 提取 chart Tooltip contentStyle 为共享常量 CHART_TOOLTIP_STYLE,消除 6 个文件中 15 处重复内联样式

Tested: npx tsc --noEmit pass
Confidence: high
This commit is contained in:
2569718930@qq.com
2026-05-23 22:59:50 +08:00
parent 0012eddc81
commit b2dd758977
11 changed files with 58 additions and 59 deletions
+5 -1
View File
@@ -22,6 +22,8 @@ _MODEL_RANGE_CITIES: List[str] = [
"chongqing",
"qingdao",
"wuhan",
"seoul",
"busan",
]
_MODEL_RANGE_NAMES: Dict[str, str] = {
@@ -32,6 +34,8 @@ _MODEL_RANGE_NAMES: Dict[str, str] = {
"chongqing": "重庆 (ZUCK)",
"qingdao": "青岛 (ZSQD)",
"wuhan": "武汉 (ZHHH)",
"seoul": "首尔 (RKSI)",
"busan": "釜山 (RKPK)",
}
@@ -45,7 +49,7 @@ async def cities_model_range(
request: Request,
force_refresh: bool = Query(False),
):
"""Return DEB prediction and model range for monitored Chinese cities."""
"""Return DEB prediction and model range for monitored cities (CN + KR)."""
from web.app import _analyze
rows: List[Dict[str, Any]] = []