mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-22 05:32:12 -03:00
50 lines
1011 B
JavaScript
50 lines
1011 B
JavaScript
import { renderTemplate } from './domFixtures.js';
|
|
|
|
/**
|
|
* Renders the LoRAs page template with expected dataset attributes.
|
|
* @returns {Element}
|
|
*/
|
|
export function renderLorasPage() {
|
|
return renderTemplate('loras.html', {
|
|
dataset: {
|
|
page: 'loras',
|
|
},
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Renders the Checkpoints page template with expected dataset attributes.
|
|
* @returns {Element}
|
|
*/
|
|
export function renderCheckpointsPage() {
|
|
return renderTemplate('checkpoints.html', {
|
|
dataset: {
|
|
page: 'checkpoints',
|
|
},
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Renders the Embeddings page template with expected dataset attributes.
|
|
* @returns {Element}
|
|
*/
|
|
export function renderEmbeddingsPage() {
|
|
return renderTemplate('embeddings.html', {
|
|
dataset: {
|
|
page: 'embeddings',
|
|
},
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Renders the Recipes page template with expected dataset attributes.
|
|
* @returns {Element}
|
|
*/
|
|
export function renderRecipesPage() {
|
|
return renderTemplate('recipes.html', {
|
|
dataset: {
|
|
page: 'recipes',
|
|
},
|
|
});
|
|
}
|