135 lines
3.3 KiB
HTML
Executable File
135 lines
3.3 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<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>
|
|
</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>
|
|
|
|
<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>
|
|
|
|
<section class="log">
|
|
<label for="log">Ausgabe</label>
|
|
<textarea id="log" readonly></textarea>
|
|
</section>
|
|
|
|
<section class="analysis">
|
|
<label for="analysis-log">Analysis & Reasoning</label>
|
|
<textarea id="analysis-log" readonly></textarea>
|
|
</section>
|
|
|
|
<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>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="snapshot">
|
|
<label for="snapshot-content">Neuester Snapshot</label>
|
|
<div id="snapshot-info"></div>
|
|
<table id="snapshot-table"></table>
|
|
</section>
|
|
</main>
|
|
|
|
<footer>
|
|
<small>HTTPS + WSS Relay • ©</small>
|
|
</footer>
|
|
|
|
<script src="/calculateActions.js"></script>
|
|
<script src="/client.js"></script>
|
|
</body>
|
|
</html> |