推进 INI 面板 shell handoff render-state
This commit is contained in:
@@ -91,7 +91,7 @@
|
||||
<a data-entry-id="edit-run" href="./index.html">Open edit and run panel</a>
|
||||
<a data-entry-id="control-view" href="./control-page.html">Open read-only control view</a>
|
||||
</div>
|
||||
<section class="handoff-status" aria-label="Shell handoff compatibility">
|
||||
<section class="handoff-status" aria-label="Shell handoff compatibility" data-handoff-shell>
|
||||
<p data-handoff-status>Checking shell handoff compatibility.</p>
|
||||
<dl data-handoff-rows></dl>
|
||||
</section>
|
||||
@@ -114,10 +114,13 @@
|
||||
link.textContent = linkModel.label;
|
||||
link.href = linkModel.href;
|
||||
}
|
||||
const handoffDisplay = shellViewModel.shellSessionHandoffDisplayViewModel;
|
||||
document.querySelector("[data-handoff-status]").textContent = `${handoffDisplay.statusText}: ${handoffDisplay.detailText}`;
|
||||
const handoffRenderState = shellViewModel.shellSessionHandoffRenderState;
|
||||
const handoffShell = document.querySelector("[data-handoff-shell]");
|
||||
handoffShell.dataset.handoffPhase = handoffRenderState.dataset.handoffPhase;
|
||||
handoffShell.dataset.handoffReady = handoffRenderState.dataset.handoffReady;
|
||||
document.querySelector("[data-handoff-status]").textContent = handoffRenderState.statusLine;
|
||||
const handoffRows = document.querySelector("[data-handoff-rows]");
|
||||
for (const row of handoffDisplay.rows) {
|
||||
for (const row of handoffRenderState.rows) {
|
||||
const term = document.createElement("dt");
|
||||
term.dataset.handoffRow = row.id;
|
||||
term.textContent = row.label;
|
||||
@@ -140,6 +143,7 @@
|
||||
getShellSessionHandoffCompatibilityReport: () => shellViewModel.shellSessionHandoffCompatibilityReport,
|
||||
getShellSessionHandoffDisplayViewModel: () => shellViewModel.shellSessionHandoffDisplayViewModel,
|
||||
getShellSessionHandoffSnapshot: () => shellViewModel.shellSessionHandoffSnapshot,
|
||||
getShellSessionHandoffRenderState: () => shellViewModel.shellSessionHandoffRenderState,
|
||||
getLauncherLinks: () => shellViewModel.launcherLinks,
|
||||
getControlPageApiMethods: () => shellViewModel.controlPage.browserApiMethods,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user