core&ui: support file renaming (#688)

Co-authored-by: undefined <i@undefined.moe>
This commit is contained in:
Milmonandundefined authored and GitHub committed 2023-11-19 21:46:15 +08:00
1 parent 746efef9bf
commit 01cb6944b7
19 files changed
+496 -144

No files matched your search

@@ -111,7 +111,7 @@ export async function previewFile(ev?, type = '') {
const filename = ev
? ev.currentTarget.closest('[data-filename]').getAttribute('data-filename')
// eslint-disable-next-line no-alert
: prompt('Filename');
: prompt(i18n('Filename'));
if (!filename) return null;
const filesize = ev
? +ev.currentTarget.closest('[data-size]').getAttribute('data-size')