feat: custom file drop zone for asset upload modal; fix review issues
Lint & Test / test (push) Successful in 1m29s
Lint & Test / test (push) Successful in 1m29s
Replace plain <input type="file"> with a styled drag-and-drop zone featuring hover/drag states, file info display, and remove button. Fix 10 review issues: add 401 handling to upload, remove non-null assertions, add missing i18n keys (common.remove, error.play_failed, error.download_failed), normalize close button glyphs to ✕, i18n the dropzone aria-label, replace silent error catches with toast notifications, use DataTransfer for cross-browser file assignment.
This commit is contained in:
@@ -434,6 +434,7 @@
|
||||
"confirm.turn_off_device": "关闭此设备?",
|
||||
"common.loading": "加载中...",
|
||||
"common.delete": "删除",
|
||||
"common.remove": "移除",
|
||||
"common.edit": "编辑",
|
||||
"common.clone": "克隆",
|
||||
"common.none": "无",
|
||||
@@ -1922,6 +1923,8 @@
|
||||
"asset.error.name_required": "名称为必填项",
|
||||
"asset.error.no_file": "请选择要上传的文件",
|
||||
"asset.error.delete_failed": "删除资源失败",
|
||||
"asset.error.play_failed": "播放声音失败",
|
||||
"asset.error.download_failed": "下载资源失败",
|
||||
"asset.play": "播放",
|
||||
"asset.download": "下载",
|
||||
"asset.prebuilt": "内置",
|
||||
|
||||
Reference in New Issue
Block a user