Refactor modal components by removing unused imports and commenting out cache management section in modals.html

This commit is contained in:
Will Miao
2025-06-17 21:06:01 +08:00
parent afa5a42f5a
commit fa587d5678
3 changed files with 4 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
*
* Modularized checkpoint modal component that handles checkpoint model details display
*/
import { showToast, getExampleImageFiles, initLazyLoading, initNsfwBlurHandlers, initMetadataPanelHandlers } from '../../utils/uiHelpers.js';
import { showToast, initLazyLoading, initNsfwBlurHandlers, initMetadataPanelHandlers } from '../../utils/uiHelpers.js';
import { modalManager } from '../../managers/ModalManager.js';
import { renderShowcaseContent, toggleShowcase, setupShowcaseScroll, scrollToTop } from './ShowcaseView.js';
import { setupTabSwitching, loadModelDescription } from './ModelDescription.js';
@@ -15,8 +15,6 @@ import {
import { setupTagEditMode } from './ModelTags.js'; // Add import for tag editing
import { saveModelMetadata } from '../../api/checkpointApi.js';
import { renderCompactTags, setupTagTooltip, formatFileSize } from './utils.js';
import { updateModelCard } from '../../utils/cardUpdater.js';
import { state } from '../../state/index.js';
/**
* Display the checkpoint modal with the given checkpoint data

View File

@@ -3,7 +3,7 @@
*
* 将原始的LoraModal.js拆分成多个功能模块后的主入口文件
*/
import { showToast, copyToClipboard, getExampleImageFiles } from '../../utils/uiHelpers.js';
import { showToast, copyToClipboard } from '../../utils/uiHelpers.js';
import { modalManager } from '../../managers/ModalManager.js';
import {
renderShowcaseContent,
@@ -24,8 +24,6 @@ import {
} from './ModelMetadata.js';
import { saveModelMetadata } from '../../api/loraApi.js';
import { renderCompactTags, setupTagTooltip, formatFileSize } from './utils.js';
import { updateModelCard } from '../../utils/cardUpdater.js';
import { state } from '../../state/index.js';
/**
* 显示LoRA模型弹窗

View File

@@ -229,7 +229,7 @@
</div>
<!-- Add Cache Management Section -->
<div class="settings-section">
<!-- <div class="settings-section">
<h3>Cache Management</h3>
<div class="setting-item">
@@ -249,7 +249,7 @@
<span class="warning-text">May cause temporary performance impact during rebuild.</span>
</div>
</div>
</div>
</div> -->
<!-- Add Example Images Settings Section -->
<div class="settings-section">