Blame view
src/api/menu.js
7.83 KB
37150e7c1
|
1 |
const adminMenu = [ |
813e55a79
|
2 |
// { header: 'Apps' }, |
a17c68a03
|
3 4 5 |
{ title: 'Dashboard', // group: 'apps', |
68d742034
|
6 7 |
name: 'Dashboard', icon: '/static/icon/dashboard icons-04.png', |
a17c68a03
|
8 |
}, |
813e55a79
|
9 10 11 |
{ title: 'Class', // group: 'apps', |
68d742034
|
12 13 |
name: 'Class', icon: '/static/icon/dashboard icons-03.png', |
813e55a79
|
14 15 16 17 |
}, { title: 'Section', // group: 'apps', |
68d742034
|
18 19 |
name: 'Section', icon: '/static/icon/dashboard icons-05.png', |
813e55a79
|
20 21 |
}, { |
46db0a3b5
|
22 |
title: 'Subjects', |
68d742034
|
23 24 |
name: 'Subject', icon: '/static/icon/dashboard icons-02.png', |
46db0a3b5
|
25 26 |
}, { |
813e55a79
|
27 28 |
title: 'Parents', // group: 'apps', |
68d742034
|
29 30 |
name: 'Parents', icon: '/static/icon/dashboard icons-07.png', |
813e55a79
|
31 32 33 34 |
}, { title: 'Teachers', // group: '', |
68d742034
|
35 36 |
name: 'Teachers', icon: '/static/icon/dashboard icons-08.png', |
813e55a79
|
37 38 39 40 |
}, { title: 'Students', // group: 'apps', |
68d742034
|
41 42 |
name: 'Students', icon: '/static/icon/dashboard icons-09.png', |
687e0b929
|
43 44 45 |
}, { title: 'User', |
68d742034
|
46 47 |
name: 'User', icon: '/static/icon/dashboard icons-06.png', |
687e0b929
|
48 49 50 51 52 |
}, { title: 'Attendance', group: 'Attendance', component: 'Attendance', |
68d742034
|
53 |
icon: '/static/icon/dashboard icons-19.png', |
687e0b929
|
54 |
items: [ |
68d742034
|
55 56 |
{ name: 'StudentAttendence', title: 'Student Attendance', component: 'StudentAttendence', action: '', }, { name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'TeacherAttendence', action: '', } |
687e0b929
|
57 58 |
// { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, ] |
813e55a79
|
59 |
}, |
46db0a3b5
|
60 |
{ |
0551a0f15
|
61 62 63 |
title: 'Exam', group: 'Exam', component: 'Exam', |
68d742034
|
64 |
icon: '/static/icon/dashboard icons-21.png', |
0551a0f15
|
65 66 67 68 69 70 71 72 |
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: '', }, ] }, { |
006544386
|
73 74 75 |
title: 'Mark', group: 'Mark', component: 'Mark', |
68d742034
|
76 |
icon: '/static/icon/dashboard icons-23.png', |
006544386
|
77 78 |
items: [ { name: 'Mark', title: 'Mark', component: 'Mark', action: '', }, |
68d742034
|
79 |
{ name: 'MarkDistribution', title: 'Mark Distribution', component: 'MarkDistribution', action: '', }, |
006544386
|
80 81 82 83 84 85 86 87 |
{ name: 'Promotion', title: 'promotion', component: 'Promotion', action: '', }, // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, ] }, { title: 'Administrator', group: 'Administrator', component: 'Administrator', |
68d742034
|
88 |
icon: '/static/icon/dashboard icons-25.png', |
006544386
|
89 |
items: [ |
68d742034
|
90 |
{ name: 'AcademicYear', title: 'Academic Year', component: 'AcademicYear', action: '', }, |
20ed133e3
|
91 |
// { name: 'systemAdmin', title: 'System Admin', component: 'systemAdmin', action: '', }, |
006544386
|
92 93 |
{ name: 'resetPassword', title: 'Reset Password', component: 'resetPassword', action: '', }, { name: 'Role', title: 'Role', component: 'Role', action: '', }, |
68d742034
|
94 |
{ name: 'BulkImport', title: 'Bulk Import', component: 'BulkImport', action: '', }, |
1c69557ac
|
95 |
|
006544386
|
96 97 98 |
] }, { |
46db0a3b5
|
99 |
title: 'Notice Board', |
68d742034
|
100 101 |
name: 'NoticeBoard', icon: '/static/icon/dashboard icons-27.png', |
46db0a3b5
|
102 |
}, |
813e55a79
|
103 104 |
{ title: 'News', |
68d742034
|
105 106 |
name: 'News', icon: '/static/icon/dashboard icons-41.png', |
813e55a79
|
107 108 109 110 111 112 113 114 |
}, // { // title: 'Reminder', // name: 'reminder', // icon: 'alarm_add', // }, { title: 'Time Table', |
68d742034
|
115 116 |
name: 'TimeTable', icon: '/static/icon/dashboard icons-23.png', |
813e55a79
|
117 |
}, |
ab54b5656
|
118 119 120 121 |
{ title: 'Library', group: 'Library', component: 'Library', |
68d742034
|
122 |
icon: '/static/icon/dashboard icons-29.png', |
ab54b5656
|
123 |
items: [ |
68d742034
|
124 |
{ name: 'LibraryMember', title: ' Library Member', component: 'LibraryMember', action: '', }, |
ab54b5656
|
125 |
{ name: 'Books', title: 'Books', component: 'Books', action: '', }, |
be1fe29bb
|
126 |
{ name: 'Issue', title: ' Issue', component: 'Issue', action: '', }, |
68d742034
|
127 |
{ name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', } |
687e0b929
|
128 |
|
ab54b5656
|
129 130 |
] }, |
813e55a79
|
131 |
{ |
006544386
|
132 133 134 |
title: 'Report', group: 'Report', component: 'Report', |
68d742034
|
135 |
icon: '/static/icon/dashboard icons-31.png', |
006544386
|
136 137 |
items: [ { name: 'studentReport', title: 'Student Report', component: 'studentReport', action: '', }, |
68d742034
|
138 |
{ name: 'ProgressCardReport', title: 'Progress Card Report', component: 'ProgressCardReport', action: '', } |
006544386
|
139 140 141 |
] }, { |
813e55a79
|
142 |
title: 'Notification', |
68d742034
|
143 144 |
name: 'Notification', icon: '/static/icon/dashboard icons-33.png', |
813e55a79
|
145 |
}, |
8bb178441
|
146 147 |
{ title: 'Social Media', |
68d742034
|
148 149 |
name: 'SocialMedia', icon: '/static/icon/dashboard icons-35.png', |
8bb178441
|
150 151 152 |
}, { title: 'Gallery', |
68d742034
|
153 154 |
name: 'Gallery', icon: '/static/icon/dashboard icons-37.png', |
8bb178441
|
155 |
}, |
4bd94ba60
|
156 157 |
{ title: 'Event', |
68d742034
|
158 159 |
name: 'Event', icon: '/static/icon/dashboard icons-39.png', |
4bd94ba60
|
160 161 |
}, { |
687e0b929
|
162 163 164 |
title: 'Account', group: 'Account', component: 'Account', |
68d742034
|
165 |
icon: '/static/icon/dashboard icons-43.png', |
687e0b929
|
166 167 168 |
items: [ { name: 'feeTypes', title: 'Fee Types', component: 'feeTypes', action: '', }, { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', }, |
68d742034
|
169 |
{ name: 'PaymentHistory', title: 'Payment History', component: 'PaymentHistory', action: '', }, |
687e0b929
|
170 171 |
{ name: 'Expense', title: 'Expense', component: 'Expense', action: '', }, { name: 'Income', title: 'Income', component: 'Income', action: '', }, |
fc77c38e0
|
172 |
{ name: 'GlobalPayment', title: 'Global Payment', component: 'GlobalPayment', action: '', } |
687e0b929
|
173 |
] |
79583580d
|
174 175 176 |
}, { title: 'Holiday', |
68d742034
|
177 178 |
name: 'Holiday', icon: '/static/icon/dashboard icons-41.png', |
79583580d
|
179 180 181 |
}, { title: 'General Setting', |
68d742034
|
182 183 |
name: 'GeneralSetting', icon: '/static/icon/dashboard icons-45.png', |
4bd94ba60
|
184 |
} |
1c1942362
|
185 |
]; |
93a68cfa1
|
186 |
|
99cd79184
|
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 |
const libraryMenu = [{ 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: '', } ] }]; const accountMenu = [{ 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: '', }, { name: 'GlobalPayment', title: 'Global Payment', component: 'GlobalPayment', action: '', } ] }]; |
37150e7c1
|
215 216 217 218 219 220 221 |
const schoolMenu = [ // { header: 'Apps' }, { title: 'School', // group: 'apps', path: '/school', icon: '/static/schoolIcons/Dashboard.png', |
1c69557ac
|
222 |
} |
37150e7c1
|
223 |
]; |
93a68cfa1
|
224 |
|
93a68cfa1
|
225 |
// reorder menu |
37150e7c1
|
226 227 228 229 230 231 232 233 234 |
// 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; // }); // } // }); |
93a68cfa1
|
235 |
|
99cd79184
|
236 |
export default { adminMenu, schoolMenu, libraryMenu, accountMenu }; |