Style auf Driver anpassen
This commit is contained in:
@@ -4,132 +4,85 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>appRobotHoming</title>
|
||||
<link rel="stylesheet" href="/styles.css" />
|
||||
<style>
|
||||
.result-layout {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 16px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.panel textarea,
|
||||
.panel pre {
|
||||
width: 100%;
|
||||
min-height: 240px;
|
||||
box-sizing: border-box;
|
||||
border-radius: 10px;
|
||||
border: 1px solid #334155;
|
||||
background: #0b1220;
|
||||
color: #e2e8f0;
|
||||
padding: 12px;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
#result-tree {
|
||||
min-height: 240px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid #334155;
|
||||
background: #0b1220;
|
||||
color: #e2e8f0;
|
||||
padding: 12px;
|
||||
overflow: auto;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
}
|
||||
|
||||
#result-tree details {
|
||||
margin-left: 14px;
|
||||
}
|
||||
|
||||
#result-tree summary {
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
color: #93c5fd;
|
||||
}
|
||||
|
||||
#result-tree .tree-leaf {
|
||||
margin-left: 18px;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
#result-tree .tree-kv {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
@media (max-width: 1000px) {
|
||||
.result-layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="/styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>appRobotHoming</h1>
|
||||
<div id="status">Status: <span class="badge" id="conn">…</span></div>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<section class="controls">
|
||||
<button data-cmd="HOME">HOME</button>
|
||||
<button data-cmd="STOP">STOP</button>
|
||||
<button data-cmd="STATUS">STATUS</button>
|
||||
<button data-cmd="RESET">RESET</button>
|
||||
<button data-cmd="PING">PING</button>
|
||||
<button id="btn-calculate">Calculate Actions</button>
|
||||
<!-- Optionaler Titel (bewusst neutral, leicht ausblendbar) -->
|
||||
<!--<h1 class="app-title">appRobotHoming</h1>-->
|
||||
|
||||
<input
|
||||
id="gcodePayload"
|
||||
type="text"
|
||||
placeholder="G-Code / Motorbefehl"
|
||||
style="width: 220px; padding: 10px; border-radius: 8px; border: 1px solid #334155; background: #0b1220; color: #e2e8f0;"
|
||||
/>
|
||||
<button data-cmd="GCODEMOTOR" data-payload="#gcodePayload">GCodeMotor</button>
|
||||
</section>
|
||||
<div class="sections">
|
||||
|
||||
<section class="log">
|
||||
<label for="log">Ausgabe</label>
|
||||
<textarea id="log" readonly></textarea>
|
||||
</section>
|
||||
<!-- ACTIONS -->
|
||||
<div class="section full">
|
||||
<h2>Aktionen</h2>
|
||||
|
||||
<section class="analysis">
|
||||
<label for="analysis-log">Analysis & Reasoning</label>
|
||||
<textarea id="analysis-log" readonly></textarea>
|
||||
</section>
|
||||
<div class="controls">
|
||||
<button data-cmd="HOME">HOME</button>
|
||||
<button data-cmd="STOP">STOP</button>
|
||||
<button data-cmd="STATUS">STATUS</button>
|
||||
<button data-cmd="RESET">RESET</button>
|
||||
<button data-cmd="PING">PING</button>
|
||||
|
||||
<section class="result">
|
||||
<label>Berechnetes Result</label>
|
||||
<div class="result-layout">
|
||||
<div class="panel">
|
||||
<label for="result-json">Raw JSON</label>
|
||||
<textarea id="result-json" readonly></textarea>
|
||||
</div>
|
||||
<div class="panel">
|
||||
<label>Tree View</label>
|
||||
<div id="result-tree"></div>
|
||||
</div>
|
||||
<input
|
||||
id="gcodePayload"
|
||||
type="text"
|
||||
placeholder="G-Code / Motorbefehl"
|
||||
/>
|
||||
|
||||
<button data-cmd="GCODEMOTOR" data-payload="#gcodePayload">
|
||||
GCodeMotor
|
||||
</button>
|
||||
|
||||
<button id="btn-calculate">Calculate Actions</button>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<section class="snapshot">
|
||||
<label for="snapshot-content">Neuester Snapshot</label>
|
||||
<!-- AUSGABE / LOG (default collapsed) -->
|
||||
<div class="section full">
|
||||
<h2>Ausgabe</h2>
|
||||
<textarea id="log" readonly></textarea>
|
||||
</div>
|
||||
|
||||
<!-- ANALYSE -->
|
||||
<div class="section full">
|
||||
<h2>Analysis & Reasoning</h2>
|
||||
<textarea id="analysis-log" readonly></textarea>
|
||||
</div>
|
||||
|
||||
<!-- RESULT RAW JSON -->
|
||||
<div class="section half">
|
||||
<h2>Result – Raw JSON</h2>
|
||||
|
||||
<div class="panel">
|
||||
<label>Raw JSON</label>
|
||||
<textarea id="result-json" readonly></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- RESULT TREE VIEW -->
|
||||
<div class="section half">
|
||||
<h2>Result – Tree View</h2>
|
||||
|
||||
<!-- bewusst alte Struktur beibehalten -->
|
||||
<div class="panel">
|
||||
<label>Tree View</label>
|
||||
<div id="result-tree"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- SNAPSHOT (vorbereitet, aber leer) -->
|
||||
<div class="section full">
|
||||
<h2>Neuester Snapshot</h2>
|
||||
<div id="snapshot-info"></div>
|
||||
<table id="snapshot-table"></table>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<small>HTTPS + WSS Relay • ©</small>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script src="/calculateActions.js"></script>
|
||||
<script src="/client.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user