mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Switch to using messaging from the Feature
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
106 files changed
+266
-270
No files matched your search
@@ -10,6 +10,7 @@ import { registerMobX } from "@ogre-tools/injectable-extension-for-mobx";
|
||||
import { registerFeature } from "@k8slens/feature-core";
|
||||
import { applicationFeature, startApplicationInjectionToken } from '@k8slens/application'
|
||||
import { applicationFeatureForElectronMain } from '@k8slens/application-for-electron-main'
|
||||
import { messagingFeatureForMain } from "@k8slens/messaging-for-main";
|
||||
|
||||
const environment = "main";
|
||||
|
||||
@@ -20,7 +21,7 @@ registerMobX(di);
|
||||
runInAction(() => {
|
||||
registerLensCore(di, environment);
|
||||
|
||||
registerFeature(di, applicationFeature, applicationFeatureForElectronMain);
|
||||
registerFeature(di, applicationFeature, applicationFeatureForElectronMain, messagingFeatureForMain);
|
||||
|
||||
try {
|
||||
autoRegister({
|
||||
|
||||
@@ -14,6 +14,7 @@ import {
|
||||
import { createContainer } from "@ogre-tools/injectable";
|
||||
import { registerMobX } from "@ogre-tools/injectable-extension-for-mobx";
|
||||
import { registerInjectableReact } from "@ogre-tools/injectable-react";
|
||||
import { messagingFeatureForRenderer } from "@k8slens/messaging-for-renderer";
|
||||
|
||||
const environment = "renderer";
|
||||
|
||||
@@ -23,7 +24,7 @@ runInAction(() => {
|
||||
registerMobX(di);
|
||||
registerInjectableReact(di);
|
||||
registerLensCore(di, environment);
|
||||
registerFeature(di, applicationFeature);
|
||||
registerFeature(di, applicationFeature, messagingFeatureForRenderer);
|
||||
|
||||
autoRegister({
|
||||
di,
|
||||
|
||||
Reference in new issue
Block a user