Commit Graph

333 Commits (3fbded3a635fcace5f17a18e44d5e9e1754900a8)

Author SHA1 Message Date
zanllp 4cb3966cd2 feat: style update 2025-12-15 00:59:32 +08:00
zanllp da0082516c feat: add audio file playback support and improve TikTok view
- Add audio file recognition in backend (tool.py) and frontend (file.ts)
- Support audio formats: mp3, wav, ogg, flac, m4a, aac, wma
- Add audio player in TikTok view with starfield background animation
- Add audio modal similar to video modal
- Update file type filter to multi-select checkboxes (image/video/audio)
- Add filename display in TikTok view with Douyin-style bottom gradient
- Add long press to hide/show controls in TikTok view
- Fix audio resource cleanup when closing TikTok view
- Add Audio media type tag in database indexing
- Add i18n translations for audio related strings
2025-12-15 00:22:23 +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
zanllp 0184e7b1a6 support webm 2025-11-10 22:08:24 +08:00
zanllp dbf6e34ec0 feat(ui): improve TikTok viewer UX
- Add toggle for navigation buttons in global settings
- Add multi-language support for new settings (en, zh-hans, zh-hant, de)
- Improve video display in TikTok view using fit-content
2025-08-24 21:07:35 +08:00
zanllp d928aa4f56 feat: Adjust UI details & build 2025-08-23 16:13:09 +08:00
wuqinchuan 4df86dc1e2 feat: Add media type filter support for search functionality 2025-07-13 20:09:36 +08:00
wuqinchuan 064859171d fix(homepage): support disable random images feature and fix other issues 2025-06-06 22:22:54 +08:00
zanllp c2f67569ed fix i18n 2025-06-03 16:58:55 +08:00
zanllp 1a4ac9bf65 build 2025-06-02 21:15: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 f9dca3a0eb refactor(stackview): reorder action bar buttons by priority 2025-05-26 21:22:49 +08:00
zanllp f3858cb781 build 2025-05-25 23:54:22 +08:00
zanllp 68b4d96270 build 2025-05-25 23:21:56 +08:00
zanllp 569a61c6d1 build and fix some issue 2025-05-25 23:20:21 +08:00
wuqinchuan dcd4d62c0f feat(video): implement swipeable vertical feed like TikTok 2025-05-25 22:45:53 +08:00
zanllp 68b39c20f8 fix: handle parent window access error in Colab environment 2025-03-13 21:59:45 +08:00
zanllp 0c0716db09 fix 2025-02-23 05:54:05 +08:00
zanllp ea10260756 feat: add a new feature try-my-luck 2025-02-23 04:09:01 +08:00
wuqinchuan 7d0505f6da feat: Pause polling when in image preview mode 2025-01-28 18:08:56 +08:00
wuqinchuan 7dc9735e6b feat: Implement support for invoke.ai 2025-01-26 18:53:49 +08:00
zanllp 476f4ff779 Support disabling maximize and enable fuzzy search with path-only option 2024-12-26 01:53:06 +08:00
zanllp 031e377a1a Add support for batch downloading with options for no compression and packaging 2024-11-24 23:05:55 +08:00
zanllp b005d8760d feat: support more shortcut keys 2024-11-16 22:49:49 +08:00
zanllp 77fd0ffe66 fix 2024-11-07 23:58:23 +08:00
zanllp f85740088c Add support for categorizing and displaying custom tags alphabetically by first letter 2024-11-07 23:11:29 +08:00
zanllp 02f9e9277f support jpe 2024-10-21 22:22:08 +08:00
zanllp 12a7cd4f0e Add support for displaying the full path 2024-10-17 21:43:24 +08:00
zanllp fae60b0db5 fix 2024-09-28 20:40:33 +08:00
zanllp 9718d545f6 Add support for custom tag colors 2024-09-28 20:23:14 +08:00
zanllp 3f9eea6696 feat: Add quick entry for custom tags in more places 2024-09-07 17:09:06 +08:00
zanllp e04d04d1c7 Enhance parser compatibility 2024-09-01 01:24:56 +08:00
zanllp 475764070d Handle cache issues for video cover and file responses 2024-08-18 20:40:07 +08:00
zanllp 99909bf8fd Fix initialization error 2024-08-18 07:42:50 +08:00
zanllp 313afe3149 update i18n 2024-08-18 06:58:59 +08:00
zanllp c38484d317 Add support for setting the current frame as the video cover 2024-08-18 06:54:29 +08:00
zanllp 5bd21bc258 Add support for disabling sync to implement simple settings isolation mechanism, storing related data only in the browser 2024-08-18 03:08:03 +08:00
zanllp de0a7c8ee9 Disable save settings requests when global settings change in read-only mode 2024-08-13 21:15:43 +08:00
zanllp d945da6672 Update help information and add option to control comma display in generated information 2024-08-07 06:01:30 +08:00
zanllp 1e2925df01 Optimize styles, fix BREAK issue, and add option to control auto-refresh 2024-07-27 11:59:01 +08:00
zanllp a8bca6ff06 pref: Optimize application performance 2024-07-22 09:07:06 +08:00
zanllp 78bcb16318 Complete missing implementations for image search functionality 2024-07-22 06:29:58 +08:00
zanllp 21493de2d9 Add polling refresh feature 2024-07-18 03:52:44 +08:00
zanllp fdf35eb308 Implement automatic refresh in walk mode 2024-07-17 07:58:32 +08:00
zanllp de48ae1f0d Add WorkspaceSnapshot feature. Add support for customizing the startup page 2024-07-15 05:16:11 +08:00
zanllp a994de8694 Adjust interface 2024-07-14 05:00:35 +08:00
zanllp d0cd421330 Add display of current working mode at footer 2024-07-14 04:55:23 +08:00
zanllp d893c7accf fix 2024-07-12 22:40:58 +08:00
zanllp 225a301de4 fix 2024-07-12 22:32:31 +08:00