Adds a user-facing trigger to rebuild the Kiwix library index from the ZIM files currently on disk. Covers the sideload case: a user copies a .zim onto the box (USB, SSH, network share) outside NOMAD's download flow, and Kiwix has no way to discover it without regenerating the library index. Reuses the existing native KiwixLibraryService.rebuildFromDisk() (which also extracts embedded favicons natively), so no kiwix-tools container and no icon-patch step are needed. In library mode (--monitorLibrary) kiwix-serve hot-reloads the XML automatically; only legacy glob-mode containers are restarted. - KiwixLibraryService.rebuildFromDisk now returns the book count; adds getBookCount() for the before/after delta - ZimService.rescanLibrary() orchestrates rebuild + legacy restart - POST /api/zim/rescan-library + ZimController.rescanLibrary - "Rescan Library" button on the Content Manager page (shown when Kiwix is installed) with a success toast reporting books found Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| benchmark_controller.ts | ||
| chats_controller.ts | ||
| collection_updates_controller.ts | ||
| docs_controller.ts | ||
| downloads_controller.ts | ||
| easy_setup_controller.ts | ||
| home_controller.ts | ||
| maps_controller.ts | ||
| ollama_controller.ts | ||
| rag_controller.ts | ||
| settings_controller.ts | ||
| system_controller.ts | ||
| zim_controller.ts | ||