diff --git a/src/components/dialog/edit-widget-color-control.js b/src/components/dialog/edit-widget-color-control.js index 1b50f44..6a44e3d 100644 --- a/src/components/dialog/edit-widget-color-control.js +++ b/src/components/dialog/edit-widget-color-control.js @@ -2,10 +2,23 @@ * File: edit-widget-color-control.js * Author: Ricardo Hernandez-Montoya * Date: 24.04.2017 - * Copyright: 2017, Institute for Automation of Complex Power Systems, EONERC - * This file is part of VILLASweb. All Rights Reserved. Proprietary and confidential. - * Unauthorized copying of this file, via any medium is strictly prohibited. - **********************************************************************************/ + * Copyright: 2018, Institute for Automation of Complex Power Systems, EONERC + * + * This file is part of VILLASweb. + * + * VILLASweb is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * VILLASweb is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with VILLASweb. If not, see . + ******************************************************************************/ import React, { Component } from 'react'; import { FormGroup, Col, Row, Radio, ControlLabel } from 'react-bootstrap'; @@ -56,7 +69,7 @@ class EditWidgetColorControl extends Component { let checkedClass = classNames({ 'checked': idx === this.state.widget[this.props.controlId] }); - + return ( this.props.handleChange({target: { id: this.props.controlId, value: idx}})} />) } ) @@ -67,4 +80,4 @@ class EditWidgetColorControl extends Component { } } -export default EditWidgetColorControl; \ No newline at end of file +export default EditWidgetColorControl; diff --git a/src/components/widget-box.js b/src/components/widget-box.js index b917b65..db4621d 100644 --- a/src/components/widget-box.js +++ b/src/components/widget-box.js @@ -2,10 +2,23 @@ * File: widget-box.js * Author: Ricardo Hernandez-Montoya * Date: 25.04.2017 - * Copyright: 2017, Institute for Automation of Complex Power Systems, EONERC - * This file is part of VILLASweb. All Rights Reserved. Proprietary and confidential. - * Unauthorized copying of this file, via any medium is strictly prohibited. - **********************************************************************************/ + * Copyright: 2018, Institute for Automation of Complex Power Systems, EONERC + * + * This file is part of VILLASweb. + * + * VILLASweb is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * VILLASweb is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with VILLASweb. If not, see . + ******************************************************************************/ import React, { Component } from 'react'; @@ -13,11 +26,13 @@ import EditWidgetColorControl from './dialog/edit-widget-color-control'; class WidgetBox extends Component { render() { - + let colors = EditWidgetColorControl.ColorPalette; let colorStyle = { - borderColor: colors[this.props.widget.border_color] + borderColor: colors[this.props.widget.border_color], + backgroundColor: colors[this.props.widget.background_color], + opacity: this.props.widget.background_color_opacity } return ( diff --git a/src/components/widget-button.js b/src/components/widget-button.js index 98ced0d..9a6c33b 100644 --- a/src/components/widget-button.js +++ b/src/components/widget-button.js @@ -2,10 +2,23 @@ * File: widget-button.js * Author: Ricardo Hernandez-Montoya * Date: 29.03.2017 - * Copyright: 2017, Institute for Automation of Complex Power Systems, EONERC - * This file is part of VILLASweb. All Rights Reserved. Proprietary and confidential. - * Unauthorized copying of this file, via any medium is strictly prohibited. - **********************************************************************************/ + * Copyright: 2018, Institute for Automation of Complex Power Systems, EONERC + * + * This file is part of VILLASweb. + * + * VILLASweb is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * VILLASweb is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with VILLASweb. If not, see . + ******************************************************************************/ import React, { Component } from 'react'; @@ -27,7 +40,7 @@ class WidgetButton extends Component { color: colors[this.props.widget.font_color], borderColor: colors[this.props.widget.font_color] } - + return (
{ this.props.editing ? ( @@ -41,4 +54,4 @@ class WidgetButton extends Component { } } -export default WidgetButton; \ No newline at end of file +export default WidgetButton; diff --git a/src/components/widget-factory.js b/src/components/widget-factory.js index 496a3be..f644423 100644 --- a/src/components/widget-factory.js +++ b/src/components/widget-factory.js @@ -3,11 +3,23 @@ * Description: A factory to create and pre-configure widgets * Author: Ricardo Hernandez-Montoya * Date: 02.03.2017 - * Copyright: 2017, Institute for Automation of Complex Power Systems, EONERC - * This file is part of VILLASweb. All Rights Reserved. Proprietary and confidential. - * Unauthorized copying of this file, via any medium is strictly prohibited. - **********************************************************************************/ - + * Copyright: 2018, Institute for Automation of Complex Power Systems, EONERC + * + * This file is part of VILLASweb. + * + * VILLASweb is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * VILLASweb is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with VILLASweb. If not, see . + ******************************************************************************/ import WidgetSlider from './widget-slider'; class WidgetFactory { diff --git a/src/components/widget-gauge.js b/src/components/widget-gauge.js index 344fbbf..dcd250d 100644 --- a/src/components/widget-gauge.js +++ b/src/components/widget-gauge.js @@ -2,10 +2,23 @@ * File: widget-gauge.js * Author: Ricardo Hernandez-Montoya * Date: 31.03.2017 - * Copyright: 2017, Institute for Automation of Complex Power Systems, EONERC - * This file is part of VILLASweb. All Rights Reserved. Proprietary and confidential. - * Unauthorized copying of this file, via any medium is strictly prohibited. - **********************************************************************************/ + * Copyright: 2018, Institute for Automation of Complex Power Systems, EONERC + * + * This file is part of VILLASweb. + * + * VILLASweb is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * VILLASweb is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with VILLASweb. If not, see . + ******************************************************************************/ import React, { Component } from 'react'; import { Gauge } from 'gaugeJS'; diff --git a/src/components/widget-input.js b/src/components/widget-input.js index 47c21d0..d5ad7b6 100644 --- a/src/components/widget-input.js +++ b/src/components/widget-input.js @@ -2,10 +2,23 @@ * File: widget-number-input.js * Author: Ricardo Hernandez-Montoya * Date: 29.03.2017 - * Copyright: 2017, Institute for Automation of Complex Power Systems, EONERC - * This file is part of VILLASweb. All Rights Reserved. Proprietary and confidential. - * Unauthorized copying of this file, via any medium is strictly prohibited. - **********************************************************************************/ + * Copyright: 2018, Institute for Automation of Complex Power Systems, EONERC + * + * This file is part of VILLASweb. + * + * VILLASweb is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * VILLASweb is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with VILLASweb. If not, see . + ******************************************************************************/ import React, { Component } from 'react'; import { Form, FormGroup, Col, ControlLabel, FormControl } from 'react-bootstrap'; diff --git a/src/components/widget-slider.js b/src/components/widget-slider.js index b6b8647..8599b8c 100644 --- a/src/components/widget-slider.js +++ b/src/components/widget-slider.js @@ -2,10 +2,23 @@ * File: widget-slider.js * Author: Ricardo Hernandez-Montoya * Date: 30.03.2017 - * Copyright: 2017, Institute for Automation of Complex Power Systems, EONERC - * This file is part of VILLASweb. All Rights Reserved. Proprietary and confidential. - * Unauthorized copying of this file, via any medium is strictly prohibited. - **********************************************************************************/ + * Copyright: 2018, Institute for Automation of Complex Power Systems, EONERC + * + * This file is part of VILLASweb. + * + * VILLASweb is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * VILLASweb is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with VILLASweb. If not, see . + ******************************************************************************/ import React, { Component } from 'react'; import classNames from 'classnames'; diff --git a/src/data-managers/notifications-factory.js b/src/data-managers/notifications-factory.js index 56c095c..4f2a079 100644 --- a/src/data-managers/notifications-factory.js +++ b/src/data-managers/notifications-factory.js @@ -1,13 +1,26 @@ /** * File: notifications-factory.js - * Description: An unique source of pre-defined notifications that are displayed + * Description: An unique source of pre-defined notifications that are displayed * throughout the application. * Author: Ricardo Hernandez-Montoya * Date: 13.04.2017 - * Copyright: 2017, Institute for Automation of Complex Power Systems, EONERC - * This file is part of VILLASweb. All Rights Reserved. Proprietary and confidential. - * Unauthorized copying of this file, via any medium is strictly prohibited. - **********************************************************************************/ + * Copyright: 2018, Institute for Automation of Complex Power Systems, EONERC + * + * This file is part of VILLASweb. + * + * VILLASweb is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * VILLASweb is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with VILLASweb. If not, see . + ******************************************************************************/ class NotificationsFactory { @@ -21,4 +34,4 @@ class NotificationsFactory { } -export default NotificationsFactory; \ No newline at end of file +export default NotificationsFactory;