- CRUD-API /api/connections mit Filter nach Sichtbarkeit und Typ - Sichtbarkeit: privat nur für Besitzer (sonst 404), team für alle bearbeitbar; nur der Besitzer darf team auf privat setzen - Strenge serverseitige Prüfung von Ziel, Port, Benutzer und URL - Dashboard mit Kacheln nach Typ, Filter Alle/Privat/Team, Suche, Dialog zum Anlegen/Bearbeiten, Links itrdp:// und itssh:// - Tests für Validierung und Sichtbarkeitslogik, SETUP.md ergänzt Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
92 lines
3.0 KiB
HTML
92 lines
3.0 KiB
HTML
<!doctype html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>it-connect</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>it-connect</h1>
|
|
<div id="benutzer-bereich" hidden>
|
|
<span id="benutzer-name"></span>
|
|
<button id="logout-btn" type="button">Abmelden</button>
|
|
</div>
|
|
</header>
|
|
|
|
<main>
|
|
<section id="login-bereich" hidden>
|
|
<form id="login-form" class="karte">
|
|
<h2>Anmelden</h2>
|
|
<label>Benutzername
|
|
<input name="benutzername" autocomplete="username" required>
|
|
</label>
|
|
<label>Passwort
|
|
<input name="passwort" type="password" autocomplete="current-password" required>
|
|
</label>
|
|
<p id="login-fehler" class="fehler" role="alert"></p>
|
|
<button type="submit">Anmelden</button>
|
|
</form>
|
|
</section>
|
|
|
|
<section id="dashboard" hidden>
|
|
<div class="werkzeugleiste">
|
|
<div class="filter" role="group" aria-label="Sichtbarkeit filtern">
|
|
<button type="button" data-filter="" class="aktiv">Alle</button>
|
|
<button type="button" data-filter="privat">Privat</button>
|
|
<button type="button" data-filter="team">Team</button>
|
|
</div>
|
|
<input id="suche" type="search" placeholder="Suchen …" aria-label="Suchen">
|
|
<button id="neu-btn" type="button">+ Neue Verbindung</button>
|
|
</div>
|
|
<p id="dashboard-fehler" class="fehler" role="alert"></p>
|
|
<div id="gruppen"></div>
|
|
</section>
|
|
</main>
|
|
|
|
<dialog id="eintrag-dialog">
|
|
<form id="eintrag-form" method="dialog">
|
|
<h2 id="dialog-titel">Neue Verbindung</h2>
|
|
<label>Typ
|
|
<select name="typ">
|
|
<option value="rdp">RDP</option>
|
|
<option value="ssh">SSH</option>
|
|
<option value="web">Web</option>
|
|
</select>
|
|
</label>
|
|
<label>Anzeigename
|
|
<input name="anzeigename" maxlength="100" required>
|
|
</label>
|
|
<label><span id="ziel-label">Ziel (IP oder FQDN)</span>
|
|
<input name="ziel" maxlength="2048" required>
|
|
</label>
|
|
<div class="zeile nur-host">
|
|
<label>Port
|
|
<input name="port" type="number" min="1" max="65535">
|
|
</label>
|
|
<label>Benutzer
|
|
<input name="benutzer" maxlength="64" autocomplete="off">
|
|
</label>
|
|
</div>
|
|
<label>Notiz
|
|
<textarea name="notiz" maxlength="2000" rows="3"></textarea>
|
|
</label>
|
|
<label>Sichtbarkeit
|
|
<select name="sichtbarkeit">
|
|
<option value="privat">Privat (nur ich)</option>
|
|
<option value="team">Team (alle Admins)</option>
|
|
</select>
|
|
</label>
|
|
<p id="dialog-fehler" class="fehler" role="alert"></p>
|
|
<div class="dialog-knoepfe">
|
|
<button type="button" id="abbrechen-btn" class="sekundaer">Abbrechen</button>
|
|
<button type="submit">Speichern</button>
|
|
</div>
|
|
</form>
|
|
</dialog>
|
|
|
|
<script src="app.js"></script>
|
|
</body>
|
|
</html>
|