Commit Graph

29 Commits

Author SHA1 Message Date
CrescentLeaf
85477fe46e feat: 添加刷新令牌支持
* 服务端: 添加对应的接口, 对原有令牌系统稍有修改, 添加了令牌类型
* 客户端: 自动刷新访问令牌, 登录时顺带获取刷新令牌
2025-10-06 17:13:23 +08:00
CrescentLeaf
dced175d7a chore: 统一为简体中文 2025-10-06 15:36:12 +08:00
CrescentLeaf
7378024235 feat: 添加任意对话, chore: 使用 User.create (createWithUserNameChecked 已移除) 2025-10-06 02:11:41 +08:00
CrescentLeaf
697082193f fix: missing contact type of contactsList 2025-10-04 22:18:58 +08:00
CrescentLeaf
c24078b29d fix: stupid myId instead of targetUserId 2025-10-04 15:31:22 +08:00
CrescentLeaf
04989762d9 feat: 最近对话 2025-10-04 14:32:22 +08:00
CrescentLeaf
89db6591a0 feat(api): User.getMyRecentChats 2025-10-04 14:13:06 +08:00
CrescentLeaf
0b1a4a53a5 chore: make lint happy 2025-09-25 17:14:09 +08:00
CrescentLeaf
c0c6c6ed1c feat: 添加對話 2025-09-25 16:51:43 +08:00
CrescentLeaf
d6454f51c8 feat: find user by account (aka userName or userId) 2025-09-25 14:53:53 +08:00
CrescentLeaf
4fa3e16ab7 fix: 令牌驗證額外添加是否為有效令牌
* 如果解密無效, 直接返回一個無效的令牌, 並加以判斷
2025-09-25 12:12:12 +08:00
CrescentLeaf
38db2e1310 fix: 多個同 DeviceId 不同 Session 的客戶端無法同時收到消息 2025-09-24 22:03:23 +08:00
CrescentLeaf
e4c26a07cf feat: 緩存資料, 獲取任意用戶的資料 2025-09-21 16:13:01 +08:00
CrescentLeaf
28ffd134df feat: 服務端 Api 可以持有 client socket 2025-09-21 14:12:06 +08:00
CrescentLeaf
e5dd3ade51 feat: 檢驗用戶的 設備 ID 2025-09-21 12:28:44 +08:00
CrescentLeaf
791baf474c feat: 修復並正式支持聯絡人
* wip(ui): 增刪
2025-09-21 02:13:16 +08:00
CrescentLeaf
468de4f439 feat(ui): 編輯個人檔案對話框 2025-09-21 02:11:47 +08:00
CrescentLeaf
eaf0f98058 update 2025-09-20 20:32:26 +08:00
CrescentLeaf
c13913f08a feat(wip): 聯絡人 2025-09-20 00:32:37 +08:00
CrescentLeaf
dd7c578534 fix: auth not check user is exists 2025-09-20 00:32:00 +08:00
CrescentLeaf
633cfed87b feat: setNickName setUserName getMyInfo 2025-09-13 00:40:32 +08:00
CrescentLeaf
5eb7e0018a feat(untestes): setAvatar 2025-09-08 23:17:28 +08:00
CrescentLeaf
a3920f9084 fix: 訪問令牌失效判定邏輯錯誤 2025-09-08 21:31:01 +08:00
CrescentLeaf
fa62180667 feat: login & register 2025-09-08 03:10:36 +08:00
CrescentLeaf
25320fe521 refactor: 推翻舊架構, 進入 Vite 盛世!
* 所有的 CDN 依賴已全部 npm 化
* Webpack? 一邊去! Vite 太好用啦!
* 將 Imports.ts 剔除
* 移除了大量的靜態文件
* 將 index.html 的部分代碼分離
* 修改 deno task
* 移除了動態編譯頁面的支持
* ./static 引用全部變更為 npm 包引用
2025-09-07 12:49:09 +08:00
CrescentLeaf
7553c5b281 chore: apply rename: types -> typedef 2025-09-06 16:37:53 +08:00
CrescentLeaf
e50a90a770 feat(wip): 進一步完善 UserAPI 和基類函數 2025-09-06 14:34:14 +08:00
CrescentLeaf
b0c67da340 進一步完善 Server API 2025-09-06 01:53:09 +08:00
CrescentLeaf
5666bcba24 chore: rename src/ to server/ 2025-08-30 14:43:45 +08:00