From 1c13afd5fe8ca1ed62a822ad3ed7a2f6f3706d4c Mon Sep 17 00:00:00 2001 From: insanity Date: Mon, 10 Jul 2017 19:46:26 +0900 Subject: [PATCH] . --- src/ts/Routes.tsx | 85 ++++--------------- .../containers/test/SensorConfiguration.tsx | 10 ++- 2 files changed, 24 insertions(+), 71 deletions(-) diff --git a/src/ts/Routes.tsx b/src/ts/Routes.tsx index 9194579..cb1ed86 100644 --- a/src/ts/Routes.tsx +++ b/src/ts/Routes.tsx @@ -2,85 +2,36 @@ import * as React from 'react'; import { Switch } from 'react-router'; import { Link, Route } from 'react-router-dom'; -import { Main } from './containers/Main'; -import { Login as MemberLogin } from './containers/member/Login'; -import { Regist as MemberRegist } from './containers/member/Regist'; -import NotFound from './NotFound'; +// import { DropDownTest } from './containers/test/Sementic001'; +// import { Page8 } from './containers/test/Page8'; +// import { SignIn } from './containers/test/Page9'; +// import { PWChange } from './containers/test/Page11'; +// import { ProbeDown } from './containers/test/Page17'; -import { AgentDetail } from './containers/agent/AgentDetail'; -import { Agents } from './containers/agent/Agents'; -import { WaitForAuth } from './containers/agent/WaitForAuth'; -import { WaitForAuthDetail } from './containers/agent/WaitForAuthDetail'; -import { SensorConfig } from './containers/config/SensorConfig'; -import { MemberEmailConfirm } from './containers/member/EmailConfirm'; -import { MemberRegistResult } from './containers/member/RegistResult'; -import { ProveDownload } from './containers/prove/Download'; +import { Components } from './containers/test/Components'; -import { TargetList } from './containers/target/TargetList'; -import { TargetDetail } from './containers/target/TargetDetail'; -import { DiscoveryResult } from './containers/discovery/DiscoveryResult'; - -import {DropDownTest} from './containers/test/Sementic001'; -import {Page8} from './containers/test/Page8'; -import {SignIn} from './containers/test/Page9'; -import {PWChange} from './containers/test/Page11'; -import {ProbeDown} from './containers/test/Page17'; export class Routes extends React.Component { render() { return (

React Redux sample

-
  • Home
  • -
  • Member Regist
  • -
  • Member Login
  • - -
  • MemberRegistResult
  • -
  • MemberEmailConfirm
  • -
  • WaitForAuth
  • -
  • WaitForAuthDetail
  • - -
  • SensorConfig
  • -
  • ProveDownload
  • -
  • Agents
  • -
  • AgentDetail
  • -
  • TargetList
  • -
  • TargetDetail
  • -
  • DiscoveryResult
  • - -
  • Test
  • -
  • Test2
  • -
  • SignIn
  • -
  • PWChange
  • -
  • ProbeDown
  • - + {/*
  • Test
  • +
  • Test2
  • +
  • SignIn
  • +
  • PWChange
  • +
  • ProbeDown
  • */} +
  • Insanity
  • - - - - - + {/* + + + + */} - - - - - - - - - - - - - - - - - - +
    diff --git a/src/ts/containers/test/SensorConfiguration.tsx b/src/ts/containers/test/SensorConfiguration.tsx index 731bb33..9ad0eb5 100644 --- a/src/ts/containers/test/SensorConfiguration.tsx +++ b/src/ts/containers/test/SensorConfiguration.tsx @@ -120,7 +120,7 @@ export class CrawlerSelector extends React.Component { componentWillMount() { //todo. getting MetaCrawler list - this.crawlers = [ + let crawlers = [ { "id": "1", "name": "WMI", @@ -140,7 +140,7 @@ export class CrawlerSelector extends React.Component { let crawlerOptions = []; let crawler: any; - for (crawler of this.crawlers) { + for (crawler of crawlers) { var option = { key: crawler.id, text: crawler.name, @@ -150,6 +150,8 @@ export class CrawlerSelector extends React.Component { crawlerOptions.push(option); } + this.crawlers = crawlerOptions; + } handleCrawlerSelection(e: any, data: any) { @@ -176,8 +178,8 @@ export class CrawlerSelector extends React.Component { Choose a Crawler type.

    - {/**/} + {this.showCrawlerAuthInfo()}