tray-hintergrundbetrieb, favoriten, neustart-fix

- Desktop-App läuft beim Schließen als Symbol neben der Uhr weiter
  (automatisches Backup auch ohne Fenster, Windows-Hinweise), nur eine
  Instanz, optional mit Windows starten (--background)
- Favoriten: Stern an Projekten, eigene Reihe in der einfachen Ansicht,
  immer zuerst sortiert, Filter "Favoriten"
- Fix: geerbtes DASHBOARD_WORKER ließ ein aus dem Dashboard gestartetes
  Dashboard ohne Supervisor laufen ("Neu starten" beendete es)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-12 21:18:02 +01:00
parent d6f5b1672c
commit f2d0cd1df9
6 changed files with 313 additions and 23 deletions

View File

@@ -601,6 +601,20 @@
.featrow { display: flex !important; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.featrow input { margin-top: 3px; }
.featrow b { display: inline-flex; gap: 5px; align-items: center; }
/* favorites */
.favbtn { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 3px; border-radius: 6px; display: inline-grid; place-items: center; opacity: .55; }
.favbtn:hover { opacity: 1; color: var(--yellow); background: var(--surface-2); }
.favbtn.on { color: var(--yellow); opacity: 1; }
.favbtn.on .i, .favmark .i { fill: currentColor; }
.favmark { color: var(--yellow); display: inline-flex; vertical-align: -2px; margin-right: 4px; }
.favbtn.onthumb { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.35); color: #fff; opacity: 0; z-index: 2; }
.tile:hover .favbtn.onthumb, .favbtn.onthumb.on { opacity: 1; }
.favbtn.onthumb.on { color: var(--yellow); }
.htile .hhead { position: relative; }
.favbtn.ontile { position: absolute; top: -8px; right: -8px; opacity: 0; }
.htile:hover .favbtn.ontile, .favbtn.ontile.on { opacity: 1; }
.hgroup { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.hgroup:first-child { margin-top: 0; }
.pdesc { font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.pdesc.muted { color: var(--muted); font-style: italic; }
.pdesc-edit textarea { width: 100%; min-height: 120px; resize: vertical; font: inherit; font-size: 13px; line-height: 1.5; }
@@ -921,7 +935,7 @@
<div class="phead">
<div id="pAvatar"></div>
<div style="min-width:0">
<h3 id="panelTitle"></h3>
<h3 style="display:flex;align-items:center;gap:6px"><span id="panelTitle"></span><span id="pFav"></span></h3>
<div class="sub" id="panelSub"></div>
</div>
<button class="iconbtn close" id="btnClose" title="Schließen (Esc)"><svg class="i"><use href="/icons.svg#x"/></svg></button>
@@ -1076,7 +1090,7 @@
<span id="fAutoTargetWrap">auf <select id="fAutoTarget" class="autosel"></select></span>
</div>
<div class="spstatus" id="spAuto"></div>
<div class="hint" style="margin:0">Sichert alle Projektordner – nur, solange das Dashboard geöffnet ist. Ein verpasster Termin (PC aus) wird beim nächsten Öffnen nachgeholt; ist das Ziel nicht erreichbar, folgt nach 30 Minuten ein neuer Versuch.</div>
<div class="hint" style="margin:0">Sichert alle Projektordner – solange das Dashboard läuft, auch im Hintergrund (Symbol neben der Uhr, siehe Allgemein → Fenster). Ein verpasster Termin (PC aus) wird beim nächsten Start nachgeholt; ist das Ziel nicht erreichbar, folgt nach 30 Minuten ein neuer Versuch.</div>
</div>
<details class="more"><summary><svg class="i sm"><use href="/icons.svg#info"/></svg>Wohin wird gesichert?</summary><div>Jedes Projekt landet im Ziel in einem gleichnamigen Unterordner. Der Hauptordner geht direkt ins Ziel, jeder weitere Projektordner in einen Unterordner mit seinem Namen. Jedes Ziel hat seinen eigenen Backup-Stand; <code>backup-projekte.bat</code> sichert auf das erste. Im Backup wird nie etwas gelöscht.</div></details>
</section>
@@ -1097,6 +1111,15 @@
<div class="sphead"><h4>Allgemein</h4><p>Wo das Dashboard seine Daten ablegt.</p></div>
<div class="kv" id="spData"></div>
<div class="rowbtns"><button class="btn" type="button" id="spOpenData"><svg class="i"><use href="/icons.svg#folder-open"/></svg>Datenordner öffnen</button></div>
<div class="appwin" id="appWin" hidden>
<div class="sphead" style="margin-top:8px"><h4>Fenster</h4><p>Gilt sofort, ohne Speichern.</p></div>
<label class="chk featrow"><input type="checkbox" id="fTray">
<span><b><svg class="i sm"><use href="/icons.svg#app-window"/></svg> Beim Schließen im Hintergrund weiterlaufen</b><br>
<span class="hint" style="margin:0">Das Dashboard bleibt als Symbol neben der Uhr. Nötig, damit das automatische Backup auch ohne offenes Fenster läuft – mit Windows-Hinweis, wenn es fertig ist oder fehlschlägt. Rechtsklick auf das Symbol → Beenden.</span></span></label>
<label class="chk featrow" style="margin-top:8px"><input type="checkbox" id="fAutostart">
<span><b><svg class="i sm"><use href="/icons.svg#power"/></svg> Mit Windows starten</b><br>
<span class="hint" style="margin:0">Startet unsichtbar im Hintergrund (nur das Symbol neben der Uhr).</span></span></label>
</div>
<div class="sphead" style="margin-top:8px"><h4>Funktionen</h4><p>Zusätzliches, das nicht jeder braucht. Ausgeschaltet ist davon nichts zu sehen.</p></div>
<label class="chk featrow"><input type="checkbox" id="fFeatItch">
<span><b><svg class="i sm"><use href="/icons.svg#rocket"/></svg> itch.io</b><br>