menu.js
1.81 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
const Menu = [
// { header: 'Apps' },
// {
// title: 'Dashboard',
// // group: 'apps',
// name: 'Dashboard',
// icon: 'dashboard',
// },
{
title: 'Class',
// group: 'apps',
name: 'addclass',
icon: 'local_library',
},
{
title: 'Section',
// group: 'apps',
name: 'section',
icon: 'view_module',
},
{
title: 'Subjects',
name: 'Subject',
icon: 'subject',
},
{
title: 'Parents',
// group: 'apps',
name: 'parents',
icon: 'group',
},
{
title: 'Teachers',
// group: '',
name: 'teachers',
icon: 'person',
},
{
title: 'Students',
// group: 'apps',
name: 'Students',
icon: 'school',
},
{
title: 'Notice Board',
name: 'NoticeBoard',
icon: 'notifications',
},
{
title: 'News',
name: 'news',
icon: 'announcement',
},
// {
// title: 'Reminder',
// name: 'reminder',
// icon: 'alarm_add',
// },
{
title: 'Time Table',
name: 'timeTable',
icon: 'event_note',
},
{
title: 'Notification',
name: 'notification',
icon: 'notifications_active',
},
{
title: 'Social Media',
name: 'SocialMedia',
icon: 'cloud_upload',
},
{
title: 'Gallery',
name: 'Gallery',
icon: 'photo',
},
];
// 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;