Commit Graph

6 Commits

Author SHA1 Message Date
richarjiang
36f10954cf feat: add token usage tracking and leaderboard
- Add token_usage table with composite unique index for claw_id + date
- Add API endpoints: POST /token, GET /token/leaderboard, GET /token/stats
- Add TokenLeaderboard component with daily/total period toggle
- Add CLI commands: `token` and `stats` for reporting and viewing usage
- Add Redis caching for leaderboard with 1-minute TTL
- Add shared utilities: authenticateRequest, getTodayDateString
- Use UPSERT pattern for atomic token updates
- Add i18n translations (en/zh) for new UI elements
2026-03-15 15:17:10 +08:00
richarjiang
8d094ad5cc feat: 添加 2D/3D 地图切换与坐标偏移功能
- 新增 WorldMap 组件,支持 2D 世界地图视图
- 主页添加 2D/3D 视图切换按钮
- 实现确定性坐标偏移算法,分散同城用户位置
- 更新 heatmap 和 register API 使用坐标偏移
2026-03-15 14:19:36 +08:00
richarjiang
c76ebe04e3 feat: 添加龙虾 favicon 并修复 middleware 路由拦截
- 创建 lib/constants/theme.ts 统一管理颜色和品牌常量
- 重构 icon.tsx 和 apple-icon.tsx 使用共享常量
- 修复 middleware matcher 排除 icon/apple-icon 路由
2026-03-13 20:16:41 +08:00
richarjiang
6c2a45b257 feat(页面): 添加区域探索与国家边界功能 2026-03-13 16:25:35 +08:00
richarjiang
9e30771180 重构:将 "lobster" 重命名为 "claw" 并添加国际化支持 (i18n) 2026-03-13 12:07:28 +08:00
richarjiang
fa4c458eda init 2026-03-13 11:00:01 +08:00