diff --git a/src/ts/@overflow/temp/react/components/SensorConfiguration.tsx b/src/ts/@overflow/temp/react/components/SensorConfiguration.tsx index a4b81df..20e21fd 100644 --- a/src/ts/@overflow/temp/react/components/SensorConfiguration.tsx +++ b/src/ts/@overflow/temp/react/components/SensorConfiguration.tsx @@ -2,8 +2,17 @@ import * as React from 'react'; import { Icon, Step, Button, Table, Radio, Form, Container, Checkbox } from 'semantic-ui-react'; import { Grid, Image, Label, Segment, Dropdown, Input, List, Accordion, Loader } from 'semantic-ui-react'; +import MetaCrawler from '@overflow/meta/api/model/MetaCrawler'; -export class SensorConfiguration extends React.Component { +export interface SensorConfigurationProps { + +} + +export interface SensorConfigurationState { + +} + +export class SensorConfiguration extends React.Component { constructor(props: any, context: any) { super(props, context); @@ -22,7 +31,15 @@ export class SensorConfiguration extends React.Component { } -export class ConfigStepper extends React.Component { +export interface ConfigStepperProps { + steps: Array; +} + +export interface ConfigStepperState { + currentStep: number; +} + +export class ConfigStepper extends React.Component { constructor(props: any, context: any) { super(props, context); @@ -125,8 +142,17 @@ export class ConfigStepper extends React.Component { } } +export interface CrawlerSelectorProps { -export class CrawlerSelector extends React.Component { +} + +export interface CrawlerSelectorState { + isInstalling: boolean; + selected: MetaCrawler; + +} + +export class CrawlerSelector extends React.Component { private crawlers: object[]; @@ -194,7 +220,7 @@ export class CrawlerSelector extends React.Component { this.setState({ isInstalling: false, }); - }, 1500); + }, 1500); } public render(): JSX.Element { @@ -226,7 +252,15 @@ export class CrawlerSelector extends React.Component { } } -export class CrawlerAuthInputs extends React.Component { +export interface CrawlerAuthInputsProps { + crawler?: MetaCrawler; +} + +export interface CrawlerAuthInputsState { + isVerifying: boolean; +} + +export class CrawlerAuthInputs extends React.Component { private data: object[]; constructor(props: any, context: any) { @@ -328,9 +362,15 @@ export class CrawlerAuthInputs extends React.Component { } } +export interface SensorItemSelectorProps { +} -export class SensorItemSelector extends React.Component { +export interface SensorItemSelectorState { + +} + +export class SensorItemSelector extends React.Component { constructor(props: any, context: any) { super(props, context); @@ -365,12 +405,20 @@ export class SensorItemSelector extends React.Component { } } -export class ETCSelector extends React.Component { +export interface ETCSelectorProps { + +} + +export interface ETCSelectorState { + interval: string; +} + +export class ETCSelector extends React.Component { constructor(props: any, context: any) { super(props, context); - this.state = { - interval: 5, - }; + // this.state = { + // interval: 5, + // }; } public handleIntervalChange(e: any, { value }: any): void { this.setState({ interval: value }); diff --git a/src/ts/@overflow/temp/react/components/SensorDetails.tsx b/src/ts/@overflow/temp/react/components/SensorDetails.tsx index 2924a4c..fe6689b 100644 --- a/src/ts/@overflow/temp/react/components/SensorDetails.tsx +++ b/src/ts/@overflow/temp/react/components/SensorDetails.tsx @@ -2,8 +2,20 @@ import * as React from 'react'; import { Button, Table, Label, Segment, Header, Container } from 'semantic-ui-react'; import { DetailContainer } from './commons/DetailContainer'; import { SensorItems } from './SensorItems'; +import Sensor from '@overflow/sensor/api/model/Sensor'; +import Probe from '@overflow/probe/api/model/Probe'; -export class SensorDetails extends React.Component { +export interface SensorDetailsProps { + sensor?: Sensor; + probe?: Probe; +} + +export interface SensorDetailsState { + +} + + +export class SensorDetails extends React.Component { constructor(props: any, context: any) { super(props, context); @@ -27,7 +39,17 @@ export class SensorDetails extends React.Component { } } -export class SensorBasicInfo extends React.Component { +export interface SensorBasicInfoProps { + sensor?: Sensor; + probe?: Probe; + onBack?(): void; +} + +export interface SensorBasicInfoState { + +} + +export class SensorBasicInfo extends React.Component { constructor(props: any, context: any) { super(props, context); @@ -48,7 +70,7 @@ export class SensorBasicInfo extends React.Component { public showStartStopBtn(): JSX.Element { - if (this.props.probe.metaProbeStatus.name === 'STARTED') { + if (this.props.probe.status.name === 'STARTED') { return