settings export/import/reset + interaktive tutorial-tour
Settings (Einstellungen → Allgemein → Daten): - Exportieren (JSON-Download), Importieren (Datei zurückladen), "Zurücksetzen & als neuer User starten" – sichert settings.json vorher automatisch (timestamped), dann Ersteinrichtung. - Server: GET /api/settings/export, POST /api/settings/import, POST /api/settings/reset; lib/settings.js: exportData/importData/reset. Interaktive Tour (Hilfe-Dialog → "Diesen Bereich zeigen"): - Spotlight wandert animiert über die echten UI-Elemente, Sprechblase mit Text, Auto-Play + Pause/Zurück/Weiter/Schließen, Pfeiltasten/Esc. - Pro Bereich (Ansichten, Finden, Projekt, Backup, Gut zu wissen) eigene Schritte; wechselt bei Bedarf Ansicht/Modus bzw. öffnet ein Projekt und stellt danach den Ausgangszustand wieder her. Fehlende Ziele werden übersprungen. Zweisprachig. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -693,6 +693,7 @@
|
||||
.hnav:hover { color: var(--text); }
|
||||
.hnav.active { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; font-weight: 600; }
|
||||
.helpbody { padding: 2px 20px 6px; overflow-y: auto; min-height: 0; }
|
||||
.helpshow { width: 100%; justify-content: center; margin: 4px 0 8px; }
|
||||
.helprow { display: flex; gap: 11px; align-items: flex-start; padding: 6px 0; font-size: 13px; line-height: 1.5; color: var(--text); }
|
||||
.helprow .hc { flex: 0 0 auto; width: 27px; height: 27px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }
|
||||
.helprow .hc .i { width: 15px; height: 15px; }
|
||||
@@ -820,6 +821,22 @@
|
||||
.kbd { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; }
|
||||
@media (max-width: 560px) { .sitem .fico, .kbd { display: none; } .sitem { grid-template-columns: minmax(0, 1fr) auto; } }
|
||||
.rowbtns { display: flex; gap: 6px; flex-wrap: wrap; }
|
||||
/* interactive tour */
|
||||
#tour { position: fixed; inset: 0; z-index: 60; }
|
||||
#tour[hidden] { display: none; }
|
||||
.tour-spot { position: fixed; top: 50%; left: 50%; width: 0; height: 0; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(8, 10, 16, .66); outline: 2px solid var(--accent); transition: top .45s cubic-bezier(.4,0,.2,1), left .45s cubic-bezier(.4,0,.2,1), width .45s cubic-bezier(.4,0,.2,1), height .45s cubic-bezier(.4,0,.2,1); pointer-events: none; }
|
||||
.tour-spot::after { content: ""; position: absolute; inset: -3px; border-radius: 12px; outline: 2px solid var(--accent); opacity: .8; animation: tourPulse 1.7s ease-out infinite; }
|
||||
@keyframes tourPulse { 0% { transform: scale(1); opacity: .7; } 70% { transform: scale(1.12); opacity: 0; } 100% { opacity: 0; } }
|
||||
.tour-bubble { position: fixed; top: 50%; left: 50%; width: 320px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px 16px; z-index: 61; transition: top .45s cubic-bezier(.4,0,.2,1), left .45s cubic-bezier(.4,0,.2,1); }
|
||||
.tour-bubble .tb-text { font-size: 13.5px; line-height: 1.55; color: var(--text); }
|
||||
.tour-bubble .tb-text b { font-weight: 650; }
|
||||
.tour-bubble .tb-foot { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
|
||||
.tour-bubble .tb-step { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
|
||||
.tour-bubble .btn { padding: 5px 10px; font-size: 12.5px; }
|
||||
.tour-bubble .iconbtn { width: 30px; height: 30px; }
|
||||
.resetrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
|
||||
.resetrow .btn { flex: 0 0 auto; }
|
||||
.resetrow .hint { flex: 1; min-width: 200px; }
|
||||
.importbox { border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin-top: 8px; background: var(--surface-2); }
|
||||
.importbox[hidden] { display: none; }
|
||||
.implist { max-height: 240px; overflow: auto; margin: 8px 0; display: grid; gap: 2px; }
|
||||
@@ -1219,7 +1236,16 @@
|
||||
</div>
|
||||
<div class="sphead sep"><h4><svg class="i"><use href="/icons.svg#database"/></svg><span data-i18n="set.data.h">Data</span></h4></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><span data-i18n="set.openData">Open data folder</span></button></div>
|
||||
<div class="rowbtns">
|
||||
<button class="btn" type="button" id="spOpenData"><svg class="i"><use href="/icons.svg#folder-open"/></svg><span data-i18n="set.openData">Open data folder</span></button>
|
||||
<button class="btn" type="button" id="spExport"><svg class="i"><use href="/icons.svg#download"/></svg><span data-i18n="set.export">Export settings</span></button>
|
||||
<button class="btn" type="button" id="spImport"><svg class="i"><use href="/icons.svg#upload"/></svg><span data-i18n="set.import">Import settings</span></button>
|
||||
<input type="file" id="spImportFile" accept="application/json,.json" hidden>
|
||||
</div>
|
||||
<div class="resetrow">
|
||||
<button class="btn danger" type="button" id="spReset"><svg class="i"><use href="/icons.svg#refresh-cw"/></svg><span data-i18n="set.reset">Reset & start as a new user…</span></button>
|
||||
<span class="hint" style="margin:0" data-i18n="set.resetHint">Your current settings are backed up first; then the dashboard starts fresh with the first-run setup.</span>
|
||||
</div>
|
||||
<div class="appwin" id="appWin" hidden>
|
||||
<div class="sphead sep"><h4><svg class="i"><use href="/icons.svg#app-window"/></svg><span data-i18n="set.window.h">Window</span></h4><p data-i18n="set.window.p">Applies immediately, without saving.</p></div>
|
||||
<label class="chk featrow"><input type="checkbox" id="fTray">
|
||||
@@ -1355,6 +1381,22 @@
|
||||
</div>
|
||||
</dialog>
|
||||
|
||||
<!-- interactive tour overlay (spotlight + bubble), driven by app.js -->
|
||||
<div id="tour" hidden>
|
||||
<div class="tour-spot" id="tourSpot"></div>
|
||||
<div class="tour-bubble" id="tourBubble">
|
||||
<div class="tb-text" id="tourText"></div>
|
||||
<div class="tb-foot">
|
||||
<span class="tb-step" id="tourStep"></span>
|
||||
<span class="sp" style="flex:1"></span>
|
||||
<button class="iconbtn" type="button" id="tourPause" data-i18n-title="tour.pause" title="Pause"><svg class="i"><use href="/icons.svg#pause"/></svg></button>
|
||||
<button class="btn ghost" type="button" id="tourPrev"><svg class="i"><use href="/icons.svg#chevron-left"/></svg><span data-i18n="help.prev">Back</span></button>
|
||||
<button class="btn primary" type="button" id="tourNext"><span data-i18n="help.next">Next</span><svg class="i"><use href="/icons.svg#chevron-right"/></svg></button>
|
||||
<button class="iconbtn" type="button" id="tourClose" data-i18n-title="common.close" title="Close"><svg class="i"><use href="/icons.svg#x"/></svg></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="toast"></div>
|
||||
<script src="lang.js"></script>
|
||||
<script src="i18n.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user