mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-22 13:42:12 -03:00
- Added PresetTags.js to handle LoRA model preset parameter tags. - Introduced RecipeTab.js for managing recipes associated with LoRA models. - Created TriggerWords.js to manage trigger word functionality for LoRA models. - Implemented utility functions in utils.js for general model modal operations.
60 lines
2.3 KiB
HTML
60 lines
2.3 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}LoRA Manager{% endblock %}
|
|
{% block page_id %}loras{% endblock %}
|
|
|
|
{% block preload %}
|
|
{% if not is_initializing %}
|
|
<link rel="preload" href="/loras_static/js/loras.js" as="script" crossorigin="anonymous">
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block init_title %}Initializing LoRA Manager{% endblock %}
|
|
{% block init_message %}Scanning and building LoRA cache. This may take a few minutes...{% endblock %}
|
|
{% block init_check_url %}/api/loras?page=1&page_size=1{% endblock %}
|
|
|
|
{% block additional_components %}
|
|
{% include 'components/lora_modals.html' %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% include 'components/controls.html' %}
|
|
{% include 'components/alphabet_bar.html' %}
|
|
|
|
<!-- Duplicates banner (hidden by default) -->
|
|
<div id="duplicatesBanner" class="duplicates-banner" style="display: none;">
|
|
<div class="banner-content">
|
|
<i class="fas fa-exclamation-triangle"></i>
|
|
<span id="duplicatesCount">Found 0 duplicate groups</span>
|
|
<i class="fas fa-question-circle help-icon" id="duplicatesHelp" aria-label="Help information"></i>
|
|
<div class="banner-actions">
|
|
<button class="btn-delete-selected disabled" onclick="modelDuplicatesManager.deleteSelectedDuplicates()">
|
|
Delete Selected (<span id="duplicatesSelectedCount">0</span>)
|
|
</button>
|
|
<button class="btn-exit-mode" onclick="modelDuplicatesManager.exitDuplicateMode()">
|
|
<i class="fas fa-times"></i> Exit Mode
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div class="help-tooltip" id="duplicatesHelpTooltip">
|
|
<p>Identical hashes mean identical model files, even if they have different names or previews.</p>
|
|
<p>Keep only one version (preferably with better metadata/previews) and safely delete the others.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Lora卡片容器 -->
|
|
<div class="card-grid" id="modelGrid">
|
|
<!-- Cards will be dynamically inserted here -->
|
|
</div>
|
|
<!-- Bulk operations panel will be inserted here by JavaScript -->
|
|
{% endblock %}
|
|
|
|
{% block overlay %}
|
|
<div class="bulk-mode-overlay"></div>
|
|
{% endblock %}
|
|
|
|
{% block main_script %}
|
|
{% if not is_initializing %}
|
|
<script type="module" src="/loras_static/js/loras.js"></script>
|
|
{% endif %}
|
|
{% endblock %} |