-
.default})
+
Home
- {/*Welcome to {config.instance} hosted by {config.admin.name}!
*/}
- Welcome to {config.instance}!
+ Welcome to {Branding.instance.brand.title}!
You are logged in as user {currentUser.username} with ID {currentUser.id} and role {currentUser.role}.
-
- {/*
Data Model
-
.default})
-
-
Terminology
-
-
Infrastructure Component
-
- - A component of research infrastructure
- - Category: for example simulator, gateway, amplifier, database, etc.
- - Type: for example RTDS, OpalRT, VILLASnode, Cassandra
-
-
-
Component Configuration
-
- - Input signals: Signals that can be modified in VILLASweb
- - Output signals: Signals that can be visualized on dashboards of VILLASweb
- - Parameters: Further configuration parameters of the infrastructure component
-
-
-
Dashboard
-
- - Visualize ongoing experiments in real-time
- - Interact with ongoing experiments in real-time
-
-
-
Scenario
-
- - A collection of component configurations and dashboards for a specific experiment
- - Users can have access to multiple scenarios
-
*/}
-
Credits
VILLASweb is an open source project developed by the Institute for Automation of Complex Power Systems at RWTH Aachen University.
.default})
diff --git a/src/common/menu-sidebar.js b/src/common/menu-sidebar.js
index 2e953f8..1b7208e 100644
--- a/src/common/menu-sidebar.js
+++ b/src/common/menu-sidebar.js
@@ -17,24 +17,53 @@
import React from 'react';
import { NavLink } from 'react-router-dom';
+import Branding from '../branding/branding';
+
class SidebarMenu extends React.Component {
render() {
+ const brand = Branding.instance.brand;
+ console.log(brand.links)
+ let links = []
+
+ /*++++
+ for (var key of Object.keys(brand.links) ) {
+ console.log(`${key}: ${brand.links[key]}`);
+ links.push(
{key});
+ }*/
+
+ if (brand.links) {
+ Object.keys(brand.links).forEach(key => {
+ console.log(`${key}: ${brand.links[key]}`);
+ links.push(
{key});
+ })
+ }
+
+
return (
Menu
- - Home
- - Scenarios
- - Infrastructure Components
- { this.props.currentRole === 'Admin' ?
- - User Management
: ''
+ - Home
+ - Scenarios
+ - Infrastructure Components
+ {this.props.currentRole === 'Admin' ?
+ - User Management
: ''
}
- - Account
+ - Account
- Logout
- - API Browser
+ - API Browser
+ {
+ links.length > 0 ?
+
+ : ''
+ }
);
}
diff --git a/src/config.js b/src/config.js
index 874e58f..c7998c0 100644
--- a/src/config.js
+++ b/src/config.js
@@ -16,13 +16,12 @@
******************************************************************************/
const config = {
- publicPathBase: 'public/',
- instance: 'VILLASweb',
- subtitle: 'ACS',
- admin: {
- name: 'Institute for Automation of Complex Power Systems (ACS), RWTH Aachen University, Germany',
- mail: 'stvogel@eonerc.rwth-aachen.de'
- }
-};
+ publicPathBase: 'public/',
+ admin: {
+ name: 'Institute for Automation of Complex Power Systems (ACS), RWTH Aachen University, Germany',
+ mail: 'stvogel@eonerc.rwth-aachen.de'
+ },
+ branding: 'slew',
+}
export default config
diff --git a/src/img/slew-logo.png b/src/img/slew-logo.png
new file mode 100644
index 0000000..747bf83
Binary files /dev/null and b/src/img/slew-logo.png differ
diff --git a/src/router.js b/src/router.js
index 05cf900..6b9321d 100644
--- a/src/router.js
+++ b/src/router.js
@@ -29,6 +29,7 @@ import InfrastructureComponents from './ic/ics';
import Users from './user/users';
import User from "./user/user";
+
class Root extends React.Component {
render() {
return (