Commit Graph

204 Commits

Author SHA1 Message Date
Will Miao b3e5ac395f Enhance recipe modal styles and tooltip functionality
- Updated CSS for recipe modal to improve layout and responsiveness, including adjustments to header and badge styles.
- Added tooltip positioning logic to ensure correct display of local-badge tooltips on hover.
- Refactored HTML structure for local status badges to enhance stability and positioning.
- Removed unnecessary console logs from recipe fetching process in JavaScript for cleaner output.
2025-03-21 20:19:58 +08:00
Will Miao 644ee31654 Remove site.webmanifest and refactor state initialization in RecipeManager and HeaderManager
- Deleted the site.webmanifest file as it is no longer needed.
- Simplified state management by removing initPageState from RecipeManager and integrating it into HeaderManager.
- Cleaned up console logging in loraApi.js to reduce unnecessary output.
- Minor formatting adjustments in FilterManager to enhance code readability.
2025-03-21 05:22:20 +08:00
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 addf92d966 Refactor API routes and enhance recipe and filter management
- Removed the handle_get_recipes method from ApiRoutes to streamline the API structure.
- Updated RecipeRoutes to include logging for recipe retrieval requests and improved filter management.
- Consolidated filter management logic in FilterManager to support both recipes and loras, enhancing code reusability.
- Deleted obsolete LoraSearchManager and RecipeSearchManager classes to simplify the search functionality.
- Improved infinite scroll implementation for both recipes and loras, ensuring consistent loading behavior across pages.
2025-03-20 14:54:13 +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 d7a253cba3 Update LoraModal to enhance preset value configuration and file path retrieval
- Adjusted preset value min, max, and step properties for improved functionality based on selected options.
- Refactored file path retrieval to ensure consistency by targeting the specific modal context, enhancing code clarity and maintainability.
2025-03-19 20:53:15 +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 78f8d4ecc7 Add sharing functionality for recipes
- Introduced new endpoints for sharing recipes and downloading shared images in RecipeRoutes.
- Implemented logic to process recipe images and append metadata to EXIF data.
- Updated RecipeCard component to handle sharing via API calls, providing user feedback during the process.
- Enhanced error handling for missing recipe IDs and failed API responses.
2025-03-18 14:52:21 +08:00
Will Miao 710857dd41 checkpoint 2025-03-17 19:58:17 +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 b0a8b0cc6f Implement share functionality in RecipeCard component to enable image downloads. Adjust recipe indicator position in CSS for improved layout. 2025-03-17 06:10:43 +08:00
Will Miao 22085e5174 Add delete confirmation modal for recipes with updated styling and functionality. Implement modal content generation, event handling for delete and cancel actions, and integrate with modal manager for improved user experience. Enhance CSS for delete preview image display. 2025-03-16 18:17:19 +08:00
Will Miao 406284a045 checkpoint 2025-03-16 16:56:33 +08:00
Will Miao d3e4534673 Refactor model name editing functionality in LoraModal; update styles for improved user interaction and accessibility 2025-03-13 22:11:51 +08:00
Will Miao 7f088e58bc Implement SFW content filtering in LoraModal and update settings management 2025-03-12 22:57:21 +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 cbb76580e4 Enhance error handling for civitai metadata parsing and update logic; add empty state messages for model descriptions 2025-03-10 17:32:28 +08:00
Will Miao 2bdecf571b Add trigger words editting 2025-03-10 17:10:58 +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 0069f84630 Add model description in lora details 2025-03-10 00:20:31 +08:00
Will Miao 2186b7ee26 Improve bulk mode card display handling 2025-03-07 17:34:54 +08:00
Will Miao 59716ce3c3 Fix bulk multi select 2025-03-07 14:00:15 +08:00
Will Miao 0c4914909a Add bulk operation 2025-03-07 13:15:39 +08:00
Will Miao 69b1773ced Add inline model name editing with validation and resortable cache 2025-03-07 10:32:27 +08:00
Will Miao 53ab6d8ab4 Refactor LoraCard.js code 2025-03-07 09:11:00 +08:00
Will Miao 81b401106f Add auto-focus to preset value and keydown event listeners for notes and preset actions 2025-03-03 12:17:57 +08:00
Will Miao 3b4f3c1b44 Add file size display and formatting to Lora modal 2025-03-03 12:07:33 +08:00
Will Miao db5d479c0e Add file name copy functionality to Lora modal 2025-03-03 11:48:44 +08:00
Will Miao ba2c80496e Enhance clipboard functionality in LoraCard: implement modern clipboard API with fallback for older browsers 2025-02-22 10:42:28 +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 57ca4a275d Enhance LoraCard with preset controls for usage tips and update modal styles 2025-02-19 22:33:34 +08:00
Will Miao d7b3ba6d67 checkpoint 2025-02-19 21:04:41 +08:00
Will Miao 39ad18bfbc Add metadata saving functionality and enhance LoraCard with usage tips and notes 2025-02-19 20:49:54 +08:00
Will Miao ebc4196071 Enhance modal styles and add scrollbar width variable 2025-02-19 13:32:57 +08:00
Will Miao 2f099325e4 Refactor showcase checkpoint 2025-02-19 12:53:09 +08:00
Will Miao 1d0af7f163 checkpoint 2025-02-19 12:14:12 +08:00
Will Miao 2f3061ce7c checkpoint 2025-02-19 11:20:26 +08:00
Will Miao 0b260276b2 checkpoint 2025-02-19 07:17:39 +08:00
Will Miao dac07308c3 Refactor Lora cache update logic and enhance context menu item handling 2025-02-18 20:55:31 +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
Will Miao 52b01d1bce Implement move to folder 2025-02-18 19:01:02 +08:00
Will Miao 6181a1c714 Update context menu actions to use icon buttons for improved accessibility 2025-02-18 00:15:02 +08:00
Will Miao 89026db8c3 Fix menu position 2025-02-18 00:06:06 +08:00
Will Miao 31c1139b32 Add context menu checkpoint 2025-02-18 00:02:12 +08:00