Commit Graph

41 Commits (d7e2b2f9fc84fc86afd13257a9072eed6a4d38e6)

Author SHA1 Message Date
wuqinchuan d7e2b2f9fc feat: experimental natural-language categorization & search (persistent scope, clustering, retrieval) 2025-12-28 23:10:13 +08:00
zanllp e5413e41f1 feat: optimize random images, improve ComfyUI detection and prompt display
Backend optimizations:
- Refactor get_random_images() using SQLite ORDER BY RANDOM()
- Simplify from 60+ lines to ~20 lines with better performance
- Remove complex multi-cycle index calculations
- Maintain file existence check and auto-cleanup

ComfyUI support:
- Add fallback to 'parameters' field in PNG metadata
- Improve detection for ComfyUI-generated images

Frontend improvements:
- Smart prompt display: auto-detect tag vs natural language format
- Add getTextLength() with Chinese character weight (1 char = 3 letters)
- Refactor isTagStylePrompt() with clear rules:
  * Any tag length > 50  natural language format
  * Average tag length > 30  natural language format
- Natural language prompts shown as paragraphs
- Tag-style prompts shown as badges
- Better support for Chinese/English mixed content

Build:
- Update frontend asset references
2025-11-30 20:50:13 +08:00
zanllp d8ed522996 feat: implement auto-tagging feature with custom tag rules
- Add AutoTagMatcher singleton class for automatic tag application
- Support filtering by multiple fields (prompt, model, sampler, etc.)
- Add frontend UI for managing auto-tag rules in global settings
- Support AND logic for multiple conditions within a rule
- Integrate with image indexing process
- Add natural language vs tag-style prompt detection and rendering
- Include rule descriptions and usage guidance in UI
- Auto-reload rules when updated via API
2025-11-30 19:00:24 +08:00
bupro 198de49e58 feat: Add video tag search and random sort with i18n support
- Added video tag support for enhanced media file handling:
  * Video files can now use tag-based search functionality
  * Added support for reading video generation info from txt files
  * Enhanced EXIF data handling for video media types

- Implemented random sort feature for image grid:
  * Added random sort toggle button with visual indicators (🎲/📅)
  * Supports both random and date-based sorting modes
  * Optimized pagination for random sorting with offset-based cursors

- Complete internationalization support:
  * Added translations for random sort and date sort in all languages
  * Supported languages: zh-hans, en, de, zh-hant
  * Improved UI consistency across language variants

- Backend improvements:
  * Enhanced database queries to support random sorting
  * Added random_sort parameter to API endpoints
  * Improved error handling for video file processing

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-23 00:41:10 +08:00
zanllp d78cc773c9 add log 2025-08-04 22:13:58 +08:00
wuqinchuan 4df86dc1e2 feat: Add media type filter support for search functionality 2025-07-13 20:09:36 +08:00
wuqinchuan fb68d78f39 feat(file-view): add toggle for TikTok-style file display,enable some experimental features by default 2025-06-02 20:46:22 +08:00
zanllp 387ef7875b
Merge pull request #804 from zanllp/fix/insufficient-random-media-count
fix(media): ensure minimum quantity in random image/video API
2025-05-25 20:35:55 +08:00
zanllp 6fc5dcf35e fix(media): ensure minimum quantity in random image/video API 2025-05-25 20:34:04 +08:00
Yoonsoo Kim 488492bf66 configurable db path 2025-02-28 16:45:18 +09:00
zanllp ea10260756 feat: add a new feature try-my-luck 2025-02-23 04:09:01 +08:00
zanllp 476f4ff779 Support disabling maximize and enable fuzzy search with path-only option 2024-12-26 01:53:06 +08:00
zanllp b005d8760d feat: support more shortcut keys 2024-11-16 22:49:49 +08:00
zanllp 3c3808d93f refactor: remove useless code 2024-09-28 20:27:35 +08:00
zanllp 9718d545f6 Add support for custom tag colors 2024-09-28 20:23:14 +08:00
zanllp de48ae1f0d Add WorkspaceSnapshot feature. Add support for customizing the startup page 2024-07-15 05:16:11 +08:00
zanllp 94b27b5a74 Add 'Move To', 'Copy To', 'Copy File Path', and 'Open File Location in New Tab' to context menu 2024-07-01 07:05:09 +08:00
zanllp bf6c72895d Implement automatic synchronization of global settings to the backend 2024-06-24 06:05:46 +08:00
zanllp db775d0666 Add support for StableSwarmUI 2024-06-13 18:41:05 +08:00
zanllp f1f59dee74 fixed loc 2024-06-10 11:14:23 +08:00
zanllp 5896970d78 dec 2024-05-26 10:26:34 +08:00
zanllp 0fb43eefec Fix potential recursion error 2024-05-16 02:00:00 +08:00
zanllp bb4837881b Add support for adding aliases to paths 2024-04-13 03:57:49 +08:00
zanllp 2d096ba2ff Add support for multiple view types for the same path 2024-04-11 00:51:22 +08:00
zanllp 9088388530 feat: Implement automatic database file backup mechanism 2024-03-22 23:13:26 +08:00
zanllp b9332d3525 Add support for fuzzy search within specified scope 2023-11-26 02:58:05 +08:00
zanllp 43ac6466a7 Added support for searching within a specified folder.
Removed the requirement for exact matching during searches.
2023-11-15 01:08:28 +08:00
zanllp 9634d9f20d Implemented support for batch tag addition and removal 2023-10-29 18:06:52 +08:00
zanllp 0cfb316659 fix 2023-09-29 00:16:10 +08:00
zanllp b7c87624b6 Expand regular expression matching to support a wider range 2023-09-24 07:55:07 +08:00
zanllp 5495f791be Add support for using regular expressions in fuzzy search 2023-09-23 10:50:34 +08:00
zanllp ac7c37658f Fix issue with inability to remove preset folders added to ExtraPath 2023-09-13 11:12:35 +08:00
zanllp 945ef9b251 Added support for custom walk mode folder path 2023-09-10 07:31:05 +08:00
zanllp bc6c3ef205 Change image search to use pagination based on cursor instead of fixed maximum of 500 images. 2023-09-01 03:16:57 +08:00
zanllp 7d49900dc4
Revert "Revert" 2023-07-23 23:26:45 +08:00
zanllp 323cdaa866 Revert "Merge pull request #334 from zanllp/feature/access-control"
This reverts commit bb2e512b48, reversing
changes made to 478409dee8.
2023-07-23 21:11:43 +08:00
zanllp a0814fc500 Add support for specialized access control paths and permissions 2023-07-23 03:08:06 +08:00
zanllp 1c4479a394 Improved custom tag display for better user experience. 2023-07-19 19:07:43 +08:00
zanllp 1c75e81be4 Add desktop app version built with Tauri 2023-07-07 10:35:30 +08:00
zanllp aa4a737422 Add binary build using Tauri framework 2023-07-05 13:59:39 +08:00
zanllp 78a6fb3904 Resolved module conflict 2023-06-03 16:29:46 +08:00