Blame view
src/api/menu.js
7.78 KB
37150e7c1
|
1 |
const adminMenu = [ |
813e55a79
|
2 |
// { header: 'Apps' }, |
a17c68a03
|
3 4 5 |
{ title: 'Dashboard', // group: 'apps', |
687e0b929
|
6 7 |
path: '/dashboard', icon: '/static/schoolIcons/Dashboard.png', |
a17c68a03
|
8 |
}, |
813e55a79
|
9 10 11 |
{ title: 'Class', // group: 'apps', |
687e0b929
|
12 13 |
path: '/addclass', icon: '/static/schoolIcons/Class.png', |
813e55a79
|
14 15 16 17 |
}, { title: 'Section', // group: 'apps', |
687e0b929
|
18 19 |
path: '/section', icon: '/static/schoolIcons/Section.png', |
813e55a79
|
20 21 |
}, { |
46db0a3b5
|
22 |
title: 'Subjects', |
687e0b929
|
23 24 |
path: '/subject', icon: '/static/schoolIcons/Subjects.png', |
46db0a3b5
|
25 26 |
}, { |
813e55a79
|
27 28 |
title: 'Parents', // group: 'apps', |
687e0b929
|
29 30 |
path: '/parents', icon: '/static/schoolIcons/Parents.png', |
813e55a79
|
31 32 33 34 |
}, { title: 'Teachers', // group: '', |
687e0b929
|
35 36 |
path: 'teachers', icon: '/static/schoolIcons/Teachers.png', |
813e55a79
|
37 38 39 40 |
}, { title: 'Students', // group: 'apps', |
687e0b929
|
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
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: '', }, |
0cd2fbfba
|
56 |
{ 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', |
6e4ee81cb
|
64 |
icon: '/static/schoolIcons/exam.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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
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: '', }, |
1c69557ac
|
94 |
{ name: 'bulkImportole', title: 'Bulk Import', component: 'bulkImport', action: '', }, |
006544386
|
95 96 97 |
] }, { |
46db0a3b5
|
98 |
title: 'Notice Board', |
687e0b929
|
99 100 |
path: '/NoticeBoard', icon: '/static/schoolIcons/Notice_board.png', |
46db0a3b5
|
101 |
}, |
813e55a79
|
102 103 |
{ title: 'News', |
687e0b929
|
104 105 |
path: '/news', icon: '/static/schoolIcons/News.png', |
813e55a79
|
106 107 108 109 110 111 112 113 |
}, // { // title: 'Reminder', // name: 'reminder', // icon: 'alarm_add', // }, { title: 'Time Table', |
687e0b929
|
114 115 |
path: '/timeTable', icon: '/static/schoolIcons/Time_table.png', |
813e55a79
|
116 |
}, |
ab54b5656
|
117 118 119 120 121 122 |
{ title: 'Library', group: 'Library', component: 'Library', icon: '/static/schoolIcons/Library.png', items: [ |
6c05a9f84
|
123 |
{ name: 'libraryMember', title: ' Library Member', component: 'libraryMember', action: '', }, |
ab54b5656
|
124 |
{ name: 'Books', title: 'Books', component: 'Books', action: '', }, |
be1fe29bb
|
125 |
{ name: 'Issue', title: ' Issue', component: 'Issue', action: '', }, |
6c05a9f84
|
126 |
{ name: 'eBooks', title: 'E-Books', component: 'eBooks', action: '', } |
687e0b929
|
127 |
|
ab54b5656
|
128 129 |
] }, |
813e55a79
|
130 |
{ |
006544386
|
131 132 133 134 135 136 |
title: 'Report', group: 'Report', component: 'Report', icon: '/static/schoolIcons/reports.png', items: [ { name: 'studentReport', title: 'Student Report', component: 'studentReport', action: '', }, |
495e4037c
|
137 |
{ name: 'progressCardReport', title: 'Progress Card Report', component: 'progressCardReport', action: '', } |
006544386
|
138 139 140 |
] }, { |
813e55a79
|
141 |
title: 'Notification', |
687e0b929
|
142 143 |
path: '/notification', icon: '/static/schoolIcons/Notification.png', |
813e55a79
|
144 |
}, |
8bb178441
|
145 146 |
{ title: 'Social Media', |
687e0b929
|
147 148 |
path: '/SocialMedia', icon: '/static/schoolIcons/Social_Media.png', |
8bb178441
|
149 150 151 |
}, { title: 'Gallery', |
687e0b929
|
152 153 |
path: '/Gallery', icon: '/static/schoolIcons/Gallery.png', |
8bb178441
|
154 |
}, |
4bd94ba60
|
155 156 |
{ title: 'Event', |
687e0b929
|
157 158 |
path: '/Event', icon: '/static/schoolIcons/Events.png', |
4bd94ba60
|
159 160 |
}, { |
687e0b929
|
161 162 163 164 165 166 167 168 169 170 |
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: '', }, |
fc77c38e0
|
171 |
{ name: 'GlobalPayment', title: 'Global Payment', component: 'GlobalPayment', action: '', } |
687e0b929
|
172 |
] |
79583580d
|
173 174 175 176 177 178 179 180 181 182 |
}, { title: 'Holiday', path: '/Holiday', icon: '/static/schoolIcons/Holidays.png', }, { title: 'General Setting', path: '/generalSetting', icon: '/static/schoolIcons/settings.png', |
4bd94ba60
|
183 |
} |
1c1942362
|
184 |
]; |
93a68cfa1
|
185 |
|
99cd79184
|
186 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 |
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
|
214 215 216 217 218 219 220 |
const schoolMenu = [ // { header: 'Apps' }, { title: 'School', // group: 'apps', path: '/school', icon: '/static/schoolIcons/Dashboard.png', |
1c69557ac
|
221 |
} |
37150e7c1
|
222 |
]; |
93a68cfa1
|
223 |
|
93a68cfa1
|
224 |
// reorder menu |
37150e7c1
|
225 226 227 228 229 230 231 232 233 |
// 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
|
234 |
|
99cd79184
|
235 |
export default { adminMenu, schoolMenu, libraryMenu, accountMenu }; |