diff --git a/README.md b/README.md index a81cf39..aacb97e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Angebots-Übersicht +# MABOTO — Marktbeobachtungstool [![tests](https://github.com/Jeuners/timopro/actions/workflows/tests.yml/badge.svg)](https://github.com/Jeuners/timopro/actions/workflows/tests.yml) diff --git a/docs/ui-ergebnis.png b/docs/ui-ergebnis.png index 9ec71a6..34bc5cf 100644 Binary files a/docs/ui-ergebnis.png and b/docs/ui-ergebnis.png differ diff --git a/docs/ui-stufen.png b/docs/ui-stufen.png index eeed6b6..492cd1c 100644 Binary files a/docs/ui-stufen.png and b/docs/ui-stufen.png differ diff --git a/src/angebote/web.py b/src/angebote/web.py index 5ead334..f7cda9d 100644 --- a/src/angebote/web.py +++ b/src/angebote/web.py @@ -23,13 +23,14 @@ import uuid from pathlib import Path from fastapi import FastAPI, HTTPException -from fastapi.responses import HTMLResponse +from fastapi.responses import HTMLResponse, Response from .fehler import AbbruchFehler -app = FastAPI(title="Angebots-Übersicht") +app = FastAPI(title="MABOTO — Marktbeobachtungstool") _HTML = (Path(__file__).parent / "web_static" / "index.html").read_text("utf-8") +_FAVICON = (Path(__file__).parent / "web_static" / "favicon.svg").read_text("utf-8") # In-memory Job-Store für Stufe 2 (LLM, läuft im Thread). Schlicht gehalten -- # ein lokales Single-User-Werkzeug. @@ -46,6 +47,12 @@ def index() -> str: return _HTML +@app.get("/favicon.svg") +def favicon() -> Response: + return Response(content=_FAVICON, media_type="image/svg+xml", + headers={"Cache-Control": "public, max-age=86400"}) + + @app.get("/api/modelle") def api_modelle(q: str = "") -> list[dict]: """Modell-Liste fürs Dropdown. Ohne Suche: das EMPFOHLENE Default-Modell diff --git a/src/angebote/web_static/favicon.svg b/src/angebote/web_static/favicon.svg new file mode 100644 index 0000000..f0e69b4 --- /dev/null +++ b/src/angebote/web_static/favicon.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/angebote/web_static/index.html b/src/angebote/web_static/index.html index 0afee1e..f4582ab 100644 --- a/src/angebote/web_static/index.html +++ b/src/angebote/web_static/index.html @@ -6,7 +6,10 @@ -Angebots-Übersicht + + +MABOTO — Marktbeobachtungstool +