menu.js
6.06 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
const Menu = [
// { header: 'Apps' },
{
title: 'Dashboard',
// group: 'apps',
path: '/dashboard',
icon: '/static/schoolIcons/Dashboard.png',
},
{
title: 'Class',
// group: 'apps',
path: '/addclass',
icon: '/static/schoolIcons/Class.png',
},
{
title: 'Section',
// group: 'apps',
path: '/section',
icon: '/static/schoolIcons/Section.png',
},
{
title: 'Subjects',
path: '/subject',
icon: '/static/schoolIcons/Subjects.png',
},
{
title: 'Parents',
// group: 'apps',
path: '/parents',
icon: '/static/schoolIcons/Parents.png',
},
{
title: 'Teachers',
// group: '',
path: 'teachers',
icon: '/static/schoolIcons/Teachers.png',
},
{
title: 'Students',
// group: 'apps',
path: '/Students',
icon: '/static/schoolIcons/Students.png',
},
{
title: 'User',
path: '/User',
icon: '/static/schoolIcons/User.png',
},
{
title: 'Attendance',
group: 'Attendance',
component: 'Attendance',
icon: '/static/schoolIcons/Attendance.png',
items: [
{ name: 'studentAttendence', title: 'Student Attendance', component: 'studentAttendence', action: '', },
// { name: 'teacherAttendence', title: 'Teacher Attendance', component: 'teacherAttendence', action: '', },
// { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', },
]
},
{
title: 'Exam',
group: 'Exam',
component: 'Exam',
icon: '/static/schoolIcons/exam.png',
items: [
{ name: 'Exam', title: 'Exam', component: 'Exam', action: '', },
{ name: 'ExamSchedule', title: 'Exam Schedule', component: 'ExamSchedule', action: '', },
{ name: 'Grade', title: 'Grade', component: 'Grade', action: '', },
// { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', },
]
},
{
title: 'Mark',
group: 'Mark',
component: 'Mark',
icon: '/static/schoolIcons/marks.png',
items: [
{ name: 'Mark', title: 'Mark', component: 'Mark', action: '', },
{ name: 'markDistribution', title: 'Mark Distribution', component: 'markDistribution', action: '', },
{ name: 'Promotion', title: 'promotion', component: 'Promotion', action: '', },
// { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', },
]
},
{
title: 'Administrator',
group: 'Administrator',
component: 'Administrator',
icon: '/static/schoolIcons/administrator.png',
items: [
{ name: 'academicYear', title: 'Academic Year', component: 'academicYear', action: '', },
{ name: 'systemAdmin', title: 'System Admin', component: 'systemAdmin', action: '', },
{ name: 'resetPassword', title: 'Reset Password', component: 'resetPassword', action: '', },
{ name: 'Role', title: 'Role', component: 'Role', action: '', },
]
},
{
title: 'Notice Board',
path: '/NoticeBoard',
icon: '/static/schoolIcons/Notice_board.png',
},
{
title: 'News',
path: '/news',
icon: '/static/schoolIcons/News.png',
},
// {
// title: 'Reminder',
// name: 'reminder',
// icon: 'alarm_add',
// },
{
title: 'Time Table',
path: '/timeTable',
icon: '/static/schoolIcons/Time_table.png',
},
{
title: 'Library',
group: 'Library',
component: 'Library',
icon: '/static/schoolIcons/Library.png',
items: [
{ name: 'libraryMember', title: ' Library Member', component: 'libraryMember', action: '', },
{ name: 'Books', title: 'Books', component: 'Books', action: '', },
{ name: 'Issue', title: ' Issue', component: 'Issue', action: '', },
{ name: 'eBooks', title: 'E-Books', component: 'eBooks', action: '', }
]
},
{
title: 'Report',
group: 'Report',
component: 'Report',
icon: '/static/schoolIcons/reports.png',
items: [
{ name: 'studentReport', title: 'Student Report', component: 'studentReport', action: '', },
{ name: 'markSheetReport', title: 'Mark Sheet Report', component: 'markSheetReport', action: '', }
]
},
{
title: 'Notification',
path: '/notification',
icon: '/static/schoolIcons/Notification.png',
},
{
title: 'Social Media',
path: '/SocialMedia',
icon: '/static/schoolIcons/Social_Media.png',
},
{
title: 'Gallery',
path: '/Gallery',
icon: '/static/schoolIcons/Gallery.png',
},
{
title: 'Event',
path: '/Event',
icon: '/static/schoolIcons/Events.png',
},
{
title: 'Holiday',
path: '/Holiday',
icon: '/static/schoolIcons/Holidays.png',
},
{
title: 'Account',
group: 'Account',
component: 'Account',
icon: '/static/schoolIcons/Account.png',
items: [
{ name: 'feeTypes', title: 'Fee Types', component: 'feeTypes', action: '', },
{ name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', },
{ name: 'paymentHistory', title: 'Payment History', component: 'paymentHistory', action: '', },
{ name: 'Expense', title: 'Expense', component: 'Expense', action: '', },
{ name: 'Income', title: 'Income', component: 'Income', action: '', },
]
}
];
// 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;