feat: 集成浏览器通知提醒功能
子模块更新: - client: feat: 实现浏览器通知提醒功能 - server: fix: 修复跨域凭证配置 项目变更: - 添加 CLAUDE.md 项目说明文档 - 添加设置页面截图 - 添加应用图标 功能特性: - Service Worker 后台定时检查提醒(30秒间隔) - 浏览器通知 API 集成 - 提醒同步机制(创建/更新提醒时自动同步到 SW) - 10分钟宽限期处理后台运行不稳定情况 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
d6373a2664
commit
d0b541473e
@ -97,7 +97,8 @@
|
||||
"Bash(git -C \"E:/qia\" commit -m \"chore: 更新子模块\")",
|
||||
"Bash(git -C \"E:/qia\" status)",
|
||||
"Bash(git -C E:/qia/client diff --stat)",
|
||||
"Bash(git -C E:/qia/server diff --stat)"
|
||||
"Bash(git -C E:/qia/server diff --stat)",
|
||||
"Bash(set PORT=3001)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
53
CLAUDE.md
Normal file
53
CLAUDE.md
Normal file
@ -0,0 +1,53 @@
|
||||
# CLAUDE.md
|
||||
|
||||
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
||||
|
||||
## Project Overview
|
||||
|
||||
"掐日子" (Qia Rizi) - AI 纪念日·提醒 - A Chinese calendar reminder app with anniversaries, reminders, and notes.
|
||||
|
||||
## Project Structure
|
||||
|
||||
```
|
||||
qia/
|
||||
├── client/ # Frontend (React 19 + TypeScript + Vite)
|
||||
├── server/ # Backend (Node.js + Express + Prisma)
|
||||
├── docs/ # Documentation
|
||||
└── ui/ # Design assets
|
||||
```
|
||||
|
||||
## Commands
|
||||
|
||||
### Frontend (client/)
|
||||
```bash
|
||||
cd client
|
||||
pnpm install
|
||||
pnpm dev # Start dev server (http://localhost:5173)
|
||||
pnpm build # Production build
|
||||
pnpm lint # Run ESLint
|
||||
```
|
||||
|
||||
### Backend (server/)
|
||||
```bash
|
||||
cd server
|
||||
npm install
|
||||
npm run dev # Start dev server (http://localhost:3000)
|
||||
```
|
||||
|
||||
## Backend API Endpoints
|
||||
|
||||
| Endpoint | Method | Description |
|
||||
|----------|--------|-------------|
|
||||
| `/api/auth/register` | POST | User registration |
|
||||
| `/api/auth/login` | POST | User login |
|
||||
| `/api/auth/logout` | POST | Logout |
|
||||
| `/api/auth/me` | GET | Get current user |
|
||||
| `/api/auth/refresh` | POST | Refresh token |
|
||||
| `/api/events` | GET/POST | Events CRUD |
|
||||
| `/api/events/:id` | PUT/DELETE | Event operations |
|
||||
| `/api/notes` | GET/PUT | Notes operations |
|
||||
| `/api/ai/parse` | POST | AI event parsing |
|
||||
|
||||
## Frontend Architecture
|
||||
|
||||
See `client/CLAUDE.md` for detailed frontend guidance.
|
||||
2
client
2
client
@ -1 +1 @@
|
||||
Subproject commit ab12b0717f6d2d38adfd402908dab133354bba9b
|
||||
Subproject commit 2feb02becf6a83bc5b82150747951d9f8a6aa22a
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 81 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 84 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 84 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 64 KiB |
2
server
2
server
@ -1 +1 @@
|
||||
Subproject commit e44183e3e01d5cfc3629aa0495dfc6bc5cd052a5
|
||||
Subproject commit 875f902ac318961469ea2eb286c2b35afa18932b
|
||||
BIN
settings-page.png
Normal file
BIN
settings-page.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 33 KiB |
BIN
掐日子@3x.png
Normal file
BIN
掐日子@3x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
Loading…
x
Reference in New Issue
Block a user