按规划继续工作
结论:接入 vendored LinuxCNC tooldata_common.cc 负责刀具表解析与保存,WASM/SDK/OPFS/UI 仅做运行时边界搬运;native、WASM、OPFS 和浏览器 smoke 验证已通过。
This commit is contained in:
@@ -123,6 +123,32 @@
|
||||
font: 13px/1.5 "SFMono-Regular", "Consolas", monospace;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
.events {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
background: #fbfdff;
|
||||
padding: 12px;
|
||||
min-height: 180px;
|
||||
max-height: 320px;
|
||||
overflow: auto;
|
||||
font: 12px/1.5 "SFMono-Regular", "Consolas", monospace;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
.event-tools {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
input {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 9px 10px;
|
||||
font: 13px/1.4 "SFMono-Regular", "Consolas", monospace;
|
||||
color: var(--text);
|
||||
background: #fbfdff;
|
||||
min-width: 0;
|
||||
}
|
||||
.danger { color: var(--danger); }
|
||||
@media (max-width: 960px) {
|
||||
.grid { grid-template-columns: 1fr; }
|
||||
@@ -148,8 +174,12 @@
|
||||
<button id="load-sample" class="primary">Load LinuxCNC Sample</button>
|
||||
<button id="save-opfs">Save To OPFS</button>
|
||||
<button id="load-opfs">Load From OPFS</button>
|
||||
<button id="save-machine-files">Save Machine Files</button>
|
||||
<button id="load-machine-files">Load Machine Files</button>
|
||||
<button id="sync-wasm">Sync To WASM FS</button>
|
||||
<button id="query" class="secondary">Query LinuxCNC Fields</button>
|
||||
<button id="load-session" class="secondary">Load Machine Session</button>
|
||||
<button id="run-gcode" class="secondary">Run G-code</button>
|
||||
</div>
|
||||
<textarea id="ini-editor" spellcheck="false"></textarea>
|
||||
</section>
|
||||
@@ -157,7 +187,8 @@
|
||||
<section class="panel">
|
||||
<h2>Control Panel</h2>
|
||||
<div class="status">
|
||||
<div><span id="wasm-badge" class="badge">WASM: loading</span></div>
|
||||
<div><span id="wasm-badge" class="badge">INI WASM: loading</span></div>
|
||||
<div><span id="interp-badge" class="badge">Interpreter WASM: loading</span></div>
|
||||
<div><span id="opfs-badge" class="badge">OPFS: checking</span></div>
|
||||
</div>
|
||||
|
||||
@@ -175,12 +206,29 @@
|
||||
<dt>Parameter File</dt>
|
||||
<dd id="field-parameter-file">-</dd>
|
||||
<dt>OPFS Path</dt>
|
||||
<dd id="field-opfs-path">linuxcnc/xyzab-tdr.ini</dd>
|
||||
<dd id="field-opfs-path">linuxcnc/machines/xyzab-tdr/machine.ini</dd>
|
||||
<dt>WASM Path</dt>
|
||||
<dd id="field-wasm-path">/work/xyzab-tdr.ini</dd>
|
||||
<dt>Session INI</dt>
|
||||
<dd id="field-session-ini">-</dd>
|
||||
<dt>Session Params</dt>
|
||||
<dd id="field-session-parameters">-</dd>
|
||||
<dt>Session Tools</dt>
|
||||
<dd id="field-session-tool-table">-</dd>
|
||||
<dt>Session G-code</dt>
|
||||
<dd id="field-session-gcode">-</dd>
|
||||
<dt>Run Status</dt>
|
||||
<dd id="field-run-status">-</dd>
|
||||
</dl>
|
||||
|
||||
<div class="log" id="log"></div>
|
||||
|
||||
<h2>Canonical Events</h2>
|
||||
<div class="event-tools">
|
||||
<input id="event-filter" type="search" placeholder="Filter event text">
|
||||
<span id="event-count" class="badge">0 / 0</span>
|
||||
</div>
|
||||
<pre class="events" id="canon-events"></pre>
|
||||
</section>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user