Commit d9bc992f033f2d0624a86ade350cefbd1246857b
1 parent
b546bc474a
Exists in
master
and in
1 other branch
minor change
Showing
1 changed file
with
0 additions
and
14 deletions
Show diff stats
src/api/menu.js
1 | const adminMenu = [ | 1 | const adminMenu = [ |
2 | // { header: 'Apps' }, | 2 | // { header: 'Apps' }, |
3 | { | 3 | { |
4 | title: 'Dashboard', | 4 | title: 'Dashboard', |
5 | // group: 'apps', | 5 | // group: 'apps', |
6 | name: 'Dashboard', | 6 | name: 'Dashboard', |
7 | icon: '/static/icon/dashboard.png', | 7 | icon: '/static/icon/dashboard.png', |
8 | }, | 8 | }, |
9 | { | 9 | { |
10 | title: 'Class', | 10 | title: 'Class', |
11 | // group: 'apps', | 11 | // group: 'apps', |
12 | name: 'Class', | 12 | name: 'Class', |
13 | icon: '/static/icon/class.png', | 13 | icon: '/static/icon/class.png', |
14 | }, | 14 | }, |
15 | { | 15 | { |
16 | title: 'Course', | 16 | title: 'Course', |
17 | group: 'AdminCourse', | 17 | group: 'AdminCourse', |
18 | component: 'AdminCourse', | 18 | component: 'AdminCourse', |
19 | icon: '/static/icon/attendence.png', | 19 | icon: '/static/icon/attendence.png', |
20 | items: [ | 20 | items: [ |
21 | { name: 'AssignTeachers', title: 'Assign Teachers', component: 'AssignTeachers', action: '', }, | 21 | { name: 'AssignTeachers', title: 'Assign Teachers', component: 'AssignTeachers', action: '', }, |
22 | 22 | ||
23 | ] | 23 | ] |
24 | }, | 24 | }, |
25 | { | 25 | { |
26 | title: 'Section', | 26 | title: 'Section', |
27 | // group: 'apps', | 27 | // group: 'apps', |
28 | name: 'Section', | 28 | name: 'Section', |
29 | icon: '/static/icon/section.png', | 29 | icon: '/static/icon/section.png', |
30 | }, | 30 | }, |
31 | // { | 31 | // { |
32 | // title: 'Subjects', | 32 | // title: 'Subjects', |
33 | // name: 'Subject', | 33 | // name: 'Subject', |
34 | // icon: '/static/icon/subject.png', | 34 | // icon: '/static/icon/subject.png', |
35 | // }, | 35 | // }, |
36 | { | 36 | { |
37 | title: 'Parents', | 37 | title: 'Parents', |
38 | // group: 'apps', | 38 | // group: 'apps', |
39 | name: 'Parents', | 39 | name: 'Parents', |
40 | icon: '/static/icon/parents.png', | 40 | icon: '/static/icon/parents.png', |
41 | }, | 41 | }, |
42 | { | 42 | { |
43 | title: 'Teachers', | 43 | title: 'Teachers', |
44 | // group: '', | 44 | // group: '', |
45 | name: 'Teachers', | 45 | name: 'Teachers', |
46 | icon: '/static/icon/teacher.png', | 46 | icon: '/static/icon/teacher.png', |
47 | }, | 47 | }, |
48 | { | 48 | { |
49 | title: 'Students', | 49 | title: 'Students', |
50 | // group: 'apps', | 50 | // group: 'apps', |
51 | name: 'Students', | 51 | name: 'Students', |
52 | icon: '/static/icon/student.png', | 52 | icon: '/static/icon/student.png', |
53 | }, | 53 | }, |
54 | { | 54 | { |
55 | title: 'User', | 55 | title: 'User', |
56 | name: 'User', | 56 | name: 'User', |
57 | icon: '/static/icon/users.png', | 57 | icon: '/static/icon/users.png', |
58 | }, | 58 | }, |
59 | { | 59 | { |
60 | title: 'Attendance', | 60 | title: 'Attendance', |
61 | group: 'Attendance', | 61 | group: 'Attendance', |
62 | component: 'Attendance', | 62 | component: 'Attendance', |
63 | icon: '/static/icon/attendence.png', | 63 | icon: '/static/icon/attendence.png', |
64 | items: [ | 64 | items: [ |
65 | { name: 'StudentAttendence', title: 'Student Attendance', component: 'Student Attendence', action: '', }, | 65 | { name: 'StudentAttendence', title: 'Student Attendance', component: 'Student Attendence', action: '', }, |
66 | { name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'Teacher Attendence', action: '', }, | 66 | { name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'Teacher Attendence', action: '', }, |
67 | { name: 'courseAttendance', title: 'Course Attendance', component: 'Course Attendance', action: '', }, | 67 | { name: 'courseAttendance', title: 'Course Attendance', component: 'Course Attendance', action: '', }, |
68 | // { name: 'userAttendence', title: 'User Attendance', component: 'User Attendence', action: '', }, | 68 | // { name: 'userAttendence', title: 'User Attendance', component: 'User Attendence', action: '', }, |
69 | ] | 69 | ] |
70 | }, | 70 | }, |
71 | { | 71 | { |
72 | title: 'Exam', | 72 | title: 'Exam', |
73 | group: 'Exam', | 73 | group: 'Exam', |
74 | component: 'Exam', | 74 | component: 'Exam', |
75 | icon: '/static/icon/exam.png', | 75 | icon: '/static/icon/exam.png', |
76 | items: [ | 76 | items: [ |
77 | { name: 'Exam', title: 'Exam', component: 'Exam', action: '', }, | 77 | { name: 'Exam', title: 'Exam', component: 'Exam', action: '', }, |
78 | { name: 'ExamSchedule', title: 'Exam Schedule', component: 'Exam Schedule', action: '', }, | 78 | { name: 'ExamSchedule', title: 'Exam Schedule', component: 'Exam Schedule', action: '', }, |
79 | { name: 'Grade', title: 'Grade', component: 'Grade', action: '', }, | 79 | { name: 'Grade', title: 'Grade', component: 'Grade', action: '', }, |
80 | // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, | 80 | // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, |
81 | ] | 81 | ] |
82 | }, | 82 | }, |
83 | { | 83 | { |
84 | title: 'Marks', | 84 | title: 'Marks', |
85 | group: 'Mark', | 85 | group: 'Mark', |
86 | component: 'Mark', | 86 | component: 'Mark', |
87 | icon: '/static/icon/marks.png', | 87 | icon: '/static/icon/marks.png', |
88 | items: [ | 88 | items: [ |
89 | { name: 'Mark', title: 'Mark', component: 'Mark', action: '', }, | 89 | { name: 'Mark', title: 'Mark', component: 'Mark', action: '', }, |
90 | { name: 'MarkDistribution', title: 'Mark Distribution', component: 'Mark Distribution', action: '', }, | 90 | { name: 'MarkDistribution', title: 'Mark Distribution', component: 'Mark Distribution', action: '', }, |
91 | // { name: 'Promotion', title: 'promotion', component: 'Promotion', action: '', }, | 91 | // { name: 'Promotion', title: 'promotion', component: 'Promotion', action: '', }, |
92 | // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, | 92 | // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, |
93 | ] | 93 | ] |
94 | }, | 94 | }, |
95 | { | 95 | { |
96 | title: 'Academic', | 96 | title: 'Academic', |
97 | group: 'Academic', | 97 | group: 'Academic', |
98 | component: 'Academic', | 98 | component: 'Academic', |
99 | icon: '/static/icon/school.png', | 99 | icon: '/static/icon/school.png', |
100 | items: [ | 100 | items: [ |
101 | { name: 'Subject', title: 'Subject', component: 'Subject', action: '', }, | 101 | { name: 'Subject', title: 'Subject', component: 'Subject', action: '', }, |
102 | { name: 'Syllabus', title: 'Syllabus', component: 'Syllabus', action: '', }, | 102 | { name: 'Syllabus', title: 'Syllabus', component: 'Syllabus', action: '', }, |
103 | { name: 'Assignment', title: 'Assignment', component: 'Assignment', action: '', }, | 103 | { name: 'Assignment', title: 'Assignment', component: 'Assignment', action: '', }, |
104 | { name: 'Routine', title: 'Routine', component: 'Routine', action: '', }, | 104 | { name: 'Routine', title: 'Routine', component: 'Routine', action: '', }, |
105 | ] | 105 | ] |
106 | }, | 106 | }, |
107 | { | 107 | { |
108 | title: 'Administrator', | 108 | title: 'Administrator', |
109 | group: 'Administrator', | 109 | group: 'Administrator', |
110 | component: 'Administrator', | 110 | component: 'Administrator', |
111 | icon: '/static/icon/adminstrator.png', | 111 | icon: '/static/icon/adminstrator.png', |
112 | items: [ | 112 | items: [ |
113 | { name: 'AcademicYear', title: 'Academic Year', component: 'Academic Year', action: '', }, | 113 | { name: 'AcademicYear', title: 'Academic Year', component: 'Academic Year', action: '', }, |
114 | // { name: 'systemAdmin', title: 'System Admin', component: 'systemAdmin', action: '', }, | 114 | // { name: 'systemAdmin', title: 'System Admin', component: 'systemAdmin', action: '', }, |
115 | { name: 'resetPassword', title: 'Change Password', component: 'Change Password', action: '', }, | 115 | { name: 'resetPassword', title: 'Change Password', component: 'Change Password', action: '', }, |
116 | { name: 'Role', title: 'Role', component: 'Role', action: '', }, | 116 | { name: 'Role', title: 'Role', component: 'Role', action: '', }, |
117 | { name: 'BulkImport', title: 'Bulk Import', component: 'Bulk Import', action: '', }, | 117 | { name: 'BulkImport', title: 'Bulk Import', component: 'Bulk Import', action: '', }, |
118 | 118 | ||
119 | ] | 119 | ] |
120 | }, | 120 | }, |
121 | { | 121 | { |
122 | title: 'Payroll', | 122 | title: 'Payroll', |
123 | group: 'Payroll', | 123 | group: 'Payroll', |
124 | component: 'Payroll', | 124 | component: 'Payroll', |
125 | icon: '/static/icon/dollar.png', | 125 | icon: '/static/icon/dollar.png', |
126 | items: [ | 126 | items: [ |
127 | { name: 'salaryTemplate', title: 'Salary Template', component: 'Salary Template', action: '', }, | 127 | { name: 'salaryTemplate', title: 'Salary Template', component: 'Salary Template', action: '', }, |
128 | { name: 'hourlyTemplate', title: 'Hourly Template', component: 'Hourly Template', action: '', }, | 128 | { name: 'hourlyTemplate', title: 'Hourly Template', component: 'Hourly Template', action: '', }, |
129 | { name: 'manageSalary', title: 'Manage Salary', component: 'Manage Salary', action: '', }, | 129 | { name: 'manageSalary', title: 'Manage Salary', component: 'Manage Salary', action: '', }, |
130 | // { name: 'makePayment', title: 'Make Payment', component: 'Make Payment', action: '', }, | 130 | // { name: 'makePayment', title: 'Make Payment', component: 'Make Payment', action: '', }, |
131 | ] | 131 | ] |
132 | }, | 132 | }, |
133 | { | 133 | { |
134 | title: 'Notice Board', | 134 | title: 'Notice Board', |
135 | name: 'Notice Board', | 135 | name: 'Notice Board', |
136 | icon: '/static/icon/notice board.png', | 136 | icon: '/static/icon/notice board.png', |
137 | }, | 137 | }, |
138 | { | 138 | { |
139 | title: 'News', | 139 | title: 'News', |
140 | name: 'News', | 140 | name: 'News', |
141 | icon: '/static/icon/news.png', | 141 | icon: '/static/icon/news.png', |
142 | }, | 142 | }, |
143 | // { | 143 | // { |
144 | // title: 'Reminder', | 144 | // title: 'Reminder', |
145 | // name: 'reminder', | 145 | // name: 'reminder', |
146 | // icon: 'alarm_add', | 146 | // icon: 'alarm_add', |
147 | // }, | 147 | // }, |
148 | { | 148 | { |
149 | title: 'Time Table', | 149 | title: 'Time Table', |
150 | name: 'Time Table', | 150 | name: 'Time Table', |
151 | icon: '/static/icon/time table.png', | 151 | icon: '/static/icon/time table.png', |
152 | }, | 152 | }, |
153 | { | 153 | { |
154 | title: 'Library', | 154 | title: 'Library', |
155 | group: 'Library', | 155 | group: 'Library', |
156 | component: 'Library', | 156 | component: 'Library', |
157 | icon: '/static/icon/library.png', | 157 | icon: '/static/icon/library.png', |
158 | items: [ | 158 | items: [ |
159 | { name: 'LibraryMember', title: ' Library Member', component: 'Library Member', action: '', }, | 159 | { name: 'LibraryMember', title: ' Library Member', component: 'Library Member', action: '', }, |
160 | { name: 'Books', title: 'Books', component: 'Books', action: '', }, | 160 | { name: 'Books', title: 'Books', component: 'Books', action: '', }, |
161 | { name: 'Issue', title: ' Issue', component: 'Issue', action: '', }, | 161 | { name: 'Issue', title: ' Issue', component: 'Issue', action: '', }, |
162 | { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', } | 162 | { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', } |
163 | 163 | ||
164 | ] | 164 | ] |
165 | }, | 165 | }, |
166 | { | 166 | { |
167 | title: 'Report', | 167 | title: 'Report', |
168 | group: 'Report', | 168 | group: 'Report', |
169 | component: 'Report', | 169 | component: 'Report', |
170 | icon: '/static/icon/reports.png', | 170 | icon: '/static/icon/reports.png', |
171 | items: [ | 171 | items: [ |
172 | { name: 'studentReport', title: 'Student Report', component: 'Student Report', action: '', }, | 172 | { name: 'studentReport', title: 'Student Report', component: 'Student Report', action: '', }, |
173 | { name: 'ProgressCardReport', title: 'Progress Card Report', component: 'Progress Card Report', action: '', }, | 173 | { name: 'ProgressCardReport', title: 'Progress Card Report', component: 'Progress Card Report', action: '', }, |
174 | { name: 'idCard', title: 'Id Card Report', component: 'Id Card Report', action: '', }, | 174 | { name: 'idCard', title: 'Id Card Report', component: 'Id Card Report', action: '', }, |
175 | { name: 'admitCard', title: 'Admit Card Report', component: 'Admit Card Report', action: '', } | 175 | { name: 'admitCard', title: 'Admit Card Report', component: 'Admit Card Report', action: '', } |
176 | ] | 176 | ] |
177 | }, | 177 | }, |
178 | { | 178 | { |
179 | title: 'Notification', | 179 | title: 'Notification', |
180 | name: 'Notification', | 180 | name: 'Notification', |
181 | icon: '/static/icon/notification.png', | 181 | icon: '/static/icon/notification.png', |
182 | }, | 182 | }, |
183 | { | 183 | { |
184 | title: 'Social Media', | 184 | title: 'Social Media', |
185 | name: 'Social Media', | 185 | name: 'Social Media', |
186 | icon: '/static/icon/events.png', | 186 | icon: '/static/icon/events.png', |
187 | }, | 187 | }, |
188 | { | 188 | { |
189 | title: 'Gallery', | 189 | title: 'Gallery', |
190 | name: 'Gallery', | 190 | name: 'Gallery', |
191 | icon: '/static/icon/gallery.png', | 191 | icon: '/static/icon/gallery.png', |
192 | }, | 192 | }, |
193 | { | 193 | { |
194 | title: 'Event', | 194 | title: 'Event', |
195 | name: 'Event', | 195 | name: 'Event', |
196 | icon: '/static/icon/events.png', | 196 | icon: '/static/icon/events.png', |
197 | }, | 197 | }, |
198 | { | 198 | { |
199 | title: 'Account', | 199 | title: 'Account', |
200 | group: 'Account', | 200 | group: 'Account', |
201 | component: 'Account', | 201 | component: 'Account', |
202 | icon: '/static/icon/accounts.png', | 202 | icon: '/static/icon/accounts.png', |
203 | items: [ | 203 | items: [ |
204 | { name: 'feeTypes', title: 'Fee Types', component: 'Fee Types', action: '', }, | 204 | { name: 'feeTypes', title: 'Fee Types', component: 'Fee Types', action: '', }, |
205 | { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', }, | 205 | { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', }, |
206 | { name: 'PaymentHistory', title: 'Payment History', component: 'Payment History', action: '', }, | 206 | { name: 'PaymentHistory', title: 'Payment History', component: 'Payment History', action: '', }, |
207 | { name: 'Expense', title: 'Expense', component: 'Expense', action: '', }, | 207 | { name: 'Expense', title: 'Expense', component: 'Expense', action: '', }, |
208 | { name: 'Income', title: 'Income', component: 'Income', action: '', }, | 208 | { name: 'Income', title: 'Income', component: 'Income', action: '', }, |
209 | { name: 'GlobalPayment', title: 'Global Payment', component: 'Global Payment', action: '', } | 209 | { name: 'GlobalPayment', title: 'Global Payment', component: 'Global Payment', action: '', } |
210 | ] | 210 | ] |
211 | }, | 211 | }, |
212 | { | 212 | { |
213 | title: 'Holiday', | 213 | title: 'Holiday', |
214 | name: 'Holiday', | 214 | name: 'Holiday', |
215 | icon: '/static/icon/holiday.png', | 215 | icon: '/static/icon/holiday.png', |
216 | }, | 216 | }, |
217 | { | 217 | { |
218 | title: 'General Setting', | 218 | title: 'General Setting', |
219 | name: 'General Setting', | 219 | name: 'General Setting', |
220 | icon: '/static/icon/settings.png', | 220 | icon: '/static/icon/settings.png', |
221 | } | 221 | } |
222 | ]; | 222 | ]; |
223 | 223 | ||
224 | const libraryMenu = [{ | 224 | const libraryMenu = [{ |
225 | title: 'Dashboard', | 225 | title: 'Dashboard', |
226 | name: 'Dashboard', | 226 | name: 'Dashboard', |
227 | icon: '/static/icon/dashboard.png', | 227 | icon: '/static/icon/dashboard.png', |
228 | }, | 228 | }, |
229 | { | 229 | { |
230 | title: 'Library', | 230 | title: 'Library', |
231 | group: 'Library', | 231 | group: 'Library', |
232 | component: 'Library', | 232 | component: 'Library', |
233 | icon: '/static/icon/library.png', | 233 | icon: '/static/icon/library.png', |
234 | items: [ | 234 | items: [ |
235 | { name: 'LibraryMember', title: ' Library Member', component: 'Library Member', action: '', }, | 235 | { name: 'LibraryMember', title: ' Library Member', component: 'Library Member', action: '', }, |
236 | { name: 'Books', title: 'Books', component: 'Books', action: '', }, | 236 | { name: 'Books', title: 'Books', component: 'Books', action: '', }, |
237 | { name: 'Issue', title: ' Issue', component: 'Issue', action: '', }, | 237 | { name: 'Issue', title: ' Issue', component: 'Issue', action: '', }, |
238 | { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', } | 238 | { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', } |
239 | 239 | ||
240 | ] | 240 | ] |
241 | }, | 241 | }, |
242 | ]; | 242 | ]; |
243 | 243 | ||
244 | const accountMenu = [{ | 244 | const accountMenu = [{ |
245 | title: 'Dashboard', | 245 | title: 'Dashboard', |
246 | name: 'Dashboard', | 246 | name: 'Dashboard', |
247 | icon: '/static/icon/dashboard.png', | 247 | icon: '/static/icon/dashboard.png', |
248 | }, | 248 | }, |
249 | 249 | ||
250 | { | 250 | { |
251 | title: 'Account', | 251 | title: 'Account', |
252 | group: 'Account', | 252 | group: 'Account', |
253 | component: 'Account', | 253 | component: 'Account', |
254 | icon: '/static/icon/accounts.png', | 254 | icon: '/static/icon/accounts.png', |
255 | items: [ | 255 | items: [ |
256 | { name: 'feeTypes', title: 'Fee Types', component: 'Fee Types', action: '', }, | 256 | { name: 'feeTypes', title: 'Fee Types', component: 'Fee Types', action: '', }, |
257 | { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', }, | 257 | { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', }, |
258 | { name: 'PaymentHistory', title: 'Payment History', component: 'Payment History', action: '', }, | 258 | { name: 'PaymentHistory', title: 'Payment History', component: 'Payment History', action: '', }, |
259 | { name: 'Expense', title: 'Expense', component: 'Expense', action: '', }, | 259 | { name: 'Expense', title: 'Expense', component: 'Expense', action: '', }, |
260 | { name: 'Income', title: 'Income', component: 'Income', action: '', }, | 260 | { name: 'Income', title: 'Income', component: 'Income', action: '', }, |
261 | { name: 'GlobalPayment', title: 'Global Payment', component: 'Global Payment', action: '', } | 261 | { name: 'GlobalPayment', title: 'Global Payment', component: 'Global Payment', action: '', } |
262 | ] | 262 | ] |
263 | }, | 263 | }, |
264 | ]; | 264 | ]; |
265 | 265 | ||
266 | const schoolMenu = [ | 266 | const schoolMenu = [ |
267 | // { header: 'Apps' }, | 267 | // { header: 'Apps' }, |
268 | { | 268 | { |
269 | title: 'Dashboard', | 269 | title: 'Dashboard', |
270 | // group: 'apps', | 270 | // group: 'apps', |
271 | name: 'View School Dashboard', | 271 | name: 'View School Dashboard', |
272 | icon: '/static/icon/dashboard.png', | 272 | icon: '/static/icon/dashboard.png', |
273 | }, | 273 | }, |
274 | { | 274 | { |
275 | title: 'School', | 275 | title: 'School', |
276 | // group: 'apps', | 276 | // group: 'apps', |
277 | name: 'School', | 277 | name: 'School', |
278 | icon: '/static/icon/school.png', | 278 | icon: '/static/icon/school.png', |
279 | }, | 279 | }, |
280 | { | 280 | { |
281 | title: 'App Version', | 281 | title: 'App Version', |
282 | name: 'App Version', | 282 | name: 'App Version', |
283 | icon: '/static/icon/phone.png', | 283 | icon: '/static/icon/phone.png', |
284 | } | 284 | } |
285 | ]; | 285 | ]; |
286 | 286 | ||
287 | const teacherMenu = [{ | 287 | const teacherMenu = [{ |
288 | title: 'Dashboard', | 288 | title: 'Dashboard', |
289 | name: 'Dashboard', | 289 | name: 'Dashboard', |
290 | icon: '/static/icon/dashboard.png', | 290 | icon: '/static/icon/dashboard.png', |
291 | }, | 291 | }, |
292 | { | 292 | { |
293 | title: 'Parents', | 293 | title: 'Parents', |
294 | // group: 'apps', | 294 | // group: 'apps', |
295 | name: 'Parents', | 295 | name: 'Parents', |
296 | icon: '/static/icon/parents.png', | 296 | icon: '/static/icon/parents.png', |
297 | }, | 297 | }, |
298 | { | 298 | { |
299 | title: 'Teachers', | 299 | title: 'Teachers', |
300 | // group: '', | 300 | // group: '', |
301 | name: 'Teachers', | 301 | name: 'Teachers', |
302 | icon: '/static/icon/teacher.png', | 302 | icon: '/static/icon/teacher.png', |
303 | }, | 303 | }, |
304 | { | 304 | { |
305 | title: 'Students', | 305 | title: 'Students', |
306 | // group: 'apps', | 306 | // group: 'apps', |
307 | name: 'Students', | 307 | name: 'Students', |
308 | icon: '/static/icon/student.png', | 308 | icon: '/static/icon/student.png', |
309 | }, | 309 | }, |
310 | { | 310 | { |
311 | title: 'Academic', | 311 | title: 'Academic', |
312 | group: 'Academic', | 312 | group: 'Academic', |
313 | component: 'Academic', | 313 | component: 'Academic', |
314 | icon: '/static/icon/school.png', | 314 | icon: '/static/icon/school.png', |
315 | items: [ | 315 | items: [ |
316 | { name: 'Subject', title: 'Subject', component: 'Subject', action: '', }, | 316 | { name: 'Subject', title: 'Subject', component: 'Subject', action: '', }, |
317 | { name: 'Syllabus', title: 'Syllabus', component: 'Syllabus', action: '', }, | 317 | { name: 'Syllabus', title: 'Syllabus', component: 'Syllabus', action: '', }, |
318 | { name: 'Assignment', title: 'Assignment', component: 'Assignment', action: '', }, | 318 | { name: 'Assignment', title: 'Assignment', component: 'Assignment', action: '', }, |
319 | { name: 'Routine', title: 'Routine', component: 'Routine', action: '', }, | 319 | { name: 'Routine', title: 'Routine', component: 'Routine', action: '', }, |
320 | ] | 320 | ] |
321 | }, | 321 | }, |
322 | { | 322 | { |
323 | title: 'Course', | 323 | title: 'Course', |
324 | group: 'Course', | 324 | group: 'Course', |
325 | component: 'Course', | 325 | component: 'Course', |
326 | icon: '/static/icon/school.png', | 326 | icon: '/static/icon/school.png', |
327 | items: [ | 327 | items: [ |
328 | { name: 'Course', title: 'Course', component: 'Course', action: '', }, | 328 | { name: 'Course', title: 'Course', component: 'Course', action: '', }, |
329 | { name: 'Enroll Students', title: 'Enroll Students', component: 'Enroll Students', action: '', }, | 329 | { name: 'Enroll Students', title: 'Enroll Students', component: 'Enroll Students', action: '', }, |
330 | { name: 'Course Detail', title: 'Course Detail', component: 'Course Detail', action: '', }, | 330 | { name: 'Course Detail', title: 'Course Detail', component: 'Course Detail', action: '', }, |
331 | { name: 'Course Discussion', title: 'Course Discussion', component: 'Course Discussion', action: '', }, | 331 | { name: 'Course Discussion', title: 'Course Discussion', component: 'Course Discussion', action: '', }, |
332 | ] | 332 | ] |
333 | }, | 333 | }, |
334 | { | 334 | { |
335 | title: 'Annoucement', | 335 | title: 'Annoucement', |
336 | // group: 'apps', | 336 | // group: 'apps', |
337 | name: 'Annoucement', | 337 | name: 'Annoucement', |
338 | icon: '/static/icon/student.png', | 338 | icon: '/static/icon/student.png', |
339 | }, | 339 | }, |
340 | { | 340 | { |
341 | title: 'Meeting Event', | 341 | title: 'Meeting Event', |
342 | // group: 'apps', | 342 | // group: 'apps', |
343 | name: 'Meeting Event', | 343 | name: 'Meeting Event', |
344 | icon: '/static/icon/student.png', | 344 | icon: '/static/icon/student.png', |
345 | }, | 345 | }, |
346 | { | 346 | { |
347 | title: 'Attendance', | 347 | title: 'Attendance', |
348 | group: 'Attendance', | 348 | group: 'Attendance', |
349 | component: 'Attendance', | 349 | component: 'Attendance', |
350 | icon: '/static/icon/attendence.png', | 350 | icon: '/static/icon/attendence.png', |
351 | items: [ | 351 | items: [ |
352 | { name: 'StudentAttendence', title: 'Student Attendance', component: 'Student Attendence', action: '', }, | 352 | { name: 'StudentAttendence', title: 'Student Attendance', component: 'Student Attendence', action: '', }, |
353 | { name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'Teacher Attendence', action: '', }, | 353 | { name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'Teacher Attendence', action: '', }, |
354 | { name: 'courseAttendance', title: 'Course Attendance', component: 'Course Attendance', action: '', }, | 354 | { name: 'courseAttendance', title: 'Course Attendance', component: 'Course Attendance', action: '', }, |
355 | // { name: 'userAttendence', title: 'User Attendance', component: 'User Attendence', action: '', }, | 355 | // { name: 'userAttendence', title: 'User Attendance', component: 'User Attendence', action: '', }, |
356 | ] | 356 | ] |
357 | }, | 357 | }, |
358 | { | 358 | { |
359 | title: 'Exam', | 359 | title: 'Exam', |
360 | group: 'Exam', | 360 | group: 'Exam', |
361 | component: 'Exam', | 361 | component: 'Exam', |
362 | icon: '/static/icon/exam.png', | 362 | icon: '/static/icon/exam.png', |
363 | items: [ | 363 | items: [ |
364 | { name: 'ExamSchedule', title: 'Exam Schedule', component: 'Exam Schedule', action: '', }, | 364 | { name: 'ExamSchedule', title: 'Exam Schedule', component: 'Exam Schedule', action: '', }, |
365 | { name: 'ExamAttendence', title: 'Exam Attendence', component: 'Exam Attendence', action: '', } | 365 | { name: 'ExamAttendence', title: 'Exam Attendence', component: 'Exam Attendence', action: '', } |
366 | ] | 366 | ] |
367 | }, | 367 | }, |
368 | { | 368 | { |
369 | title: 'Marks', | 369 | title: 'Marks', |
370 | group: 'Mark', | 370 | group: 'Mark', |
371 | component: 'Mark', | 371 | component: 'Mark', |
372 | icon: '/static/icon/marks.png', | 372 | icon: '/static/icon/marks.png', |
373 | items: [ | 373 | items: [ |
374 | { name: 'Mark', title: 'Mark', component: 'Mark', action: '', } | 374 | { name: 'Mark', title: 'Mark', component: 'Mark', action: '', } |
375 | ] | 375 | ] |
376 | }, | 376 | }, |
377 | { | 377 | { |
378 | title: 'Report', | 378 | title: 'Report', |
379 | group: 'Report', | 379 | group: 'Report', |
380 | component: 'Report', | 380 | component: 'Report', |
381 | icon: '/static/icon/reports.png', | 381 | icon: '/static/icon/reports.png', |
382 | items: [ | 382 | items: [ |
383 | { name: 'studentReport', title: 'Student Report', component: 'Student Report', action: '', }, | 383 | { name: 'studentReport', title: 'Student Report', component: 'Student Report', action: '', }, |
384 | { name: 'ProgressCardReport', title: 'Progress Card Report', component: 'Progress Card Report', action: '', }, | 384 | { name: 'ProgressCardReport', title: 'Progress Card Report', component: 'Progress Card Report', action: '', }, |
385 | { name: 'idCard', title: 'Id Card Report', component: 'Id Card Report', action: '', }, | 385 | { name: 'idCard', title: 'Id Card Report', component: 'Id Card Report', action: '', }, |
386 | { name: 'admitCard', title: 'Admit Card Report', component: 'Admit Card Report', action: '', } | 386 | { name: 'admitCard', title: 'Admit Card Report', component: 'Admit Card Report', action: '', } |
387 | ] | 387 | ] |
388 | }, | 388 | }, |
389 | { | 389 | { |
390 | title: 'Library', | 390 | title: 'Library', |
391 | group: 'Library', | 391 | group: 'Library', |
392 | component: 'Library', | 392 | component: 'Library', |
393 | icon: '/static/icon/library.png', | 393 | icon: '/static/icon/library.png', |
394 | items: [ | 394 | items: [ |
395 | { name: 'Books', title: 'Books', component: 'Books', action: '', }, | 395 | { name: 'Books', title: 'Books', component: 'Books', action: '', }, |
396 | { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', } | 396 | { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', } |
397 | 397 | ||
398 | ] | 398 | ] |
399 | }, | 399 | }, |
400 | // { | 400 | // { |
401 | // title: 'Meet', | 401 | // title: 'Meet', |
402 | // name: 'Meet', | 402 | // name: 'Meet', |
403 | // icon: '/static/icon/meet_icon_navigation.png', | 403 | // icon: '/static/icon/meet_icon_navigation.png', |
404 | // } | 404 | // } |
405 | ]; | 405 | ]; |
406 | 406 | ||
407 | const parentMenu = [{ | 407 | const parentMenu = [{ |
408 | title: 'Dashboard', | 408 | title: 'Dashboard', |
409 | name: 'Dashboard', | 409 | name: 'Dashboard', |
410 | icon: '/static/icon/dashboard.png', | 410 | icon: '/static/icon/dashboard.png', |
411 | }, | 411 | }, |
412 | { | 412 | { |
413 | title: "Change Student", | 413 | title: "Change Student", |
414 | name: 'Change Students', | 414 | name: 'Change Students', |
415 | Vicon: "face", | 415 | Vicon: "face", |
416 | click: e => { | 416 | click: e => { |
417 | // console.log(e); | 417 | // console.log(e); |
418 | } | 418 | } |
419 | }, | 419 | }, |
420 | { | 420 | { |
421 | title: 'Attendance', | 421 | title: 'Attendance', |
422 | group: 'Attendance', | 422 | group: 'Attendance', |
423 | component: 'Attendance', | 423 | component: 'Attendance', |
424 | icon: '/static/icon/attendence.png', | 424 | icon: '/static/icon/attendence.png', |
425 | items: [ | 425 | items: [ |
426 | { name: 'courseAttendance', title: 'View Course Attendance', component: 'View Course Attendance', action: '', }, | 426 | { name: 'courseAttendance', title: 'View Course Attendance', component: 'View Course Attendance', action: '', }, |
427 | ] | 427 | ] |
428 | }, | 428 | }, |
429 | // { | ||
430 | // path: '/CourseAttendance/:id', | ||
431 | // meta: {}, | ||
432 | // name: 'View Course Attendance', | ||
433 | // props: (route) => ({ | ||
434 | // type: route.query.type | ||
435 | // }), | ||
436 | // component: () => | ||
437 | // import( | ||
438 | // /* webpackChunkName: "routes" */ | ||
439 | // /* webpackMode: "lazy-once" */ | ||
440 | // `@/pages/Attendence/viewCourseAttendance.vue` | ||
441 | // ) | ||
442 | // }, | ||
443 | ]; | 429 | ]; |
444 | // reorder menu | 430 | // reorder menu |
445 | // Menu.forEach((item) => { | 431 | // Menu.forEach((item) => { |
446 | // if (item.items) { | 432 | // if (item.items) { |
447 | // item.items.sort((x, y) => { | 433 | // item.items.sort((x, y) => { |
448 | // let textA = x.title.toUpperCase(); | 434 | // let textA = x.title.toUpperCase(); |
449 | // let textB = y.title.toUpperCase(); | 435 | // let textB = y.title.toUpperCase(); |
450 | // return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; | 436 | // return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; |
451 | // }); | 437 | // }); |
452 | // } | 438 | // } |
453 | // }); | 439 | // }); |
454 | 440 | ||
455 | export default { adminMenu, schoolMenu, teacherMenu, libraryMenu, accountMenu, parentMenu }; | 441 | export default { adminMenu, schoolMenu, teacherMenu, libraryMenu, accountMenu, parentMenu }; |