리펙토링: 전체 구조 검토, 개선

This commit is contained in:
2026-05-15 22:58:46 +09:00
parent 391a8c59a5
commit 1e88859484
6 changed files with 61 additions and 20 deletions
+3
View File
@@ -1,6 +1,7 @@
import { state } from './state.js';
import { showLoading, hideLoading, setStatus, showToast } from './ui.js';
import { renderGrid } from './grid.js';
import * as history from './history.js';
const inputPrefix = document.getElementById('input-prefix');
const inputDigits = document.getElementById('input-digits');
@@ -75,6 +76,8 @@ export async function doRename() {
state.files.push(...newList);
state.selectedIdxs.clear();
renderGrid();
history.reset();
history.push(state.files);
} catch (e) {
hideLoading();
alert('오류 발생: ' + e.message);