Commit Graph

237 Commits

Author SHA1 Message Date
Will Miao 34078d8a60 Refactor recipe card styles and update HTML structure
- Migrated CSS styles from recipe-card.css to card.css for better organization.
- Updated recipe card class names in HTML to align with new styling conventions.
- Enhanced card layout with additional flex properties for improved responsiveness.
- Adjusted infinite scroll debounce timing for better performance.
2025-03-20 21:42:17 +08:00
Will Miao c149e73ef7 Add recipe tags functionality to RecipeModal
- Implemented display of recipe tags in a compact format within the RecipeModal.
- Added tooltip for additional tags with hover functionality.
- Updated CSS styles for recipe tags and tooltips to enhance visual presentation.
- Adjusted layout and padding in related components for improved aesthetics.
2025-03-20 17:57:35 +08:00
Will Miao b11757c913 Fix infinite scroll 2025-03-20 17:31:56 +08:00
Will Miao 19ff2ebfe1 Refactor RecipeManager and ImportManager for improved functionality
- Removed deprecated global functions from RecipeManager to streamline the API and enhance clarity.
- Updated the import handling in ImportManager to directly call loadRecipes on the RecipeManager, ensuring better integration.
- Adjusted the recipes.html template to utilize the ImportManager for showing the import modal, improving code consistency.
2025-03-20 15:57:00 +08:00
Will Miao c987338c84 Add Checkpoints feature with routes, template, and JavaScript integration
- Introduced CheckpointsRoutes for managing checkpoints-related endpoints and handling the checkpoints page.
- Added checkpoints.html template for rendering the checkpoints interface with a work-in-progress message.
- Implemented checkpoints.js to manage the initialization of the Checkpoints page and its components.
- Updated LoraManager to include checkpoints routes in the application setup, enhancing overall functionality.
2025-03-20 10:50:46 +08:00
Will Miao a88b0239eb Refactor panel position management and enhance recipe card handling
- Removed redundant updatePanelPositions calls from various components and centralized the logic in the uiHelpers.js for better maintainability.
- Introduced appendRecipeCards function in RecipeManager to streamline the addition of recipe cards from search results.
- Cleaned up unused code related to search input handling and recipe loading, improving overall code clarity and performance.
- Updated HeaderManager and SearchManager to utilize the new updatePanelPositions function, ensuring consistent panel positioning across the application.
2025-03-20 09:54:13 +08:00
Will Miao caf5b1528c Enhance recipe search functionality with improved state management and search options
- Introduced new search options for recipes, allowing users to filter by title, tags, LoRA filename, and LoRA model name.
- Updated the RecipeRoutes and RecipeScanner to accommodate the new search options, enhancing the filtering capabilities.
- Refactored RecipeManager and RecipeSearchManager to utilize the hierarchical state structure for managing search parameters and pagination state.
- Improved the user interface by dynamically displaying relevant search options based on the current page context.
2025-03-20 08:27:38 +08:00
Will Miao 04545c5706 Implement lazy loading and infinite scroll features in core application
- Added lazy loading for images and initialized infinite scroll in the AppCore class to enhance performance across various pages.
- Updated LoraPageManager and RecipeManager to utilize the new initializePageFeatures method for common UI features.
- Enhanced infinite scroll functionality to dynamically load more content based on the page type, improving user experience.
- Refactored recipes.html to trigger the import modal through the ModalManager for better modal handling.
2025-03-19 17:04:58 +08:00
Will Miao 32fa81cf93 Refactor ModalManager to conditionally register modals based on their existence
- Updated ModalManager to check for the presence of modals before registration, improving performance and preventing errors on pages without certain modals.
- Added support for closing modals when clicking outside of them, enhancing user experience.
- Ensured consistent handling of modal display properties across various modal types.
2025-03-19 16:36:07 +08:00
Will Miao 7924e4000c Refactor LoraModal and RecipeSearchManager for improved functionality and performance
- Updated LoraModal to enhance lazy loading and scroll behavior, utilizing MutationObserver for dynamic content changes and adding a new helper function for the back-to-top button.
- Modified RecipeSearchManager to ensure proper recipe loading through the window.recipeManager object, improving reliability in recipe reloading.
- Added additional components to loras.html for better modularity and organization of the modal structure.
2025-03-19 16:15:18 +08:00
Will Miao 541ad624c5 Implement input-with-button layout in import modal for improved user experience
- Added a new input-with-button component to the import modal, allowing users to input an image URL and fetch the image with a button click.
- Removed the previous button placement to streamline the UI and enhance usability.
- Updated CSS styles for the new component to ensure proper layout and responsiveness.
2025-03-19 05:24:28 +08:00
Will Miao 7c56825f9b Enhance import functionality for recipes with image upload and URL support
- Added support for importing recipes via image upload or URL input in the ImportManager.
- Implemented toggle functionality to switch between upload and URL modes, updating the UI accordingly.
- Enhanced error handling for missing fields and invalid URLs during the import process.
- Updated the RecipeRoutes to analyze images from both uploaded files and URLs, returning appropriate metadata.
- Improved the import modal UI to accommodate new input methods and provide clearer user feedback.
2025-03-19 05:13:44 +08:00
Will Miao 710857dd41 checkpoint 2025-03-17 19:58:17 +08:00
Will Miao 1bfe12a288 Add filter button functionality and clean up recipe template scripts
- Implemented click handler for the filter button in FilterManager to toggle the filter panel.
- Removed redundant recipe filter manager initialization from recipes.html for cleaner code.
- Updated header.html to remove inline JavaScript for filter button, enhancing maintainability.
2025-03-17 17:41:41 +08:00
Will Miao 0580130d47 Fix lora page header 2025-03-17 15:53:53 +08:00
Will Miao a4ee82b51f checkpoint 2025-03-17 15:10:11 +08:00
Will Miao 1034282161 Enhance LoRA and Recipe templates by adding request context to template rendering. Update JavaScript to initialize search managers with context-specific options and improve header navigation with dynamic search placeholders. Refactor header component for better context awareness in search functionality. 2025-03-17 10:11:50 +08:00
Will Miao 406284a045 checkpoint 2025-03-16 16:56:33 +08:00
Will Miao edd36427ac Refactor recipe management to enhance initialization and metadata handling. Improve error logging during cache pre-warming, streamline recipe data structure, and ensure proper handling of generation parameters. Update UI components for missing LoRAs with improved summary and toggle functionality. Add new methods for adding recipes to cache and loading recipe data from JSON files. 2025-03-15 20:08:26 +08:00
Will Miao 5c62ec1177 checkpoint 2025-03-15 09:53:50 +08:00
Will Miao 5e4d2c7760 checkpoint 2025-03-14 21:10:24 +08:00
Will Miao 426e84cfa3 checkpoint 2025-03-14 16:37:52 +08:00
Will Miao 9c0dcb2853 checkpoint 2025-03-14 11:04:58 +08:00
Will Miao dd81c86540 Enhance folder tag functionality and layout; update styles for action buttons and toggle behavior 2025-03-13 21:23:24 +08:00
Will Miao 3620376c3c Add search and filter functionality to header; adjust styles for responsiveness 2025-03-13 21:02:54 +08:00
Will Miao e7233c147d checkpoint 2025-03-13 15:04:18 +08:00
Will Miao 004c203ef2 Merge branch 'main' into dev 2025-03-13 11:45:43 +08:00
Will Miao e992ace11c Add NSFW browse control functionality - Done 2025-03-12 22:21:30 +08:00
Will Miao 0cad6b5cbc Add nsfw browse control part 1 2025-03-12 21:06:31 +08:00
Will Miao be5e8bad17 Revert "Enhance infinite scroll functionality; increase sentinel height and ensure full width, trigger layout recalculation on initialization."
This reverts commit a1e9e440ed.
2025-03-11 14:47:15 +08:00
Will Miao 2783782669 Add search options panel and functionality for filename, model name, and tags 2025-03-10 19:33:45 +08:00
Will Miao 564e507fa9 Add tag info and filtering 2025-03-10 15:32:27 +08:00
Will Miao 721bef3ff8 Add tag filtering checkpoint 2025-03-10 13:18:56 +08:00
Will Miao d69406c4cb checkpoint 2025-03-09 15:42:00 +08:00
Will Miao 250e8445bb checkpoint 2025-03-09 12:29:24 +08:00
Will Miao e6aafe8773 Add recipes checkpoint 2025-03-08 23:10:24 +08:00
Will Miao 14aef237a9 Add interactive thumbnail strip for bulk LoRA selection 2025-03-07 15:36:07 +08:00
Will Miao 0c4914909a Add bulk operation 2025-03-07 13:15:39 +08:00
Will Miao a9b3131e64 Enhance modal toggle functionality and update service interaction 2025-03-07 09:33:58 +08:00
Will Miao a1e9e440ed Enhance infinite scroll functionality; increase sentinel height and ensure full width, trigger layout recalculation on initialization. Try to fix: https://github.com/willmiao/ComfyUI-Lora-Manager/issues/24 2025-03-07 06:50:31 +08:00
Will Miao cfcc954ffe Add Civitai link and icon styles, enhance modal management 2025-03-06 18:17:24 +08:00
Will Miao 61ea42353d Add update check and change log 2025-03-06 17:28:18 +08:00
Will Miao 5e6cce936d Add update notifications 2025-03-05 22:03:54 +08:00
Will Miao 493dff5c19 Add support modal and toggle button for user feedback and support 2025-03-05 20:47:17 +08:00
Will Miao f614dbf700 Add filters - base model only for now 2025-03-05 19:53:52 +08:00
Will Miao c17f2c885a Add filters - checkpoint 2025-03-05 19:07:11 +08:00
Will Miao 3f3710879d update 2025-02-21 22:13:48 +08:00
Will Miao 4605399b50 Support One-click integration of LoRAs into ComfyUI workflows with preset strength values 2025-02-20 23:05:04 +08:00
Will Miao 9ce38e7db3 Add lora loader node 2025-02-20 22:37:40 +08:00
Will Miao 80b860e98a Add refresh metadata functionality to context menu and improve item state handling 2025-02-18 20:08:36 +08:00