Commit Graph
236 Commits
Author SHA1 Message Date
HuangYuChuh a4cefbd3b7 Update repo links to current owner 2026-04-09 20:30:19 +08:00
HuangYuChuh 659e919edc Improve SEO copy in README intro 2026-04-09 10:32:15 +08:00
科林 KELINand科林 KELIN 4bff50443c Allow JSON Extractor to return native scalar types (#6)
* Allow JSON Extractor to return native scalar types

* Handle null values in JSON extractor

---------

Co-authored-by: 科林 KELIN <HuangYuChuh@users.noreply.github.com>
2026-04-09 09:55:16 +08:00
科林 KELINand科林 KELIN 297ee588ed chore: use rounded rectangle badges in README (#5)
Co-authored-by: 科林 KELIN <HuangYuChuh@users.noreply.github.com>
2026-04-07 09:43:27 +08:00
科林_Cyril Pilgrim 180829eca3 feat(llm-translator): implement dynamic provider/model selection and UI improvements
Motivation:
Users needed a more convenient way to select LLM providers and models directly on the LLM Translator node without mandatory external configuration nodes, and requested clearer guidance on how to use the glossary feature.

Implementation:
- Refactored llm_translator.py to dynamically read from providers.json and support standalone configuration.
- Extended the provider_manager.js frontend extension to support the LLMTranslator node for dynamic dropdown syncing.
- Enhanced widget placeholders with detailed multi-line instructions and examples.
- Updated .gitignore to exclude session-specific documents.
2026-03-08 18:24:40 +08:00
科林_Cyril Pilgrim dc6d8eb9e8 docs(troubleshooting): add guide and align package version 2026-03-07 00:05:43 +08:00
科林_Cyril Pilgrim 639c6bfb41 refactor(nodes): rename ImagePreprocessor to ImagePrep
Motivation:
统一类名、显示名与文件名,以匹配 'Image Prep' 的简洁命名规范,提升代码一致性。

Implementation:
将 image_processor.py 重名为 image_prep.py,同步修改类名与节点映射 ID,并更新了示例工作流 JSON 中的节点引用。
2026-03-05 19:16:29 +08:00
科林_Cyril Pilgrim dc0fa63fac feat: add JSON Iterator node for array and directory iteration 2026-03-05 13:03:23 +08:00
科林_Cyril Pilgrim 11b94718a6 fix(ui): fundamentally fix ESC key listener lifecycle
Motivation:
ESC worked only on first open because the listener was registered inside the first-time DOM creation block. On close(), it was detached. On subsequent show() calls, the modal DOM already existed so the function returned early — the listener was NEVER re-attached.

Implementation:
Extracted listener management into two symmetric private methods: _attachEscListener() and _detachEscListener(). show() now calls _attachEscListener on EVERY open (both first-time and subsequent). _closeModal is stored as an instance method so it can be referenced on re-opens. closeModal() calls _detachEscListener() symmetrically. This pattern is leak-proof and correctly re-attaches on every modal activation.
2026-03-05 12:41:09 +08:00
科林_Cyril Pilgrim 3d0b846f61 chore(test): move test_api.py to tests directory
Motivation:
Keep the root directory clean and organized by moving test scripts to a dedicated folder.

Implementation:
Moved test_api.py to tests/test_api.py
2026-03-05 12:34:05 +08:00
科林_Cyril Pilgrim 46a3db8053 style(ui): refine toggle switch animation for a silkier feel
Motivation:
User feedback indicated that the strong spring animation felt rigid and 'blocking' during interactions.

Implementation:
Adjusted CSS transition cubic-bezier curves from an aggressive spring (.34,1.56,.64,1) to a smoother, faster ease-out curve (.25,1.1,.5,1). Reduced transition durations to 0.2s-0.28s to make the interaction feel instantaneous and fluid.
2026-03-05 12:27:56 +08:00
科林_Cyril Pilgrim 3e33595aa1 fix(ui): restore ESC key listener lost on UI re-rendering
Motivation:
When the UI completely re-renders (like when switching between English and Chinese), the old DOM gets destroyed but the window event listener was not properly cleared and the new modal failed to reattach the listener effectively, breaking the ESC key to close.

Implementation:
Added cleanup logic before attaching a new 'keydown' listener to the window object to ensure the _escListener stays active.
2026-03-05 12:22:53 +08:00
科林_Cyril Pilgrim 910d2792ce feat(ui): implement smooth Apple-style spring animation for toggle switch
Motivation:
The previous toggle switch animation was abrupt and rigid. The clickable area also spanned the entire row width, which led to unintentional clicks.

Implementation:
- CSS: Replaced static transitions with cubic-bezier spring physics, hardware-accelerated transforms (translate), and pressed-state squish feedback.
- JS: Wrapped the switch in a constrained flex container, replacing the full-width <label> wrapper to fix the clickable area.
2026-03-05 12:06:48 +08:00
科林_Cyril Pilgrim 39fe305b3b chore(asset): update project banner image
Motivation:
Ensure the project's visual assets, such as the banner, stay up-to-date with the latest branding or design requirements.

Implementation:
Replaced the existing 'asset/banner.png' with the newly updated version.
2026-03-05 09:36:23 +08:00
科林_Cyril Pilgrim f6d72ef002 feat(ui): refine save button style and add ESC key listener to close manager
Motivation:
The save button's style was originally an overly bright gradient, making it feel out of place compared to the frosted glass aesthetics. Additionally, the user requested the ability to close the modal using the Escape key.

Implementation:
1. Updated '.llm-pm-actions-right button:last-child' CSS to use a restrained translucent background similar to the sidebar items, keeping it cohesive with the glassmorphism design.
2. Added a global 'keydown' listener on 'Escape' inside 'ProviderManager.show()' which correctly triggers 'closeModal()' (also checking for unsaved changes) and automatically removes itself when closed.
2026-03-05 09:34:16 +08:00
科林_Cyril Pilgrim 6f597d75f1 fix(i18n): fix language switcher bug and refine Chinese translations
Motivation:
The language switcher's change event listener was never registered because () does not support an initialization callback as its 4th argument. Additionally, the Chinese translation for 'LLM Manager' was inaccurate (模型管家).

Implementation:
1. Replaced the unsupported  callback with an IIFE to manually create the select element, set its value, and add the 'change' event listener.
2. Updated 'I18N_DICT' to change '模型管家' to 'LLM 管理器' for better accuracy.
2026-03-05 09:24:00 +08:00
科林_Cyril Pilgrim b869fefce2 fix(i18n): bind language change event using addEventListener
Motivation:
修复使用 ComfyUI 的  构建 select 元素时 onchange 属性绑定失效的问题。
2026-03-04 22:35:33 +08:00
科林_Cyril Pilgrim 3c7bea009a feat(i18n): convert language toggle to a dropdown menu 2026-03-04 22:02:15 +08:00
科林_Cyril Pilgrim 1c3f998bc1 style(i18n): replace text toggle with language icon
Motivation:
提升管理界面的视觉精致度,使用图标替代文字切换按钮。
2026-03-04 21:41:03 +08:00
科林_Cyril Pilgrim 1dc6567c46 feat(i18n): translate main menu button and fallback button
Motivation:
使 ComfyUI 顶栏按钮也能随界面语言切换而动态更新。
2026-03-04 19:50:40 +08:00
科林_Cyril Pilgrim 4825bc3c06 feat(i18n): implement language switcher (EN/ZH)
Motivation:
提高中英文用户的使用体验,使界面语言可一键切换。

Implementation:
1. 在 provider_manager.js 中注入 I18N_DICT 词典与 t(key) 翻译函数。
2. 将所有硬编码的 UI 字符串替换为翻译调用。
3. 在管理面板标题旁增加语言切换快按键,状态持久化至 localStorage。
2026-03-04 19:35:24 +08:00
科林_Cyril Pilgrim 4c3f5175e8 docs: fix corrupted AGPL LICENSE file text 2026-03-04 18:27:22 +08:00
科林_Cyril Pilgrim df0faf707c docs: update license to AGPL-3.0 2026-03-04 18:24:43 +08:00
科林_Cyril Pilgrim 7f22ab5b07 style: reduce hover glow intensity on Custom Provider button 2026-03-04 18:17:01 +08:00
科林_Cyril Pilgrim a244b74140 style: align Custom Provider button with glassmorphism active style 2026-03-04 18:15:19 +08:00
科林_Cyril Pilgrim 8d2dbdcb9e style: remove active provider left border 2026-03-04 18:09:02 +08:00
科林_Cyril Pilgrim dc653c0cf2 style: remove SYSTEM tags & redesign active sidebar item 2026-03-04 18:02:20 +08:00
科林_Cyril Pilgrim 0754a7aa85 feat(ui): refine glassmorphism details (inline eye icon, loading animations) 2026-03-04 16:41:10 +08:00
科林_Cyril Pilgrim 0590ed5d17 feat(ui): complete glassmorphism UI redesign - Apple frosted glass aesthetic 2026-03-04 16:08:03 +08:00
科林_Cyril Pilgrim d148633515 fix(ui): fix visibility of 'I' in default provider icon 2026-03-04 15:47:07 +08:00
科林_Cyril Pilgrim 159e5a4acd style(ui): update default provider icon with colorful gradient 2026-03-04 15:41:07 +08:00
科林_Cyril Pilgrim 45304d03a0 feat(ui): add default SVG icon for custom providers 2026-03-04 15:36:59 +08:00
科林_Cyril Pilgrim c64a887021 style(ui): unify font family across LLM Manager UI 2026-03-04 15:31:08 +08:00
科林_Cyril Pilgrim c94a9aa360 refactor(ui): rename panel title to 'LLMs Toolkit Manager' 2026-03-04 15:25:15 +08:00
科林_Cyril Pilgrim 95f4100a31 feat(ui): add iFlow SVG icon 2026-03-04 14:56:30 +08:00
科林_Cyril Pilgrim 4cc17d77e1 feat(ui): add ModelScope SVG icon 2026-03-04 14:49:51 +08:00
科林_Cyril Pilgrim e872ee5120 feat(ui): add icons for StepFun, SenseChat (SenseNova), MiniMax, and Baichuan 2026-03-04 14:46:19 +08:00
科林_Cyril Pilgrim f956459146 feat(ui): add Moonshot SVG icon 2026-03-04 14:43:50 +08:00
科林_Cyril Pilgrim 23864745bf feat(ui): add icons for Doubao, Spark, and GLM; fix syntax error in provider_manager.js 2026-03-04 14:39:04 +08:00
科林_Cyril Pilgrim bd59723eff feat(ui): add DeepSeek SVG icon 2026-03-04 14:27:34 +08:00
科林_Cyril Pilgrim 6a46c3dcc4 feat(ui): add infrastructure for provider specific SVG icons and add Qwen icon 2026-03-04 14:22:39 +08:00
科林_Cyril Pilgrim 35a8d75bf8 chore(deps): remove redundant numpy dependency
Motivation:
Numpy 在插件代码中并未被直接导入,且作为 ComfyUI 宿主环境(PyTorch/Pillow)的核心前置依赖已经默认存在,显式声明属于冗余行为。

Implementation:
从 requirements.txt 和 pyproject.toml 的依赖项列表中移除了 numpy,实现了插件依赖声明的极致精简。
2026-03-04 14:13:44 +08:00
科林_Cyril Pilgrim b7983e344b fix(ui): convert inline CSS text to style objects to avoid CSSStyleDeclaration TypeError 2026-03-03 21:59:01 +08:00
科林_Cyril Pilgrim 4a464a9e39 chore: cleanup debug logging from __init__.py 2026-03-03 21:52:14 +08:00
科林_Cyril Pilgrim 2dc32b21e5 fix(routes): use decorator-based route registration matching ComfyUI-Manager pattern 2026-03-03 21:28:14 +08:00
科林_Cyril Pilgrim 3f13462cfb fix(routes): use app.router.add_route fallback for post-init route registration 2026-03-03 21:11:43 +08:00
科林_Cyril Pilgrim fda6944164 fix(usage): handle 404 gracefully when route not yet loaded, prompt restart 2026-03-03 20:06:50 +08:00
科林_Cyril Pilgrim db3c46b586 fix(usage): harden usage tracking - gitignore, thread lock, rotation, error logging, summary cards 2026-03-03 19:37:05 +08:00
科林_Cyril Pilgrim a59f774c7d feat(llm): implement usage statistics tracking and dashboard UI 2026-03-03 19:14:18 +08:00
科林_Cyril Pilgrim 36c5f3028c refactor(web): extract 300+ line CSS into dedicated provider_manager.css 2026-03-03 19:06:43 +08:00