From 4da1fc93015964ce94d4e47eb69285aee71e0f13 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 6 Aug 2026 09:25:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E8=A6=81=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E8=81=9A=E5=90=88=E8=A7=86=E5=9B=BE=20+=20stats=20=E8=8B=B1?= =?UTF-8?q?=E6=96=87=E9=94=AE=E6=A0=BC=E5=BC=8F=E5=8A=A0=E5=9B=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - normalizeKV 显式识别 intl 英文键格式(importance/count、event_type/count、source/count),不再依赖键顺序 - 新增"重要事件"视图 Tab:跨日报聚合(/api/news/events/),支持 天数/重要度/类型 筛选,复用事件行渲染 - 兼容文档 v1.1:intl sentiment 对象格式、finance news.event_types 对象格式 --- charts/news_reports.php | 35 +++++++++++++++++- js/newsReports.js | 78 +++++++++++++++++++++++++++++++++++++++-- 2 files changed, 110 insertions(+), 3 deletions(-) diff --git a/charts/news_reports.php b/charts/news_reports.php index e886367..564c911 100644 --- a/charts/news_reports.php +++ b/charts/news_reports.php @@ -35,7 +35,7 @@ .badge-neg { @apply bg-red-100 text-red-700; } .badge-neu { @apply bg-gray-200 text-gray-600; } - .type-tab { + .type-tab, .view-tab { @apply px-4 py-2 rounded-lg text-sm font-medium text-gray-500 hover:text-primary hover:bg-primary/5 transition-colors cursor-pointer; } .tab-active { @apply bg-primary text-white hover:text-white hover:bg-primary shadow-sm; } @@ -148,6 +148,10 @@
+
+ 日报列表 + 重要事件 +
全部 国内 @@ -169,6 +173,35 @@
+ + +