8aa758ae64
- Andockbares Panel im Terminal-Fenster: Markdown-Rendering, Copy-Button, normale Selektion; in eigenes Fenster ablösbar und wieder andockbar (Splitter, panel-detached/panel-attached). - MCP-stdio-Server (app --mcp-panel) mit Tool write_panel; schreibt in die Datei aus AI_CONTROL_PANEL, Watcher zieht sie ins Panel. - Provisionierung je Pool: Server-Registrierung in .claude.json (alwaysLoad), Freigabe mcp__text-panel__write_panel in settings.json, Panel-Skill; bei App-Start (alle Pools) und Pool-Anlage. Alte tee-Freigaben werden entfernt. - Capability deckt panel-*-Fenster ab.
370 lines
9.4 KiB
HTML
370 lines
9.4 KiB
HTML
<!doctype html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>Terminal</title>
|
|
<style>
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
margin: 0;
|
|
background: #1e1e2e;
|
|
overflow: hidden;
|
|
}
|
|
body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
header {
|
|
height: 40px;
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
/* Linux: schmaler Rand links; macOS: Ampel-Platz (Override unten) */
|
|
padding: 0 0 0 16px;
|
|
background: #181825;
|
|
border-bottom: 1px solid #313244;
|
|
color: #cdd6f4;
|
|
font:
|
|
500 13px/1 -apple-system,
|
|
system-ui,
|
|
sans-serif;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
cursor: default;
|
|
}
|
|
/* macOS: Platz links für die Ampel, eigene Fensterknöpfe aus. */
|
|
:root[data-platform="mac"] header {
|
|
padding-left: 84px;
|
|
padding-right: 16px;
|
|
}
|
|
:root[data-platform="mac"] #winbtns {
|
|
display: none;
|
|
}
|
|
#project-icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 4px;
|
|
}
|
|
#project-icon[hidden] {
|
|
display: none;
|
|
}
|
|
#pool {
|
|
margin-left: auto;
|
|
background: #313244;
|
|
color: #a6adc8;
|
|
border-radius: 999px;
|
|
padding: 4px 12px;
|
|
font-size: 11px;
|
|
}
|
|
#pool:empty {
|
|
display: none;
|
|
}
|
|
/* Eigene Fensterknöpfe (Linux): rechtsbündig, volle Header-Höhe. */
|
|
#winbtns {
|
|
margin-left: 8px;
|
|
display: flex;
|
|
align-self: stretch;
|
|
}
|
|
#pool:empty + #winbtns {
|
|
margin-left: auto;
|
|
}
|
|
.winbtn {
|
|
width: 44px;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: none;
|
|
background: transparent;
|
|
color: inherit;
|
|
cursor: default;
|
|
transition: background 0.12s ease;
|
|
}
|
|
.winbtn svg {
|
|
stroke: currentColor;
|
|
stroke-width: 1.2;
|
|
opacity: 0.8;
|
|
}
|
|
.winbtn:hover {
|
|
background: #313244;
|
|
}
|
|
.winbtn:hover svg {
|
|
opacity: 1;
|
|
}
|
|
.winbtn.close:hover {
|
|
background: #f38ba8;
|
|
color: #11111b;
|
|
}
|
|
/* Resize-Zonen für das dekorationslose Fenster (nur Linux). */
|
|
#resize-grips {
|
|
display: none;
|
|
}
|
|
:root[data-platform="other"] #resize-grips {
|
|
display: block;
|
|
}
|
|
.grip {
|
|
position: fixed;
|
|
z-index: 100;
|
|
}
|
|
.grip.n {
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 4px;
|
|
cursor: ns-resize;
|
|
}
|
|
.grip.s {
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 4px;
|
|
cursor: ns-resize;
|
|
}
|
|
.grip.w {
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 4px;
|
|
cursor: ew-resize;
|
|
}
|
|
.grip.e {
|
|
top: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
width: 4px;
|
|
cursor: ew-resize;
|
|
}
|
|
.grip.nw {
|
|
top: 0;
|
|
left: 0;
|
|
width: 9px;
|
|
height: 9px;
|
|
cursor: nwse-resize;
|
|
z-index: 101;
|
|
}
|
|
.grip.ne {
|
|
top: 0;
|
|
right: 0;
|
|
width: 9px;
|
|
height: 9px;
|
|
cursor: nesw-resize;
|
|
z-index: 101;
|
|
}
|
|
.grip.sw {
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 9px;
|
|
height: 9px;
|
|
cursor: nesw-resize;
|
|
z-index: 101;
|
|
}
|
|
.grip.se {
|
|
bottom: 0;
|
|
right: 0;
|
|
width: 9px;
|
|
height: 9px;
|
|
cursor: nwse-resize;
|
|
z-index: 101;
|
|
}
|
|
#body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
#term {
|
|
flex: 1;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
padding: 12px 4px 12px 14px;
|
|
}
|
|
#term .xterm-viewport::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
#term .xterm-viewport::-webkit-scrollbar-thumb {
|
|
background: #313244;
|
|
border-radius: 4px;
|
|
}
|
|
#term .xterm-viewport::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
/* Andockbares Panel rechts (nur sichtbar, wenn ein Entwurf ankommt). */
|
|
#splitter {
|
|
flex: none;
|
|
width: 5px;
|
|
cursor: col-resize;
|
|
background: #313244;
|
|
}
|
|
#panel {
|
|
flex: none;
|
|
width: 380px;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: #181825;
|
|
color: #cdd6f4;
|
|
}
|
|
#panel[hidden],
|
|
#splitter[hidden] {
|
|
display: none;
|
|
}
|
|
.panel-head {
|
|
flex: none;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 0 8px 0 12px;
|
|
border-bottom: 1px solid #313244;
|
|
font:
|
|
500 12px/1 -apple-system,
|
|
system-ui,
|
|
sans-serif;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|
|
.panel-title {
|
|
margin-right: auto;
|
|
color: #a6adc8;
|
|
}
|
|
.panel-btn {
|
|
border: none;
|
|
background: transparent;
|
|
color: #a6adc8;
|
|
cursor: default;
|
|
border-radius: 6px;
|
|
padding: 5px 8px;
|
|
font: inherit;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.panel-btn:hover {
|
|
background: #313244;
|
|
color: #cdd6f4;
|
|
}
|
|
.panel-btn.copied {
|
|
color: #a6e3a1;
|
|
}
|
|
#panel-content {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
padding: 14px 16px;
|
|
user-select: text;
|
|
-webkit-user-select: text;
|
|
cursor: text;
|
|
font-size: 13px;
|
|
line-height: 1.55;
|
|
}
|
|
#panel-content::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
#panel-content::-webkit-scrollbar-thumb {
|
|
background: #313244;
|
|
border-radius: 4px;
|
|
}
|
|
#panel-content.raw {
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
font-family: "JetBrains Mono", Menlo, monospace;
|
|
font-size: 12px;
|
|
}
|
|
#panel-content.md h1,
|
|
#panel-content.md h2,
|
|
#panel-content.md h3 {
|
|
line-height: 1.25;
|
|
margin: 1em 0 0.4em;
|
|
}
|
|
#panel-content.md h1 {
|
|
font-size: 1.4em;
|
|
}
|
|
#panel-content.md h2 {
|
|
font-size: 1.2em;
|
|
}
|
|
#panel-content.md h3 {
|
|
font-size: 1.05em;
|
|
}
|
|
#panel-content.md :first-child {
|
|
margin-top: 0;
|
|
}
|
|
#panel-content.md p,
|
|
#panel-content.md ul,
|
|
#panel-content.md ol,
|
|
#panel-content.md pre,
|
|
#panel-content.md blockquote {
|
|
margin: 0 0 0.7em;
|
|
}
|
|
#panel-content.md code {
|
|
font-family: "JetBrains Mono", Menlo, monospace;
|
|
font-size: 0.9em;
|
|
background: #313244;
|
|
border-radius: 4px;
|
|
padding: 1px 5px;
|
|
}
|
|
#panel-content.md pre {
|
|
background: #11111b;
|
|
border-radius: 8px;
|
|
padding: 12px 14px;
|
|
overflow: auto;
|
|
}
|
|
#panel-content.md pre code {
|
|
background: none;
|
|
padding: 0;
|
|
}
|
|
#panel-content.md blockquote {
|
|
border-left: 3px solid #313244;
|
|
padding-left: 12px;
|
|
color: #a6adc8;
|
|
}
|
|
#panel-content.md a {
|
|
color: #89b4fa;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header data-tauri-drag-region>
|
|
<img id="project-icon" hidden data-tauri-drag-region />
|
|
<span id="project-name" data-tauri-drag-region></span>
|
|
<span id="pool"></span>
|
|
<div id="winbtns">
|
|
<button class="winbtn" id="win-min" aria-label="Minimieren">
|
|
<svg width="12" height="12" viewBox="0 0 12 12"><line x1="2" y1="6.5" x2="10" y2="6.5" /></svg>
|
|
</button>
|
|
<button class="winbtn" id="win-max" aria-label="Maximieren">
|
|
<svg width="12" height="12" viewBox="0 0 12 12" fill="none"><rect x="2.5" y="2.5" width="7" height="7" rx="1" /></svg>
|
|
</button>
|
|
<button class="winbtn close" id="win-close" aria-label="Schließen">
|
|
<svg width="12" height="12" viewBox="0 0 12 12"><line x1="2.7" y1="2.7" x2="9.3" y2="9.3" /><line x1="9.3" y1="2.7" x2="2.7" y2="9.3" /></svg>
|
|
</button>
|
|
</div>
|
|
</header>
|
|
<div id="body">
|
|
<div id="term"></div>
|
|
<div id="splitter" hidden></div>
|
|
<aside id="panel" hidden>
|
|
<div class="panel-head">
|
|
<span class="panel-title">Entwurf</span>
|
|
<button class="panel-btn" id="panel-mode" title="Rohtext / gerendert">MD</button>
|
|
<button class="panel-btn" id="panel-copy" title="In die Zwischenablage">Kopieren</button>
|
|
<button class="panel-btn" id="panel-detach" title="In eigenes Fenster ablösen">⧉</button>
|
|
<button class="panel-btn" id="panel-hide" title="Panel ausblenden">✕</button>
|
|
</div>
|
|
<div id="panel-content" class="md"></div>
|
|
</aside>
|
|
</div>
|
|
<div id="resize-grips" aria-hidden="true">
|
|
<div class="grip n" data-dir="North"></div>
|
|
<div class="grip s" data-dir="South"></div>
|
|
<div class="grip w" data-dir="West"></div>
|
|
<div class="grip e" data-dir="East"></div>
|
|
<div class="grip nw" data-dir="NorthWest"></div>
|
|
<div class="grip ne" data-dir="NorthEast"></div>
|
|
<div class="grip sw" data-dir="SouthWest"></div>
|
|
<div class="grip se" data-dir="SouthEast"></div>
|
|
</div>
|
|
<script type="module" src="/src/terminal.ts"></script>
|
|
</body>
|
|
</html>
|