Blame view

src/api/menu.js 11.7 KB
37150e7c1   Neeraj Sharma   implement school ...
1
  const adminMenu = [
8233c5dd6   Shikha Mishra   Hide delete butto...
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  	//  { header: 'Apps' },
  	{
  		title: 'Dashboard',
  		// group: 'apps',
  		name: 'Dashboard',
  		icon: '/static/icon/dashboard.png',
  	},
  	{
  		title: 'Class',
  		// group: 'apps',
  		name: 'Class',
  		icon: '/static/icon/class.png',
  	},
  	{
db965de89   Amber Dev   added dialog pers...
16
17
18
19
20
21
  		title: 'Course',
  		group: 'AdminCourse',
  		component: 'AdminCourse',
  		icon: '/static/icon/attendence.png',
  		items: [
  			{ name: 'AssignTeachers', title: 'Assign Teachers', component: 'AssignTeachers', action: '', },
ba420d0d1   Shikha Mishra   Solve add subject...
22

db965de89   Amber Dev   added dialog pers...
23
24
25
  		]
  	},
  	{
8233c5dd6   Shikha Mishra   Hide delete butto...
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
  		title: 'Section',
  		// group: 'apps',
  		name: 'Section',
  		icon: '/static/icon/section.png',
  	},
  	// {
  	//     title: 'Subjects',
  	//     name: 'Subject',
  	//     icon: '/static/icon/subject.png',
  	// },
  	{
  		title: 'Parents',
  		// group: 'apps',
  		name: 'Parents',
  		icon: '/static/icon/parents.png',
  	},
  	{
  		title: 'Teachers',
  		// group: '',
  		name: 'Teachers',
  		icon: '/static/icon/teacher.png',
  	},
  	{
  		title: 'Students',
  		// group: 'apps',
  		name: 'Students',
  		icon: '/static/icon/student.png',
  	},
  	{
  		title: 'User',
  		name: 'User',
  		icon: '/static/icon/users.png',
  	},
  	{
  		title: 'Attendance',
  		group: 'Attendance',
  		component: 'Attendance',
  		icon: '/static/icon/attendence.png',
  		items: [
  			{ name: 'StudentAttendence', title: 'Student Attendance', component: 'Student Attendence', action: '', },
  			{ name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'Teacher Attendence', action: '', },
  			// { name: 'userAttendence', title: 'User Attendance', component: 'User Attendence', action: '', },
  		]
  	},
  	{
  		title: 'Exam',
  		group: 'Exam',
  		component: 'Exam',
  		icon: '/static/icon/exam.png',
  		items: [
  			{ name: 'Exam', title: 'Exam', component: 'Exam', action: '', },
  			{ name: 'ExamSchedule', title: 'Exam Schedule', component: 'Exam Schedule', action: '', },
  			{ name: 'Grade', title: 'Grade', component: 'Grade', action: '', },
  			// { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', },
  		]
  	},
  	{
  		title: 'Marks',
  		group: 'Mark',
  		component: 'Mark',
  		icon: '/static/icon/marks.png',
  		items: [
  			{ name: 'Mark', title: 'Mark', component: 'Mark', action: '', },
  			{ name: 'MarkDistribution', title: 'Mark Distribution', component: 'Mark Distribution', action: '', },
  			// { name: 'Promotion', title: 'promotion', component: 'Promotion', action: '', },
  			// { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', },
  		]
  	},
  	{
  		title: 'Academic',
  		group: 'Academic',
  		component: 'Academic',
  		icon: '/static/icon/school.png',
  		items: [
  			{ name: 'Subject', title: 'Subject', component: 'Subject', action: '', },
  			{ name: 'Syllabus', title: 'Syllabus', component: 'Syllabus', action: '', },
  			{ name: 'Assignment', title: 'Assignment', component: 'Assignment', action: '', },
  			{ name: 'Routine', title: 'Routine', component: 'Routine', action: '', },
  		]
  	},
  	{
  		title: 'Administrator',
  		group: 'Administrator',
  		component: 'Administrator',
  		icon: '/static/icon/adminstrator.png',
  		items: [
  			{ name: 'AcademicYear', title: 'Academic Year', component: 'Academic Year', action: '', },
  			// { name: 'systemAdmin', title: 'System Admin', component: 'systemAdmin', action: '', },
  			{ name: 'resetPassword', title: 'Change Password', component: 'Change Password', action: '', },
  			{ name: 'Role', title: 'Role', component: 'Role', action: '', },
  			{ name: 'BulkImport', title: 'Bulk Import', component: 'Bulk Import', action: '', },
1c69557ac   Neeraj Sharma   implement design ...
117

8233c5dd6   Shikha Mishra   Hide delete butto...
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
  		]
  	},
  	{
  		title: 'Payroll',
  		group: 'Payroll',
  		component: 'Payroll',
  		icon: '/static/icon/dollar.png',
  		items: [
  			{ name: 'salaryTemplate', title: 'Salary Template', component: 'Salary Template', action: '', },
  			{ name: 'hourlyTemplate', title: 'Hourly Template', component: 'Hourly Template', action: '', },
  			{ name: 'manageSalary', title: 'Manage Salary', component: 'Manage Salary', action: '', },
  			// { name: 'makePayment', title: 'Make Payment', component: 'Make Payment', action: '', },
  		]
  	},
  	{
  		title: 'Notice Board',
  		name: 'Notice Board',
  		icon: '/static/icon/notice board.png',
  	},
  	{
  		title: 'News',
  		name: 'News',
  		icon: '/static/icon/news.png',
  	},
  	// {
  	//   title: 'Reminder',
  	//   name: 'reminder',
  	//   icon: 'alarm_add',
  	// },
  	{
  		title: 'Time Table',
  		name: 'Time Table',
  		icon: '/static/icon/time table.png',
  	},
  	{
  		title: 'Library',
  		group: 'Library',
  		component: 'Library',
  		icon: '/static/icon/library.png',
  		items: [
  			{ name: 'LibraryMember', title: ' Library Member', component: 'Library Member', action: '', },
  			{ name: 'Books', title: 'Books', component: 'Books', action: '', },
  			{ name: 'Issue', title: ' Issue', component: 'Issue', action: '', },
  			{ name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', }
687e0b929   Neeraj Sharma   add user,attenden...
162

8233c5dd6   Shikha Mishra   Hide delete butto...
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
  		]
  	},
  	{
  		title: 'Report',
  		group: 'Report',
  		component: 'Report',
  		icon: '/static/icon/reports.png',
  		items: [
  			{ name: 'studentReport', title: 'Student Report', component: 'Student Report', action: '', },
  			{ name: 'ProgressCardReport', title: 'Progress Card Report', component: 'Progress Card Report', action: '', },
  			{ name: 'idCard', title: 'Id Card Report', component: 'Id Card Report', action: '', },
  			{ name: 'admitCard', title: 'Admit Card Report', component: 'Admit Card Report', action: '', }
  		]
  	},
  	{
  		title: 'Notification',
  		name: 'Notification',
  		icon: '/static/icon/notification.png',
  	},
  	{
  		title: 'Social Media',
  		name: 'Social Media',
  		icon: '/static/icon/events.png',
  	},
  	{
  		title: 'Gallery',
  		name: 'Gallery',
  		icon: '/static/icon/gallery.png',
  	},
  	{
  		title: 'Event',
  		name: 'Event',
  		icon: '/static/icon/events.png',
  	},
  	{
  		title: 'Account',
  		group: 'Account',
  		component: 'Account',
  		icon: '/static/icon/accounts.png',
  		items: [
  			{ name: 'feeTypes', title: 'Fee Types', component: 'Fee Types', action: '', },
  			{ name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', },
  			{ name: 'PaymentHistory', title: 'Payment History', component: 'Payment History', action: '', },
  			{ name: 'Expense', title: 'Expense', component: 'Expense', action: '', },
  			{ name: 'Income', title: 'Income', component: 'Income', action: '', },
  			{ name: 'GlobalPayment', title: 'Global Payment', component: 'Global Payment', action: '', }
  		]
  	},
  	{
  		title: 'Holiday',
  		name: 'Holiday',
  		icon: '/static/icon/holiday.png',
  	},
  	{
  		title: 'General Setting',
  		name: 'General Setting',
  		icon: '/static/icon/settings.png',
  	}
1c1942362   Neeraj Sharma   commit code Schoo...
221
  ];
93a68cfa1   Jatinder Singh   first commit
222

99cd79184   Neeraj Sharma   implement all tas...
223
  const libraryMenu = [{
8233c5dd6   Shikha Mishra   Hide delete butto...
224
225
226
227
228
229
230
231
232
233
234
235
236
237
  	title: 'Dashboard',
  	name: 'Dashboard',
  	icon: '/static/icon/dashboard.png',
  },
  {
  	title: 'Library',
  	group: 'Library',
  	component: 'Library',
  	icon: '/static/icon/library.png',
  	items: [
  		{ name: 'LibraryMember', title: ' Library Member', component: 'Library Member', action: '', },
  		{ name: 'Books', title: 'Books', component: 'Books', action: '', },
  		{ name: 'Issue', title: ' Issue', component: 'Issue', action: '', },
  		{ name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', }
99cd79184   Neeraj Sharma   implement all tas...
238

8233c5dd6   Shikha Mishra   Hide delete butto...
239
240
  	]
  },
acb6c9e2b   Shikha Mishra   issues solved rel...
241
  ];
99cd79184   Neeraj Sharma   implement all tas...
242
243
  
  const accountMenu = [{
8233c5dd6   Shikha Mishra   Hide delete butto...
244
245
246
247
  	title: 'Dashboard',
  	name: 'Dashboard',
  	icon: '/static/icon/dashboard.png',
  },
acb6c9e2b   Shikha Mishra   issues solved rel...
248

8233c5dd6   Shikha Mishra   Hide delete butto...
249
250
251
252
253
254
255
256
257
258
259
260
261
262
  {
  	title: 'Account',
  	group: 'Account',
  	component: 'Account',
  	icon: '/static/icon/accounts.png',
  	items: [
  		{ name: 'feeTypes', title: 'Fee Types', component: 'Fee Types', action: '', },
  		{ name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', },
  		{ name: 'PaymentHistory', title: 'Payment History', component: 'Payment History', action: '', },
  		{ name: 'Expense', title: 'Expense', component: 'Expense', action: '', },
  		{ name: 'Income', title: 'Income', component: 'Income', action: '', },
  		{ name: 'GlobalPayment', title: 'Global Payment', component: 'Global Payment', action: '', }
  	]
  },
acb6c9e2b   Shikha Mishra   issues solved rel...
263
  ];
99cd79184   Neeraj Sharma   implement all tas...
264

37150e7c1   Neeraj Sharma   implement school ...
265
  const schoolMenu = [
8233c5dd6   Shikha Mishra   Hide delete butto...
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
  	//  { header: 'Apps' },
  	{
  		title: 'Dashboard',
  		// group: 'apps',
  		name: 'View School Dashboard',
  		icon: '/static/icon/dashboard.png',
  	},
  	{
  		title: 'School',
  		// group: 'apps',
  		name: 'School',
  		icon: '/static/icon/school.png',
  	},
  	{
  		title: 'App Version',
  		name: 'App Version',
  		icon: '/static/icon/phone.png',
  	}
37150e7c1   Neeraj Sharma   implement school ...
284
  ];
93a68cfa1   Jatinder Singh   first commit
285

57263a890   Shikha Mishra   hide subject from...
286
  const teacherMenu = [{
8233c5dd6   Shikha Mishra   Hide delete butto...
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
  	title: 'Dashboard',
  	name: 'Dashboard',
  	icon: '/static/icon/dashboard.png',
  },
  {
  	title: 'Parents',
  	// group: 'apps',
  	name: 'Parents',
  	icon: '/static/icon/parents.png',
  },
  {
  	title: 'Teachers',
  	// group: '',
  	name: 'Teachers',
  	icon: '/static/icon/teacher.png',
  },
  {
  	title: 'Students',
  	// group: 'apps',
  	name: 'Students',
  	icon: '/static/icon/student.png',
  },
  {
  	title: 'Academic',
  	group: 'Academic',
  	component: 'Academic',
  	icon: '/static/icon/school.png',
  	items: [
  		{ name: 'Subject', title: 'Subject', component: 'Subject', action: '', },
  		{ name: 'Syllabus', title: 'Syllabus', component: 'Syllabus', action: '', },
  		{ name: 'Assignment', title: 'Assignment', component: 'Assignment', action: '', },
  		{ name: 'Routine', title: 'Routine', component: 'Routine', action: '', },
  	]
  },
  {
  	title: 'Course',
  	group: 'Course',
  	component: 'Course',
  	icon: '/static/icon/school.png',
  	items: [
  		{ name: 'Course', title: 'Course', component: 'Course', action: '', },
  		{ name: 'Enroll Students', title: 'Enroll Students', component: 'Enroll Students', action: '', },
  		{ name: 'Course Detail', title: 'Course Detail', component: 'Course Detail', action: '', },
  		{ name: 'Course Discussion', title: 'Course Discussion', component: 'Course Discussion', action: '', },
  	]
  },
  {
  	title: 'Annoucement',
  	// group: 'apps',
  	name: 'Annoucement',
  	icon: '/static/icon/student.png',
  },
  {
  	title: 'Meeting Event',
  	// group: 'apps',
  	name: 'Meeting Event',
  	icon: '/static/icon/student.png',
  },
  {
  	title: 'Attendance',
  	group: 'Attendance',
  	component: 'Attendance',
  	icon: '/static/icon/attendence.png',
  	items: [
  		{ name: 'StudentAttendence', title: 'Student Attendance', component: 'Student Attendence', action: '', },
  		{ name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'Teacher Attendence', action: '', },
  		// { name: 'userAttendence', title: 'User Attendance', component: 'User Attendence', action: '', },
  	]
  },
  {
  	title: 'Exam',
  	group: 'Exam',
  	component: 'Exam',
  	icon: '/static/icon/exam.png',
  	items: [
  		{ name: 'ExamSchedule', title: 'Exam Schedule', component: 'Exam Schedule', action: '', },
  		{ name: 'ExamAttendence', title: 'Exam Attendence', component: 'Exam Attendence', action: '', }
  	]
  },
  {
  	title: 'Marks',
  	group: 'Mark',
  	component: 'Mark',
  	icon: '/static/icon/marks.png',
  	items: [
  		{ name: 'Mark', title: 'Mark', component: 'Mark', action: '', }
  	]
  },
  {
  	title: 'Report',
  	group: 'Report',
  	component: 'Report',
  	icon: '/static/icon/reports.png',
  	items: [
  		{ name: 'studentReport', title: 'Student Report', component: 'Student Report', action: '', },
  		{ name: 'ProgressCardReport', title: 'Progress Card Report', component: 'Progress Card Report', action: '', },
  		{ name: 'idCard', title: 'Id Card Report', component: 'Id Card Report', action: '', },
  		{ name: 'admitCard', title: 'Admit Card Report', component: 'Admit Card Report', action: '', }
  	]
  },
  {
  	title: 'Library',
  	group: 'Library',
  	component: 'Library',
  	icon: '/static/icon/library.png',
  	items: [
  		{ name: 'Books', title: 'Books', component: 'Books', action: '', },
  		{ name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', }
710438de6   Shikha Mishra   added teacher mod...
395

8233c5dd6   Shikha Mishra   Hide delete butto...
396
397
  	]
  },
ba420d0d1   Shikha Mishra   Solve add subject...
398
399
400
401
402
  	// {
  	// 	title: 'Meet',
  	// 	name: 'Meet',
  	// 	icon: '/static/icon/meet_icon_navigation.png',
  	// }
710438de6   Shikha Mishra   added teacher mod...
403
  ];
11d037abe   Neeraj Sharma   commit code
404
  const parentMenu = [{
8233c5dd6   Shikha Mishra   Hide delete butto...
405
406
407
  	title: 'Dashboard',
  	name: 'Dashboard',
  	icon: '/static/icon/dashboard.png',
e91641fe5   Amber Dev   solved bugs
408
409
  },
  {
8233c5dd6   Shikha Mishra   Hide delete butto...
410
411
412
413
414
415
  	title: "Change Student",
  	name: 'Change Students',
  	Vicon: "face",
  	click: e => {
  		console.log(e);
  	}
11d037abe   Neeraj Sharma   commit code
416
  }];
93a68cfa1   Jatinder Singh   first commit
417
  // reorder menu
37150e7c1   Neeraj Sharma   implement school ...
418
419
420
421
422
423
424
425
426
  // 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   Jatinder Singh   first commit
427

11d037abe   Neeraj Sharma   commit code
428
  export default { adminMenu, schoolMenu, teacherMenu, libraryMenu, accountMenu, parentMenu };