refactor(profile): split avatar and bindings cards

This commit is contained in:
IanShaw027
2026-04-21 17:56:15 +08:00
parent ee3f158f4e
commit 7309c02f0b
10 changed files with 801 additions and 749 deletions

View File

@@ -943,15 +943,14 @@ export default {
},
avatar: {
title: 'Profile Avatar',
description: 'Set your avatar with a remote image URL or upload an image under 100KB. Uploaded images are compressed to 20KB.',
description: 'Set your avatar with a remote image URL or upload an image. Static uploads are compressed to 20KB before saving.',
inputLabel: 'Avatar URL or data URL',
inputPlaceholder: 'https://cdn.example.com/avatar.png',
uploadAction: 'Upload image',
uploadHint: 'Uploaded images must be 100KB or smaller. Static images are compressed to 20KB.',
uploadHint: 'Static uploads are compressed to 20KB when possible. GIF uploads must already be within 20KB.',
saveSuccess: 'Avatar updated',
deleteSuccess: 'Avatar removed',
invalidType: 'Please choose an image file',
fileTooLarge: 'Avatar image must be 100KB or smaller',
gifTooLarge: 'GIF avatars must already be 20KB or smaller',
compressTooLarge: 'Unable to compress this image below 20KB. Try a smaller image.',
compressFailed: 'Failed to compress the selected image.',

View File

@@ -947,15 +947,14 @@ export default {
},
avatar: {
title: '资料头像',
description: '支持填写远程图片 URL或上传不超过 100KB 的头像图片;上传图片会自动压缩到 20KB 以内。',
description: '支持填写远程图片 URL或上传头像图片静态图片会自动压缩到 20KB 以内后再保存。',
inputLabel: '头像 URL 或 data URL',
inputPlaceholder: 'https://cdn.example.com/avatar.png',
uploadAction: '上传图片',
uploadHint: '上传图片需不超过 100KB静态图片会自动压缩到 20KB 以内',
uploadHint: '上传图片时会自动压缩静态图片到 20KB 以内GIF 需自行控制在 20KB 以内',
saveSuccess: '头像已更新',
deleteSuccess: '头像已删除',
invalidType: '请选择图片文件',
fileTooLarge: '头像图片必须不超过 100KB',
gifTooLarge: 'GIF 头像必须在 20KB 以内',
compressTooLarge: '无法将图片压缩到 20KB 以内,请换一张更小的图片',
compressFailed: '压缩所选图片失败',