checkpoint

This commit is contained in:
Will Miao
2025-03-13 15:04:18 +08:00
parent 004c203ef2
commit e7233c147d
7 changed files with 164 additions and 319 deletions

View File

@@ -1,22 +0,0 @@
<div class="corner-controls">
<div class="corner-controls-toggle">
<i class="fas fa-ellipsis-v"></i>
<span class="update-badge corner-badge hidden"></span>
</div>
<div class="corner-controls-items">
<div class="theme-toggle" onclick="toggleTheme()" title="Toggle theme">
<img src="/loras_static/images/theme-toggle-light.svg" alt="Theme" class="theme-icon light-icon">
<img src="/loras_static/images/theme-toggle-dark.svg" alt="Theme" class="theme-icon dark-icon">
</div>
<div class="update-toggle" id="updateToggleBtn" title="Check Updates">
<i class="fas fa-bell"></i>
<span class="update-badge hidden"></span>
</div>
<div class="support-toggle" id="supportToggleBtn" title="Support">
<i class="fas fa-heart"></i>
</div>
<div class="settings-toggle" onclick="settingsManager.toggleSettings()" title="Settings">
<i class="fas fa-cog"></i>
</div>
</div>
</div>

View File

@@ -1,7 +1,10 @@
<header class="app-header">
<div class="header-container">
<div class="header-branding">
<h1 class="app-title">ComfyUI Manager</h1>
<a href="/loras" class="logo-link">
<img src="/loras_static/images/favicon-32x32.png" alt="LoRA Manager" class="app-logo">
<span class="app-title">LoRA Manager</span>
</a>
</div>
<nav class="main-nav">
<a href="/loras" class="nav-item {% if current_page == 'loras' %}active{% endif %}">
@@ -15,7 +18,23 @@
</a>
</nav>
<div class="header-actions">
<!-- Page-specific action buttons can go here -->
<!-- Integrated corner controls -->
<div class="header-controls">
<div class="theme-toggle" onclick="toggleTheme()" title="Toggle theme">
<i class="fas fa-moon dark-icon"></i>
<i class="fas fa-sun light-icon"></i>
</div>
<div class="settings-toggle" onclick="settingsManager.toggleSettings()" title="Settings">
<i class="fas fa-cog"></i>
</div>
<div class="update-toggle" id="updateToggleBtn" title="Check Updates">
<i class="fas fa-bell"></i>
<span class="update-badge hidden"></span>
</div>
<div class="support-toggle" id="supportToggleBtn" title="Support">
<i class="fas fa-heart"></i>
</div>
</div>
</div>
</div>
</header>
</header>

View File

@@ -47,54 +47,34 @@
</head>
<body>
{% include 'components/header.html' %}
<div class="corner-controls">
<div class="corner-controls-toggle">
<i class="fas fa-ellipsis-v"></i>
<span class="update-badge corner-badge hidden"></span>
</div>
<div class="corner-controls-items">
<div class="theme-toggle" onclick="toggleTheme()" title="Toggle theme">
<img src="/loras_static/images/theme-toggle-light.svg" alt="Theme" class="theme-icon light-icon">
<img src="/loras_static/images/theme-toggle-dark.svg" alt="Theme" class="theme-icon dark-icon">
</div>
<div class="update-toggle" id="updateToggleBtn" title="Check Updates">
<i class="fas fa-bell"></i>
<span class="update-badge hidden"></span>
</div>
<div class="support-toggle" id="supportToggleBtn" title="Support">
<i class="fas fa-heart"></i>
</div>
<div class="settings-toggle" onclick="settingsManager.toggleSettings()" title="Settings">
<i class="fas fa-cog"></i>
</div>
</div>
</div>
{% include 'components/modals.html' %}
{% include 'components/loading.html' %}
{% include 'components/context_menu.html' %}
<div class="container">
{% if is_initializing %}
<div class="initialization-notice">
<div class="notice-content">
<div class="loading-spinner"></div>
<h2>Initializing LoRA Manager</h2>
<p>Scanning and building LoRA cache. This may take a few minutes...</p>
</div>
</div>
{% else %}
{% include 'components/controls.html' %}
<!-- Lora卡片容器 -->
<div class="card-grid" id="loraGrid">
<!-- Cards will be dynamically inserted here -->
</div>
<!-- Bulk operations panel will be inserted here by JavaScript -->
{% endif %}
</div>
<div class="page-content">
{% include 'components/modals.html' %}
{% include 'components/loading.html' %}
{% include 'components/context_menu.html' %}
<!-- Add after the container div -->
<div class="bulk-mode-overlay"></div>
<div class="container">
{% if is_initializing %}
<div class="initialization-notice">
<div class="notice-content">
<div class="loading-spinner"></div>
<h2>Initializing LoRA Manager</h2>
<p>Scanning and building LoRA cache. This may take a few minutes...</p>
</div>
</div>
{% else %}
{% include 'components/controls.html' %}
<!-- Lora卡片容器 -->
<div class="card-grid" id="loraGrid">
<!-- Cards will be dynamically inserted here -->
</div>
<!-- Bulk operations panel will be inserted here by JavaScript -->
{% endif %}
</div>
<!-- Add after the container div -->
<div class="bulk-mode-overlay"></div>
</div>
<script type="module" src="/loras_static/js/main.js"></script>
{% if is_initializing %}

View File

@@ -104,47 +104,26 @@
background: var(--lora-surface-alt);
border-radius: var(--border-radius-base);
}
.recipes-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.recipes-controls {
display: flex;
gap: 0.5rem;
}
</style>
</head>
<body>
{% include 'components/header.html' %}
<!-- Reuse corner controls component -->
{% include 'components/corner_controls.html' %}
<!-- Reuse modals, loading, context menu -->
{% include 'components/modals.html' %}
{% include 'components/loading.html' %}
{% include 'components/context_menu.html' %}
<div class="container">
{% if is_initializing %}
<div class="initialization-notice">
<div class="notice-content">
<div class="loading-spinner"></div>
<h2>Initializing Recipe Manager</h2>
<p>Scanning and building recipe cache. This may take a few moments...</p>
</div>
</div>
{% else %}
<div class="recipes-header">
<h1>LoRA Recipes</h1>
<div class="recipes-controls">
<a href="/loras" class="button"><i class="fas fa-arrow-left"></i> Back to LoRAs</a>
<div class="page-content">
{% include 'components/modals.html' %}
{% include 'components/loading.html' %}
{% include 'components/context_menu.html' %}
<div class="container">
{% if is_initializing %}
<div class="initialization-notice">
<div class="notice-content">
<div class="loading-spinner"></div>
<h2>Initializing Recipe Manager</h2>
<p>Scanning and building recipe cache. This may take a few moments...</p>
</div>
</div>
{% else %}
<!-- Recipe controls - can reuse structure from loras controls -->
<div class="controls">
<!-- Recipe tags container - similar to folder tags -->
@@ -207,7 +186,8 @@
</div>
{% endif %}
</div>
{% endif %}
{% endif %}
</div>
</div>
<script type="module" src="/loras_static/js/recipes.js"></script>