diff --git a/src/common/dialogs/delete-dialog.js b/src/common/dialogs/delete-dialog.js index 50d85a7..a4499e5 100644 --- a/src/common/dialogs/delete-dialog.js +++ b/src/common/dialogs/delete-dialog.js @@ -42,7 +42,9 @@ class DeleteDialog extends React.Component { - + + + ; diff --git a/src/common/dialogs/dialog.js b/src/common/dialogs/dialog.js index 4cc15af..9c5c2ce 100644 --- a/src/common/dialogs/dialog.js +++ b/src/common/dialogs/dialog.js @@ -45,6 +45,11 @@ class Dialog extends React.Component { } render() { + + const buttonStyle = { + marginLeft: '10px' + }; + return ( @@ -56,8 +61,10 @@ class Dialog extends React.Component { - {this.props.blendOutCancel?
: } - + + {this.props.blendOutCancel?
: } + + ); diff --git a/src/common/icon.js b/src/common/icon.js index 1ad1701..25155b4 100644 --- a/src/common/icon.js +++ b/src/common/icon.js @@ -28,7 +28,7 @@ library.add(fas); class Icon extends React.Component { render() { - return + return } } diff --git a/src/dashboard/dashboard-button-group.js b/src/dashboard/dashboard-button-group.js index b2df4de..20a8994 100644 --- a/src/dashboard/dashboard-button-group.js +++ b/src/dashboard/dashboard-button-group.js @@ -24,13 +24,12 @@ class DashboardButtonGroup extends React.Component { render() { const buttonStyle = { marginLeft: '12px', - height: '44px', - width : '35px' + height: '44px', + width : '35px', }; const iconStyle = { - color: '#007bff', - height: '25px', + height: '25px', width : '25px' } @@ -45,21 +44,22 @@ class DashboardButtonGroup extends React.Component { buttons.push( Save changes } > , Discard changes } > ); } else { if (this.props.fullscreen !== true) { buttons.push( + Change to fullscreen view } > ); @@ -67,7 +67,7 @@ class DashboardButtonGroup extends React.Component { buttons.push( Back to normal view } > ); @@ -77,7 +77,7 @@ class DashboardButtonGroup extends React.Component { buttons.push( Continue simulation } > ); @@ -85,7 +85,7 @@ class DashboardButtonGroup extends React.Component { buttons.push( Pause simulation } > ); @@ -96,16 +96,15 @@ class DashboardButtonGroup extends React.Component { Add, edit or delete files of scenario }> ); buttons.push( - Add, edit or delete input signals }> + Add, edit or delete input signals }> ); @@ -114,7 +113,7 @@ class DashboardButtonGroup extends React.Component { Add, edit or delete output signals }> ); @@ -123,7 +122,7 @@ class DashboardButtonGroup extends React.Component { Add widgets and edit layout }> ); diff --git a/src/dashboard/dashboard.js b/src/dashboard/dashboard.js index 56b9880..b8a627b 100644 --- a/src/dashboard/dashboard.js +++ b/src/dashboard/dashboard.js @@ -478,7 +478,7 @@ class Dashboard extends Component { return
- {this.state.dashboard.name} +

{this.state.dashboard.name}

this.onClose(c)} onReset={() => this.resetState()} valid={this.valid}>
- + Name this.handleChange(e)} /> diff --git a/src/dashboard/new-dashboard.js b/src/dashboard/new-dashboard.js index 6f4b9da..a023ba4 100644 --- a/src/dashboard/new-dashboard.js +++ b/src/dashboard/new-dashboard.js @@ -69,7 +69,7 @@ class NewDashboardDialog extends React.Component { return ( this.onClose(c)} onReset={() => this.resetState()} valid={this.valid}> - + Name this.handleChange(e)} /> diff --git a/src/file/edit-files.js b/src/file/edit-files.js index af5d251..d15102b 100644 --- a/src/file/edit-files.js +++ b/src/file/edit-files.js @@ -149,11 +149,14 @@ class EditFilesDialog extends React.Component { + + diff --git a/src/ic/ic-action.js b/src/ic/ic-action.js index 93634e5..b0333b8 100644 --- a/src/ic/ic-action.js +++ b/src/ic/ic-action.js @@ -16,7 +16,7 @@ ******************************************************************************/ import React from 'react'; -import { Button, ButtonToolbar, DropdownButton, Dropdown, InputGroup, FormControl } from 'react-bootstrap'; +import { Button, DropdownButton, Dropdown, InputGroup, FormControl } from 'react-bootstrap'; class ICAction extends React.Component { constructor(props) { @@ -79,11 +79,11 @@ class ICAction extends React.Component { )); - return
+ return
@@ -96,7 +96,7 @@ class ICAction extends React.Component { onChange={this.setTimeForAction} /> diff --git a/src/ic/ic-dialog.js b/src/ic/ic-dialog.js index 32a21d9..cba6291 100644 --- a/src/ic/ic-dialog.js +++ b/src/ic/ic-dialog.js @@ -113,10 +113,10 @@ class ICDialog extends React.Component { {this.props.userRole === "Admin" ? (
Controls:
-
- - diff --git a/src/ic/ics.js b/src/ic/ics.js index 2347050..de10aaa 100644 --- a/src/ic/ics.js +++ b/src/ic/ics.js @@ -354,7 +354,7 @@ class InfrastructureComponents extends Component { modifyNameColumn(name, component){ let index = this.state.ics.indexOf(component); - return + return } openICStatus(ic){ @@ -451,6 +451,11 @@ class InfrastructureComponents extends Component { marginLeft: '10px' }; + const iconStyle = { + height: '30px', + width: '30px' + } + let managerTable = this.getICCategoryTable(this.state.managers, false, "IC Managers") let simulatorTable = this.getICCategoryTable(this.state.simulators, true, "Simulators") let gatewayTable = this.getICCategoryTable(this.state.gateways, true, "Gateways") @@ -461,19 +466,19 @@ class InfrastructureComponents extends Component {

Infrastructure Components {this.state.currentUser.role === "Admin" ? - ( + ( Add Infrastructure Component } > - Import Infrastructure Component } > - ) diff --git a/src/ic/import-ic.js b/src/ic/import-ic.js index bde1d9a..a165af6 100644 --- a/src/ic/import-ic.js +++ b/src/ic/import-ic.js @@ -118,7 +118,7 @@ class ImportICDialog extends React.Component { this.loadFile(e.target.files)} /> - + Name this.handleChange(e)} /> @@ -128,7 +128,7 @@ class ImportICDialog extends React.Component { this.handleChange(e)} /> - + UUID this.handleChange(e)} /> diff --git a/src/scenario/scenario.js b/src/scenario/scenario.js index f58a132..791e79f 100644 --- a/src/scenario/scenario.js +++ b/src/scenario/scenario.js @@ -775,18 +775,17 @@ class Scenario extends React.Component { return (); } - const buttonStyle = { - marginLeft: '10px' - }; + const altButtonStyle = { + marginLeft: '10px', + } const tableHeadingStyle = { paddingTop: '30px' } const iconStyle = { - color: '#007bff', - height: '25px', - width: '25px' + height: '30px', + width: '30px' } if (this.state.scenario === undefined) { @@ -846,8 +845,8 @@ class Scenario extends React.Component { return
Add, edit or delete files of scenario } > -
@@ -864,18 +863,20 @@ class Scenario extends React.Component { {/*Component Configurations table*/}

Component Configurations + Add Component Configuration } > - + Import Component Configuration } > - + +

Dashboards + Add Dashboard } > - + Import Dashboard } > - + +
@@ -1011,12 +1014,14 @@ class Scenario extends React.Component { {/*Result table*/}

Results + Add Result } > - + +

{resulttable} this.closeNewResultModal(data)} /> @@ -1043,11 +1048,15 @@ class Scenario extends React.Component { type="text" /> + +

diff --git a/src/scenario/scenarios.js b/src/scenario/scenarios.js index 8158af8..aef0740 100644 --- a/src/scenario/scenarios.js +++ b/src/scenario/scenarios.js @@ -236,24 +236,31 @@ class Scenarios extends Component { render() { const buttonStyle = { - marginLeft: '10px' + marginLeft: '10px', }; + const iconStyle = { + height: '30px', + width: '30px' + } + return (

Scenarios + Add Scenario } > - + Import Scenario } > - + +

diff --git a/src/signal/edit-signal-mapping.js b/src/signal/edit-signal-mapping.js index 7dec36a..b1df22c 100644 --- a/src/signal/edit-signal-mapping.js +++ b/src/signal/edit-signal-mapping.js @@ -65,7 +65,7 @@ class EditSignalMapping extends React.Component { } signals.forEach(signal => { - if(signal.checked == undefined) signal.checked = false + if(signal.checked === undefined) signal.checked = false }); @@ -149,7 +149,7 @@ class EditSignalMapping extends React.Component { data: signal, token: this.props.sessionToken }); - + }) } @@ -196,11 +196,11 @@ class EditSignalMapping extends React.Component { onSignalChecked(signal) { let tempSignals = this.state.signals; const index = tempSignals.indexOf(signal); - + tempSignals[index].checked = !tempSignals[index].checked; this.setState({signals: tempSignals}); - + } checkAll(){ @@ -208,7 +208,7 @@ class EditSignalMapping extends React.Component { let allChecked = true; tempSignals.forEach(signal => - { + { if(signal.checked === false){ signal.checked = true; allChecked = false; @@ -224,7 +224,7 @@ class EditSignalMapping extends React.Component { render() { const buttonStyle = { - marginLeft: '10px' + marginLeft: '10px', }; return( @@ -251,24 +251,24 @@ class EditSignalMapping extends React.Component { this.handleDelete(index)} />
-
+
Check/Uncheck All } > - + - - + +
Choose a Component Configuration to add the signal to:
-
+
{typeof this.props.configs !== "undefined" && this.props.configs.map(config => ( - + ))}
- +

diff --git a/src/styles/app.css b/src/styles/app.css index 50ddfda..7640536 100644 --- a/src/styles/app.css +++ b/src/styles/app.css @@ -369,6 +369,18 @@ body { height: auto !important; padding: 5px; float: right; + border-color: #ffffff; + background-color: #ffffff; +} + +.section-buttons-group-right .btn{ + border-color: #ffffff; + background-color: #ffffff; +} + +.section-buttons-group-right .btn:hover{ + border-color: #e3e3e3; + background-color: #e3e3e3; } .section-buttons-group-left { @@ -377,10 +389,60 @@ body { float: left; } +.section-buttons-group-left .btn{ + background-color: #527984; + border-color: #527984; +} + +.section-buttons-group-left .btn:hover{ + background-color: #31484f; + border-color: #31484f; +} + +.drag-and-drop .btn{ + color: #527984; + border-color: #527984; +} + +.drag-and-drop .btn:hover{ + color: #527984; + border-color: #527984; +} + + .section-buttons-group-right .rc-slider { margin-left: 12px; } +.solid-button .btn{ + background-color: #527984; + border-color: #527984; +} + +.solid-button .btn:hover{ + background-color: #31484f; + border-color: #31484f; +} + +.solid-button .btn:disabled{ + background-color: #527984; + border-color: #527984; +} + +.icon-button .btn{ + border-color: #ffffff; + background-color: #ffffff; +} + +.icon-button .btn:hover{ + border-color: #e3e3e3; + background-color: #e3e3e3; +} + +.icon-color { + color: #527984; +} + .form-horizontal .form-group { margin-left: 0 !important; margin-right: 0 !important; diff --git a/src/user/login-form.js b/src/user/login-form.js index 3c26f51..8c09152 100644 --- a/src/user/login-form.js +++ b/src/user/login-form.js @@ -91,7 +91,9 @@ class LoginForm extends Component { - + + + diff --git a/src/user/user.js b/src/user/user.js index 2026771..e85f5ac 100644 --- a/src/user/user.js +++ b/src/user/user.js @@ -17,7 +17,7 @@ import React, { Component } from 'react'; import { Container } from 'flux/utils'; -import {Button, Col, Row} from 'react-bootstrap'; +import {Button, Col, Row, FormGroup} from 'react-bootstrap'; import AppDispatcher from '../common/app-dispatcher'; import UsersStore from './users-store'; @@ -112,6 +112,7 @@ class User extends Component { render() { + return (

Your User Account

@@ -119,27 +120,25 @@ class User extends Component { {this.state.currentUser !== undefined && this.state.currentUser !== null ? + - Username: - {this.state.currentUser.username} + +
Username:
+
E-mail:
+
Role:
+
+ +
{this.state.currentUser.username}
+
{this.state.currentUser.mail}
+
{this.state.currentUser.role}
+ + + +
- - - E-mail: - {this.state.currentUser.mail} - - - - Role: - {this.state.currentUser.role} - - - - - this.closeEditModal(data)} - user={this.state.currentUser}/> + user={this.state.currentUser} /> : "Loading user data..." } @@ -148,8 +147,5 @@ class User extends Component { } } - - - let fluxContainerConverter = require('../common/FluxContainerConverter'); export default Container.create(fluxContainerConverter.convert(User)); diff --git a/src/user/users.js b/src/user/users.js index d577462..96b1e4c 100644 --- a/src/user/users.js +++ b/src/user/users.js @@ -131,20 +131,25 @@ class Users extends Component { render() { const buttonStyle = { - marginLeft: '10px' + marginLeft: '10px', }; + const iconStyle = { + height: '30px', + width: '30px' + } + return (

Users - + Add User } > - + - +

@@ -156,8 +161,6 @@ class Users extends Component { this.setState({ editModal: true, modalData: this.state.users[index] })} onDelete={index => this.setState({ deleteModal: true, modalData: this.state.users[index] })} />
- - this.closeNewModal(data)} /> this.closeEditModal(data)} user={this.state.modalData} /> diff --git a/src/widget/edit-widget/edit-widget-color-zones-control.js b/src/widget/edit-widget/edit-widget-color-zones-control.js index 415fbd0..6ef3fcd 100644 --- a/src/widget/edit-widget/edit-widget-color-zones-control.js +++ b/src/widget/edit-widget/edit-widget-color-zones-control.js @@ -175,6 +175,15 @@ class EditWidgetColorZonesControl extends React.Component { render() { + const buttonStyle = { + marginBottom: '10px', + marginLeft: '120px', + }; + + const iconStyle = { + height: '25px', + width : '25px' + } let tempColor = 'FFFFFF'; let collapse = false; @@ -191,9 +200,10 @@ class EditWidgetColorZonesControl extends React.Component { } return - Color Zones - - + Color zones + + +
{ this.state.widget.customProperties.zones.map((zone, idx) => { @@ -243,7 +253,9 @@ class EditWidgetColorZonesControl extends React.Component { - + + + this.closeEditModal(data)} widget={this.state.widget} zoneIndex={this.state.selectedIndex} controlId={'strokeStyle'} /> diff --git a/src/widget/toolbox-item.js b/src/widget/toolbox-item.js index f1ebb93..4c268c5 100644 --- a/src/widget/toolbox-item.js +++ b/src/widget/toolbox-item.js @@ -51,7 +51,7 @@ class ToolboxItem extends React.Component { if (this.props.disabled === false) { return this.props.connectDragSource(
- + {this.props.icon && } {this.props.name} diff --git a/src/widget/widget-toolbox.js b/src/widget/widget-toolbox.js index 033109c..ee48d37 100644 --- a/src/widget/widget-toolbox.js +++ b/src/widget/widget-toolbox.js @@ -96,11 +96,15 @@ class WidgetToolbox extends React.Component { const disableDecrease = this.disableDecrease(); // Only one topology widget at the time is supported const iconStyle = { - color: '#007bff', height: '25px', width : '25px' } + const buttonStyle = { + marginRight: '3px', + height: '40px', + } + const thereIsTopologyWidget = this.props.widgets != null && Object.values(this.props.widgets).filter(w => w.type === 'Topology').length > 0; const topologyItemMsg = thereIsTopologyWidget? 'Currently only one is supported' : ''; @@ -110,16 +114,16 @@ class WidgetToolbox extends React.Component {
Show/ hide available Cosmetic Widgets } > - + Show/ hide available Displaying Widgets } > - + Show/ hide available Manipulation Widgets } > - +
@@ -128,13 +132,13 @@ class WidgetToolbox extends React.Component { Grid: { this.props.grid > 1 ? this.props.grid : 'Disabled' } Increase dashboard height } > - Decrease dashboard height } > - @@ -143,7 +147,7 @@ class WidgetToolbox extends React.Component {





-
+