1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-11-13 22:11:42 +08:00

fix: 修复数据看板接口字段映射与热力图布局对齐问题

- 修正 IDataStatistics.articles 字段为 articleTotal/momentTotal/total
- 数据看板图表颜色统一为主题色系,环形图中间显示文章总数
- 热力图改为按周分列的 GitHub 风格布局,月份/周标签对齐
This commit is contained in:
小莫唐尼
2026-09-13 04:59:50 +08:00
parent 7e6efd6525
commit 9a5510546b
4 changed files with 78 additions and 39 deletions
+2 -1
View File
@@ -470,7 +470,8 @@ export function getCommentWidgetCaptcha() {
export interface IDataStatistics {
tags: { name: string, count: number }[]
categories: { name: string, total: number }[]
articles: { date: string, count: number }[]
/** 发布趋势:articleTotal=当日文章数,momentTotal=当日瞬间数,total=二者之和 */
articles: { date: string, articleTotal: number, momentTotal: number, name: string, total: number }[]
comments: { username: string, count: number }[]
top10Articles: { name: string, views: number }[]
[key: string]: unknown