推进 INI 面板 launch API schema 暴露

This commit is contained in:
2026-06-15 06:58:04 +08:00
parent 30598120e4
commit 6b5999930a
8 changed files with 101 additions and 4 deletions

View File

@@ -90,6 +90,7 @@
}
window.linuxCncIniPanelLaunchApi = {
getLaunchApiSchema: () => shellViewModel.launchApiSchema,
getLaunchApiManifest: () => shellViewModel.launchApiManifest,
getLauncherLinks: () => shellViewModel.launcherLinks,
getControlPageApiMethods: () => shellViewModel.controlPage.browserApiMethods,

View File

@@ -83,6 +83,7 @@ export function createIniPanelLaunchApiManifest(entries = getVisibleIniPanelEntr
apiName: schema.apiName,
manifestVersion: schema.manifestVersion,
methods: [
"getLaunchApiSchema",
"getLaunchApiManifest",
"getLauncherLinks",
"getControlPageApiMethods",
@@ -155,6 +156,7 @@ export function createIniPanelShellViewModel(entries = getVisibleIniPanelEntries
title,
})),
launcherLinks: createIniPanelLauncherLinkViewModel(entries),
launchApiSchema: createIniPanelLaunchApiSchema(),
launchApiManifest: createIniPanelLaunchApiManifest(entries),
controlPage: {
browserApiMethods: createControlPageBrowserApiMethods(),