From 02fd7d9e49484cab2cdd03374c29b26520ae679f Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Sun, 17 May 2026 18:08:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20CI:=20=E9=80=82=E9=85=8D?= =?UTF-8?q?=20MobileCityPicker=20=E6=B5=8B=E8=AF=95=E6=96=AD=E8=A8=80=20+?= =?UTF-8?q?=20=E6=B8=85=E7=90=86=20f-string=20=E5=92=8C=E6=97=A0=E7=94=A8?= =?UTF-8?q?=20import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - removedMonitorRunwayTabs.test.ts: 检查 MobileCityPicker 替代旧 scan-mobile-city-list-view - stableServerRefreshPolicy.test.ts: 同上,MobileCityPicker 替代旧视图标识 - scan_forum_topics.py: 移除无占位符的 f-string 和无用 json import --- .../__tests__/removedMonitorRunwayTabs.test.ts | 4 ++-- .../__tests__/stableServerRefreshPolicy.test.ts | 6 +++--- scripts/scan_forum_topics.py | 3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/frontend/components/dashboard/scan-terminal/__tests__/removedMonitorRunwayTabs.test.ts b/frontend/components/dashboard/scan-terminal/__tests__/removedMonitorRunwayTabs.test.ts index a41628b9..1c9957fc 100644 --- a/frontend/components/dashboard/scan-terminal/__tests__/removedMonitorRunwayTabs.test.ts +++ b/frontend/components/dashboard/scan-terminal/__tests__/removedMonitorRunwayTabs.test.ts @@ -44,9 +44,9 @@ export function runTests() { ); assert( shellPartsSource.includes('"city-list"') && - dashboardSource.includes("scan-mobile-city-list-view") && + dashboardSource.includes("MobileCityPicker") && dashboardSource.includes('setActiveView("city-list")'), - "mobile web should expose the lightweight city-list entry view", + "mobile web should expose the city-list view via MobileCityPicker", ); assert( !dashboardSource.includes('setActiveView("monitor")') && diff --git a/frontend/components/dashboard/scan-terminal/__tests__/stableServerRefreshPolicy.test.ts b/frontend/components/dashboard/scan-terminal/__tests__/stableServerRefreshPolicy.test.ts index 5ac61239..902ccdc9 100644 --- a/frontend/components/dashboard/scan-terminal/__tests__/stableServerRefreshPolicy.test.ts +++ b/frontend/components/dashboard/scan-terminal/__tests__/stableServerRefreshPolicy.test.ts @@ -37,10 +37,10 @@ export function runTests() { "web auto refresh must read cached scan data instead of forcing a full server scan", ); assert( - dashboardSource.includes("scan-mobile-city-list-view") && + dashboardSource.includes("MobileCityPicker") && dashboardSource.includes("MapCanvas") && - dashboardSource.indexOf("scan-mobile-city-list-view") < dashboardSource.indexOf("scan-map-view"), - "mobile city list should be the lightweight entry before the optional map view", + dashboardSource.indexOf("MobileCityPicker") < dashboardSource.indexOf("MapCanvas"), + "mobile city list should use MobileCityPicker before the optional map view", ); assert( airportEvidenceSource.includes("FOCUS_RUNWAY_PAIRS") && diff --git a/scripts/scan_forum_topics.py b/scripts/scan_forum_topics.py index 8854d48f..6fdea3f0 100644 --- a/scripts/scan_forum_topics.py +++ b/scripts/scan_forum_topics.py @@ -1,7 +1,6 @@ """扫描群组内所有 Forum Topic,打印名称和 thread_id。""" from __future__ import annotations -import json import os import sys from concurrent.futures import ThreadPoolExecutor, as_completed @@ -52,7 +51,7 @@ def main() -> int: print("未设置 TELEGRAM_BOT_TOKEN", file=sys.stderr) return 1 - print(f"扫描群组话题...") + print("扫描群组话题...") topics = [] with ThreadPoolExecutor(max_workers=10) as pool: futures = {pool.submit(_try_get_topic, tid): tid for tid in range(1, 101)}