mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Rename feature for clarity
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
24 files changed
+47
-22
No files matched your search
@@ -122,7 +122,7 @@
|
||||
"@hapi/subtext": "^7.1.0",
|
||||
"@k8slens/cluster-settings": "^6.5.0-alpha.1",
|
||||
"@k8slens/node-fetch": "^6.5.0-alpha.1",
|
||||
"@k8slens/react-application-root": "^1.0.0-alpha.0",
|
||||
"@k8slens/react-application": "^1.0.0-alpha.0",
|
||||
"@kubernetes/client-node": "^0.18.1",
|
||||
"@material-ui/styles": "^4.11.5",
|
||||
"@ogre-tools/fp": "^15.1.2",
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import {
|
||||
reactApplicationChildrenInjectionToken,
|
||||
} from "@k8slens/react-application-root";
|
||||
} from "@k8slens/react-application";
|
||||
import { computed } from "mobx";
|
||||
|
||||
const frameApplicationRootInjectable = getInjectable({
|
||||
|
||||
@@ -9,7 +9,7 @@ import React from "react";
|
||||
|
||||
import {
|
||||
reactApplicationHigherOrderComponentInjectionToken,
|
||||
} from "@k8slens/react-application-root";
|
||||
} from "@k8slens/react-application";
|
||||
|
||||
const routingReactApplicationHocInjectable = getInjectable({
|
||||
id: "routing-react-application-hoc",
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import React from "react";
|
||||
import { reactApplicationHigherOrderComponentInjectionToken } from "@k8slens/react-application-root";
|
||||
import { reactApplicationHigherOrderComponentInjectionToken } from "@k8slens/react-application";
|
||||
import { ThemeProvider } from "@material-ui/core";
|
||||
import { defaultMuiBaseTheme } from "../mui-base-theme";
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@
|
||||
"@k8slens/messaging": "^1.0.0-alpha.1",
|
||||
"@k8slens/messaging-for-main": "^1.0.0-alpha.1",
|
||||
"@k8slens/messaging-for-renderer": "^1.0.0-alpha.1",
|
||||
"@k8slens/react-application-root": "^1.0.0-alpha.0",
|
||||
"@k8slens/react-application": "^1.0.0-alpha.0",
|
||||
"@k8slens/run-many": "^1.0.0-alpha.1",
|
||||
"@k8slens/startable-stoppable": "^1.0.0-alpha.1",
|
||||
"@k8slens/test-utils": "^1.0.0-alpha.1",
|
||||
|
||||
@@ -15,7 +15,7 @@ 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";
|
||||
import { reactApplicationRootFeature } from "@k8slens/react-application-root";
|
||||
import { reactApplicationFeature } from "@k8slens/react-application";
|
||||
|
||||
const environment = "renderer";
|
||||
|
||||
@@ -30,7 +30,7 @@ runInAction(() => {
|
||||
di,
|
||||
applicationFeature,
|
||||
messagingFeatureForRenderer,
|
||||
reactApplicationRootFeature
|
||||
reactApplicationFeature
|
||||
);
|
||||
|
||||
autoRegister({
|
||||
|
||||
File renamed without changes.
File renamed without changes.
+3
-3
@@ -1,13 +1,13 @@
|
||||
# @k8slens/react-application-root
|
||||
# @k8slens/react-application
|
||||
|
||||
# Usage
|
||||
|
||||
```bash
|
||||
$ npm install @k8slens/react-application-root
|
||||
$ npm install @k8slens/react-application
|
||||
```
|
||||
|
||||
```typescript
|
||||
import { reactApplicationRootFeature } from "@k8slens/application";
|
||||
import { reactApplicationFeature } from "@k8slens/react-application";
|
||||
import { registerFeature } from "@k8slens/feature-core";
|
||||
import { createContainer } from "@ogre-tools/injectable";
|
||||
|
||||
+1
-1
@@ -7,4 +7,4 @@ export type { ReactApplicationChildren } from "./src/react-application/react-app
|
||||
export { reactApplicationHigherOrderComponentInjectionToken } from "./src/react-application/react-application-higher-order-component-injection-token";
|
||||
export type { ReactApplicationHigherOrderComponent } from "./src/react-application/react-application-higher-order-component-injection-token";
|
||||
|
||||
export { reactApplicationRootFeature } from "./src/feature";
|
||||
export { reactApplicationFeature } from "./src/feature";
|
||||
File renamed without changes.
+2
-2
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "@k8slens/react-application-root",
|
||||
"name": "@k8slens/react-application",
|
||||
"private": false,
|
||||
"version": "1.0.0-alpha.0",
|
||||
"description": "Package for Application Root in React",
|
||||
"description": "Package for React Application",
|
||||
"type": "commonjs",
|
||||
"files": [
|
||||
"dist"
|
||||
File renamed without changes.
+2
-2
@@ -2,8 +2,8 @@ import { getFeature } from "@k8slens/feature-core";
|
||||
import { autoRegister } from "@ogre-tools/injectable-extension-for-auto-registration";
|
||||
import { applicationFeature } from "@k8slens/application";
|
||||
|
||||
export const reactApplicationRootFeature = getFeature({
|
||||
id: "react-application-root",
|
||||
export const reactApplicationFeature = getFeature({
|
||||
id: "react-application",
|
||||
|
||||
register: (di) => {
|
||||
autoRegister({
|
||||
+2
-2
@@ -2,7 +2,7 @@ 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 { reactApplicationRootFeature } from "./feature";
|
||||
import { reactApplicationFeature } from "./feature";
|
||||
import { runInAction, computed, observable, IObservableValue } from "mobx";
|
||||
import { startApplicationInjectionToken } from "@k8slens/application";
|
||||
import type { RenderResult } from "@testing-library/react";
|
||||
@@ -31,7 +31,7 @@ describe("react-application", () => {
|
||||
registerMobX(di);
|
||||
|
||||
runInAction(() => {
|
||||
registerFeature(di, reactApplicationRootFeature);
|
||||
registerFeature(di, reactApplicationFeature);
|
||||
});
|
||||
|
||||
di.override(renderInjectable, () => (application) => {
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user