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
@@ -62,3 +62,88 @@ button {
|
||||
}
|
||||
.fehler { color: var(--fehler); margin: 0; min-height: 1.2em; }
|
||||
[hidden] { display: none !important; }
|
||||
|
||||
/* --- Dashboard --- */
|
||||
.werkzeugleiste {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
align-items: center;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.werkzeugleiste #suche { flex: 1; min-width: 180px; }
|
||||
.filter { display: flex; border: 1px solid var(--rand); border-radius: 6px; overflow: hidden; }
|
||||
.filter button { border-radius: 0; background: var(--karte); color: var(--fg); }
|
||||
.filter button.aktiv { background: var(--akzent); color: #fff; }
|
||||
|
||||
.gruppe h2 { font-size: 1.05rem; margin: 1.5rem 0 0.75rem; }
|
||||
.raster {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.kachel {
|
||||
background: var(--karte);
|
||||
border: 1px solid var(--rand);
|
||||
border-left: 4px solid var(--akzent);
|
||||
border-radius: 8px;
|
||||
padding: 0.9rem 1rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.35rem;
|
||||
min-width: 0;
|
||||
}
|
||||
.kachel.typ-rdp { border-left-color: #2f6fde; }
|
||||
.kachel.typ-ssh { border-left-color: #2e9d5b; }
|
||||
.kachel.typ-web { border-left-color: #c77d1a; }
|
||||
.kachel-kopf { display: flex; justify-content: space-between; gap: 0.5rem; align-items: start; }
|
||||
.kachel h3 { font-size: 1rem; margin: 0; overflow-wrap: anywhere; }
|
||||
.kachel p { margin: 0; overflow-wrap: anywhere; }
|
||||
.kachel .ziel { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; }
|
||||
.kachel .notiz { font-size: 0.85rem; opacity: 0.8; white-space: pre-line; }
|
||||
.kachel .besitzer { font-size: 0.8rem; opacity: 0.65; }
|
||||
.kachel-knoepfe { display: flex; gap: 0.4rem; margin-top: auto; padding-top: 0.5rem; flex-wrap: wrap; }
|
||||
.kachel-knoepfe > * { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
|
||||
|
||||
.badge {
|
||||
font-size: 0.7rem;
|
||||
padding: 0.1rem 0.45rem;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--rand);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.badge.team { background: var(--akzent); color: #fff; border-color: transparent; }
|
||||
|
||||
.knopf {
|
||||
display: inline-block;
|
||||
border-radius: 6px;
|
||||
background: var(--akzent);
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
button.sekundaer { background: transparent; color: var(--fg); border: 1px solid var(--rand); }
|
||||
button.gefahr { background: transparent; color: var(--fehler); border: 1px solid var(--rand); }
|
||||
.leer { opacity: 0.7; }
|
||||
|
||||
/* --- Dialog --- */
|
||||
dialog {
|
||||
border: 1px solid var(--rand);
|
||||
border-radius: 10px;
|
||||
background: var(--karte);
|
||||
color: var(--fg);
|
||||
padding: 1.5rem;
|
||||
width: min(480px, calc(100vw - 2rem));
|
||||
}
|
||||
dialog::backdrop { background: rgb(0 0 0 / 0.45); }
|
||||
#eintrag-form { display: grid; gap: 0.8rem; }
|
||||
#eintrag-form h2 { margin: 0; font-size: 1.15rem; }
|
||||
.zeile { display: grid; grid-template-columns: 1fr 2fr; gap: 0.75rem; }
|
||||
select, textarea {
|
||||
padding: 0.5rem 0.6rem;
|
||||
border: 1px solid var(--rand);
|
||||
border-radius: 6px;
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
font: inherit;
|
||||
}
|
||||
.dialog-knoepfe { display: flex; justify-content: flex-end; gap: 0.5rem; }
|
||||
Reference in new issue
Block a user