mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-22 05:32:12 -03:00
- Introduced CheckpointsRoutes for managing checkpoints-related endpoints and handling the checkpoints page. - Added checkpoints.html template for rendering the checkpoints interface with a work-in-progress message. - Implemented checkpoints.js to manage the initialization of the Checkpoints page and its components. - Updated LoraManager to include checkpoints routes in the application setup, enhancing overall functionality.
37 lines
1.0 KiB
JavaScript
37 lines
1.0 KiB
JavaScript
import { appCore } from './core.js';
|
|
import { state, initPageState } from './state/index.js';
|
|
|
|
// Initialize the Checkpoints page
|
|
class CheckpointsPageManager {
|
|
constructor() {
|
|
// Initialize any necessary state
|
|
this.initialized = false;
|
|
}
|
|
|
|
async initialize() {
|
|
if (this.initialized) return;
|
|
|
|
// Initialize page state
|
|
initPageState('checkpoints');
|
|
|
|
// Initialize core application
|
|
await appCore.initialize();
|
|
|
|
// Initialize page-specific components
|
|
this._initializeWorkInProgress();
|
|
|
|
this.initialized = true;
|
|
}
|
|
|
|
_initializeWorkInProgress() {
|
|
// Add any work-in-progress specific initialization here
|
|
console.log('Checkpoints Manager is under development');
|
|
}
|
|
}
|
|
|
|
// Initialize everything when DOM is ready
|
|
document.addEventListener('DOMContentLoaded', async () => {
|
|
const checkpointsPage = new CheckpointsPageManager();
|
|
await checkpointsPage.initialize();
|
|
});
|