收口 INI 面板 persistence summary 发布门禁
This commit is contained in:
@@ -46,6 +46,9 @@ import {
|
||||
} from "./session-workflow.js";
|
||||
import {
|
||||
createMachineSessionControlView,
|
||||
createMachineSessionPersistenceDisplayViewModel,
|
||||
createMachineSessionPersistenceRenderState,
|
||||
createMachineSessionPersistenceSummary,
|
||||
createMachineSessionStateSnapshot,
|
||||
createMachineSessionStateBundle,
|
||||
createMachineSessionStateReport,
|
||||
@@ -171,6 +174,25 @@ function getMachineSessionWorkflowStatus() {
|
||||
return createMachineSessionWorkflowStatus(window.linuxCncIniPanelMachineSessionState);
|
||||
}
|
||||
|
||||
function getMachineSessionPersistenceSummary(options = {}) {
|
||||
return createMachineSessionPersistenceSummary({
|
||||
state: window.linuxCncIniPanelMachineSessionState,
|
||||
...options,
|
||||
});
|
||||
}
|
||||
|
||||
function getMachineSessionPersistenceDisplayViewModel(options = {}) {
|
||||
return createMachineSessionPersistenceDisplayViewModel(
|
||||
getMachineSessionPersistenceSummary(options),
|
||||
);
|
||||
}
|
||||
|
||||
function getMachineSessionPersistenceRenderState(options = {}) {
|
||||
return createMachineSessionPersistenceRenderState(
|
||||
getMachineSessionPersistenceDisplayViewModel(options),
|
||||
);
|
||||
}
|
||||
|
||||
function getMachineSessionStateBundle() {
|
||||
return createMachineSessionStateBundle(window.linuxCncIniPanelMachineSessionState);
|
||||
}
|
||||
@@ -203,6 +225,9 @@ window.linuxCncIniPanelApi = {
|
||||
getMachineSessionStateReport,
|
||||
getMachineSessionStateReportExport,
|
||||
getMachineSessionWorkflowStatus,
|
||||
getMachineSessionPersistenceSummary,
|
||||
getMachineSessionPersistenceDisplayViewModel,
|
||||
getMachineSessionPersistenceRenderState,
|
||||
renderMachineSessionControlView: renderCurrentMachineSessionControlView,
|
||||
};
|
||||
window.getMachineSessionControlView = getMachineSessionControlView;
|
||||
@@ -210,6 +235,9 @@ window.getMachineSessionStateBundle = getMachineSessionStateBundle;
|
||||
window.getMachineSessionStateReport = getMachineSessionStateReport;
|
||||
window.getMachineSessionStateReportExport = getMachineSessionStateReportExport;
|
||||
window.getMachineSessionWorkflowStatus = getMachineSessionWorkflowStatus;
|
||||
window.getMachineSessionPersistenceSummary = getMachineSessionPersistenceSummary;
|
||||
window.getMachineSessionPersistenceDisplayViewModel = getMachineSessionPersistenceDisplayViewModel;
|
||||
window.getMachineSessionPersistenceRenderState = getMachineSessionPersistenceRenderState;
|
||||
window.renderMachineSessionControlView = renderCurrentMachineSessionControlView;
|
||||
window.linuxCncIniPanelMachineSessionState = panelMachineSessionState;
|
||||
renderCurrentMachineSessionControlView();
|
||||
|
||||
Reference in New Issue
Block a user