推进 INI 面板 shell view-model helper

This commit is contained in:
2026-06-15 04:30:56 +08:00
parent b330f7b1bc
commit 213514f64c
5 changed files with 116 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ control view:
import {
INI_PANEL_ENTRIES,
createIniPanelLauncherLinkViewModel,
createIniPanelShellViewModel,
getIniPanelEntryByHref,
getVisibleIniPanelEntries,
createMachineSessionControlPageController,
@@ -42,6 +43,10 @@ Launcher pages can render links from `createIniPanelLauncherLinkViewModel()`
without reading manifest field names directly. Each item has `entryId`, `href`,
and `label`.
Outer shells can call `createIniPanelShellViewModel()` when they need one
read-only model with `pages`, `launcherLinks`, and `controlPage` helpers for
mounting the existing control-page controller and renderer.
## Boundary
The entry shell only links pages and renders already-observed panel state. It