Adding the cockpit module (not in package.json yet)
This commit is contained in:
1 parent
d17d9ba18b
commit
75fe31bc7a
2 files changed
+19
-3
No files matched your search
+6
-2
@@ -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 => (
|
||||
/>
|
||||
<Route
|
||||
path='/financial-beings'
|
||||
render={props => <FinancialBeings {...props} auth={auth}/>}
|
||||
render={props => <FinancialBeings {...props} auth={auth} />}
|
||||
/>
|
||||
<Route
|
||||
path='/keys'
|
||||
@@ -92,7 +93,10 @@ export const MasterApp = props => (
|
||||
path='/logs'
|
||||
render={props => <Logs {...props} auth={auth} />}
|
||||
/>
|
||||
|
||||
<Route
|
||||
path='/cockpit'
|
||||
render={props => <Cockpit {...props} auth={auth} />}
|
||||
/>
|
||||
</Switch>
|
||||
</Layout>
|
||||
</MuiThemeProvider>
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user