Skip to content

统计增强,新增过期资源数量统计 - #40

Merged
ctwj merged 8 commits into
mainfrom
009-statistics-enhancement
Jul 2, 2026
Merged

统计增强,新增过期资源数量统计#40
ctwj merged 8 commits into
mainfrom
009-statistics-enhancement

Conversation

@ctwj

@ctwj ctwj commented Jul 2, 2026

Copy link
Copy Markdown
Owner

No description provided.

Kerwin and others added 8 commits July 2, 2026 08:49
- 首页: 新增"今日失效资源数"(Resource.InvalidatedAt 追踪 + CountInvalidByDate),与今日资源并列
- 仪表盘: 总/同步/失效/访问四指标 + 访问网盘分布 + 获取资源来源分布(扩展 GetSummary,向后兼容)
- 搜索统计: 热门关键词(全量) + 近期热搜(近30天) + 搜索来源分布;区块顺序 热门→近期热搜→搜索记录
- 来源归因: SearchStat/ResourceView 加 source(web/wechat),网页与公众号搜索/获取两条路径各带来源,历史回填 web
- 数据模型: Resource.InvalidatedAt、SearchStat.Source、ResourceView.Source + source 常量 + 幂等回填迁移

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
…valid

Co-Authored-By: Claude <noreply@anthropic.com>
- r/[key].vue 三态: 有效资源 / 失效态 / 真404
- 失效态: 《标题》已失效 + 一键搜索同名 + 标题搜出的6个替代资源
- 后端 GetResourcesByKey(前序 commit) 全组失效返回 failed_resource 供此页消费
- 真404 美化(ghost 图标 + 返回首页)
- title 为空用 key 兜底; 搜索失败降级不阻塞

注: pnpm build 的 client/server 阶段通过(类型检查 OK); nitro 阶段因 @vueuse/core@14
与 rollup/@rollup/plugin-commonjs 兼容性失败, 已验证与本改动无关(回退后仍失败)。

Co-Authored-By: Claude <noreply@anthropic.com>
…s helper

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@ctwj
ctwj merged commit 9d0db6c into main Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant