This commit is contained in:
insanity 2017-07-20 18:14:47 +09:00
parent 3b433d9e16
commit f125c70df7
5 changed files with 57 additions and 6 deletions

View File

@ -0,0 +1,19 @@
import { connect, Dispatch } from 'react-redux';
import {
ProbeDetail,
StateProps as ProbeDetailStateProps,
DispatchProps as ProbeDetailDispatchProps,
} from './components/ProbeDetail';
export function mapStateToProps(state: any): ProbeDetailStateProps {
return {
probe: state.probe,
};
}
export function mapDispatchToProps(dispatch: Dispatch<any>): ProbeDetailDispatchProps {
return {
};
}
export default connect(mapStateToProps, mapDispatchToProps)(ProbeDetail);

View File

@ -0,0 +1,20 @@
import { connect, Dispatch } from 'react-redux';
import {
ProbeDown,
StateProps as ProbeDownStateProps,
DispatchProps as ProbeDownDispatchProps,
} from './components/ProbeDown';
export function mapStateToProps(state: any): ProbeDownStateProps {
return {
};
}
export function mapDispatchToProps(dispatch: Dispatch<any>): ProbeDownDispatchProps {
return {
};
}
export default connect(mapStateToProps, mapDispatchToProps)(ProbeDown);

View File

@ -4,9 +4,8 @@ import {
StateProps as ProbeListStateProps,
DispatchProps as ProbeListDispatchProps,
} from './components/ProbeList';
import Domain from '@overflow/domain/api/model/Domain';
import State from '../redux/state/ProbeRegist';
import Domain from '@overflow/domain/api/model/Domain';
import * as probeListActions from '../redux/action/read_all_by_domain';

View File

@ -9,10 +9,17 @@ import { Button,
import { TargetTable } from '@overflow/temp/react/components/Targets';
import Probe from '@overflow/probe/api/model/Probe';
export interface Props {
export interface StateProps {
probe: Probe;
}
export interface DispatchProps {
}
export type Props = StateProps & DispatchProps;
export interface State {
}

View File

@ -8,13 +8,19 @@ import {
Container,
} from 'semantic-ui-react';
export interface StateProps {
}
export interface DispatchProps {
}
export type Props = StateProps & DispatchProps;
export interface State {
activeItem: string[];
}
export interface Props {
}
const osNames = ['Windows', 'Debian', 'Ubuntu', 'Fedora', 'CentOS'];