mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Rename injection token for clarity (#5636)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
1 parent
287c814565
commit
7b0521f3b2
64 files changed
+132
-132
No files matched your search
+1
-1
@@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import type { Route } from "../../../../common/front-end-routing/route-injection-token";
|
||||
import type { Route } from "../../../../common/front-end-routing/front-end-route-injection-token";
|
||||
import { navigateToRouteInjectionToken } from "../../../../common/front-end-routing/navigate-to-route-injection-token";
|
||||
|
||||
const navigateToPreferenceTabInjectable = getInjectable({
|
||||
|
||||
+2
-2
@@ -20,7 +20,7 @@ import storesAndApisCanBeCreatedInjectable from "../../../stores-apis-can-be-cre
|
||||
import createKubeconfigManagerInjectable from "../../../../main/kubeconfig-manager/create-kubeconfig-manager.injectable";
|
||||
import type { ApplicationBuilder } from "../../test-utils/get-application-builder";
|
||||
import { getApplicationBuilder } from "../../test-utils/get-application-builder";
|
||||
import { routeInjectionToken } from "../../../../common/front-end-routing/route-injection-token";
|
||||
import { frontEndRouteInjectionToken } from "../../../../common/front-end-routing/front-end-route-injection-token";
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { computed } from "mobx";
|
||||
import { routeSpecificComponentInjectionToken } from "../../../routes/route-specific-component-injection-token";
|
||||
@@ -319,7 +319,7 @@ const testRouteInjectable = getInjectable({
|
||||
isEnabled: computed(() => true),
|
||||
}),
|
||||
|
||||
injectionToken: routeInjectionToken,
|
||||
injectionToken: frontEndRouteInjectionToken,
|
||||
});
|
||||
|
||||
const testRouteComponentInjectable = getInjectable({
|
||||
|
||||
@@ -7,8 +7,8 @@ import { overSome } from "lodash/fp";
|
||||
import { computed } from "mobx";
|
||||
import rendererExtensionsInjectable from "../../extensions/renderer-extensions.injectable";
|
||||
import type { LensRendererExtension } from "../../extensions/lens-renderer-extension";
|
||||
import type { Route } from "../../common/front-end-routing/route-injection-token";
|
||||
import { routeInjectionToken } from "../../common/front-end-routing/route-injection-token";
|
||||
import type { Route } from "../../common/front-end-routing/front-end-route-injection-token";
|
||||
import { frontEndRouteInjectionToken } from "../../common/front-end-routing/front-end-route-injection-token";
|
||||
|
||||
const allRoutesInjectable = getInjectable({
|
||||
id: "all-routes",
|
||||
@@ -20,7 +20,7 @@ const allRoutesInjectable = getInjectable({
|
||||
const enabledExtensions = extensions.get();
|
||||
|
||||
return di
|
||||
.injectMany(routeInjectionToken)
|
||||
.injectMany(frontEndRouteInjectionToken)
|
||||
.filter((route) =>
|
||||
overSome([
|
||||
isNonExtensionRoute,
|
||||
|
||||
@@ -15,7 +15,7 @@ import { SiblingsInTabLayout } from "../components/layout/siblings-in-tab-layout
|
||||
import extensionPageParametersInjectable from "./extension-page-parameters.injectable";
|
||||
import { routeSpecificComponentInjectionToken } from "./route-specific-component-injection-token";
|
||||
import { computed } from "mobx";
|
||||
import { routeInjectionToken } from "../../common/front-end-routing/route-injection-token";
|
||||
import { frontEndRouteInjectionToken } from "../../common/front-end-routing/front-end-route-injection-token";
|
||||
import { getExtensionRoutePath } from "./for-extension";
|
||||
|
||||
const extensionRouteRegistratorInjectable = getInjectable({
|
||||
@@ -62,7 +62,7 @@ const toRouteInjectableFor =
|
||||
extension,
|
||||
}),
|
||||
|
||||
injectionToken: routeInjectionToken,
|
||||
injectionToken: frontEndRouteInjectionToken,
|
||||
});
|
||||
|
||||
const normalizedParams = di.inject(extensionPageParametersInjectable, {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import { getInjectable, lifecycleEnum } from "@ogre-tools/injectable";
|
||||
import { computed } from "mobx";
|
||||
import currentRouteInjectable from "./current-route.injectable";
|
||||
import type { Route } from "../../common/front-end-routing/route-injection-token";
|
||||
import type { Route } from "../../common/front-end-routing/front-end-route-injection-token";
|
||||
|
||||
const routeIsActiveInjectable = getInjectable({
|
||||
id: "route-is-active",
|
||||
|
||||
@@ -6,7 +6,7 @@ import { getInjectable, lifecycleEnum } from "@ogre-tools/injectable";
|
||||
import { computed } from "mobx";
|
||||
import { matchPath } from "react-router";
|
||||
import currentPathInjectable from "./current-path.injectable";
|
||||
import type { Route } from "../../common/front-end-routing/route-injection-token";
|
||||
import type { Route } from "../../common/front-end-routing/front-end-route-injection-token";
|
||||
|
||||
const routePathParametersInjectable = getInjectable({
|
||||
id: "route-path-parameters",
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectionToken } from "@ogre-tools/injectable";
|
||||
import type { Route } from "../../common/front-end-routing/route-injection-token";
|
||||
import type { Route } from "../../common/front-end-routing/front-end-route-injection-token";
|
||||
|
||||
export const routeSpecificComponentInjectionToken = getInjectionToken<{
|
||||
route: Route<unknown>;
|
||||
|
||||
Reference in new issue
Block a user