mirror of
https://github.com/LifeArchiveProject/WeChatDataAnalysis.git
synced 2026-02-19 14:20:51 +08:00
feat(wrapped-ui): 年度总结页支持懒加载与复古模式,新增概览/字数卡片
- wrapped 页面改为:先拉 meta/年份列表,再按页请求单张卡片,首屏更快 - 新增 Card#0 全局概览页(含图表) - 新增 Card#2 消息字数页(含键盘敲击统计与图表) - 新增复古模式:像素字体资源 + CRT Overlay,支持一键开关 - 调整 shared 组件、types/useApi,更新前端依赖与 lock
This commit is contained in:
@@ -6,12 +6,30 @@
|
||||
* @property {string} title
|
||||
* @property {'global'} scope
|
||||
* @property {'A'|'B'|'C'|'D'|'E'} category
|
||||
* @property {'ok'|'error'} status
|
||||
* @property {'ok'|'error'|'idle'|'loading'} status
|
||||
* @property {string} kind
|
||||
* @property {string} narrative
|
||||
* @property {Record<string, any>} data
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {Object} WrappedCardManifest
|
||||
* @property {number} id
|
||||
* @property {string} title
|
||||
* @property {'global'} scope
|
||||
* @property {'A'|'B'|'C'|'D'|'E'} category
|
||||
* @property {string} kind
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {Object} WrappedAnnualMetaResponse
|
||||
* @property {string} account
|
||||
* @property {number} year
|
||||
* @property {'global'} scope
|
||||
* @property {number[]|undefined} availableYears
|
||||
* @property {WrappedCardManifest[]} cards
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {Object} WrappedAnnualResponse
|
||||
* @property {string} account
|
||||
@@ -20,8 +38,8 @@
|
||||
* @property {string|null} username
|
||||
* @property {number} generated_at
|
||||
* @property {boolean} cached
|
||||
* @property {number[]|undefined} availableYears
|
||||
* @property {WrappedCardBase[]} cards
|
||||
*/
|
||||
|
||||
export {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user