Meilenstein 2: Verbindungs-API und Dashboard
- 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>
This commit is contained in:
1 parent
293367f33e
commit
2e89c4ad59
10 files changed
+816
-30
No files matched your search
+52
-1
@@ -31,10 +31,61 @@
|
||||
</section>
|
||||
|
||||
<section id="dashboard" hidden>
|
||||
<p>Angemeldet. Die Verbindungs-Kacheln folgen in Meilenstein 2.</p>
|
||||
<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>
|
||||
Reference in new issue
Block a user