feat: add loading page with real-time initialization progress

- Create loading.html template with WebSocket-based progress updates
- Update initialization_service to emit progress events via ProgressService
- Modify setup endpoint to run initialization in background and redirect to loading page
- Add /loading route in page_controller
- Show real-time progress for series sync, NFO scan, and media scan steps
- Display completion message with button to continue to app
- Handle errors with visual feedback
This commit is contained in:
2026-01-23 14:54:56 +01:00
parent 77ffdac84b
commit 48a2fd0f2a
5 changed files with 714 additions and 21 deletions

View File

@@ -49,3 +49,13 @@ async def queue_page(request: Request):
request,
title="Download Queue - Aniworld"
)
@router.get("/loading", response_class=HTMLResponse)
async def loading_page(request: Request):
"""Serve the initialization loading page."""
return render_template(
"loading.html",
request,
title="Initializing - Aniworld"
)