probe
This commit is contained in:
parent
3b433d9e16
commit
f125c70df7
19
src/ts/@overflow/probe/react/ProbeDetail.tsx
Normal file
19
src/ts/@overflow/probe/react/ProbeDetail.tsx
Normal 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);
|
20
src/ts/@overflow/probe/react/ProbeDown.tsx
Normal file
20
src/ts/@overflow/probe/react/ProbeDown.tsx
Normal 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);
|
|
@ -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';
|
||||
|
||||
|
||||
|
|
|
@ -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 {
|
||||
}
|
||||
|
||||
|
|
|
@ -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'];
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user