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
+3 -1
View File
@@ -361,6 +361,8 @@
"comments": "My Comments",
"adminTitle": "Admin",
"username": "Username",
"nickname": "Nickname",
"avatarHint": "Your avatar is synced to the unified identity provider. Supported: png/jpg/gif/webp/svg/avif, up to 8MB",
"email": "Email",
"phone": "Phone",
"joinedAt": "Joined",
@@ -372,7 +374,7 @@
"saved": "Saved",
"saveFailed": "Failed to save. Please try again.",
"ssoAccount": "Unified SSO Account",
"ssoAccountHint": "Email, avatar and password are managed by the unified identity provider (Casdoor). Visit the provider to update them.",
"ssoAccountHint": "Changes to your nickname, avatar and email here are synced back to the unified identity provider (Casdoor) and stay consistent across all sites using it.",
"emptyFavorites": "No favorites yet. Go to the Work page to explore.",
"emptyComments": "No comments posted yet",
"admin": {