noauth probe
This commit is contained in:
		
							parent
							
								
									03ee142a59
								
							
						
					
					
						commit
						96f20d5784
					
				| @ -9,6 +9,7 @@ import Home from '../Home'; | |||||||
| import ProbeList from '../../views/monitoring/probe/List'; | import ProbeList from '../../views/monitoring/probe/List'; | ||||||
| import TargetList from '../../views/infrastructure/target/List'; | import TargetList from '../../views/infrastructure/target/List'; | ||||||
| import SensorList from '../monitoring/sensor/List'; | import SensorList from '../monitoring/sensor/List'; | ||||||
|  | import NoauthList from '../../views/monitoring/probe/NoAuth'; | ||||||
| import TitleBarContainer from '@overflow/app/views/layout/TitleBarContainer'; | import TitleBarContainer from '@overflow/app/views/layout/TitleBarContainer'; | ||||||
| 
 | 
 | ||||||
| export interface Props extends RouteComponentProps<any> { | export interface Props extends RouteComponentProps<any> { | ||||||
| @ -37,6 +38,7 @@ export class AppLayout extends React.Component<Props, State> { | |||||||
|               <Route exact={true} path={`${this.props.match.url}probes`} component={ProbeList}/> |               <Route exact={true} path={`${this.props.match.url}probes`} component={ProbeList}/> | ||||||
|               <Route exact={true} path={`${this.props.match.url}targets`} component={TargetList}/> |               <Route exact={true} path={`${this.props.match.url}targets`} component={TargetList}/> | ||||||
|               <Route exact={true} path={`${this.props.match.url}sensors`} component={SensorList}/> |               <Route exact={true} path={`${this.props.match.url}sensors`} component={SensorList}/> | ||||||
|  |               <Route exact={true} path={`${this.props.match.url}noauth_probes`} component={NoauthList}/> | ||||||
|               <Redirect to='/error/404' /> |               <Redirect to='/error/404' /> | ||||||
|             </Switch> |             </Switch> | ||||||
|           <Footer /> |           <Footer /> | ||||||
|  | |||||||
| @ -52,6 +52,7 @@ class LeftMenu extends React.Component<Props, State> { | |||||||
|           </Menu.Header> |           </Menu.Header> | ||||||
|           <Menu.Menu> |           <Menu.Menu> | ||||||
|             <Menu.Item onClick={(e) => this.props.onChangeUrl('/probes')} style={{ 'marginLeft': '30px' }}>Probe</Menu.Item> |             <Menu.Item onClick={(e) => this.props.onChangeUrl('/probes')} style={{ 'marginLeft': '30px' }}>Probe</Menu.Item> | ||||||
|  |             <Menu.Item onClick={(e) => this.props.onChangeUrl('/noauth_probes')} style={{ 'marginLeft': '30px' }}>NoauthProbe</Menu.Item> | ||||||
|             <Menu.Item href='#/' style={{ 'marginLeft': '30px' }}>Sensors</Menu.Item> |             <Menu.Item href='#/' style={{ 'marginLeft': '30px' }}>Sensors</Menu.Item> | ||||||
|           </Menu.Menu> |           </Menu.Menu> | ||||||
|         </Menu.Item> |         </Menu.Item> | ||||||
|  | |||||||
| @ -1,5 +1,6 @@ | |||||||
| import * as React from 'react'; | import * as React from 'react'; | ||||||
| import { Table, | import { | ||||||
|  |   Table, | ||||||
|   Checkbox, |   Checkbox, | ||||||
|   Button, |   Button, | ||||||
|   Header, |   Header, | ||||||
| @ -18,7 +19,7 @@ export interface DispatchProps { | |||||||
| export type Props = StateProps & DispatchProps; | export type Props = StateProps & DispatchProps; | ||||||
| 
 | 
 | ||||||
| export interface State { | export interface State { | ||||||
|     selected: NoAuthProbe[]; |   selected: NoAuthProbe[]; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| export class NoauthProbeList extends React.Component<any, any> { | export class NoauthProbeList extends React.Component<any, any> { | ||||||
| @ -100,7 +101,7 @@ export class NoauthProbeList extends React.Component<any, any> { | |||||||
|     alert(this.state.selected); |     alert(this.state.selected); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   public handleRowActive(id: string):boolean { |   public handleRowActive(id: string): boolean { | ||||||
|     if (this.state.selected.indexOf(id) === -1) { |     if (this.state.selected.indexOf(id) === -1) { | ||||||
|       return false; |       return false; | ||||||
|     } |     } | ||||||
| @ -111,7 +112,6 @@ export class NoauthProbeList extends React.Component<any, any> { | |||||||
| 
 | 
 | ||||||
|     return ( |     return ( | ||||||
|       <Container fluid> |       <Container fluid> | ||||||
|         <Header as='h3' dividing>Noauth Probes</Header> |  | ||||||
|         <Table celled selectable striped> |         <Table celled selectable striped> | ||||||
|           <Table.Header> |           <Table.Header> | ||||||
|             <Table.Row> |             <Table.Row> | ||||||
| @ -140,10 +140,16 @@ export class NoauthProbeList extends React.Component<any, any> { | |||||||
|               </Table.Row> |               </Table.Row> | ||||||
|             ))} |             ))} | ||||||
|           </Table.Body> |           </Table.Body> | ||||||
|  |           <Table.Footer> | ||||||
|  |             <Table.Row> | ||||||
|  |               <Table.HeaderCell colSpan='7'> | ||||||
|  |                 <Button primary floated={'right'} onClick={this.handleAccept.bind(this)}>Accept</Button> | ||||||
|  |                 <Button floated={'right'} onClick={this.handleDeny.bind(this)}>Deny</Button> | ||||||
|  |               </Table.HeaderCell> | ||||||
|  |             </Table.Row> | ||||||
|  |           </Table.Footer> | ||||||
|         </Table> |         </Table> | ||||||
| 
 | 
 | ||||||
|         <Button primary floated={'right'} onClick={this.handleAccept.bind(this)}>Accept</Button> |  | ||||||
|         <Button floated={'right'} onClick={this.handleDeny.bind(this)}>Deny</Button> |  | ||||||
|       </Container> |       </Container> | ||||||
|     ); |     ); | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user