sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 1 | /*- |
| 2 | * ============LICENSE_START======================================================= |
| 3 | * ONAP CLAMP |
| 4 | * ================================================================================ |
| 5 | * Copyright (C) 2019 AT&T Intellectual Property. All rights |
| 6 | * reserved. |
| 7 | * ================================================================================ |
| 8 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | * you may not use this file except in compliance with the License. |
| 10 | * You may obtain a copy of the License at |
| 11 | * |
| 12 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | * |
| 14 | * Unless required by applicable law or agreed to in writing, software |
| 15 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | * See the License for the specific language governing permissions and |
| 18 | * limitations under the License. |
| 19 | * ============LICENSE_END============================================ |
| 20 | * =================================================================== |
| 21 | * |
| 22 | */ |
| 23 | |
| 24 | import React from 'react'; |
| 25 | import styled from 'styled-components'; |
sebdet | e44fdb1 | 2019-07-12 12:25:56 +0200 | [diff] [blame] | 26 | import MenuBar from './components/menu/MenuBar'; |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 27 | import Navbar from 'react-bootstrap/Navbar'; |
| 28 | import logo from './logo.png'; |
sebdet | e44fdb1 | 2019-07-12 12:25:56 +0200 | [diff] [blame] | 29 | import { GlobalClampStyle } from './theme/globalStyle.js'; |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 30 | |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 31 | import LoopSvg from './components/loop_viewer/svg/LoopSvg'; |
| 32 | import LoopLogs from './components/loop_viewer/logs/LoopLogs'; |
| 33 | import LoopStatus from './components/loop_viewer/status/LoopStatus'; |
sebdet | e44fdb1 | 2019-07-12 12:25:56 +0200 | [diff] [blame] | 34 | import UserService from './api/UserService'; |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 35 | import LoopCache from './api/LoopCache'; |
xuegao | ac42c4b | 2019-10-09 16:12:37 +0200 | [diff] [blame] | 36 | import LoopActionService from './api/LoopActionService'; |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 37 | |
xuegao | 691e2b7 | 2019-08-16 11:07:24 +0200 | [diff] [blame] | 38 | import { Route } from 'react-router-dom' |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 39 | import OpenLoopModal from './components/dialogs/OpenLoop/OpenLoopModal'; |
| 40 | import OperationalPolicyModal from './components/dialogs/OperationalPolicy/OperationalPolicyModal'; |
| 41 | import ConfigurationPolicyModal from './components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal'; |
xuegao | e52d572 | 2019-07-25 15:43:06 +0200 | [diff] [blame] | 42 | import LoopProperties from './components/dialogs/LoopProperties'; |
| 43 | import UserInfo from './components/dialogs/UserInfo'; |
sebdet | 83ce076 | 2019-08-02 14:53:59 +0200 | [diff] [blame] | 44 | import LoopService from './api/LoopService'; |
sebdet | 81f5cab | 2019-11-06 11:40:46 +0100 | [diff] [blame^] | 45 | import ViewToscaModal from './components/dialogs/ViewToscaModal/ViewToscaModal'; |
sebdet | f9e2cee | 2019-08-09 18:36:09 +0200 | [diff] [blame] | 46 | import PerformAction from './components/dialogs/PerformActions'; |
| 47 | import RefreshStatus from './components/dialogs/RefreshStatus'; |
| 48 | import DeployLoop from './components/dialogs/DeployLoop'; |
xuegao | 0efeb6b | 2019-10-07 14:36:34 +0200 | [diff] [blame] | 49 | import Alert from 'react-bootstrap/Alert'; |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 50 | |
sebdet | d0d6563 | 2019-08-26 05:47:01 -0700 | [diff] [blame] | 51 | import { Link } from 'react-router-dom'; |
| 52 | |
| 53 | const StyledMainDiv = styled.div` |
| 54 | background-color: ${props => props.theme.backgroundColor}; |
| 55 | ` |
| 56 | |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 57 | const ProjectNameStyled = styled.a` |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 58 | vertical-align: middle; |
| 59 | padding-left: 30px; |
sebdet | d0d6563 | 2019-08-26 05:47:01 -0700 | [diff] [blame] | 60 | font-size: 36px; |
| 61 | font-weight: bold; |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 62 | ` |
sebdet | d0d6563 | 2019-08-26 05:47:01 -0700 | [diff] [blame] | 63 | |
| 64 | const StyledRouterLink = styled(Link)` |
| 65 | color: ${props => props.theme.menuFontColor}; |
| 66 | background-color: ${props => props.theme.backgroundColor}; |
| 67 | ` |
| 68 | |
| 69 | const StyledLoginInfo = styled.a` |
| 70 | color: ${props => props.theme.menuFontColor}; |
| 71 | background-color: ${props => props.theme.backgroundColor}; |
| 72 | ` |
| 73 | |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 74 | const LoopViewDivStyled = styled.div` |
sebdet | 190227a | 2019-07-19 16:51:19 +0200 | [diff] [blame] | 75 | height: 100%; |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 76 | overflow: hidden; |
| 77 | margin-left: 10px; |
| 78 | margin-right: 10px; |
| 79 | margin-bottom: 10px; |
| 80 | color: ${props => props.theme.loopViewerFontColor}; |
| 81 | background-color: ${props => props.theme.loopViewerBackgroundColor}; |
| 82 | border: 1px solid transparent; |
| 83 | border-color: ${props => props.theme.loopViewerHeaderBackgroundColor}; |
| 84 | ` |
| 85 | |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 86 | const LoopViewHeaderDivStyled = styled.div` |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 87 | background-color: ${props => props.theme.loopViewerHeaderBackgroundColor}; |
| 88 | padding: 10px 10px; |
| 89 | color: ${props => props.theme.loopViewerHeaderFontColor}; |
| 90 | ` |
| 91 | |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 92 | const LoopViewBodyDivStyled = styled.div` |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 93 | background-color: ${props => (props.theme.loopViewerBackgroundColor)}; |
| 94 | padding: 10px 10px; |
| 95 | color: ${props => (props.theme.loopViewerHeaderFontColor)}; |
| 96 | height: 95%; |
| 97 | ` |
| 98 | |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 99 | export default class LoopUI extends React.Component { |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 100 | |
sebdet | 2dacb9b | 2019-07-17 13:48:44 +0200 | [diff] [blame] | 101 | static defaultLoopName="Empty (NO loop loaded yet)"; |
| 102 | |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 103 | state = { |
| 104 | userName: null, |
sebdet | 2dacb9b | 2019-07-17 13:48:44 +0200 | [diff] [blame] | 105 | loopName: LoopUI.defaultLoopName, |
xuegao | 0efeb6b | 2019-10-07 14:36:34 +0200 | [diff] [blame] | 106 | loopCache: new LoopCache({}), |
| 107 | showAlert: false |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 108 | }; |
xuegao | 7c7323d | 2019-07-09 11:52:20 +0200 | [diff] [blame] | 109 | |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 110 | constructor() { |
| 111 | super(); |
| 112 | this.getUser = this.getUser.bind(this); |
sebdet | 687b8de | 2019-08-26 14:29:11 -0700 | [diff] [blame] | 113 | this.logout = this.logout.bind(this); |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 114 | this.updateLoopCache = this.updateLoopCache.bind(this); |
sebdet | 83ce076 | 2019-08-02 14:53:59 +0200 | [diff] [blame] | 115 | this.loadLoop = this.loadLoop.bind(this); |
xuegao | 691e2b7 | 2019-08-16 11:07:24 +0200 | [diff] [blame] | 116 | this.closeLoop = this.closeLoop.bind(this); |
xuegao | 0efeb6b | 2019-10-07 14:36:34 +0200 | [diff] [blame] | 117 | this.showAlert = this.showAlert.bind(this); |
| 118 | this.disableAlert = this.disableAlert.bind(this); |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 119 | } |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 120 | |
sebdet | 2dacb9b | 2019-07-17 13:48:44 +0200 | [diff] [blame] | 121 | componentWillMount() { |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 122 | this.getUser(); |
| 123 | } |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 124 | |
| 125 | getUser() { |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 126 | UserService.login().then(user => { |
| 127 | this.setState({ userName: user }) |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 128 | }); |
| 129 | } |
sebdet | 687b8de | 2019-08-26 14:29:11 -0700 | [diff] [blame] | 130 | |
| 131 | logout() { |
| 132 | UserService.logout().then(user => { |
| 133 | this.setState({ userName: user }); |
| 134 | window.location.reload(); |
| 135 | }); |
| 136 | |
| 137 | } |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 138 | |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 139 | renderMenuNavBar() { |
| 140 | return ( |
xuegao | 691e2b7 | 2019-08-16 11:07:24 +0200 | [diff] [blame] | 141 | <MenuBar loopName={this.state.loopName}/> |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 142 | ); |
| 143 | } |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 144 | |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 145 | renderUserLoggedNavBar() { |
| 146 | return ( |
| 147 | <Navbar.Text> |
sebdet | d0d6563 | 2019-08-26 05:47:01 -0700 | [diff] [blame] | 148 | <StyledLoginInfo>Signed in as: </StyledLoginInfo> |
| 149 | <StyledRouterLink to="/userInfo">{this.state.userName}</StyledRouterLink> |
| 150 | <StyledRouterLink to="/logout/"> (logout)</StyledRouterLink> |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 151 | </Navbar.Text> |
| 152 | ); |
| 153 | } |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 154 | |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 155 | renderLogoNavBar() { |
| 156 | return ( |
| 157 | <Navbar.Brand> |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 158 | <img height="50px" width="234px" src={logo} alt="" /> |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 159 | <ProjectNameStyled>CLAMP</ProjectNameStyled> |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 160 | </Navbar.Brand> |
| 161 | ); |
| 162 | } |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 163 | |
xuegao | 0efeb6b | 2019-10-07 14:36:34 +0200 | [diff] [blame] | 164 | renderAlertBar() { |
| 165 | return ( |
| 166 | <Alert variant="danger" show={this.state.showAlert} onClose={this.disableAlert} dismissible> |
| 167 | {this.state.showMessage} |
| 168 | </Alert> |
| 169 | ); |
| 170 | } |
| 171 | |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 172 | renderNavBar() { |
| 173 | return ( |
sebdet | d0d6563 | 2019-08-26 05:47:01 -0700 | [diff] [blame] | 174 | <Navbar > |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 175 | {this.renderLogoNavBar()} |
sebdet | d0d6563 | 2019-08-26 05:47:01 -0700 | [diff] [blame] | 176 | <Navbar.Toggle aria-controls="responsive-navbar-nav" /> |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 177 | {this.renderMenuNavBar()} |
| 178 | {this.renderUserLoggedNavBar()} |
| 179 | </Navbar> |
| 180 | ); |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 181 | } |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 182 | |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 183 | renderLoopViewHeader() { |
| 184 | return ( |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 185 | <LoopViewHeaderDivStyled> |
sebdet | 190227a | 2019-07-19 16:51:19 +0200 | [diff] [blame] | 186 | Loop Viewer - {this.state.loopName} |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 187 | </LoopViewHeaderDivStyled> |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 188 | ); |
| 189 | } |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 190 | |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 191 | renderLoopViewBody() { |
| 192 | return ( |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 193 | <LoopViewBodyDivStyled> |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 194 | <LoopSvg loopCache={this.state.loopCache} /> |
sebdet | 190227a | 2019-07-19 16:51:19 +0200 | [diff] [blame] | 195 | <LoopStatus loopCache={this.state.loopCache}/> |
sebdet | c1ccc54 | 2019-07-19 09:50:33 +0200 | [diff] [blame] | 196 | <LoopLogs loopCache={this.state.loopCache} /> |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 197 | </LoopViewBodyDivStyled> |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 198 | ); |
| 199 | } |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 200 | |
xuegao | e52d572 | 2019-07-25 15:43:06 +0200 | [diff] [blame] | 201 | getLoopCache() { |
| 202 | return this.state.loopCache; |
| 203 | |
| 204 | } |
xuegao | 5fe750c | 2019-08-06 13:03:53 +0200 | [diff] [blame] | 205 | |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 206 | renderLoopViewer() { |
| 207 | return ( |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 208 | <LoopViewDivStyled> |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 209 | {this.renderLoopViewHeader()} |
| 210 | {this.renderLoopViewBody()} |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 211 | </LoopViewDivStyled> |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 212 | ); |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 213 | } |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 214 | |
| 215 | updateLoopCache(loopJson) { |
xuegao | 52432d6 | 2019-10-04 16:11:22 +0200 | [diff] [blame] | 216 | this.setState({ loopCache: new LoopCache(loopJson) }); |
| 217 | this.setState({ loopName: this.state.loopCache.getLoopName() }); |
sebdet | 83ce076 | 2019-08-02 14:53:59 +0200 | [diff] [blame] | 218 | console.info(this.state.loopName+" loop loaded successfully"); |
| 219 | } |
xuegao | 5fe750c | 2019-08-06 13:03:53 +0200 | [diff] [blame] | 220 | |
xuegao | 0efeb6b | 2019-10-07 14:36:34 +0200 | [diff] [blame] | 221 | showAlert(message) { |
| 222 | this.setState ({ showAlert: true, showMessage:message }); |
| 223 | } |
| 224 | |
| 225 | disableAlert() { |
| 226 | this.setState ({ showAlert: false }); |
| 227 | } |
| 228 | |
sebdet | 83ce076 | 2019-08-02 14:53:59 +0200 | [diff] [blame] | 229 | loadLoop(loopName) { |
| 230 | LoopService.getLoop(loopName).then(loop => { |
| 231 | console.debug("Updating loopCache"); |
xuegao | ac42c4b | 2019-10-09 16:12:37 +0200 | [diff] [blame] | 232 | LoopActionService.refreshStatus(loopName).then(data => { |
| 233 | this.updateLoopCache(data); |
| 234 | this.props.history.push('/'); |
| 235 | }) |
| 236 | .catch(error => { |
| 237 | this.updateLoopCache(loop); |
| 238 | this.props.history.push('/'); |
| 239 | }); |
sebdet | 83ce076 | 2019-08-02 14:53:59 +0200 | [diff] [blame] | 240 | }); |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 241 | } |
| 242 | |
xuegao | 691e2b7 | 2019-08-16 11:07:24 +0200 | [diff] [blame] | 243 | closeLoop() { |
| 244 | this.setState({ loopCache: new LoopCache({}), loopName: LoopUI.defaultLoopName }); |
| 245 | this.props.history.push('/'); |
| 246 | } |
sebdet | 687b8de | 2019-08-26 14:29:11 -0700 | [diff] [blame] | 247 | |
| 248 | render() { |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 249 | return ( |
sebdet | d0d6563 | 2019-08-26 05:47:01 -0700 | [diff] [blame] | 250 | <StyledMainDiv id="main_div"> |
sebdet | 81f5cab | 2019-11-06 11:40:46 +0100 | [diff] [blame^] | 251 | <Route path="/viewToscaModal" render={(routeProps) => (<ViewToscaModal {...routeProps} />)} /> |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 252 | <Route path="/operationalPolicyModal" |
xuegao | 0efeb6b | 2019-10-07 14:36:34 +0200 | [diff] [blame] | 253 | render={(routeProps) => (<OperationalPolicyModal {...routeProps} loopCache={this.getLoopCache()} loadLoopFunction={this.loadLoop} showAlert={this.showAlert}/>)} /> |
sebdet | 83ce076 | 2019-08-02 14:53:59 +0200 | [diff] [blame] | 254 | <Route path="/configurationPolicyModal/:componentName" render={(routeProps) => (<ConfigurationPolicyModal {...routeProps} loopCache={this.getLoopCache()} loadLoopFunction={this.loadLoop}/>)} /> |
| 255 | <Route path="/openLoop" render={(routeProps) => (<OpenLoopModal {...routeProps} loadLoopFunction={this.loadLoop} />)} /> |
| 256 | <Route path="/loopProperties" render={(routeProps) => (<LoopProperties {...routeProps} loopCache={this.getLoopCache()} loadLoopFunction={this.loadLoop}/>)} /> |
xuegao | e52d572 | 2019-07-25 15:43:06 +0200 | [diff] [blame] | 257 | <Route path="/userInfo" render={(routeProps) => (<UserInfo {...routeProps} />)} /> |
xuegao | 691e2b7 | 2019-08-16 11:07:24 +0200 | [diff] [blame] | 258 | <Route path="/closeLoop" render={this.closeLoop} /> |
xuegao | 0efeb6b | 2019-10-07 14:36:34 +0200 | [diff] [blame] | 259 | <Route path="/submit" render={(routeProps) => (<PerformAction {...routeProps} loopAction="submit" loopCache={this.getLoopCache()} updateLoopFunction={this.updateLoopCache} showAlert={this.showAlert}/>)} /> |
| 260 | <Route path="/stop" render={(routeProps) => (<PerformAction {...routeProps} loopAction="stop" loopCache={this.getLoopCache()} updateLoopFunction={this.updateLoopCache} showAlert={this.showAlert}/>)} /> |
| 261 | <Route path="/restart" render={(routeProps) => (<PerformAction {...routeProps} loopAction="restart" loopCache={this.getLoopCache()} updateLoopFunction={this.updateLoopCache} showAlert={this.showAlert}/>)} /> |
| 262 | <Route path="/delete" render={(routeProps) => (<PerformAction {...routeProps} loopAction="delete" loopCache={this.getLoopCache()} updateLoopFunction={this.updateLoopCache} showAlert={this.showAlert}/>)} /> |
| 263 | <Route path="/undeploy" render={(routeProps) => (<PerformAction {...routeProps} loopAction="undeploy" loopCache={this.getLoopCache()} updateLoopFunction={this.updateLoopCache} showAlert={this.showAlert}/>)} /> |
| 264 | <Route path="/deploy" render={(routeProps) => (<DeployLoop {...routeProps} loopCache={this.getLoopCache()} updateLoopFunction={this.updateLoopCache} showAlert={this.showAlert}/>)} /> |
| 265 | <Route path="/refreshStatus" render={(routeProps) => (<RefreshStatus {...routeProps} loopCache={this.getLoopCache()} updateLoopFunction={this.updateLoopCache} showAlert={this.showAlert}/>)} /> |
sebdet | 687b8de | 2019-08-26 14:29:11 -0700 | [diff] [blame] | 266 | <Route path="/logout" render={this.logout} /> |
| 267 | <GlobalClampStyle /> |
xuegao | 0efeb6b | 2019-10-07 14:36:34 +0200 | [diff] [blame] | 268 | {this.renderAlertBar()} |
sebdet | 8a02dd7 | 2019-07-31 17:11:11 +0200 | [diff] [blame] | 269 | {this.renderNavBar()} |
| 270 | {this.renderLoopViewer()} |
sebdet | d0d6563 | 2019-08-26 05:47:01 -0700 | [diff] [blame] | 271 | </StyledMainDiv> |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 272 | ); |
| 273 | } |
| 274 | } |