推进 INI 面板 launch mount-state DOM 渲染
This commit is contained in:
@@ -95,6 +95,10 @@
|
||||
<p data-handoff-status>Checking shell handoff compatibility.</p>
|
||||
<dl data-handoff-rows></dl>
|
||||
</section>
|
||||
<section class="handoff-status" aria-label="Shell handoff mount readiness" data-handoff-mount>
|
||||
<p data-handoff-mount-status>Checking shell handoff mount readiness.</p>
|
||||
<dl data-handoff-mount-rows></dl>
|
||||
</section>
|
||||
</section>
|
||||
</main>
|
||||
<script type="module">
|
||||
@@ -130,6 +134,24 @@
|
||||
detail.textContent = row.value;
|
||||
handoffRows.append(term, detail);
|
||||
}
|
||||
const handoffMountRenderState = shellViewModel.shellSessionHandoffPackageMountRenderState;
|
||||
const handoffMount = document.querySelector("[data-handoff-mount]");
|
||||
handoffMount.dataset.handoffPhase = handoffMountRenderState.dataset.handoffPhase;
|
||||
handoffMount.dataset.handoffReady = handoffMountRenderState.dataset.handoffReady;
|
||||
handoffMount.dataset.handoffScope = handoffMountRenderState.dataset.handoffScope;
|
||||
document.querySelector("[data-handoff-mount-status]").textContent = handoffMountRenderState.statusLine;
|
||||
const handoffMountRows = document.querySelector("[data-handoff-mount-rows]");
|
||||
for (const row of handoffMountRenderState.rows) {
|
||||
const term = document.createElement("dt");
|
||||
term.dataset.handoffMountRow = row.id;
|
||||
term.dataset.handoffMountStatus = row.status;
|
||||
term.textContent = row.label;
|
||||
const detail = document.createElement("dd");
|
||||
detail.dataset.handoffMountValue = row.id;
|
||||
detail.dataset.handoffMountStatus = row.status;
|
||||
detail.textContent = row.value;
|
||||
handoffMountRows.append(term, detail);
|
||||
}
|
||||
|
||||
window.linuxCncIniPanelLaunchApi = {
|
||||
isSupportedLaunchApiManifest: isSupportedIniPanelLaunchApiManifest,
|
||||
|
||||
Reference in New Issue
Block a user