added sensor detail
This commit is contained in:
parent
fa7cb087e8
commit
1f33fa7d2f
|
@ -6,6 +6,7 @@ import { Footer } from './Footer';
|
||||||
import { TitleBar } from './TitleBar';
|
import { TitleBar } from './TitleBar';
|
||||||
import LeftMenu from './LeftMenu';
|
import LeftMenu from './LeftMenu';
|
||||||
import SensorSetup from '../monitoring/sensor/Setup';
|
import SensorSetup from '../monitoring/sensor/Setup';
|
||||||
|
import SensorDetail from '../monitoring/sensor/Detail';
|
||||||
|
|
||||||
export interface Props extends RouteComponentProps<any> {
|
export interface Props extends RouteComponentProps<any> {
|
||||||
}
|
}
|
||||||
|
@ -37,9 +38,9 @@ class SensorDetailLayout extends React.Component<Props, State> {
|
||||||
<Header />
|
<Header />
|
||||||
<TitleBar title='Probe Details' sub={sub} />
|
<TitleBar title='Probe Details' sub={sub} />
|
||||||
<Switch>
|
<Switch>
|
||||||
{/*<Route path={`${this.props.match.url}/:id/`} component={SignIn}/>
|
<Route path={`${this.props.match.url}/:id/`} component={SensorDetail}/>
|
||||||
<Route path={`${this.props.match.url}/:id/info/`} component={SignUp}/>
|
<Route path={`${this.props.match.url}/:id/info/`} component={SensorDetail}/>
|
||||||
<Route path={`${this.props.match.url}/:id/history/`} component={EmailConfirm}/>*/}
|
{/*<Route path={`${this.props.match.url}/:id/history/`} component={EmailConfirm}/>*/}
|
||||||
<Route path={`${this.props.match.url}/setup/`} component={SensorSetup} />
|
<Route path={`${this.props.match.url}/setup/`} component={SensorSetup} />
|
||||||
</Switch>
|
</Switch>
|
||||||
<Footer />
|
<Footer />
|
||||||
|
|
30
src/ts/@overflow/app/views/monitoring/sensor/Detail.tsx
Normal file
30
src/ts/@overflow/app/views/monitoring/sensor/Detail.tsx
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
import * as React from 'react';
|
||||||
|
import { RouteComponentProps } from 'react-router';
|
||||||
|
import SensorDetailContainer from '@overflow/sensor/react/SensorDetail';
|
||||||
|
import WebSocketRPC from '@overflow/commons/websocket/WebSocketRPC';
|
||||||
|
import AppContext from '@overflow/commons/context';
|
||||||
|
import inject from '@overflow/commons/context/decorator/inject';
|
||||||
|
|
||||||
|
class SensorDetail 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 (
|
||||||
|
<SensorDetailContainer />
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
private test(@inject() c: WebSocketRPC): void {
|
||||||
|
console.log('');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export default SensorDetail;
|
Loading…
Reference in New Issue
Block a user