feat: 用户资料改回自同步 Casimir(昵称/邮箱)+ 头像改走 Casimir upload-resource

- 站内改昵称/邮箱/头像后,用自己的 access_token 写回 Casimir(update-user,字段每批≤2,401 自动 refresh_token 续期)
- 头像不再本地存储:上传直调 Casimir upload-resource (tag=avatar),成功后自动写回 user.Avatar,仅落库返回 URL
- me.patch 头像仅存档本地,避免 update-user 重复同步
- 头像上传仅走 Casimir,未配置 Storage provider 时报错提示
- exchangeCodeForIdentity 补 owner/displayName/token,昵称优先 displayName
- 新增类型检查依赖 typescript/vue-tsc 与 typecheck 脚本
This commit is contained in:
2026-08-09 04:44:04 +08:00
parent 9f4abba3ae
commit f9e5ce61e3
12 changed files with 699 additions and 133 deletions
+5 -2
View File
@@ -9,7 +9,8 @@
"preview": "nuxt preview",
"postinstall": "nuxt prepare",
"start": "node .output/server/index.mjs",
"test": "vitest run"
"test": "vitest run",
"typecheck": "nuxi typecheck"
},
"dependencies": {
"@nuxt/hints": "1.0.3",
@@ -33,6 +34,8 @@
"@nuxtjs/tailwindcss": "6.14.0",
"@types/better-sqlite3": "^7.6.13",
"@types/nodemailer": "^6.4.17",
"vitest": "^4.1.10"
"typescript": "^5.9.2",
"vitest": "^4.1.10",
"vue-tsc": "^3.3.9"
}
}