diff --git a/Dockerfile b/Dockerfile
index 92283ec..63418fe 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,3 +1,20 @@
+ #
+ # 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 .
+ # ******************************************************************************
+
FROM node:12.2 AS builder
# Create app directory
diff --git a/src/common/FluxContainerConverter.js b/src/common/FluxContainerConverter.js
index 902a26c..9d1b371 100644
--- a/src/common/FluxContainerConverter.js
+++ b/src/common/FluxContainerConverter.js
@@ -1,5 +1,22 @@
+/**
+ * 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 .
+ ******************************************************************************/
+
/// FluxContainerConverter.js
-/// This is an ugly workaround found here https://github.com/facebook/flux/issues/351 to make Flux Containers work with ES6
+/// ATTENTION!!! This is an ugly workaround found here https://github.com/facebook/flux/issues/351 to make Flux Containers work with ES6
function convert(containerClass) {
diff --git a/src/common/api/rest-api.js b/src/common/api/rest-api.js
index bd21de6..0ae4b03 100644
--- a/src/common/api/rest-api.js
+++ b/src/common/api/rest-api.js
@@ -1,8 +1,4 @@
/**
- * File: rest-api.js
- * Author: Markus Grigull
- * Date: 02.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/common/api/websocket-api.js b/src/common/api/websocket-api.js
index 94fc953..bad01a7 100644
--- a/src/common/api/websocket-api.js
+++ b/src/common/api/websocket-api.js
@@ -1,8 +1,4 @@
/**
- * File: websocket-api.js
- * Author: Markus Grigull
- * Date: 03.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/common/app-dispatcher.js b/src/common/app-dispatcher.js
index ee54eb5..76866ed 100644
--- a/src/common/app-dispatcher.js
+++ b/src/common/app-dispatcher.js
@@ -1,8 +1,4 @@
/**
- * File: app-dispatcher.js
- * Author: Markus Grigull
- * Date: 02.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/common/array-store.js b/src/common/array-store.js
index bd18854..0c536f0 100644
--- a/src/common/array-store.js
+++ b/src/common/array-store.js
@@ -1,8 +1,4 @@
/**
- * File: array-store.js
- * Author: Markus Grigull
- * Date: 03.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/common/data-managers/notifications-data-manager.js b/src/common/data-managers/notifications-data-manager.js
index f463fcd..3b7601f 100644
--- a/src/common/data-managers/notifications-data-manager.js
+++ b/src/common/data-managers/notifications-data-manager.js
@@ -1,8 +1,4 @@
/**
- * File: notifications-data-manager.js
- * Author: Markus Grigull
- * Date: 21.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/common/data-managers/rest-data-manager.js b/src/common/data-managers/rest-data-manager.js
index 622119b..271f4c6 100644
--- a/src/common/data-managers/rest-data-manager.js
+++ b/src/common/data-managers/rest-data-manager.js
@@ -1,8 +1,4 @@
/**
- * File: rest-data-manager.js
- * Author: Markus Grigull
- * Date: 03.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/common/dialogs/delete-dialog.js b/src/common/dialogs/delete-dialog.js
index c69ad7c..cbc0cd8 100644
--- a/src/common/dialogs/delete-dialog.js
+++ b/src/common/dialogs/delete-dialog.js
@@ -1,8 +1,4 @@
/**
- * File: edit-user.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 02.05.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
@@ -26,7 +22,7 @@ class DeleteDialog extends React.Component {
onModalKeyPress = (event) => {
if (event.key === 'Enter') {
event.preventDefault();
-
+
this.props.onClose(false);
}
}
diff --git a/src/common/dialogs/dialog.js b/src/common/dialogs/dialog.js
index db4c6a4..cc387d9 100644
--- a/src/common/dialogs/dialog.js
+++ b/src/common/dialogs/dialog.js
@@ -1,8 +1,4 @@
/**
- * File: dialog.js
- * Author: Markus Grigull
- * Date: 03.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/common/editable-header.js b/src/common/editable-header.js
index b5e6a2f..a10b48d 100644
--- a/src/common/editable-header.js
+++ b/src/common/editable-header.js
@@ -1,8 +1,4 @@
/**
- * File: header.js
- * Author: Markus Grigull
- * Date: 25.05.2018
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/common/footer.js b/src/common/footer.js
index e036516..534a18a 100644
--- a/src/common/footer.js
+++ b/src/common/footer.js
@@ -1,8 +1,4 @@
/**
- * File: footer.js
- * Author: Markus Grigull
- * Date: 02.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/common/header.js b/src/common/header.js
index e8c70c2..c5c71b7 100644
--- a/src/common/header.js
+++ b/src/common/header.js
@@ -1,8 +1,4 @@
/**
- * File: header.js
- * Author: Markus Grigull
- * Date: 02.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/common/home.js b/src/common/home.js
index ffb8587..0aee6b9 100644
--- a/src/common/home.js
+++ b/src/common/home.js
@@ -1,8 +1,4 @@
/**
- * File: home.js
- * Author: Markus Grigull
- * Date: 02.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/common/icon.js b/src/common/icon.js
index 1cff82a..1ad1701 100644
--- a/src/common/icon.js
+++ b/src/common/icon.js
@@ -1,8 +1,4 @@
/**
- * File: icon.js
- * Author: Steffen Vogel
- * Date: 09.06.2018
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/common/menu-sidebar.js b/src/common/menu-sidebar.js
index 35ecfd0..59874ed 100644
--- a/src/common/menu-sidebar.js
+++ b/src/common/menu-sidebar.js
@@ -1,8 +1,4 @@
/**
- * File: menu-sidebar.js
- * Author: Markus Grigull
- * Date: 02.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/common/parameters-editor.js b/src/common/parameters-editor.js
index 9f17e7e..aca6b05 100644
--- a/src/common/parameters-editor.js
+++ b/src/common/parameters-editor.js
@@ -1,8 +1,4 @@
/**
- * File: header.js
- * Author: Markus Grigull
- * Date: 06.06.2018
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/common/table-column.js b/src/common/table-column.js
index 151e3eb..748035a 100644
--- a/src/common/table-column.js
+++ b/src/common/table-column.js
@@ -1,8 +1,4 @@
/**
- * File: table-column.js
- * Author: Markus Grigull
- * Date: 06.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/common/table.js b/src/common/table.js
index 64d118d..020f9bd 100644
--- a/src/common/table.js
+++ b/src/common/table.js
@@ -1,8 +1,4 @@
/**
- * File: table.js
- * Author: Markus Grigull
- * Date: 02.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/config.js b/src/config.js
index 6b68fa3..874e58f 100644
--- a/src/config.js
+++ b/src/config.js
@@ -1,3 +1,19 @@
+/**
+ * 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 .
+ ******************************************************************************/
const config = {
publicPathBase: 'public/',
diff --git a/src/dashboard/dashboard-button-group.js b/src/dashboard/dashboard-button-group.js
index 35da165..376d8c1 100644
--- a/src/dashboard/dashboard-button-group.js
+++ b/src/dashboard/dashboard-button-group.js
@@ -1,8 +1,4 @@
/**
- * File: dashboard-button-group.js
- * Author: Markus Grigull
- * Date: 31.05.2018
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/dashboard/dashboard-store.js b/src/dashboard/dashboard-store.js
index 28bb9cb..4e850ab 100644
--- a/src/dashboard/dashboard-store.js
+++ b/src/dashboard/dashboard-store.js
@@ -1,8 +1,4 @@
/**
- * File: dashboard-store.js
- * Author: Markus Grigull
- * Date: 02.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/dashboard/dashboard.js b/src/dashboard/dashboard.js
index 02e565c..df42e37 100644
--- a/src/dashboard/dashboard.js
+++ b/src/dashboard/dashboard.js
@@ -1,8 +1,4 @@
/**
- * File: dashboard.js
- * Author: Markus Grigull
- * Date: 02.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
@@ -114,7 +110,7 @@ class Dashboard extends Component {
}
-
+
static getNewWidgetKey() {
const widgetKey = this.lastWidgetKey;
this.lastWidgetKey++;
@@ -245,13 +241,13 @@ class Dashboard extends Component {
closeEdit(data){
if (data == null) {
-
+
AppDispatcher.dispatch({
type: 'widgets/start-load',
token: this.state.sessionToken,
param: '?dashboardID=1'
});
-
+
this.setState({ editModal: false });
return;
@@ -339,7 +335,7 @@ class Dashboard extends Component {
};
setGrid(value) {
-
+
let dashboard = this.state.dashboard;
dashboard.grid = value;
this.setState({ dashboard });
diff --git a/src/dashboard/dashboards-data-manager.js b/src/dashboard/dashboards-data-manager.js
index a39e017..b35c58d 100644
--- a/src/dashboard/dashboards-data-manager.js
+++ b/src/dashboard/dashboards-data-manager.js
@@ -1,8 +1,4 @@
/**
- * File: dashboards-data-manager.js
- * Author: Markus Grigull
- * Date: 03.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/dashboard/edit-dashboard.js b/src/dashboard/edit-dashboard.js
index 1e2fdd6..7de6012 100644
--- a/src/dashboard/edit-dashboard.js
+++ b/src/dashboard/edit-dashboard.js
@@ -1,8 +1,4 @@
/**
- * File: new-dashboard.js
- * Author: Markus Grigull
- * Date: 03.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/dashboard/new-dashboard.js b/src/dashboard/new-dashboard.js
index b05fbad..e71fdbc 100644
--- a/src/dashboard/new-dashboard.js
+++ b/src/dashboard/new-dashboard.js
@@ -1,8 +1,4 @@
/**
- * File: new-dashboard.js
- * Author: Markus Grigull
- * Date: 03.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/file/file-store.js b/src/file/file-store.js
index 659748e..7ab9f9b 100644
--- a/src/file/file-store.js
+++ b/src/file/file-store.js
@@ -1,8 +1,4 @@
/**
- * File: file-store.js
- * Author: Markus Grigull
- * Date: 16.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/file/files-data-manager.js b/src/file/files-data-manager.js
index 91fb4a6..5758b62 100644
--- a/src/file/files-data-manager.js
+++ b/src/file/files-data-manager.js
@@ -1,8 +1,4 @@
/**
- * File: files-data-manager.js
- * Author: Markus Grigull
- * Date: 16.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/file/select-file.js b/src/file/select-file.js
index 6fa6e83..b626ee3 100644
--- a/src/file/select-file.js
+++ b/src/file/select-file.js
@@ -1,8 +1,4 @@
/**
- * File: selectFile.js
- * Author: Markus Grigull
- * Date: 10.05.2018
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/index.js b/src/index.js
index a853c12..4d73f3c 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,8 +1,4 @@
/**
- * File: index.js
- * Author: Markus Grigull
- * Date: 02.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/router.js b/src/router.js
index aee9c0f..348a231 100644
--- a/src/router.js
+++ b/src/router.js
@@ -1,8 +1,4 @@
/**
- * File: router.js
- * Author: Markus Grigull
- * Date: 02.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/scenario/edit-scenario.js b/src/scenario/edit-scenario.js
index 6d22d07..d3f90c6 100644
--- a/src/scenario/edit-scenario.js
+++ b/src/scenario/edit-scenario.js
@@ -1,8 +1,4 @@
/**
- * File: edit-scenario.js
- * Author: Sonja Happ
- * Date: 20.08.2019
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/scenario/import-scenario.js b/src/scenario/import-scenario.js
index 3fccb49..1e454eb 100644
--- a/src/scenario/import-scenario.js
+++ b/src/scenario/import-scenario.js
@@ -1,8 +1,4 @@
/**
- * File: import-scenario.js
- * Author: Sonja Happ
- * Date: 20.08.2019
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/scenario/new-scenario.js b/src/scenario/new-scenario.js
index c7323c5..c582a3c 100644
--- a/src/scenario/new-scenario.js
+++ b/src/scenario/new-scenario.js
@@ -1,8 +1,4 @@
/**
- * File: new-scenario.js
- * Author: Sonja Happ
- * Date: 20.08.2019
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/scenario/scenario-store.js b/src/scenario/scenario-store.js
index 4ab7ae4..777475c 100644
--- a/src/scenario/scenario-store.js
+++ b/src/scenario/scenario-store.js
@@ -1,8 +1,4 @@
/**
- * File: scenario-store.js
- * Author: Sonja Happ
- * Date: 20.08.2019
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/scenario/scenarios.js b/src/scenario/scenarios.js
index baa22e3..8813190 100644
--- a/src/scenario/scenarios.js
+++ b/src/scenario/scenarios.js
@@ -1,8 +1,4 @@
/**
- * File: scenarios.js
- * Author: Sonja Happ
- * Date: 20.08.2019
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/signal/edit-signal-mapping.js b/src/signal/edit-signal-mapping.js
index 51ab0c9..0bfac11 100644
--- a/src/signal/edit-signal-mapping.js
+++ b/src/signal/edit-signal-mapping.js
@@ -1,5 +1,4 @@
/**
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/styles/app.css b/src/styles/app.css
index b30c2ad..672c505 100644
--- a/src/styles/app.css
+++ b/src/styles/app.css
@@ -1,8 +1,4 @@
/**
- * File: app.css
- * Author: Markus Grigull
- * Date: 02.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/styles/index.css b/src/styles/index.css
index dde0352..44eaf13 100644
--- a/src/styles/index.css
+++ b/src/styles/index.css
@@ -1,8 +1,4 @@
/**
- * File: index.css
- * Author: Markus Grigull
- * Date: 17.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/styles/widgets.css b/src/styles/widgets.css
index c52835c..c5f775e 100644
--- a/src/styles/widgets.css
+++ b/src/styles/widgets.css
@@ -1,8 +1,4 @@
/**
- * File: widgets.css
- * Author: Markus Grigull
- * Date: 02.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/user/edit-own-user.js b/src/user/edit-own-user.js
index 47b9aff..d755e2d 100644
--- a/src/user/edit-own-user.js
+++ b/src/user/edit-own-user.js
@@ -1,8 +1,4 @@
/**
- * File: edit-user.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 02.05.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/user/edit-user.js b/src/user/edit-user.js
index 046cd46..12ee58a 100644
--- a/src/user/edit-user.js
+++ b/src/user/edit-user.js
@@ -1,8 +1,4 @@
/**
- * File: edit-user.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 02.05.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/user/login-form.js b/src/user/login-form.js
index a038f38..c2efaae 100644
--- a/src/user/login-form.js
+++ b/src/user/login-form.js
@@ -1,8 +1,4 @@
/**
- * File: login-form.js
- * Author: Markus Grigull
- * Date: 15.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/user/login.js b/src/user/login.js
index 76c2e68..ee78945 100644
--- a/src/user/login.js
+++ b/src/user/login.js
@@ -1,8 +1,4 @@
/**
- * File: login.js
- * Author: Markus Grigull
- * Date: 15.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/user/logout.js b/src/user/logout.js
index dd1eafc..cd1fab1 100644
--- a/src/user/logout.js
+++ b/src/user/logout.js
@@ -1,8 +1,4 @@
/**
- * File: logout.js
- * Author: Markus Grigull
- * Date: 15.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/user/new-user.js b/src/user/new-user.js
index 5919568..2d0c434 100644
--- a/src/user/new-user.js
+++ b/src/user/new-user.js
@@ -1,8 +1,4 @@
/**
- * File: new-user.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 02.05.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/user/user.js b/src/user/user.js
index 8e7e67c..6ab4b82 100644
--- a/src/user/user.js
+++ b/src/user/user.js
@@ -1,8 +1,4 @@
/**
- * File: user.js
- * Author: Sonja Happ
- * Date: 18.09.2019
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/user/users-data-manager.js b/src/user/users-data-manager.js
index aae60e1..dac46d2 100644
--- a/src/user/users-data-manager.js
+++ b/src/user/users-data-manager.js
@@ -1,8 +1,4 @@
/**
- * File: users-data-manager.js
- * Author: Markus Grigull
- * Date: 15.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/user/users-store.js b/src/user/users-store.js
index b2ddfe9..dd155b9 100644
--- a/src/user/users-store.js
+++ b/src/user/users-store.js
@@ -1,8 +1,4 @@
/**
- * File: users-store.js
- * Author: Markus Grigull
- * Date: 15.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
@@ -55,7 +51,7 @@ class UsersStore extends ArrayStore {
NotificationsDataManager.addNotification(USER_EDIT_ERROR_NOTIFICATION);
}
- return super.reduce(state, action);
+ return super.reduce(state, action);
default:
return super.reduce(state, action);
diff --git a/src/user/users.js b/src/user/users.js
index 47b8d26..7deb4b3 100644
--- a/src/user/users.js
+++ b/src/user/users.js
@@ -1,8 +1,4 @@
/**
- * File: users.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 02.05.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/dropzone.js b/src/widget/dropzone.js
index 979a692..f962719 100644
--- a/src/widget/dropzone.js
+++ b/src/widget/dropzone.js
@@ -1,8 +1,4 @@
/**
- * File: dropzone.js
- * Author: Markus Grigull
- * Date: 02.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
@@ -42,7 +38,7 @@ const dropzoneTarget = {
}
}
}
-
+
return maxZ;
}, 0);
position.z = foundZ >= 100? foundZ : ++foundZ;
diff --git a/src/widget/edit-widget/edit-widget-aspect-control.js b/src/widget/edit-widget/edit-widget-aspect-control.js
index 5a855c2..3186584 100644
--- a/src/widget/edit-widget/edit-widget-aspect-control.js
+++ b/src/widget/edit-widget/edit-widget-aspect-control.js
@@ -1,8 +1,4 @@
/**
- * File: edit-widget-aspect-control.js
- * Author: Markus Grigull
- * Date: 29.07.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/edit-widget/edit-widget-checkbox-control.js b/src/widget/edit-widget/edit-widget-checkbox-control.js
index 960c9e8..2f1eb87 100644
--- a/src/widget/edit-widget/edit-widget-checkbox-control.js
+++ b/src/widget/edit-widget/edit-widget-checkbox-control.js
@@ -1,8 +1,4 @@
/**
- * File: edit-widget-checkbox-control.js
- * Author: Markus Grigull
- * Date: 19.08.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/edit-widget/edit-widget-color-control.js b/src/widget/edit-widget/edit-widget-color-control.js
index 408a4d0..c031597 100644
--- a/src/widget/edit-widget/edit-widget-color-control.js
+++ b/src/widget/edit-widget/edit-widget-color-control.js
@@ -1,9 +1,4 @@
/**
- * File: edit-widget-color-control.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 24.04.2017
- * 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
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 b1d002f..504aaef 100644
--- a/src/widget/edit-widget/edit-widget-color-zones-control.js
+++ b/src/widget/edit-widget/edit-widget-color-zones-control.js
@@ -1,8 +1,4 @@
/**
- * File: edit-widget-color-zones-control.js
- * Author: Markus Grigull
- * Date: 20.08.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/edit-widget/edit-widget-html-content.js b/src/widget/edit-widget/edit-widget-html-content.js
index f931ba9..6ad836b 100644
--- a/src/widget/edit-widget/edit-widget-html-content.js
+++ b/src/widget/edit-widget/edit-widget-html-content.js
@@ -1,8 +1,4 @@
/**
- * File: edit-widget-html-content.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 03.09.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/edit-widget/edit-widget-image-control.js b/src/widget/edit-widget/edit-widget-image-control.js
index de6eaf9..0f2c9e7 100644
--- a/src/widget/edit-widget/edit-widget-image-control.js
+++ b/src/widget/edit-widget/edit-widget-image-control.js
@@ -1,8 +1,4 @@
/**
- * File: edit-widget-image-control.js
- * Author: Markus Grigull
- * Date: 04.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/edit-widget/edit-widget-number-control.js b/src/widget/edit-widget/edit-widget-number-control.js
index d86722f..5984c82 100644
--- a/src/widget/edit-widget/edit-widget-number-control.js
+++ b/src/widget/edit-widget/edit-widget-number-control.js
@@ -1,8 +1,4 @@
/**
- * File: edit-widget-text-control.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 21.04.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/edit-widget/edit-widget-orientation.js b/src/widget/edit-widget/edit-widget-orientation.js
index dc8fd49..aee9c14 100644
--- a/src/widget/edit-widget/edit-widget-orientation.js
+++ b/src/widget/edit-widget/edit-widget-orientation.js
@@ -1,8 +1,4 @@
/**
- * File: edit-widget-orientation.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 10.04.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/edit-widget/edit-widget-parameters-control.js b/src/widget/edit-widget/edit-widget-parameters-control.js
index d1cf65c..4117fd6 100644
--- a/src/widget/edit-widget/edit-widget-parameters-control.js
+++ b/src/widget/edit-widget/edit-widget-parameters-control.js
@@ -1,8 +1,4 @@
/**
- * File: edit-widget-text-control.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 21.04.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/edit-widget/edit-widget-signal-control.js b/src/widget/edit-widget/edit-widget-signal-control.js
index b376e8e..e87c689 100644
--- a/src/widget/edit-widget/edit-widget-signal-control.js
+++ b/src/widget/edit-widget/edit-widget-signal-control.js
@@ -1,8 +1,4 @@
/**
- * File: edit-widget-signal-control.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 03.04.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/edit-widget/edit-widget-text-control.js b/src/widget/edit-widget/edit-widget-text-control.js
index a8624c6..22aac97 100644
--- a/src/widget/edit-widget/edit-widget-text-control.js
+++ b/src/widget/edit-widget/edit-widget-text-control.js
@@ -1,8 +1,4 @@
/**
- * File: edit-widget-text-control.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 21.04.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/edit-widget/edit-widget-text-size-control.js b/src/widget/edit-widget/edit-widget-text-size-control.js
index 1c04ba6..10e7922 100644
--- a/src/widget/edit-widget/edit-widget-text-size-control.js
+++ b/src/widget/edit-widget/edit-widget-text-size-control.js
@@ -1,8 +1,4 @@
/**
- * File: edit-widget-text-size-control.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 29.07.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/edit-widget/edit-widget-time-control.js b/src/widget/edit-widget/edit-widget-time-control.js
index 736dc70..c78568b 100644
--- a/src/widget/edit-widget/edit-widget-time-control.js
+++ b/src/widget/edit-widget/edit-widget-time-control.js
@@ -1,8 +1,4 @@
/**
- * File: edit-widget-time-control.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 13.04.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/editable-widget-container.js b/src/widget/editable-widget-container.js
index 572a1ea..f49312e 100644
--- a/src/widget/editable-widget-container.js
+++ b/src/widget/editable-widget-container.js
@@ -1,8 +1,4 @@
/**
- * File: editable-widget-container.js
- * Author: Markus Grigull
- * Date: 31.05.2018
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
@@ -27,7 +23,7 @@ import { Rnd } from 'react-rnd';
class EditableWidgetContainer extends React.Component {
constructor(props) {
super(props);
-
+
this.rnd = null;
}
@@ -66,7 +62,7 @@ class EditableWidgetContainer extends React.Component {
};
resizeStop = (event, direction, ref,delta, position) => {
-
+
const widget = this.props.widget;
// resize depends on direction
@@ -125,9 +121,9 @@ class EditableWidgetContainer extends React.Component {
enableResizing={resizing}
disableDragging={widget.isLocked}
>
-
+
{this.props.children}
-
+
;
}
}
diff --git a/src/widget/grid.js b/src/widget/grid.js
index 16e8fa5..3c3a180 100644
--- a/src/widget/grid.js
+++ b/src/widget/grid.js
@@ -1,8 +1,4 @@
/**
- * File: grid.js
- * Author: Markus Grigull
- * Date: 27.07.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
@@ -32,7 +28,7 @@ class Grid extends React.Component {
-
+
);
diff --git a/src/widget/toolbox-item.js b/src/widget/toolbox-item.js
index be498f4..013c4cf 100644
--- a/src/widget/toolbox-item.js
+++ b/src/widget/toolbox-item.js
@@ -1,8 +1,4 @@
/**
- * File: toolbox-item.js
- * Author: Markus Grigull
- * Date: 02.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/widget-area.js b/src/widget/widget-area.js
index d33504c..b4d31f0 100644
--- a/src/widget/widget-area.js
+++ b/src/widget/widget-area.js
@@ -1,8 +1,4 @@
/**
- * File: widget-area.js
- * Author: Markus Grigull
- * Date: 31.05.2018
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/widget-container.js b/src/widget/widget-container.js
index 3218ba6..31360e2 100644
--- a/src/widget/widget-container.js
+++ b/src/widget/widget-container.js
@@ -1,8 +1,4 @@
/**
- * File: widget-container.js
- * Author: Markus Grigull
- * Date: 31.05.2018
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
@@ -24,7 +20,7 @@ import PropTypes from 'prop-types';
class WidgetContainer extends React.Component {
render() {
-
+
const containerStyle = {
width: Number(this.props.widget.width),
height: Number(this.props.widget.height),
diff --git a/src/widget/widget-context-menu.js b/src/widget/widget-context-menu.js
index ea79b92..bf83fc8 100644
--- a/src/widget/widget-context-menu.js
+++ b/src/widget/widget-context-menu.js
@@ -1,8 +1,4 @@
/**
- * File: widget-context-menu.js
- * Author: Markus Grigull
- * Date: 31.05.2018
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/widget-factory.js b/src/widget/widget-factory.js
index ef5b7bf..dd68e05 100644
--- a/src/widget/widget-factory.js
+++ b/src/widget/widget-factory.js
@@ -1,10 +1,4 @@
/**
- * File: widget-factory.js
- * Description: A factory to create and pre-configure widgets
- * Author: Ricardo Hernandez-Montoya
- * Date: 02.03.2017
- * 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
diff --git a/src/widget/widget-plot/plot-legend.js b/src/widget/widget-plot/plot-legend.js
index ad0cb64..22aba64 100644
--- a/src/widget/widget-plot/plot-legend.js
+++ b/src/widget/widget-plot/plot-legend.js
@@ -1,9 +1,4 @@
/**
- * File: plot-legend.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 10.04.2017
- * 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
diff --git a/src/widget/widget-plot/plot.js b/src/widget/widget-plot/plot.js
index 82c099a..444d540 100644
--- a/src/widget/widget-plot/plot.js
+++ b/src/widget/widget-plot/plot.js
@@ -1,9 +1,4 @@
/**
- * File: plot.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 10.04.2017
- * 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
@@ -104,7 +99,7 @@ class Plot extends React.Component {
} else {
yScale = scaleLinear().domain([0, 10]).range([props.height + topMargin - bottomMargin, topMargin]);
}
-
+
const xAxis = axisBottom().scale(xScale).ticks(5).tickFormat(timeFormat("%M:%S"));
const yAxis = axisLeft().scale(yScale).ticks(5).tickFormat(format(".3s"));
diff --git a/src/widget/widget-toolbox.js b/src/widget/widget-toolbox.js
index 9799ff5..9a4309b 100644
--- a/src/widget/widget-toolbox.js
+++ b/src/widget/widget-toolbox.js
@@ -1,8 +1,4 @@
/**
- * File: widget-toolbox.js
- * Author: Markus Grigull
- * Date: 31.05.2018
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/widget.js b/src/widget/widget.js
index 52efd9d..293cb19 100644
--- a/src/widget/widget.js
+++ b/src/widget/widget.js
@@ -1,8 +1,4 @@
/**
- * File: widget.js
- * Author: Markus Grigull
- * Date: 04.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/widgets/action.js b/src/widget/widgets/action.js
index 0d309a8..5a69d32 100644
--- a/src/widget/widgets/action.js
+++ b/src/widget/widgets/action.js
@@ -1,9 +1,4 @@
/**
- * File: action.js
- * Author: Steffen Vogel
- * Date: 17.06.2018
- * 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
diff --git a/src/widget/widgets/box.js b/src/widget/widgets/box.js
index e7c350c..758dec3 100644
--- a/src/widget/widgets/box.js
+++ b/src/widget/widgets/box.js
@@ -1,9 +1,4 @@
/**
- * File: box.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 25.04.2017
- * 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
diff --git a/src/widget/widgets/button.js b/src/widget/widgets/button.js
index a7fd2ae..c400b54 100644
--- a/src/widget/widgets/button.js
+++ b/src/widget/widgets/button.js
@@ -1,9 +1,4 @@
/**
- * File: button.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 29.03.2017
- * 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
diff --git a/src/widget/widgets/gauge.js b/src/widget/widgets/gauge.js
index 854034a..1feae3f 100644
--- a/src/widget/widgets/gauge.js
+++ b/src/widget/widgets/gauge.js
@@ -1,9 +1,4 @@
/**
- * File: gauge.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 31.03.2017
- * 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
diff --git a/src/widget/widgets/html.js b/src/widget/widgets/html.js
index 773aefa..e5c18a0 100644
--- a/src/widget/widgets/html.js
+++ b/src/widget/widgets/html.js
@@ -1,8 +1,4 @@
/**
- * File: html.js
- * Author: Markus Grigull
- * Date: 29.08.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/widgets/image.js b/src/widget/widgets/image.js
index 92ef00e..2fea54b 100644
--- a/src/widget/widgets/image.js
+++ b/src/widget/widgets/image.js
@@ -1,8 +1,4 @@
/**
- * File: image.js
- * Author: Markus Grigull
- * Date: 14.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/widgets/input.js b/src/widget/widgets/input.js
index 566dd16..bc27f3e 100644
--- a/src/widget/widgets/input.js
+++ b/src/widget/widgets/input.js
@@ -1,9 +1,4 @@
/**
- * File: input.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 29.03.2017
- * 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
diff --git a/src/widget/widgets/label.js b/src/widget/widgets/label.js
index 1c59f70..a7431e2 100644
--- a/src/widget/widgets/label.js
+++ b/src/widget/widgets/label.js
@@ -1,8 +1,4 @@
/**
- * File: label.js
- * Author: Markus Grigull
- * Date: 14.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/widgets/lamp.js b/src/widget/widgets/lamp.js
index cc4305c..b9a9605 100644
--- a/src/widget/widgets/lamp.js
+++ b/src/widget/widgets/lamp.js
@@ -1,8 +1,4 @@
/**
- * File: lamp.js
- * Author: Steffen Vogel
- * Date: 20.09.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/widgets/plot-table.js b/src/widget/widgets/plot-table.js
index b4cbb12..3e8e8f1 100644
--- a/src/widget/widgets/plot-table.js
+++ b/src/widget/widgets/plot-table.js
@@ -1,8 +1,4 @@
/**
- * File: plot-table.js
- * Author: Markus Grigull
- * Date: 15.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/widgets/slider.js b/src/widget/widgets/slider.js
index ac82ebc..bd4a6fe 100644
--- a/src/widget/widgets/slider.js
+++ b/src/widget/widgets/slider.js
@@ -1,9 +1,4 @@
/**
- * File: slider.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 30.03.2017
- * 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
diff --git a/src/widget/widgets/table.js b/src/widget/widgets/table.js
index 70db5af..54426bd 100644
--- a/src/widget/widgets/table.js
+++ b/src/widget/widgets/table.js
@@ -1,8 +1,4 @@
/**
- * File: table.js
- * Author: Markus Grigull
- * Date: 14.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/widgets/topology.js b/src/widget/widgets/topology.js
index 5c3ce7e..6d98195 100644
--- a/src/widget/widgets/topology.js
+++ b/src/widget/widgets/topology.js
@@ -1,8 +1,4 @@
/**
- * File: topology.js
- * Author: Ricardo Hernandez-Montoya
- * Date: 08.01.2018
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
diff --git a/src/widget/widgets/value.js b/src/widget/widgets/value.js
index c6035a5..91756fa 100644
--- a/src/widget/widgets/value.js
+++ b/src/widget/widgets/value.js
@@ -1,8 +1,4 @@
/**
- * File: value.js
- * Author: Markus Grigull
- * Date: 04.03.2017
- *
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify