pwchange view

This commit is contained in:
geek 2017-07-21 11:51:59 +09:00
parent 4d50f2ad32
commit f3ae270982
2 changed files with 34 additions and 2 deletions

View File

@ -1,14 +1,15 @@
import * as React from 'react';
import { Route, RouteProps, Switch } from 'react-router-dom';
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 ProbeList from '../views/monitoring/probe/List';
// import { SignUp } from '@overflow/member/react/components/SignUp';
// import { SignIn } from '@overflow/member/react/components/SignIn';
import { PWChange } from '@overflow/member/react/components/PWChange';
// import { PWChange } from '@overflow/member/react/components/PWChange';
// import { ProbeDown } from '@overflow/temp/react/components/ProbeDown';
// import { DiscoveryDetails } from '@overflow/temp/react/components/DiscoveryDetails';
// import { Components } from '@overflow/temp/react/components/Components';
@ -48,6 +49,7 @@ const routes = (
{/*<Route path='/sensorList' component={SensorList} />*/}
<Route exact path='/test2' component={SignUp} />
<Route exact path='/test3' component={SignIn} />
<Route exact path='/test4' component={PWChange} />
<Route exact path='/probe_list' component={ProbeList} />
<Route exact path='/sensor_list' component={SensorList} />

View File

@ -0,0 +1,30 @@
import * as React from 'react';
import { RouteComponentProps } from 'react-router';
import PWChangeContainer from '@overflow/member/react/PWChange';
import WebSocketRPC from '@overflow/commons/websocket/WebSocketRPC';
import AppContext from '@overflow/commons/context';
import inject from '@overflow/commons/context/decorator/inject';
class PWChange extends React.Component<RouteComponentProps<object>, object> {
@inject()
private client: WebSocketRPC;
public constructor(props?: RouteComponentProps<object>, context?: object) {
super(props, context);
let con = AppContext.get<WebSocketRPC>();
}
public render(): JSX.Element {
return (
<PWChangeContainer/>
);
}
private test(@inject() c: WebSocketRPC): void {
console.log('');
}
}
export default PWChange;