Refinement-Runde Panel/Wiki: Bedienung, Themes, Archiv-Wahl, Frontend-Tests
- Slug transliteriert Umlaute/ß (fuer statt f-r); aktiver Tab mit Akzent + Unterstrich; kein aktiver Tab bei zugeklapptem Panel (mode.clear) - Suche: Live-Update auch beim Löschen (<3 Zeichen: Hinweis), #tag-Filter in der Query, Treffer öffnen im Dokument-Tab (panel_load, ohne Frontmatter); Wiki-Sprung-Button im Dokument; Wiki-Fehler sichtbar als Toast - Archiv-Formular am Archiv-Button (Ordner/Beschreibung/Schlagwörter); panel_archive_cmd nimmt Meta entgegen - Wiki-Übersicht: Zuletzt-Sektion, Backlink-Zähler, Wurzel-Eyebrow - Themes: Panel-Farben über CSS-Variablen, applyTheme leitet sie aus dem jeweiligen Theme ab (auch helle); gemeinsames themes.ts - Fenster: Doppelklick maximiert; gelöstes Fenster merkt Größe/Position (Window-ACL: set-position/outer-position/inner-size ergänzt); open_panel_window async (GTK-Deadlock-Vorgabe); Panel-Fenster spiegelt JS-Fehler ins Dev-Log - Archiv pro Projekt wähl-/abwählbar (Einstellungsdialog, setzt/entfernt Permissions); require_archive_home legt den Ordner an; ohne Archiv nur Befehle+Dokument im Panel - Frontend-Tests: vitest + happy-dom, 27 Tests über Modus-, Such-, Wiki-, Editor- und Formular-Logik (npm test)
This commit is contained in:
+54
-29
@@ -4,12 +4,27 @@
|
||||
<meta charset="UTF-8" />
|
||||
<title>Dokument</title>
|
||||
<style>
|
||||
/* Theme-Variablen — Defaults sind Mocha; applyTheme (themes.ts) überschreibt. */
|
||||
:root {
|
||||
--bg: #1e1e2e;
|
||||
--surface: #181825;
|
||||
--tile: #11111b;
|
||||
--line: #313244;
|
||||
--line-strong: #45475a;
|
||||
--text: #cdd6f4;
|
||||
--muted: #a6adc8;
|
||||
--faint: #6c7086;
|
||||
--accent: #89b4fa;
|
||||
--ok: #a6e3a1;
|
||||
--warn: #f9e2af;
|
||||
--err: #f38ba8;
|
||||
}
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
background: #1e1e2e;
|
||||
color: #cdd6f4;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
overflow: hidden;
|
||||
}
|
||||
body {
|
||||
@@ -19,7 +34,7 @@
|
||||
/* Feiner Fensterrahmen fürs dekorationslose Fenster (nur Linux). */
|
||||
:root[data-platform="other"] body {
|
||||
box-sizing: border-box;
|
||||
border: 1px solid #313244;
|
||||
border: 1px solid var(--line);
|
||||
}
|
||||
.panel-head {
|
||||
flex: none;
|
||||
@@ -27,8 +42,8 @@
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
padding: 7px 8px 9px 14px;
|
||||
background: #181825;
|
||||
border-bottom: 1px solid #313244;
|
||||
background: var(--surface);
|
||||
border-bottom: 1px solid var(--line);
|
||||
font:
|
||||
500 12px/1 -apple-system,
|
||||
system-ui,
|
||||
@@ -50,8 +65,8 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-left: 14px;
|
||||
background: #181825;
|
||||
border-bottom: 1px solid #313244;
|
||||
background: var(--surface);
|
||||
border-bottom: 1px solid var(--line);
|
||||
font:
|
||||
500 13px/1 -apple-system,
|
||||
system-ui,
|
||||
@@ -85,14 +100,14 @@
|
||||
opacity: 0.8;
|
||||
}
|
||||
.winbtn:hover {
|
||||
background: #313244;
|
||||
background: var(--line);
|
||||
}
|
||||
.winbtn:hover svg {
|
||||
opacity: 1;
|
||||
}
|
||||
.winbtn.close:hover {
|
||||
background: #f38ba8;
|
||||
color: #11111b;
|
||||
background: var(--err);
|
||||
color: var(--tile);
|
||||
}
|
||||
/* macOS hat native Fensterknöpfe — eigene Min/Max dort ausblenden. */
|
||||
:root[data-platform="mac"] .winbtn.osctl {
|
||||
@@ -172,7 +187,7 @@
|
||||
.tab-sep {
|
||||
width: 1px;
|
||||
height: 16px;
|
||||
background: #45475a;
|
||||
background: var(--line-strong);
|
||||
margin: 0 6px;
|
||||
align-self: center;
|
||||
}
|
||||
@@ -188,7 +203,7 @@
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: #a6adc8;
|
||||
color: var(--muted);
|
||||
}
|
||||
.panel-title[contenteditable="true"] {
|
||||
overflow: visible;
|
||||
@@ -200,7 +215,7 @@
|
||||
.panel-btn {
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: #a6adc8;
|
||||
color: var(--muted);
|
||||
cursor: default;
|
||||
border-radius: 6px;
|
||||
padding: 6px 9px;
|
||||
@@ -209,14 +224,14 @@
|
||||
align-items: center;
|
||||
}
|
||||
.panel-btn:hover {
|
||||
background: #313244;
|
||||
color: #cdd6f4;
|
||||
background: var(--line);
|
||||
color: var(--text);
|
||||
}
|
||||
.panel-btn.copied {
|
||||
color: #a6e3a1;
|
||||
color: var(--ok);
|
||||
}
|
||||
.panel-btn.error {
|
||||
color: #f38ba8;
|
||||
color: var(--err);
|
||||
}
|
||||
.panel-btn svg {
|
||||
display: block;
|
||||
@@ -227,11 +242,18 @@
|
||||
stroke-linejoin: round;
|
||||
}
|
||||
.panel-btn.active {
|
||||
background: #313244;
|
||||
color: #cdd6f4;
|
||||
background: var(--line);
|
||||
color: var(--text);
|
||||
}
|
||||
/* Aktiver Tab: Akzentfarbe + Unterstrich statt nur Flächenwechsel. */
|
||||
.panel-tabs .panel-btn.active {
|
||||
background: transparent;
|
||||
color: var(--accent);
|
||||
border-radius: 0;
|
||||
box-shadow: inset 0 -2px 0 currentColor;
|
||||
}
|
||||
.panel-btn.changed {
|
||||
color: #f9e2af;
|
||||
color: var(--warn);
|
||||
}
|
||||
.panel-editor {
|
||||
flex: 1;
|
||||
@@ -258,7 +280,7 @@
|
||||
-webkit-appearance: none;
|
||||
margin-right: auto;
|
||||
background: transparent;
|
||||
color: #a6adc8;
|
||||
color: var(--muted);
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
padding: 6px 9px;
|
||||
@@ -266,8 +288,8 @@
|
||||
cursor: default;
|
||||
}
|
||||
.panel-lang:hover {
|
||||
background: #313244;
|
||||
color: #cdd6f4;
|
||||
background: var(--line);
|
||||
color: var(--text);
|
||||
}
|
||||
#panel-content {
|
||||
flex: 1;
|
||||
@@ -284,7 +306,7 @@
|
||||
width: 8px;
|
||||
}
|
||||
#panel-content::-webkit-scrollbar-thumb {
|
||||
background: #313244;
|
||||
background: var(--line);
|
||||
border-radius: 4px;
|
||||
}
|
||||
#panel-content.raw {
|
||||
@@ -321,12 +343,12 @@
|
||||
#panel-content.md code {
|
||||
font-family: "JetBrains Mono", Menlo, monospace;
|
||||
font-size: 0.9em;
|
||||
background: #313244;
|
||||
background: var(--line);
|
||||
border-radius: 4px;
|
||||
padding: 1px 5px;
|
||||
}
|
||||
#panel-content.md pre {
|
||||
background: #11111b;
|
||||
background: var(--tile);
|
||||
border-radius: 8px;
|
||||
padding: 12px 14px;
|
||||
overflow: auto;
|
||||
@@ -336,12 +358,12 @@
|
||||
padding: 0;
|
||||
}
|
||||
#panel-content.md blockquote {
|
||||
border-left: 3px solid #313244;
|
||||
border-left: 3px solid var(--line);
|
||||
padding-left: 12px;
|
||||
color: #a6adc8;
|
||||
color: var(--muted);
|
||||
}
|
||||
#panel-content.md a {
|
||||
color: #89b4fa;
|
||||
color: var(--accent);
|
||||
}
|
||||
.panel-btn[hidden],
|
||||
.panel-lang[hidden],
|
||||
@@ -388,6 +410,9 @@
|
||||
<option value="it">IT</option>
|
||||
<option value="nl">NL</option>
|
||||
</select>
|
||||
<button class="panel-btn draft-only" id="panel-wiki-jump" title="Im Wiki öffnen">
|
||||
<svg width="14" height="14" viewBox="0 0 16 16"><path d="M8 3.5C6.6 2.4 4.6 2 2.5 2v11c2.1 0 4.1.4 5.5 1.5 1.4-1.1 3.4-1.5 5.5-1.5V2c-2.1 0-4.1.4-5.5 1.5z" /><path d="M8 3.5v11" /></svg>
|
||||
</button>
|
||||
<button class="panel-btn draft-only" id="panel-mode" title="Rohtext / gerendert">MD</button>
|
||||
<button class="panel-btn draft-only" id="panel-content-edit" title="Entwurf bearbeiten (Cmd/Ctrl+Enter speichert, Esc verwirft)">
|
||||
<svg width="14" height="14" viewBox="0 0 16 16"><path d="M10.8 2.6 13.4 5.2 6 12.6l-3.1.5.5-3.1z" /><path d="M9.7 3.7 12.3 6.3" /></svg>
|
||||
|
||||
Reference in New Issue
Block a user