From 29328da8d4b06c1ffd5bb499a8825a8ec04cf444 Mon Sep 17 00:00:00 2001 From: snoop Date: Fri, 21 Jul 2017 12:37:20 +0900 Subject: [PATCH] name changed --- src/ts/@overflow/app/router/index.tsx | 2 +- .../sensor/{SensorList.tsx => List.tsx} | 0 .../app/views/monitoring/sensor/Setup.tsx | 30 +++++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) rename src/ts/@overflow/app/views/monitoring/sensor/{SensorList.tsx => List.tsx} (100%) create mode 100644 src/ts/@overflow/app/views/monitoring/sensor/Setup.tsx diff --git a/src/ts/@overflow/app/router/index.tsx b/src/ts/@overflow/app/router/index.tsx index 310a45d..b9332b4 100644 --- a/src/ts/@overflow/app/router/index.tsx +++ b/src/ts/@overflow/app/router/index.tsx @@ -4,7 +4,7 @@ import { Route, RouteProps, Switch } from 'react-router-dom'; import SignIn from '../views/member/SignIn'; import SignUp from '../views/member/SignUp'; import PWChange from '../views/member/ForgotPassword'; -import SensorList from '../views/monitoring/sensor/SensorList'; +import SensorList from '../views/monitoring/sensor/List'; import ProbeList from '../views/monitoring/probe/List'; import TargetList from '../views/infrastructure/target/List'; diff --git a/src/ts/@overflow/app/views/monitoring/sensor/SensorList.tsx b/src/ts/@overflow/app/views/monitoring/sensor/List.tsx similarity index 100% rename from src/ts/@overflow/app/views/monitoring/sensor/SensorList.tsx rename to src/ts/@overflow/app/views/monitoring/sensor/List.tsx diff --git a/src/ts/@overflow/app/views/monitoring/sensor/Setup.tsx b/src/ts/@overflow/app/views/monitoring/sensor/Setup.tsx new file mode 100644 index 0000000..627fb36 --- /dev/null +++ b/src/ts/@overflow/app/views/monitoring/sensor/Setup.tsx @@ -0,0 +1,30 @@ +import * as React from 'react'; +import { RouteComponentProps } from 'react-router'; +import SensorListContainer from '@overflow/sensor/react/SensorList'; +import WebSocketRPC from '@overflow/commons/websocket/WebSocketRPC'; +import AppContext from '@overflow/commons/context'; +import inject from '@overflow/commons/context/decorator/inject'; + +class SensorSetup extends React.Component, object> { + @inject() + private client: WebSocketRPC; + + public constructor(props?: RouteComponentProps, context?: object) { + super(props, context); + + let con = AppContext.get(); + } + + public render(): JSX.Element { + return ( + + ); + } + + private test(@inject() c: WebSocketRPC): void { + console.log(''); + } +} + + +export default SensorSetup;