fix(profile): restore source hints and upload-only avatar

This commit is contained in:
IanShaw027
2026-04-21 18:23:35 +08:00
parent 7309c02f0b
commit 17c6348b57
6 changed files with 185 additions and 43 deletions

View File

@@ -943,11 +943,10 @@ export default {
},
avatar: {
title: 'Profile Avatar',
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',
description: 'Upload an avatar image. Static uploads are compressed to 20KB before saving.',
uploadAction: 'Upload image',
uploadHint: 'Static uploads are compressed to 20KB when possible. GIF uploads must already be within 20KB.',
uploadRequired: 'Upload an avatar image first',
saveSuccess: 'Avatar updated',
deleteSuccess: 'Avatar removed',
invalidType: 'Please choose an image file',
@@ -955,7 +954,6 @@ export default {
compressTooLarge: 'Unable to compress this image below 20KB. Try a smaller image.',
compressFailed: 'Failed to compress the selected image.',
readFailed: 'Failed to read the selected image.',
invalidValue: 'Enter a valid avatar URL or image data URL',
emptyDeleteHint: 'Avatar is already empty',
},
authBindings: {

View File

@@ -947,11 +947,10 @@ export default {
},
avatar: {
title: '资料头像',
description: '支持填写远程图片 URL上传头像图片;静态图片会自动压缩到 20KB 以内后再保存。',
inputLabel: '头像 URL 或 data URL',
inputPlaceholder: 'https://cdn.example.com/avatar.png',
description: '支持上传头像图片;静态图片会自动压缩到 20KB 以内后再保存。',
uploadAction: '上传图片',
uploadHint: '上传图片时会自动压缩静态图片到 20KB 以内GIF 需自行控制在 20KB 以内',
uploadRequired: '请先上传头像图片',
saveSuccess: '头像已更新',
deleteSuccess: '头像已删除',
invalidType: '请选择图片文件',
@@ -959,7 +958,6 @@ export default {
compressTooLarge: '无法将图片压缩到 20KB 以内,请换一张更小的图片',
compressFailed: '压缩所选图片失败',
readFailed: '读取所选图片失败',
invalidValue: '请输入有效的头像 URL 或图片 data URL',
emptyDeleteHint: '当前没有可删除的头像',
},
authBindings: {