107 lines
3.0 KiB
JavaScript
107 lines
3.0 KiB
JavaScript
import {
|
|
Search,
|
|
GamepadRounded,
|
|
AccessibilityNew,
|
|
LibraryAdd,
|
|
ImportContacts,
|
|
BugReport,
|
|
People,
|
|
Group,
|
|
VpnKey,
|
|
Home,
|
|
AddCircleOutline
|
|
} from '@material-ui/icons'
|
|
|
|
const usersMenus = {
|
|
title: 'Users',
|
|
to: '/users',
|
|
icon: Home,
|
|
submenus: [
|
|
{ title: 'Directory', to: '/users/browse', icon: ImportContacts },
|
|
{ title: 'Search', to: '/users/search', icon: Search },
|
|
{ title: 'Your Profile', to: '/users/user', icon: People, authenticated: true },
|
|
{ title: 'Report a Bug', to: 'https://github.com/Superalgos/UsersModule/issues/new', icon: BugReport, externalLink: true }
|
|
]
|
|
}
|
|
|
|
const teamsMenus = {
|
|
title: 'Teams',
|
|
to: '/teams',
|
|
icon: Home,
|
|
submenus: [
|
|
{ title: 'Directory', to: '/teams/explore', icon: ImportContacts },
|
|
{ title: 'Your teams', to: '/teams/manage-teams', icon: Group, authenticated: true },
|
|
{ title: 'Team members', to: '/teams/team-members', icon: People, authenticated: true },
|
|
{ title: 'Report a Bug', to: 'https://github.com/Superalgos/TeamsModule/issues/new', icon: BugReport, externalLink: true }
|
|
]
|
|
}
|
|
|
|
const eventsMenus = {
|
|
title: 'Events',
|
|
to: '/events',
|
|
icon: Home,
|
|
submenus: [
|
|
{ title: 'Directory', to: '/events', icon: ImportContacts },
|
|
{ title: 'Your hosted events', to: '/events/host', icon: AccessibilityNew, authenticated: true },
|
|
{ title: 'Host an event', to: '/events/create', icon: LibraryAdd, authenticated: true },
|
|
{ title: 'Report a Bug', to: 'https://github.com/Superalgos/EventsClientModule/issues/new', icon: BugReport, externalLink: true }
|
|
]
|
|
}
|
|
|
|
const keyvaultMenus = {
|
|
title: 'Keys',
|
|
to: '/keys',
|
|
icon: Home,
|
|
authenticated: true,
|
|
submenus: [
|
|
{ title: 'Your keys', to: '/keys/browse', icon: VpnKey },
|
|
{ title: 'Add key', to: '/keys/addKey', icon: AddCircleOutline },
|
|
{ title: 'Report a Bug', to: 'https://github.com/Superalgos/KeyVaultModule/issues/new', icon: BugReport, externalLink: true }
|
|
]
|
|
}
|
|
|
|
const operationsMenus = {
|
|
title: 'Clones',
|
|
to: '/clones',
|
|
icon: Home,
|
|
authenticated: true,
|
|
submenus: [
|
|
{ title: 'Active Clones', to: '/clones/browse', icon: ImportContacts },
|
|
{ title: 'History Clones', to: '/clones/history', icon: LibraryAdd },
|
|
{ title: 'Create Clone', to: '/clones/add', icon: AddCircleOutline },
|
|
{ title: 'Report a Bug', to: 'https://github.com/Superalgos/OperationsModule/issues/new', icon: BugReport, externalLink: true }
|
|
]
|
|
}
|
|
|
|
const minersMenus = {
|
|
title: 'Miners',
|
|
to: '/miners',
|
|
icon: Home,
|
|
authenticated: false,
|
|
submenus: [
|
|
{ title: 'Report a Bug', to: 'https://github.com/Superalgos/minersClient/issues/new', icon: BugReport, externalLink: true }
|
|
]
|
|
}
|
|
|
|
// const financialBeingsMenus = {
|
|
// title: 'FBs',
|
|
// to: '/financial-beings',
|
|
// icon: Home,
|
|
// authenticated: false,
|
|
// submenus: [
|
|
// { title: 'Directory', to: '/financial-beings', icon: ImportContacts }
|
|
// ]
|
|
// }
|
|
|
|
const allMenus = [
|
|
usersMenus,
|
|
teamsMenus,
|
|
eventsMenus,
|
|
// financialBeingsMenus,
|
|
keyvaultMenus,
|
|
operationsMenus,
|
|
minersMenus
|
|
]
|
|
|
|
export default allMenus
|