Revert "update"

This reverts commit 4793f096af.
This commit is contained in:
Will Miao
2025-05-09 16:14:10 +08:00
parent 4793f096af
commit 1121d1ee6c
4 changed files with 187 additions and 436 deletions

View File

@@ -2,14 +2,13 @@ import { appCore } from './core.js';
import { state } from './state/index.js';
import { showLoraModal, toggleShowcase, scrollToTop } from './components/loraModal/index.js';
import { loadMoreLoras } from './api/loraApi.js';
import { updateCardsForBulkMode, setupLoraCardEventDelegation } from './components/LoraCard.js';
import { updateCardsForBulkMode } from './components/LoraCard.js';
import { bulkManager } from './managers/BulkManager.js';
import { DownloadManager } from './managers/DownloadManager.js';
import { moveManager } from './managers/MoveManager.js';
import { LoraContextMenu } from './components/ContextMenu/index.js';
import { createPageControls } from './components/controls/index.js';
import { confirmDelete, closeDeleteModal, confirmExclude, closeExcludeModal } from './utils/modalUtils.js';
import { cleanupVirtualScroll } from './api/baseModelApi.js';
// Initialize the LoRA page
class LoraPageManager {
@@ -64,16 +63,8 @@ class LoraPageManager {
// Initialize the bulk manager
bulkManager.initialize();
// Set up event delegation for card interactions
setupLoraCardEventDelegation();
// Initialize common page features (lazy loading, infinite scroll)
appCore.initializePageFeatures();
// Handle cleanup when page is unloaded
window.addEventListener('beforeunload', () => {
cleanupVirtualScroll();
});
}
}