Commit Graph

60 Commits

Author SHA1 Message Date
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
efc0f49b66 feat: 文件權限檢驗
* 基於讀取 Cookie 中的驗證信息
* 因為 ServiceWorker 需要安全的上下文, 而我想要到處可用, 因此暫時折中使用這個辦法
2025-09-25 14:19:45 +08:00
CrescentLeaf
692eb3d2a3 chore: 將令牌檢測函數移動到 TokenManager
* 這樣才叫 TokenManager 嘛X
2025-09-25 14:18:50 +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
d5fbc490ea feat: 支持發送文件
* 目前還只能拖拽到輸入框
2025-09-24 21:33:16 +08:00
CrescentLeaf
276ce5cae8 fix: 控制臺不解析 buffer 2025-09-24 21:32:09 +08:00
CrescentLeaf
3a9312654e chore: 控制臺不解析 buffer
* 額外作用: 加快傳輸效率
2025-09-24 21:19:42 +08:00
CrescentLeaf
4a2014e10d feat(wip): 上傳文件 2025-09-23 23:29:20 +08:00
CrescentLeaf
20f5484e90 feat: 支持異步接口調用方法體 2025-09-23 23:08:50 +08:00
CrescentLeaf
8bcb3e74b6 feat: 服務端可以獲取每個客戶端的連接 2025-09-21 16:13:31 +08:00
CrescentLeaf
e4c26a07cf feat: 緩存資料, 獲取任意用戶的資料 2025-09-21 16:13:01 +08:00
CrescentLeaf
cb947429fb feat: 收發消息 2025-09-21 16:11:58 +08:00
CrescentLeaf
28ffd134df feat: 服務端 Api 可以持有 client socket 2025-09-21 14:12:06 +08:00
CrescentLeaf
706d811087 feat(wip): 事件緩存以備離綫重連重發 2025-09-21 14:06:08 +08:00
CrescentLeaf
e5dd3ade51 feat: 檢驗用戶的 設備 ID 2025-09-21 12:28:44 +08:00
CrescentLeaf
082817d6cd feat(wip): 收發消息 2025-09-21 02:18:15 +08:00
CrescentLeaf
71e6d24d6e fix: Chat 獲取 avatar 邏輯錯誤 2025-09-21 02:16:48 +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
dd88e8d1b8 chore: 添加 ChatApi 注釋 2025-09-20 20:58:20 +08:00
CrescentLeaf
eaf0f98058 update 2025-09-20 20:32:26 +08:00
CrescentLeaf
03f6f2743f chore: add "not impl" for not exists func 2025-09-20 00:33:22 +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
d473ff81bd feat(wip): 對話 2025-09-20 00:31:36 +08:00
CrescentLeaf
ed494413fd feat(wip): Chat.getInfo 2025-09-14 00:36:51 +08:00
CrescentLeaf
633cfed87b feat: setNickName setUserName getMyInfo 2025-09-13 00:40:32 +08:00
CrescentLeaf
73a1536df7 chore: add new Api declaretion 2025-09-13 00:38:17 +08:00
CrescentLeaf
546f04dc0e chore: declare new Api 2025-09-08 23:18:26 +08:00
CrescentLeaf
5eb7e0018a feat(untestes): setAvatar 2025-09-08 23:17:28 +08:00
CrescentLeaf
b3015084a6 feat(wip): sendMessage getMessageHistory 2025-09-08 23:17:05 +08:00
CrescentLeaf
316fd140bc feat: BaseApi 兩個 Token 檢查方法 2025-09-08 23:16:41 +08:00
CrescentLeaf
3cb9bcc148 chore: Token.ts 單獨成類 2025-09-08 23:16:17 +08:00
CrescentLeaf
182236964b chore: 更加豐富的顔色! 2025-09-08 21:31:17 +08:00
CrescentLeaf
a3920f9084 fix: 訪問令牌失效判定邏輯錯誤 2025-09-08 21:31:01 +08:00
CrescentLeaf
9e92fad8fa chore: colorful console.log :) 2025-09-08 20:19:36 +08:00
CrescentLeaf
a3fc61494e feat: token 2025-09-08 03:10:45 +08:00
CrescentLeaf
fa62180667 feat: login & register 2025-09-08 03:10:36 +08:00
CrescentLeaf
7e60e4a4be chore: add checkArgsEmpty 2025-09-08 03:09:56 +08:00
CrescentLeaf
f3a9cb8641 chore: add DataWrongError 2025-09-08 03:09:41 +08:00
CrescentLeaf
c577797e57 chore: add DataWrongError 2025-09-08 03:09:21 +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
ca6aea2902 feat(wip): 前端, 以及編譯前端
TODO: 修復 webpack (in mian.ts)
2025-08-30 15:36:36 +08:00
CrescentLeaf
5666bcba24 chore: rename src/ to server/ 2025-08-30 14:43:45 +08:00