Mac-Worker: - profiles/meeting.yaml — extrahiert die bisherigen Prompts + DOCX-Layout - core/profiles.py — YAML-Loader mit Cache und Fallback - ollama_client.summarize/make_protocol nehmen profile_name - docx_export: generischer Renderer aus profile.docx (meta + sections mit Typ text/list/tasks/transcript) - /api/profiles listet verfügbare Profile - pyyaml als Dependency LXC: - Job.profile + User.default_profile (Migration: ALTER TABLE) - /api/profiles proxy mit 60s-Cache und Fallback - Upload-Form akzeptiert profile (Server-Default: user.default_profile) - Pipeline gibt Profile bei summarize/protocol/docx an Mac weiter - PATCH /api/auth/me — User kann Standard-Profil ändern Frontend: - Profile-Dropdown im Upload (nur sichtbar wenn ≥2 Profile) - Settings-Karte "Mein Standard-Profil" (nur wenn ≥2 Profile) - Job-Zeile zeigt grünes Profile-Tag (nur wenn relevant) Neue Profile = neue YAML-Datei in mac-worker/profiles/ — kein Code-Deploy nötig, der Mac-Worker liest sie beim Start ein.
146 lines
4.7 KiB
HTML
146 lines
4.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Voice-Agent — Transkription</title>
|
|
<link rel="stylesheet" href="/static/style.css" />
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<div class="header-row">
|
|
<div class="header-left">
|
|
<h1>Voice-Agent</h1>
|
|
<p class="sub">Sitzungsaufnahmen automatisch transkribieren und protokollieren</p>
|
|
</div>
|
|
<div class="header-right">
|
|
<div id="mac-status" class="badge">Mac-Backend: prüfe …</div>
|
|
<div id="user-bar" class="user-bar hidden">
|
|
<span class="muted">Angemeldet als</span>
|
|
<strong id="user-name"></strong>
|
|
<span id="user-admin-badge" class="badge admin-badge hidden">Admin</span>
|
|
<button type="button" id="logout-btn" class="btn-link">Abmelden</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- Auth-Overlay (Login oder Erst-Setup) -->
|
|
<div id="auth-overlay" class="overlay hidden">
|
|
<div class="auth-card">
|
|
<h2 id="auth-title">Anmelden</h2>
|
|
<p id="auth-info" class="muted hidden"></p>
|
|
<form id="auth-form">
|
|
<label>
|
|
Benutzername
|
|
<input type="text" id="auth-username" autocomplete="username" required />
|
|
</label>
|
|
<label>
|
|
Passwort
|
|
<input type="password" id="auth-password" autocomplete="current-password" required />
|
|
</label>
|
|
<button type="submit" id="auth-submit">Anmelden</button>
|
|
</form>
|
|
<p id="auth-msg" class="msg"></p>
|
|
</div>
|
|
</div>
|
|
|
|
<main id="app" class="hidden">
|
|
<section class="card">
|
|
<h2>Neue Aufnahme hochladen</h2>
|
|
<form id="upload-form">
|
|
<label>
|
|
Titel (optional)
|
|
<input type="text" name="title" id="title" placeholder="z. B. Monatsbesprechung" />
|
|
</label>
|
|
<label id="profile-label" class="hidden">
|
|
Verarbeitungs-Profil
|
|
<select id="profile-select"></select>
|
|
<small class="muted">Standard: <span id="default-profile-name">—</span> (in Einstellungen änderbar)</small>
|
|
</label>
|
|
<label>
|
|
Audiodatei (MP3, WAV, M4A, MP4, OGG, FLAC)
|
|
<input type="file" name="audio" id="audio" accept=".mp3,.wav,.m4a,.mp4,.ogg,.flac" required />
|
|
</label>
|
|
<button type="submit" id="submit-btn">Hochladen & verarbeiten</button>
|
|
</form>
|
|
<div id="upload-progress" class="hidden">
|
|
<div class="bar"><div class="bar-fill"></div></div>
|
|
<small class="muted">Upload läuft …</small>
|
|
</div>
|
|
<p id="upload-msg" class="msg"></p>
|
|
</section>
|
|
|
|
<section class="card" id="settings-card">
|
|
<h2>Meine Einstellungen</h2>
|
|
<form id="settings-form" class="settings-form">
|
|
<label>
|
|
Standard-Profil
|
|
<select id="settings-profile"></select>
|
|
</label>
|
|
<button type="submit">Speichern</button>
|
|
</form>
|
|
<p id="settings-msg" class="msg"></p>
|
|
</section>
|
|
|
|
<section class="card">
|
|
<h2>Jobs</h2>
|
|
<table id="jobs-table">
|
|
<thead>
|
|
<tr>
|
|
<th class="col-id">#</th>
|
|
<th class="col-title">Titel / Datei</th>
|
|
<th class="col-status">Status</th>
|
|
<th class="col-progress">Fortschritt</th>
|
|
<th class="col-updated">Aktualisiert</th>
|
|
<th class="col-dl">Downloads</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="jobs-body">
|
|
<tr><td colspan="6" class="muted">Noch keine Jobs.</td></tr>
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
|
|
<!-- Nur sichtbar für Admins -->
|
|
<section id="admin-card" class="card hidden">
|
|
<h2>Benutzer verwalten</h2>
|
|
<form id="user-form" class="user-form">
|
|
<label>
|
|
Benutzername
|
|
<input type="text" id="new-username" autocomplete="off" required pattern="[A-Za-z0-9._@\-]+" />
|
|
</label>
|
|
<label>
|
|
Passwort (min. 8 Zeichen)
|
|
<input type="password" id="new-password" autocomplete="new-password" required minlength="8" />
|
|
</label>
|
|
<label class="inline-check">
|
|
<input type="checkbox" id="new-is-admin" />
|
|
Admin-Rechte
|
|
</label>
|
|
<button type="submit">Anlegen</button>
|
|
</form>
|
|
<p id="user-msg" class="msg"></p>
|
|
<table id="users-table">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Benutzer</th>
|
|
<th>Rolle</th>
|
|
<th>Angelegt</th>
|
|
<th>Aktionen</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="users-body"></tbody>
|
|
</table>
|
|
</section>
|
|
</main>
|
|
|
|
<footer>
|
|
<small class="muted">DSGVO-konform, alles lokal verarbeitet.</small>
|
|
</footer>
|
|
|
|
<script src="/static/app.js"></script>
|
|
</body>
|
|
</html>
|