feat: Implement recipe repair cancellation with UI support and refactor LoadingManager to a singleton.

This commit is contained in:
Will Miao
2026-01-02 20:03:27 +08:00
parent 837c32c42f
commit ab85ba54a9
16 changed files with 111 additions and 12 deletions

View File

@@ -4,6 +4,10 @@ import { formatFileSize } from '../utils/formatters.js';
// Loading management
export class LoadingManager {
constructor() {
if (LoadingManager.instance) {
return LoadingManager.instance;
}
this.overlay = document.getElementById('loading-overlay');
if (!this.overlay) {
@@ -59,6 +63,8 @@ export class LoadingManager {
};
this.detailsContainer = null; // Will be created when needed
LoadingManager.instance = this;
}
show(message = 'Loading...', progress = 0) {