Add update check and change log

This commit is contained in:
Will Miao
2025-03-06 17:28:18 +08:00
parent 5e6cce936d
commit 61ea42353d
7 changed files with 386 additions and 112 deletions

View File

@@ -223,18 +223,18 @@
<button class="close" onclick="modalManager.closeModal('updateModal')">&times;</button>
<div class="update-header">
<i class="fas fa-bell update-icon"></i>
<h2>Update Available</h2>
<h2>Check for Updates</h2>
</div>
<div class="update-content">
<div class="update-info">
<div class="version-info">
<div class="current-version">
<span class="label">Current Version:</span>
<span class="version-number">v1.0.0</span>
<span class="version-number">v0.0.0</span>
</div>
<div class="new-version">
<span class="label">New Version:</span>
<span class="version-number">v1.1.0</span>
<span class="version-number">v0.0.0</span>
</div>
</div>
<a href="https://github.com/willmiao/ComfyUI-Lora-Manager" target="_blank" class="update-link">
@@ -245,27 +245,14 @@
<div class="changelog-section">
<h3>Changelog</h3>
<div class="changelog-content">
<!-- Dynamic changelog content will be inserted here -->
<div class="changelog-item">
<h4>Version 1.1.0</h4>
<ul>
<li>Added support for custom folder structures</li>
<li>Improved search functionality</li>
<li>Fixed bug with loading large libraries</li>
<li>Added new sorting options</li>
</ul>
<h4>Checking for updates...</h4>
<p>Please wait while we check for the latest version.</p>
</div>
</div>
</div>
<div class="update-instructions">
<h3>How to Update</h3>
<p>To update LoRA Manager, run the following command in your ComfyUI directory:</p>
<div class="code-block">
<code>git pull origin main</code>
</div>
<p>Or update through the ComfyUI Manager if you installed it that way.</p>
</div>
<div class="update-preferences">
<label class="toggle-switch">
<input type="checkbox" id="updateNotifications" checked>