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:
parent
77195c5222
commit
00b85fed0e
35
package-lock.json
generated
35
package-lock.json
generated
@ -4634,8 +4634,8 @@
|
|||||||
"resolved": "packages/node-fetch",
|
"resolved": "packages/node-fetch",
|
||||||
"link": true
|
"link": true
|
||||||
},
|
},
|
||||||
"node_modules/@k8slens/react-application-root": {
|
"node_modules/@k8slens/react-application": {
|
||||||
"resolved": "packages/technical-features/react-application-root",
|
"resolved": "packages/technical-features/react-application",
|
||||||
"link": true
|
"link": true
|
||||||
},
|
},
|
||||||
"node_modules/@k8slens/react-testing-library-discovery": {
|
"node_modules/@k8slens/react-testing-library-discovery": {
|
||||||
@ -34374,8 +34374,8 @@
|
|||||||
"@k8slens/react-testing-library-discovery": "^1.0.0-alpha.0"
|
"@k8slens/react-testing-library-discovery": "^1.0.0-alpha.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@k8slens/application": "6.5.0-alpha.2",
|
|
||||||
"@k8slens/feature-core": "^6.5.0-alpha.0",
|
"@k8slens/feature-core": "^6.5.0-alpha.0",
|
||||||
|
"@k8slens/react-application": "^1.0.0-alpha.0",
|
||||||
"@ogre-tools/fp": "^15.1.2",
|
"@ogre-tools/fp": "^15.1.2",
|
||||||
"@ogre-tools/injectable": "^15.1.2",
|
"@ogre-tools/injectable": "^15.1.2",
|
||||||
"@ogre-tools/injectable-extension-for-auto-registration": "^15.1.2",
|
"@ogre-tools/injectable-extension-for-auto-registration": "^15.1.2",
|
||||||
@ -34411,7 +34411,7 @@
|
|||||||
"@hapi/subtext": "^7.1.0",
|
"@hapi/subtext": "^7.1.0",
|
||||||
"@k8slens/cluster-settings": "^6.5.0-alpha.1",
|
"@k8slens/cluster-settings": "^6.5.0-alpha.1",
|
||||||
"@k8slens/node-fetch": "^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",
|
"@kubernetes/client-node": "^0.18.1",
|
||||||
"@material-ui/styles": "^4.11.5",
|
"@material-ui/styles": "^4.11.5",
|
||||||
"@ogre-tools/fp": "^15.1.2",
|
"@ogre-tools/fp": "^15.1.2",
|
||||||
@ -37622,7 +37622,7 @@
|
|||||||
"@k8slens/messaging": "^1.0.0-alpha.1",
|
"@k8slens/messaging": "^1.0.0-alpha.1",
|
||||||
"@k8slens/messaging-for-main": "^1.0.0-alpha.1",
|
"@k8slens/messaging-for-main": "^1.0.0-alpha.1",
|
||||||
"@k8slens/messaging-for-renderer": "^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/run-many": "^1.0.0-alpha.1",
|
||||||
"@k8slens/startable-stoppable": "^1.0.0-alpha.1",
|
"@k8slens/startable-stoppable": "^1.0.0-alpha.1",
|
||||||
"@k8slens/test-utils": "^1.0.0-alpha.1",
|
"@k8slens/test-utils": "^1.0.0-alpha.1",
|
||||||
@ -39201,9 +39201,34 @@
|
|||||||
"lodash": "^4.17.21"
|
"lodash": "^4.17.21"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"packages/technical-features/react-application": {
|
||||||
|
"name": "@k8slens/react-application",
|
||||||
|
"version": "1.0.0-alpha.0",
|
||||||
|
"license": "MIT",
|
||||||
|
"devDependencies": {
|
||||||
|
"@async-fn/jest": "^1.6.4",
|
||||||
|
"@k8slens/eslint-config": "6.5.0-alpha.1",
|
||||||
|
"@k8slens/react-testing-library-discovery": "*",
|
||||||
|
"@testing-library/react": "^12.1.5"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@k8slens/application": "^6.5.0-alpha.2",
|
||||||
|
"@k8slens/feature-core": "^6.5.0-alpha.0",
|
||||||
|
"@ogre-tools/fp": "^15.1.2",
|
||||||
|
"@ogre-tools/injectable": "^15.1.2",
|
||||||
|
"@ogre-tools/injectable-extension-for-auto-registration": "^15.1.2",
|
||||||
|
"@ogre-tools/injectable-extension-for-mobx": "^15.1.2",
|
||||||
|
"@ogre-tools/injectable-react": "^15.1.2",
|
||||||
|
"lodash": "^4.17.15",
|
||||||
|
"mobx": "^6.8.0",
|
||||||
|
"react": "^17.0.2",
|
||||||
|
"react-dom": "^17.0.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
"packages/technical-features/react-application-root": {
|
"packages/technical-features/react-application-root": {
|
||||||
"name": "@k8slens/react-application-root",
|
"name": "@k8slens/react-application-root",
|
||||||
"version": "1.0.0-alpha.0",
|
"version": "1.0.0-alpha.0",
|
||||||
|
"extraneous": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@async-fn/jest": "^1.6.4",
|
"@async-fn/jest": "^1.6.4",
|
||||||
|
|||||||
@ -122,7 +122,7 @@
|
|||||||
"@hapi/subtext": "^7.1.0",
|
"@hapi/subtext": "^7.1.0",
|
||||||
"@k8slens/cluster-settings": "^6.5.0-alpha.1",
|
"@k8slens/cluster-settings": "^6.5.0-alpha.1",
|
||||||
"@k8slens/node-fetch": "^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",
|
"@kubernetes/client-node": "^0.18.1",
|
||||||
"@material-ui/styles": "^4.11.5",
|
"@material-ui/styles": "^4.11.5",
|
||||||
"@ogre-tools/fp": "^15.1.2",
|
"@ogre-tools/fp": "^15.1.2",
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
import {
|
import {
|
||||||
reactApplicationChildrenInjectionToken,
|
reactApplicationChildrenInjectionToken,
|
||||||
} from "@k8slens/react-application-root";
|
} from "@k8slens/react-application";
|
||||||
import { computed } from "mobx";
|
import { computed } from "mobx";
|
||||||
|
|
||||||
const frameApplicationRootInjectable = getInjectable({
|
const frameApplicationRootInjectable = getInjectable({
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import React from "react";
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
reactApplicationHigherOrderComponentInjectionToken,
|
reactApplicationHigherOrderComponentInjectionToken,
|
||||||
} from "@k8slens/react-application-root";
|
} from "@k8slens/react-application";
|
||||||
|
|
||||||
const routingReactApplicationHocInjectable = getInjectable({
|
const routingReactApplicationHocInjectable = getInjectable({
|
||||||
id: "routing-react-application-hoc",
|
id: "routing-react-application-hoc",
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { reactApplicationHigherOrderComponentInjectionToken } from "@k8slens/react-application-root";
|
import { reactApplicationHigherOrderComponentInjectionToken } from "@k8slens/react-application";
|
||||||
import { ThemeProvider } from "@material-ui/core";
|
import { ThemeProvider } from "@material-ui/core";
|
||||||
import { defaultMuiBaseTheme } from "../mui-base-theme";
|
import { defaultMuiBaseTheme } from "../mui-base-theme";
|
||||||
|
|
||||||
|
|||||||
@ -206,7 +206,7 @@
|
|||||||
"@k8slens/messaging": "^1.0.0-alpha.1",
|
"@k8slens/messaging": "^1.0.0-alpha.1",
|
||||||
"@k8slens/messaging-for-main": "^1.0.0-alpha.1",
|
"@k8slens/messaging-for-main": "^1.0.0-alpha.1",
|
||||||
"@k8slens/messaging-for-renderer": "^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/run-many": "^1.0.0-alpha.1",
|
||||||
"@k8slens/startable-stoppable": "^1.0.0-alpha.1",
|
"@k8slens/startable-stoppable": "^1.0.0-alpha.1",
|
||||||
"@k8slens/test-utils": "^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 { registerMobX } from "@ogre-tools/injectable-extension-for-mobx";
|
||||||
import { registerInjectableReact } from "@ogre-tools/injectable-react";
|
import { registerInjectableReact } from "@ogre-tools/injectable-react";
|
||||||
import { messagingFeatureForRenderer } from "@k8slens/messaging-for-renderer";
|
import { messagingFeatureForRenderer } from "@k8slens/messaging-for-renderer";
|
||||||
import { reactApplicationRootFeature } from "@k8slens/react-application-root";
|
import { reactApplicationFeature } from "@k8slens/react-application";
|
||||||
|
|
||||||
const environment = "renderer";
|
const environment = "renderer";
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ runInAction(() => {
|
|||||||
di,
|
di,
|
||||||
applicationFeature,
|
applicationFeature,
|
||||||
messagingFeatureForRenderer,
|
messagingFeatureForRenderer,
|
||||||
reactApplicationRootFeature
|
reactApplicationFeature
|
||||||
);
|
);
|
||||||
|
|
||||||
autoRegister({
|
autoRegister({
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
# @k8slens/react-application-root
|
# @k8slens/react-application
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ npm install @k8slens/react-application-root
|
$ npm install @k8slens/react-application
|
||||||
```
|
```
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { reactApplicationRootFeature } from "@k8slens/application";
|
import { reactApplicationFeature } from "@k8slens/react-application";
|
||||||
import { registerFeature } from "@k8slens/feature-core";
|
import { registerFeature } from "@k8slens/feature-core";
|
||||||
import { createContainer } from "@ogre-tools/injectable";
|
import { createContainer } from "@ogre-tools/injectable";
|
||||||
|
|
||||||
@ -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 { 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 type { ReactApplicationHigherOrderComponent } from "./src/react-application/react-application-higher-order-component-injection-token";
|
||||||
|
|
||||||
export { reactApplicationRootFeature } from "./src/feature";
|
export { reactApplicationFeature } from "./src/feature";
|
||||||
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "@k8slens/react-application-root",
|
"name": "@k8slens/react-application",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.0.0-alpha.0",
|
"version": "1.0.0-alpha.0",
|
||||||
"description": "Package for Application Root in React",
|
"description": "Package for React Application",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
@ -2,8 +2,8 @@ import { getFeature } from "@k8slens/feature-core";
|
|||||||
import { autoRegister } from "@ogre-tools/injectable-extension-for-auto-registration";
|
import { autoRegister } from "@ogre-tools/injectable-extension-for-auto-registration";
|
||||||
import { applicationFeature } from "@k8slens/application";
|
import { applicationFeature } from "@k8slens/application";
|
||||||
|
|
||||||
export const reactApplicationRootFeature = getFeature({
|
export const reactApplicationFeature = getFeature({
|
||||||
id: "react-application-root",
|
id: "react-application",
|
||||||
|
|
||||||
register: (di) => {
|
register: (di) => {
|
||||||
autoRegister({
|
autoRegister({
|
||||||
@ -2,7 +2,7 @@ import { registerFeature } from "@k8slens/feature-core";
|
|||||||
import { createContainer, DiContainer, getInjectable } from "@ogre-tools/injectable";
|
import { createContainer, DiContainer, getInjectable } from "@ogre-tools/injectable";
|
||||||
import { registerMobX } from "@ogre-tools/injectable-extension-for-mobx";
|
import { registerMobX } from "@ogre-tools/injectable-extension-for-mobx";
|
||||||
import { registerInjectableReact } from "@ogre-tools/injectable-react";
|
import { registerInjectableReact } from "@ogre-tools/injectable-react";
|
||||||
import { reactApplicationRootFeature } from "./feature";
|
import { reactApplicationFeature } from "./feature";
|
||||||
import { runInAction, computed, observable, IObservableValue } from "mobx";
|
import { runInAction, computed, observable, IObservableValue } from "mobx";
|
||||||
import { startApplicationInjectionToken } from "@k8slens/application";
|
import { startApplicationInjectionToken } from "@k8slens/application";
|
||||||
import type { RenderResult } from "@testing-library/react";
|
import type { RenderResult } from "@testing-library/react";
|
||||||
@ -31,7 +31,7 @@ describe("react-application", () => {
|
|||||||
registerMobX(di);
|
registerMobX(di);
|
||||||
|
|
||||||
runInAction(() => {
|
runInAction(() => {
|
||||||
registerFeature(di, reactApplicationRootFeature);
|
registerFeature(di, reactApplicationFeature);
|
||||||
});
|
});
|
||||||
|
|
||||||
di.override(renderInjectable, () => (application) => {
|
di.override(renderInjectable, () => (application) => {
|
||||||
Loading…
Reference in New Issue
Block a user