mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix type error
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
87dde8e7e4
commit
9192678c71
@ -8,10 +8,9 @@ import loggerInjectable from "../../../../common/logger.injectable";
|
|||||||
import clusterStoreInjectable from "../../../../common/cluster-store/cluster-store.injectable";
|
import clusterStoreInjectable from "../../../../common/cluster-store/cluster-store.injectable";
|
||||||
import { onLoadOfApplicationInjectionToken } from "@k8slens/application";
|
import { onLoadOfApplicationInjectionToken } from "@k8slens/application";
|
||||||
import applicationMenuItemCompositeInjectable from "../../../../features/application-menu/main/application-menu-item-composite.injectable";
|
import applicationMenuItemCompositeInjectable from "../../../../features/application-menu/main/application-menu-item-composite.injectable";
|
||||||
import emitAppEventInjectable from "../../../../common/app-event-bus/emit-event.injectable";
|
|
||||||
import getClusterByIdInjectable from "../../../../common/cluster-store/get-by-id.injectable";
|
import getClusterByIdInjectable from "../../../../common/cluster-store/get-by-id.injectable";
|
||||||
import pushCatalogToRendererInjectable from "../../../catalog-sync-to-renderer/push-catalog-to-renderer.injectable";
|
import pushCatalogToRendererInjectable from "../../../catalog-sync-to-renderer/push-catalog-to-renderer.injectable";
|
||||||
import clusterConnectionInjectable from "../../../cluster/cluster-connection.injectable";
|
import clusterFramesInjectable from "../../../../common/cluster-frames.injectable";
|
||||||
|
|
||||||
const setupIpcMainHandlersInjectable = getInjectable({
|
const setupIpcMainHandlersInjectable = getInjectable({
|
||||||
id: "setup-ipc-main-handlers",
|
id: "setup-ipc-main-handlers",
|
||||||
@ -19,21 +18,15 @@ const setupIpcMainHandlersInjectable = getInjectable({
|
|||||||
instantiate: (di) => ({
|
instantiate: (di) => ({
|
||||||
run: () => {
|
run: () => {
|
||||||
const logger = di.inject(loggerInjectable);
|
const logger = di.inject(loggerInjectable);
|
||||||
const applicationMenuItemComposite = di.inject(applicationMenuItemCompositeInjectable);
|
|
||||||
const pushCatalogToRenderer = di.inject(pushCatalogToRendererInjectable);
|
|
||||||
const clusterStore = di.inject(clusterStoreInjectable);
|
|
||||||
const emitAppEvent = di.inject(emitAppEventInjectable);
|
|
||||||
const getClusterById = di.inject(getClusterByIdInjectable);
|
|
||||||
|
|
||||||
logger.debug("[APP-MAIN] initializing ipc main handlers");
|
logger.debug("[APP-MAIN] initializing ipc main handlers");
|
||||||
|
|
||||||
setupIpcMainHandlers({
|
setupIpcMainHandlers({
|
||||||
applicationMenuItemComposite,
|
applicationMenuItemComposite: di.inject(applicationMenuItemCompositeInjectable),
|
||||||
pushCatalogToRenderer,
|
pushCatalogToRenderer: di.inject(pushCatalogToRendererInjectable),
|
||||||
clusterStore,
|
clusterStore: di.inject(clusterStoreInjectable),
|
||||||
emitAppEvent,
|
getClusterById: di.inject(getClusterByIdInjectable),
|
||||||
getClusterById,
|
clusterFrames: di.inject(clusterFramesInjectable),
|
||||||
getClusterConnection: (cluster) => di.inject(clusterConnectionInjectable, cluster),
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user