- Minimale Web-UI (app/web/, vanilla, same-origin -> kein CORS): Text-Prompt + Mikrofon-Button (Aufnahme im Browser -> /ws/voice -> Antwort wird vorgelesen), Token-Streaming, PCM-Wiedergabe, Identitaet/Logout/Admin im Menue - Forward-/Trusted-Header-Auth (app/auth.py): Identitaet aus SSO-Header, nur von TRUSTED_PROXY_IPS akzeptiert; sonst Token/Anonymous-Fallback. Auto-Provisioning via store.get_or_create_user_by_external_id (+ external_id-Spalte/Migration) - /api/me um is_admin + sso_logout_url erweitert; GET /api/admin/users (Liste) und GET /api/admin/request-headers (SSO-Header-Discovery), Admin-gated - StaticFiles-Mount; Config: TRUSTED_AUTH_HEADER/_PROXY_IPS, ADMIN_USERS, SSO_LOGOUT_URL - WS-Auth liest Identitaet aus dem Handshake-Header - Deploy: nginx-Vorlage (WS-Upgrade!) + deploy/README.md (HTTPS/SSO/Firewall/Discovery) - Tests: Forward-Auth (Provisioning, Admin-Flag, Proxy-IP-Trust, 401/403, Static) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
52 lines
2.2 KiB
CSS
52 lines
2.2 KiB
CSS
* { box-sizing: border-box; }
|
|
body {
|
|
margin: 0;
|
|
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
color: #1c1c1c;
|
|
background: #f6f7f9;
|
|
}
|
|
#layout { display: flex; min-height: 100vh; }
|
|
|
|
#menu {
|
|
width: 240px;
|
|
flex-shrink: 0;
|
|
background: #1f2933;
|
|
color: #e4e7eb;
|
|
padding: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
#menu h2 { font-size: 1.1rem; margin: 0; }
|
|
#menu h3 { font-size: 0.9rem; margin: 0 0 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
|
|
#menu a { color: #9fd3ff; }
|
|
#identity { font-size: 0.9rem; }
|
|
.muted { color: #7b8794; font-size: 0.85rem; }
|
|
.hidden { display: none; }
|
|
|
|
#user-list { list-style: none; padding: 0; margin: 0 0 0.5rem; font-size: 0.85rem; }
|
|
#user-list li { padding: 0.15rem 0; border-bottom: 1px solid #323f4b; }
|
|
|
|
#chat { flex: 1; display: flex; flex-direction: column; padding: 1rem; max-width: 820px; margin: 0 auto; width: 100%; }
|
|
#messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0.6rem; padding-bottom: 1rem; }
|
|
|
|
.msg { padding: 0.6rem 0.8rem; border-radius: 0.8rem; max-width: 80%; white-space: pre-wrap; line-height: 1.4; }
|
|
.msg.user { align-self: flex-end; background: #2b6cb0; color: #fff; }
|
|
.msg.assistant { align-self: flex-start; background: #fff; border: 1px solid #e1e4e8; }
|
|
.msg.system { align-self: center; background: #fdf3d7; border: 1px solid #f0d98c; font-size: 0.85rem; }
|
|
.msg.emergency { align-self: center; background: #fde0e0; border: 1px solid #f5a3a3; font-weight: 600; }
|
|
|
|
#prompt-form { display: flex; gap: 0.5rem; align-items: center; }
|
|
#prompt { flex: 1; padding: 0.7rem; border: 1px solid #cbd2d9; border-radius: 0.6rem; font-size: 1rem; }
|
|
button { padding: 0.7rem 1rem; border: none; border-radius: 0.6rem; background: #2b6cb0; color: #fff; font-size: 1rem; cursor: pointer; }
|
|
button:disabled { opacity: 0.5; cursor: default; }
|
|
#mic { background: #2f855a; }
|
|
#mic.recording { background: #c53030; animation: pulse 1s infinite; }
|
|
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
|
|
#status { min-height: 1.2rem; margin-top: 0.4rem; }
|
|
|
|
@media (max-width: 640px) {
|
|
#layout { flex-direction: column; }
|
|
#menu { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; }
|
|
#menu h2 { flex: 1; }
|
|
}
|