pwchange view
This commit is contained in:
parent
4d50f2ad32
commit
f3ae270982
|
@ -1,14 +1,15 @@
|
||||||
import * as React from 'react';
|
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 SignIn from '../views/member/SignIn';
|
||||||
import SignUp from '../views/member/SignUp';
|
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/SensorList';
|
||||||
import ProbeList from '../views/monitoring/probe/List';
|
import ProbeList from '../views/monitoring/probe/List';
|
||||||
|
|
||||||
// import { SignUp } from '@overflow/member/react/components/SignUp';
|
// import { SignUp } from '@overflow/member/react/components/SignUp';
|
||||||
// import { SignIn } from '@overflow/member/react/components/SignIn';
|
// 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 { ProbeDown } from '@overflow/temp/react/components/ProbeDown';
|
||||||
// import { DiscoveryDetails } from '@overflow/temp/react/components/DiscoveryDetails';
|
// import { DiscoveryDetails } from '@overflow/temp/react/components/DiscoveryDetails';
|
||||||
// import { Components } from '@overflow/temp/react/components/Components';
|
// import { Components } from '@overflow/temp/react/components/Components';
|
||||||
|
@ -48,6 +49,7 @@ const routes = (
|
||||||
{/*<Route path='/sensorList' component={SensorList} />*/}
|
{/*<Route path='/sensorList' component={SensorList} />*/}
|
||||||
<Route exact path='/test2' component={SignUp} />
|
<Route exact path='/test2' component={SignUp} />
|
||||||
<Route exact path='/test3' component={SignIn} />
|
<Route exact path='/test3' component={SignIn} />
|
||||||
|
<Route exact path='/test4' component={PWChange} />
|
||||||
<Route exact path='/probe_list' component={ProbeList} />
|
<Route exact path='/probe_list' component={ProbeList} />
|
||||||
<Route exact path='/sensor_list' component={SensorList} />
|
<Route exact path='/sensor_list' component={SensorList} />
|
||||||
|
|
||||||
|
|
|
@ -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;
|
Loading…
Reference in New Issue
Block a user