feat: implement initial frontend SPA with advanced search, query parsing, and autocomplete suggestions.

This commit is contained in:
2026-03-24 09:41:03 -04:00
parent 1bfe2359d9
commit 5e300f9ada
3 changed files with 148 additions and 3 deletions
+8
View File
@@ -1455,6 +1455,14 @@ async def api_diagnostics(current_user=Depends(require_admin)):
if FRONTEND_DIR.exists():
app.mount("/static", StaticFiles(directory=str(FRONTEND_DIR)), name="static")
@app.get("/popout/{vault_name}/{path:path}")
async def serve_popout(vault_name: str, path: str):
"""Serve the minimalist popout page for a specific file."""
popout_file = FRONTEND_DIR / "popout.html"
if popout_file.exists():
return HTMLResponse(content=popout_file.read_text(encoding="utf-8"))
raise HTTPException(status_code=404, detail="Popout template not found")
@app.get("/{full_path:path}")
async def serve_spa(full_path: str):
"""Serve the SPA index.html for all non-API routes."""