Commit Graph
9 Commits
Author SHA1 Message Date
huchukato 190950ab68 Add repo file browser and snapshot download to Search tab
- New backend endpoint /api/huggingface/repo_tree lists files/folders
  of a HF repo via HfApi.list_repo_tree (with list_repo_files fallback).
- SearchModels now returns real creator (from org/repo), metrics,
  publishedAt and pipeline_tag-derived type, so cards show useful info.
- New repoTreeRenderer modal: breadcrumb navigation, per-file Download
  (prefills Download tab with resolve URL) and Download repo button
  (snapshot_download, auto-selects diffusers folder).
- searchRenderer rewritten: removed CivitAI-style version buttons;
  each card now has View / Browse / Repo actions.
- eventListeners, UI, api client updated for the new buttons.
- DownloadModel no longer blocks snapshot downloads when the target
  directory already exists (allows resume).
- CSS: added repo tree modal styles, removed dead all-versions CSS.
2026-09-01 23:22:32 +02:00
huchukato e0cb621c49 Remove /api/ prefix from frontend API calls
- ComfyUI automatically adds /api/ prefix to routes
- Frontend was calling /api/huggingface/ which became /api/api/huggingface/
- Changed back to /huggingface/ to let ComfyUI handle the prefix
- This should fix 404 errors for all endpoints
2026-02-21 04:11:13 +01:00
huchukato 9ec8e0af1e Fix API endpoints to use /api/ prefix
- Added /api/ prefix to all HuggingFace API endpoints
- ComfyUI serves routes with /api/ prefix
- This should fix 404 errors for get_model_details and other endpoints
- All API calls should now work correctly
2026-02-21 04:01:48 +01:00
huchukato 9de8e87ed8 Fix missing huggingface.js API file causing UI load failure
- Renamed web/js/api/civitai.js to huggingface.js
- This was preventing the UI from loading properly
- HuggingFaceDownloaderAPI class can now be imported correctly
- Extension should now load and show button in ComfyUI

Critical fix for missing button issue!
2026-02-21 02:10:04 +01:00
huchukato 43861995ab Complete HuggingFace rebranding for UI
- Replaced all remaining 'Civicomfy' references with 'HuggingFace'
- Updated JavaScript extension name and button text
- Fixed all UI component references
- Updated console logs and error messages
- Changed extension registration name
- Updated CSS and image paths

This should fix the missing button issue in ComfyUI
2026-02-21 02:03:08 +01:00
MoonGoblin 7c0791ed9c feat: support env API key and global model root paths 2026-02-14 12:32:29 +07:00
MoonGoblin 524a1e2e99 model dir fix 2025-09-11 17:40:55 +08:00
MoonGoblin d03355ad05 folder dir revamp 2025-09-11 17:31:49 +08:00
MoonGoblin 9ccde2083b refactor 2025-08-09 15:11:02 +08:00