mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
- Introduced a new API endpoint for bulk deleting loras. - Added ModelDuplicatesManager to handle duplicate models for loras and checkpoints. - Implemented UI components for displaying duplicates and managing selections. - Enhanced controls with a button for finding duplicates. - Updated templates to include a duplicates banner and associated actions.
55 lines
1.9 KiB
HTML
55 lines
1.9 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>
|
|
<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" onclick="modelDuplicatesManager.exitDuplicateMode()">
|
|
<i class="fas fa-times"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Lora卡片容器 -->
|
|
<div class="card-grid" id="loraGrid">
|
|
<!-- 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 %} |