推进 INI 面板 readonly status API

This commit is contained in:
2026-06-15 05:40:41 +08:00
parent deb8b7cdd3
commit 3280f3a53e
11 changed files with 302 additions and 1 deletions

View File

@@ -4,6 +4,9 @@ import {
import {
loadMachineSessionForControlPageWorkflow,
} from "./control-page-session-workflow.js";
import {
readMachineSessionReadonlyStatus,
} from "./readonly-status-api.js";
export function createMachineSessionControlPageController({
panelFrame,
@@ -61,6 +64,13 @@ export function createMachineSessionControlPageController({
});
}
function readStatus() {
return readMachineSessionReadonlyStatus({
getPanelApi,
getControlView,
});
}
function startPolling() {
if (!refreshTimer) {
refreshTimer = setIntervalFn(render, pollMs);
@@ -85,6 +95,7 @@ export function createMachineSessionControlPageController({
getPanelWindow,
loadSessionState,
mount,
readStatus,
refresh,
render,
startPolling,