-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmenus.js
39 lines (38 loc) · 1.55 KB
/
menus.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
const menus = [
{ path: '/login', title: 'Login', showOnlyWhenLoggedOut: true, position: 'right' },
{ path: '/register', title: 'Register', showOnlyWhenLoggedOut: true, position: 'right' },
{ path: '/decks', title: 'Decks', showOnlyWhenLoggedIn: true, position: 'left' },
{ path: '/play', title: 'Play', position: 'left' },
{
title: 'Help', position: 'left', childItems: [
{ path: '/how-to-play', title: 'How To Play' },
{ path: '/about', title: 'About' },
{ path: '/privacy', title: 'Privacy Policy' }
]
},
{
title: 'Placeholder',
childItems: [
{ title: 'Profile', path: '/profile' },
{ title: 'Security', path: '/security' },
{ title: 'Block List', path: '/blocklist' },
{ title: 'Logout', path: '/logout' }
],
showOnlyWhenLoggedIn: true,
position: 'right',
showProfilePicture: true
},
{
title: 'Admin',
showOnlyWhenLoggedIn: true,
childItems: [
{ path: '/news', title: 'News', permission: 'canEditNews' },
{ path: '/users', title: 'Users', permission: 'canManageUsers' },
{ path: '/nodes', title: 'Nodes', permission: 'canManageNodes' },
{ path: '/admin/motd', title: 'Motd', permission: 'canManageMotd' },
{ path: '/banlist', title: 'Ban List', permission: 'canManageBanlist' },
{ path: '/events', title: 'Events', permission: 'canManageEvents' }
], position: 'left'
}
];
export default menus;