diff --git a/src/ts/@overflow/infra/react/InfraMap.tsx b/src/ts/@overflow/infra/react/InfraMap.tsx index 6b3306c..905ba7c 100644 --- a/src/ts/@overflow/infra/react/InfraMap.tsx +++ b/src/ts/@overflow/infra/react/InfraMap.tsx @@ -3,7 +3,7 @@ import { InfraMap, StateProps as StateProps, DispatchProps as DispatchProps, -} from './components/InfraMap'; +} from './components/infra_map'; import { push as routerPush } from 'react-router-redux'; import * as asyncRequestActions from '@overflow/commons/redux/action/asyncRequest'; diff --git a/src/ts/@overflow/infra/react/components/InfraMap.tsx b/src/ts/@overflow/infra/react/components/InfraMap.tsx deleted file mode 100644 index 8db724e..0000000 --- a/src/ts/@overflow/infra/react/components/InfraMap.tsx +++ /dev/null @@ -1,72 +0,0 @@ -import * as React from 'react'; -import { Table, Header, Container, Form, Checkbox, Button, Rating } from 'semantic-ui-react'; -import { ListContainer } from '@overflow/commons/react/component/ListContainer'; - -export interface StateProps { -} - -export interface DispatchProps { -} - -export type Props = StateProps & DispatchProps; - -export interface State { -} - -export class InfraMap extends React.Component { - - constructor(props: Props, context: State) { - super(props, context); - - this.state = { - selected: null, - }; - } - - - public render(): JSX.Element { - return ( - - - - Zone : 192.168.1.0/24 - - - - - -
Windows / Probe
-
- - Creatine supplementation is the reference compound for increasing muscular creatine levels; there is - variability in this increase, however, with some nonresponders. - -
- - -
Windows
-
- - Creatine is the reference compound for power improvement, with numbers from one meta-analysis to assess - potency - -
- - -
Linux
-
- - Creatine is the reference compound for power improvement, with numbers from one meta-analysis to assess - potency - -
-
-
- ); - } - -} - - - - diff --git a/src/ts/@overflow/infra/react/components/infra_map.tsx b/src/ts/@overflow/infra/react/components/infra_map.tsx new file mode 100644 index 0000000..f1c2b5d --- /dev/null +++ b/src/ts/@overflow/infra/react/components/infra_map.tsx @@ -0,0 +1,51 @@ +import * as React from 'react'; +import { Table, Header, Container, Form, Checkbox, Button, Rating, +Tab, + } from 'semantic-ui-react'; +import { ListContainer } from '@overflow/commons/react/component/ListContainer'; +import { InfraMapZoneTable } from './infra_map_zone_table'; +import { InfraMapHostTable } from './infra_map_host_table'; +import { SensorConfig} from '@overflow/sensor/react/components/sensor_config'; + +export interface StateProps { +} + +export interface DispatchProps { +} + +export type Props = StateProps & DispatchProps; + +export interface State { +} + +export class InfraMap extends React.Component { + + private panes: any = [ + { menuItem: 'sc Test', render: () => }, + { menuItem: 'Zone', render: () => }, + { menuItem: 'Host', render: () => }, + ]; + + constructor(props: Props, context: State) { + super(props, context); + + this.state = { + selected: null, + }; + + } + + + public render(): JSX.Element { + return ( + + + + ); + } + +} + + + + diff --git a/src/ts/@overflow/infra/react/components/infra_map_host_table.tsx b/src/ts/@overflow/infra/react/components/infra_map_host_table.tsx new file mode 100644 index 0000000..49062f3 --- /dev/null +++ b/src/ts/@overflow/infra/react/components/infra_map_host_table.tsx @@ -0,0 +1,48 @@ +import * as React from 'react'; +import { + Table, Header, Container, Form, Checkbox, Button, Rating, + List, Icon, +} from 'semantic-ui-react'; +import { ListContainer } from '@overflow/commons/react/component/ListContainer'; +import {InfraMapHostTableRow} from './infra_map_host_table_row'; + + +export interface StateProps { +} + +export interface DispatchProps { +} + +export type Props = StateProps & DispatchProps; + +export interface State { +} + +export class InfraMapHostTable extends React.Component { + + constructor(props: Props, context: State) { + super(props, context); + + this.state = { + selected: null, + }; + } + + + public render(): JSX.Element { + return ( + + + + Host : 192.168.1.106 + + + + + + +
+ ); + } + +} diff --git a/src/ts/@overflow/infra/react/components/infra_map_host_table_row.tsx b/src/ts/@overflow/infra/react/components/infra_map_host_table_row.tsx new file mode 100644 index 0000000..c5c3f09 --- /dev/null +++ b/src/ts/@overflow/infra/react/components/infra_map_host_table_row.tsx @@ -0,0 +1,58 @@ +import * as React from 'react'; +import { + Table, Header, Container, Form, Checkbox, Button, Rating, + List, Icon, +} from 'semantic-ui-react'; + + +export interface StateProps { +} + +export interface DispatchProps { +} + +export type Props = StateProps & DispatchProps; + +export interface State { +} + +export class InfraMapHostTableRow extends React.Component { + + constructor(props: Props, context: State) { + super(props, context); + + this.state = { + selected: null, + }; + } + + + public render(): JSX.Element { + return ( + + +
MySQL
+
+ + + Port : 3306 | TCP | TLS + Sensors(2) : + + + Health Crawler + + + MySQL + + + + + + + + +
+ ); + } + +} diff --git a/src/ts/@overflow/infra/react/components/infra_map_zone_table.tsx b/src/ts/@overflow/infra/react/components/infra_map_zone_table.tsx new file mode 100644 index 0000000..6a9f664 --- /dev/null +++ b/src/ts/@overflow/infra/react/components/infra_map_zone_table.tsx @@ -0,0 +1,48 @@ +import * as React from 'react'; +import { + Table, Header, Container, Form, Checkbox, Button, Rating, + List, Icon, +} from 'semantic-ui-react'; +import { ListContainer } from '@overflow/commons/react/component/ListContainer'; +import {InfraMapZoneTableRow} from './infra_map_zone_table_row'; + + +export interface StateProps { +} + +export interface DispatchProps { +} + +export type Props = StateProps & DispatchProps; + +export interface State { +} + +export class InfraMapZoneTable extends React.Component { + + constructor(props: Props, context: State) { + super(props, context); + + this.state = { + selected: null, + }; + } + + + public render(): JSX.Element { + return ( + + + + Zone : 192.168.1.0/24 + + + + + + +
+ ); + } + +} diff --git a/src/ts/@overflow/infra/react/components/infra_map_zone_table_row.tsx b/src/ts/@overflow/infra/react/components/infra_map_zone_table_row.tsx new file mode 100644 index 0000000..9dc0613 --- /dev/null +++ b/src/ts/@overflow/infra/react/components/infra_map_zone_table_row.tsx @@ -0,0 +1,65 @@ +import * as React from 'react'; +import { + Table, Header, Container, Form, Checkbox, Button, Rating, + List, Icon, +} from 'semantic-ui-react'; + + +export interface StateProps { +} + +export interface DispatchProps { +} + +export type Props = StateProps & DispatchProps; + +export interface State { +} + +export class InfraMapZoneTableRow extends React.Component { + + constructor(props: Props, context: State) { + super(props, context); + + this.state = { + selected: null, + }; + } + + + public render(): JSX.Element { + return ( + + +
Windows / Probe
+
+ + + Host : 192.168.1.106 + Service : + + FTP + MySQL + SMB + + + Sensors(2) : + + + FTP + + + MySQL + + + + + + + + +
+ ); + } + +} diff --git a/src/ts/@overflow/sensor/react/components/sensor_config.tsx b/src/ts/@overflow/sensor/react/components/sensor_config.tsx new file mode 100644 index 0000000..0b0e7fa --- /dev/null +++ b/src/ts/@overflow/sensor/react/components/sensor_config.tsx @@ -0,0 +1,47 @@ +import * as React from 'react'; +import { + Table, Header, Container, Form, Checkbox, Button, Rating, + List, Icon, +} from 'semantic-ui-react'; +import {SensorConfigTarget} from './sensor_config_target'; +import {SensorConfigCrawler} from './sensor_config_crawler'; +import {SensorConfigAuthCrawler} from './sensor_config_auth_crawler'; + +export interface StateProps { +} + +export interface DispatchProps { +} + +export type Props = StateProps & DispatchProps; + +export interface State { +} + +export class SensorConfig extends React.Component { + + constructor(props: Props, context: State) { + super(props, context); + + this.state = { + selected: null, + }; + } + + + public render(): JSX.Element { + return ( + + Target Select + + Crawler Select + + Auth Crawler + + {/* */} + {/* */} + + ); + } + +} diff --git a/src/ts/@overflow/sensor/react/components/sensor_config_auth_crawler.tsx b/src/ts/@overflow/sensor/react/components/sensor_config_auth_crawler.tsx new file mode 100644 index 0000000..077f696 --- /dev/null +++ b/src/ts/@overflow/sensor/react/components/sensor_config_auth_crawler.tsx @@ -0,0 +1,37 @@ +import * as React from 'react'; +import { + Table, Header, Container, Form, Checkbox, Button, Rating, + List, Icon, Radio, CheckboxProps, +} from 'semantic-ui-react'; + + + +export interface StateProps { +} + +export interface DispatchProps { +} + +export type Props = StateProps & DispatchProps; + +export interface State { +} + +export class SensorConfigAuthCrawler extends React.Component { + + constructor(props: Props, context: State) { + super(props, context); + + this.state = { + }; + } + + + public render(): JSX.Element { + return ( + + + ); + } + +} diff --git a/src/ts/@overflow/sensor/react/components/sensor_config_crawler.tsx b/src/ts/@overflow/sensor/react/components/sensor_config_crawler.tsx new file mode 100644 index 0000000..3bee240 --- /dev/null +++ b/src/ts/@overflow/sensor/react/components/sensor_config_crawler.tsx @@ -0,0 +1,66 @@ +import * as React from 'react'; +import { + Table, Header, Container, Form, Checkbox, Button, Rating, + List, Icon, Radio, CheckboxProps, +} from 'semantic-ui-react'; + + + +export interface StateProps { +} + +export interface DispatchProps { +} + +export type Props = StateProps & DispatchProps; + +export interface State { + selectedValue: number|string; +} + +export class SensorConfigCrawler extends React.Component { + + constructor(props: Props, context: State) { + super(props, context); + + this.state = { + selectedValue: null, + }; + } + + public handleChange = (event: React.FormEvent, data: CheckboxProps) => { + this.setState({ selectedValue: data.value }); + } + + + public render(): JSX.Element { + return ( + +
+ + Selected Crawler : {this.state.selectedValue} + + + + + + + +
+
+ ); + } + +} diff --git a/src/ts/@overflow/sensor/react/components/sensor_config_target.tsx b/src/ts/@overflow/sensor/react/components/sensor_config_target.tsx new file mode 100644 index 0000000..a14c36b --- /dev/null +++ b/src/ts/@overflow/sensor/react/components/sensor_config_target.tsx @@ -0,0 +1,61 @@ +import * as React from 'react'; +import { + Table, Header, Container, Form, Checkbox, Button, Rating, + List, Icon, +} from 'semantic-ui-react'; +import { ListContainer } from '@overflow/commons/react/component/ListContainer'; + + +export interface StateProps { +} + +export interface DispatchProps { +} + +export type Props = StateProps & DispatchProps; + +export interface State { +} + +export class SensorConfigTarget extends React.Component { + + constructor(props: Props, context: State) { + super(props, context); + + this.state = { + selected: null, + }; + } + + + public render(): JSX.Element { + return ( + + + + + + + Host + + + + + + + + + + + + + + + + + + ); + } + +}