From 75fe31bc7ad14f446658264050c329f58dc6f6b2 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 22 Mar 2019 17:55:35 +0100 Subject: [PATCH] Adding the cockpit module (not in package.json yet) --- client/src/App.js | 8 ++++++-- client/src/views/layout/header/imports.js | 14 +++++++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/client/src/App.js b/client/src/App.js index 105c11189..192159d08 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -23,6 +23,7 @@ import Operations from '@superalgos/operations-client' import Strategizer from '@superalgos/strategizer-client' import Logs from '@superalgos/logs-client' // import Miners from '@superalgos/miners-client' +import Cockpit from '@superalgos/cockpit-client' export const auth = new Auth( result => console.log('Authentication successful.'), @@ -74,7 +75,7 @@ export const MasterApp = props => ( /> } + render={props => } /> ( path='/logs' render={props => } /> - + } + /> diff --git a/client/src/views/layout/header/imports.js b/client/src/views/layout/header/imports.js index 09ca7a5e3..16beebdc2 100644 --- a/client/src/views/layout/header/imports.js +++ b/client/src/views/layout/header/imports.js @@ -84,6 +84,17 @@ const minersMenus = { ] } +const cockpitMenus = { + title: 'Cockpit', + to: '/cockpit', + icon: Home, + authenticated: true, + submenus: [ + { title: 'Signals', to: '/cockpit/signals', icon: GamepadRounded }, + { title: 'Report a Bug', to: 'https://github.com/Superalgos/CockpitClientModule/issues/new', icon: BugReport, externalLink: true } + ] +} + // const financialBeingsMenus = { // title: 'FBs', // to: '/financial-beings', @@ -113,7 +124,8 @@ const allMenus = [ keyvaultMenus, operationsMenus, minersMenus, - strategizerMenus + strategizerMenus, + cockpitMenus ] export default allMenus