From b12aa729094c0c955248f9126b4e5180d6c45496 Mon Sep 17 00:00:00 2001 From: insanity Date: Mon, 24 Jul 2017 17:04:39 +0900 Subject: [PATCH] temporary routing --- src/ts/@overflow/app/router/index.tsx | 4 +- src/ts/@overflow/app/views/App.tsx | 3 +- .../@overflow/app/views/layout/AppLayout.tsx | 4 ++ src/ts/@overflow/app/views/layout/Header.tsx | 2 - .../@overflow/app/views/layout/LeftMenu.tsx | 2 +- .../app/views/layout/ProbeDetailLayout.tsx | 56 +++++++++++++++++++ .../@overflow/app/views/layout/TitleBar.tsx | 39 ++++++------- .../app/views/monitoring/probe/History.tsx | 25 +++++++++ src/ts/@overflow/probe/react/ProbeList.tsx | 2 +- .../probe/react/components/ProbeList.tsx | 4 +- 10 files changed, 113 insertions(+), 28 deletions(-) create mode 100644 src/ts/@overflow/app/views/layout/ProbeDetailLayout.tsx create mode 100644 src/ts/@overflow/app/views/monitoring/probe/History.tsx diff --git a/src/ts/@overflow/app/router/index.tsx b/src/ts/@overflow/app/router/index.tsx index f0e31f0..e48605a 100644 --- a/src/ts/@overflow/app/router/index.tsx +++ b/src/ts/@overflow/app/router/index.tsx @@ -55,11 +55,11 @@ const routes = ( - + - + diff --git a/src/ts/@overflow/app/views/App.tsx b/src/ts/@overflow/app/views/App.tsx index 6805834..f7ec3e9 100644 --- a/src/ts/@overflow/app/views/App.tsx +++ b/src/ts/@overflow/app/views/App.tsx @@ -2,6 +2,7 @@ import * as React from 'react'; import { Route, Switch } from 'react-router-dom'; import AccountLayout from './layout/AccountLayout'; +import ProbeDetailLayout from './layout/ProbeDetailLayout'; import AppLayout from './layout/AppLayout'; import ErrorLayout from './layout/ErrorLayout'; @@ -24,8 +25,8 @@ class App extends React.Component { return ( - + ); diff --git a/src/ts/@overflow/app/views/layout/AppLayout.tsx b/src/ts/@overflow/app/views/layout/AppLayout.tsx index 8059018..1dc0363 100644 --- a/src/ts/@overflow/app/views/layout/AppLayout.tsx +++ b/src/ts/@overflow/app/views/layout/AppLayout.tsx @@ -3,9 +3,11 @@ import { Redirect, RouteComponentProps, RouteProps, Route, Switch } from 'react- import { Container, Menu, Sidebar, Segment, Icon, Breadcrumb, Grid, Dropdown } from 'semantic-ui-react'; import { Header } from './Header'; import { Footer } from './Footer'; +import { TitleBar } from './TitleBar'; import LeftMenu from './LeftMenu'; import Home from '../Home'; +import ProbeList from '../../views/monitoring/probe/List'; export interface Props extends RouteComponentProps { } @@ -34,8 +36,10 @@ export class AppLayout extends React.Component {
+ +