mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Adapt to injectable feature-wrappers
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
29 files changed
+79
-60
No files matched your search
@@ -32,6 +32,7 @@
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@k8slens/application": "^6.5.0-alpha.2",
|
||||
"@k8slens/basic-dependency-features": "^1.0.0-alpha.0",
|
||||
"@k8slens/feature-core": "^6.5.0-alpha.0",
|
||||
"@ogre-tools/fp": "^15.3.1",
|
||||
"@ogre-tools/injectable": "^15.3.1",
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { getFeature } from "@k8slens/feature-core";
|
||||
import { autoRegister } from "@ogre-tools/injectable-extension-for-auto-registration";
|
||||
import { applicationFeature } from "@k8slens/application";
|
||||
import { injectableMobXFeature, injectableReactFeature } from "@k8slens/basic-dependency-features";
|
||||
|
||||
export const reactApplicationFeature = getFeature({
|
||||
id: "react-application",
|
||||
@@ -13,5 +14,5 @@ export const reactApplicationFeature = getFeature({
|
||||
});
|
||||
},
|
||||
|
||||
dependencies: [applicationFeature],
|
||||
dependencies: [injectableReactFeature, injectableMobXFeature, applicationFeature],
|
||||
});
|
||||
@@ -1,7 +1,5 @@
|
||||
import { registerFeature } from "@k8slens/feature-core";
|
||||
import { createContainer, DiContainer, getInjectable } from "@ogre-tools/injectable";
|
||||
import { registerMobX } from "@ogre-tools/injectable-extension-for-mobx";
|
||||
import { registerInjectableReact } from "@ogre-tools/injectable-react";
|
||||
import { reactApplicationFeature } from "./feature";
|
||||
import { runInAction, computed, observable, IObservableValue } from "mobx";
|
||||
import { startApplicationInjectionToken } from "@k8slens/application";
|
||||
@@ -26,10 +24,6 @@ describe("react-application", () => {
|
||||
beforeEach(async () => {
|
||||
di = createContainer("some-container");
|
||||
|
||||
registerInjectableReact(di);
|
||||
|
||||
registerMobX(di);
|
||||
|
||||
runInAction(() => {
|
||||
registerFeature(di, reactApplicationFeature);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user