refactor: rename utils to lowercase_kebab-case and fix import paths; add Missing Models popup integration to linker
- Rename web/utils/{css-loader→css_loader,ErrorHandler→error_handler,IconUtils→icon_utils,ResourceManager→resource_manager} and web/log_system/{LoggerUtils→log_funcs} to lowercase_kebab-case naming convention
- Update all cross-import paths in the recreated utils and linker.js accordingly
- Add removeResolvedFromPopup / markEntryAsResolved to visually mark resolved entries in the ComfyUI Missing Models popup
- Add updateNodesDirectly to update graph node widgets in-place without triggering a full workflow reload
- Add checkAndOpenForMissingModels with isAutoOpenEnabled/setAutoOpenEnabled to auto-open the linker dialog when a workflow with missing models is loaded
- Add helper methods getMissingSearchKey, getSearchState, mergeSearchResults for per-entry search state caching and merging
This commit is contained in:
+5174
-5173
File diff suppressed because it is too large
Load Diff
@@ -1,10 +1,10 @@
|
||||
/**
|
||||
* CSS Loader
|
||||
* css_loader
|
||||
* Loads all CSS files for the resolution master components
|
||||
*/
|
||||
|
||||
import { addStylesheet, getUrl } from "./ResourceManager.js";
|
||||
import { createModuleLogger } from "../log_system/LoggerUtils.js";
|
||||
import { addStylesheet, getUrl } from "./resource_manager.js";
|
||||
import { createModuleLogger } from "../log_system/log_funcs.js";
|
||||
|
||||
const log = createModuleLogger('CSSLoader');
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/**
|
||||
* ErrorHandler - Central error handling
|
||||
* error_handler - Central error handling
|
||||
* Eliminates repetitive error handling patterns throughout the project
|
||||
*/
|
||||
import { createModuleLogger } from "../log_system/LoggerUtils.js";
|
||||
const log = createModuleLogger('ErrorHandler');
|
||||
import { createModuleLogger } from "../log_system/log_funcs.js";
|
||||
const log = createModuleLogger('error_handler');
|
||||
/**
|
||||
* Error types in the application
|
||||
*/
|
||||
@@ -1,4 +1,4 @@
|
||||
// IconUtils.js - Utility for loading SVG icons
|
||||
// icon_utils - Utility for loading SVG icons
|
||||
import { app } from "../../../scripts/app.js";
|
||||
|
||||
const SVG_ICONS = {
|
||||
@@ -1,8 +1,8 @@
|
||||
// @ts-ignore
|
||||
import { $el } from "../../../scripts/ui.js";
|
||||
import { createModuleLogger } from "../log_system/LoggerUtils.js";
|
||||
import { withErrorHandling, createValidationError, createNetworkError } from "./ErrorHandler.js";
|
||||
const log = createModuleLogger('ResourceManager');
|
||||
import { createModuleLogger } from "../log_system/log_funcs.js";
|
||||
import { withErrorHandling, createValidationError, createNetworkError } from "./error_handler.js";
|
||||
const log = createModuleLogger('resource_manager');
|
||||
export const addStylesheet = withErrorHandling(function (url) {
|
||||
if (!url) {
|
||||
throw createValidationError("URL is required", { url });
|
||||
Reference in New Issue
Block a user