menu.js
1.24 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
const Menu = [
// { header: 'Apps' },
// {
// title: 'Dashboard',
// // group: 'apps',
// name: 'dashboard',
// icon: 'view_module',
// },
{
title: 'Class',
// group: 'apps',
name: 'addclass',
icon: 'local_library',
},
{
title: 'Section',
// group: 'apps',
name: 'section',
icon: 'view_module',
},
{
title: 'Teachers',
// group: '',
name: 'teachers',
icon: 'group',
},
{
title: 'Students',
// group: 'apps',
name: 'Students',
icon: 'school',
},
// {
// title: 'Event',
// name: 'event',
// icon: 'event_available',
// },
{
title: 'News',
name: 'news',
icon: 'notification_important',
},
// {
// title: 'Reminder',
// name: 'reminder',
// icon: 'alarm_add',
// },
{
title: 'Time Table',
name: 'timeTable',
icon: 'event_note',
},
{
title: 'Notification',
name: 'notification',
icon: 'notifications_active',
},
];
// reorder menu
Menu.forEach((item) => {
if (item.items) {
item.items.sort((x, y) => {
let textA = x.title.toUpperCase();
let textB = y.title.toUpperCase();
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
});
}
});
export default Menu;