Blame view

src/api/menu.js 13.3 KB
37150e7c1   Neeraj Sharma   implement school ...
1
  const adminMenu = [
813e55a79   Neeraj Sharma   implement parents...
2
      //  { header: 'Apps' },
a17c68a03   Neeraj Sharma   implement two rou...
3
4
5
      {
          title: 'Dashboard',
          // group: 'apps',
68d742034   Neeraj Sharma   implement new des...
6
          name: 'Dashboard',
67a276510   Shikha Mishra   fixed all bugs
7
          icon: '/static/icon/dashboard.png',
a17c68a03   Neeraj Sharma   implement two rou...
8
      },
813e55a79   Neeraj Sharma   implement parents...
9
10
11
      {
          title: 'Class',
          // group: 'apps',
68d742034   Neeraj Sharma   implement new des...
12
          name: 'Class',
67a276510   Shikha Mishra   fixed all bugs
13
          icon: '/static/icon/class.png',
813e55a79   Neeraj Sharma   implement parents...
14
15
16
17
      },
      {
          title: 'Section',
          // group: 'apps',
68d742034   Neeraj Sharma   implement new des...
18
          name: 'Section',
67a276510   Shikha Mishra   fixed all bugs
19
          icon: '/static/icon/section.png',
813e55a79   Neeraj Sharma   implement parents...
20
      },
57263a890   Shikha Mishra   hide subject from...
21
22
23
24
25
      // {
      //     title: 'Subjects',
      //     name: 'Subject',
      //     icon: '/static/icon/subject.png',
      // },
46db0a3b5   Neeraj Sharma   add sunbject and ...
26
      {
813e55a79   Neeraj Sharma   implement parents...
27
28
          title: 'Parents',
          // group: 'apps',
68d742034   Neeraj Sharma   implement new des...
29
          name: 'Parents',
67a276510   Shikha Mishra   fixed all bugs
30
          icon: '/static/icon/parents.png',
813e55a79   Neeraj Sharma   implement parents...
31
32
33
34
      },
      {
          title: 'Teachers',
          // group: '',
68d742034   Neeraj Sharma   implement new des...
35
          name: 'Teachers',
67a276510   Shikha Mishra   fixed all bugs
36
          icon: '/static/icon/teacher.png',
813e55a79   Neeraj Sharma   implement parents...
37
38
39
40
      },
      {
          title: 'Students',
          // group: 'apps',
68d742034   Neeraj Sharma   implement new des...
41
          name: 'Students',
67a276510   Shikha Mishra   fixed all bugs
42
          icon: '/static/icon/student.png',
687e0b929   Neeraj Sharma   add user,attenden...
43
44
45
      },
      {
          title: 'User',
68d742034   Neeraj Sharma   implement new des...
46
          name: 'User',
67a276510   Shikha Mishra   fixed all bugs
47
          icon: '/static/icon/users.png',
687e0b929   Neeraj Sharma   add user,attenden...
48
49
50
51
52
      },
      {
          title: 'Attendance',
          group: 'Attendance',
          component: 'Attendance',
67a276510   Shikha Mishra   fixed all bugs
53
          icon: '/static/icon/attendence.png',
687e0b929   Neeraj Sharma   add user,attenden...
54
          items: [
2fe1115d8   Shikha Mishra   added csv button ...
55
              { name: 'StudentAttendence', title: 'Student Attendance', component: 'Student Attendence', action: '', },
710438de6   Shikha Mishra   added teacher mod...
56
57
              { name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'Teacher Attendence', action: '', },
              // { name: 'userAttendence', title: 'User Attendance', component: 'User Attendence', action: '', },
687e0b929   Neeraj Sharma   add user,attenden...
58
          ]
813e55a79   Neeraj Sharma   implement parents...
59
      },
46db0a3b5   Neeraj Sharma   add sunbject and ...
60
      {
0551a0f15   Neeraj Sharma   implemnet functio...
61
62
63
          title: 'Exam',
          group: 'Exam',
          component: 'Exam',
67a276510   Shikha Mishra   fixed all bugs
64
          icon: '/static/icon/exam.png',
0551a0f15   Neeraj Sharma   implemnet functio...
65
66
          items: [
              { name: 'Exam', title: 'Exam', component: 'Exam', action: '', },
2fe1115d8   Shikha Mishra   added csv button ...
67
              { name: 'ExamSchedule', title: 'Exam Schedule', component: 'Exam Schedule', action: '', },
0551a0f15   Neeraj Sharma   implemnet functio...
68
69
70
71
72
              { name: 'Grade', title: 'Grade', component: 'Grade', action: '', },
              // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', },
          ]
      },
      {
67a276510   Shikha Mishra   fixed all bugs
73
          title: 'Marks',
006544386   Neeraj Sharma   implement task
74
75
          group: 'Mark',
          component: 'Mark',
67a276510   Shikha Mishra   fixed all bugs
76
          icon: '/static/icon/marks.png',
006544386   Neeraj Sharma   implement task
77
78
          items: [
              { name: 'Mark', title: 'Mark', component: 'Mark', action: '', },
2fe1115d8   Shikha Mishra   added csv button ...
79
              { name: 'MarkDistribution', title: 'Mark Distribution', component: 'Mark Distribution', action: '', },
109a6218c   Neeraj Sharma   solve issue/bugs ...
80
              // { name: 'Promotion', title: 'promotion', component: 'Promotion', action: '', },
006544386   Neeraj Sharma   implement task
81
82
83
84
              // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', },
          ]
      },
      {
710438de6   Shikha Mishra   added teacher mod...
85
86
87
88
89
90
91
92
93
94
95
96
          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: '', },
          ]
      },
      {
006544386   Neeraj Sharma   implement task
97
98
99
          title: 'Administrator',
          group: 'Administrator',
          component: 'Administrator',
67a276510   Shikha Mishra   fixed all bugs
100
          icon: '/static/icon/adminstrator.png',
006544386   Neeraj Sharma   implement task
101
          items: [
2fe1115d8   Shikha Mishra   added csv button ...
102
              { name: 'AcademicYear', title: 'Academic Year', component: 'Academic Year', action: '', },
20ed133e3   Neeraj Sharma   remove system adm...
103
              // { name: 'systemAdmin', title: 'System Admin', component: 'systemAdmin', action: '', },
c8fc8e42e   Shikha Mishra   solved issues
104
              { name: 'resetPassword', title: 'Change Password', component: 'Change Password', action: '', },
006544386   Neeraj Sharma   implement task
105
              { name: 'Role', title: 'Role', component: 'Role', action: '', },
2fe1115d8   Shikha Mishra   added csv button ...
106
              { name: 'BulkImport', title: 'Bulk Import', component: 'Bulk Import', action: '', },
1c69557ac   Neeraj Sharma   implement design ...
107

006544386   Neeraj Sharma   implement task
108
109
          ]
      },
cbf69abb6   Shikha Mishra   router of payroll
110
111
112
113
114
115
116
117
118
      {
          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: '', },
d5fcb1cd1   Shikha Mishra   issues resolved
119
              // { name: 'makePayment', title: 'Make Payment', component: 'Make Payment', action: '', },
cbf69abb6   Shikha Mishra   router of payroll
120
121
          ]
      },
006544386   Neeraj Sharma   implement task
122
      {
46db0a3b5   Neeraj Sharma   add sunbject and ...
123
          title: 'Notice Board',
2fe1115d8   Shikha Mishra   added csv button ...
124
          name: 'Notice Board',
67a276510   Shikha Mishra   fixed all bugs
125
          icon: '/static/icon/notice board.png',
46db0a3b5   Neeraj Sharma   add sunbject and ...
126
      },
813e55a79   Neeraj Sharma   implement parents...
127
128
      {
          title: 'News',
68d742034   Neeraj Sharma   implement new des...
129
          name: 'News',
67a276510   Shikha Mishra   fixed all bugs
130
          icon: '/static/icon/news.png',
813e55a79   Neeraj Sharma   implement parents...
131
132
133
134
135
136
137
138
      },
      // {
      //   title: 'Reminder',
      //   name: 'reminder',
      //   icon: 'alarm_add',
      // },
      {
          title: 'Time Table',
2fe1115d8   Shikha Mishra   added csv button ...
139
          name: 'Time Table',
67a276510   Shikha Mishra   fixed all bugs
140
          icon: '/static/icon/time table.png',
813e55a79   Neeraj Sharma   implement parents...
141
      },
ab54b5656   Neeraj Sharma   implement library...
142
143
144
145
      {
          title: 'Library',
          group: 'Library',
          component: 'Library',
67a276510   Shikha Mishra   fixed all bugs
146
          icon: '/static/icon/library.png',
ab54b5656   Neeraj Sharma   implement library...
147
          items: [
2fe1115d8   Shikha Mishra   added csv button ...
148
              { name: 'LibraryMember', title: ' Library Member', component: 'Library Member', action: '', },
ab54b5656   Neeraj Sharma   implement library...
149
              { name: 'Books', title: 'Books', component: 'Books', action: '', },
be1fe29bb   Neeraj Sharma   implement number ...
150
              { name: 'Issue', title: ' Issue', component: 'Issue', action: '', },
68d742034   Neeraj Sharma   implement new des...
151
              { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', }
687e0b929   Neeraj Sharma   add user,attenden...
152

ab54b5656   Neeraj Sharma   implement library...
153
154
          ]
      },
813e55a79   Neeraj Sharma   implement parents...
155
      {
006544386   Neeraj Sharma   implement task
156
157
158
          title: 'Report',
          group: 'Report',
          component: 'Report',
67a276510   Shikha Mishra   fixed all bugs
159
          icon: '/static/icon/reports.png',
006544386   Neeraj Sharma   implement task
160
          items: [
2fe1115d8   Shikha Mishra   added csv button ...
161
              { name: 'studentReport', title: 'Student Report', component: 'Student Report', action: '', },
e56d46b13   Shikha Mishra   admit card option...
162
              { name: 'ProgressCardReport', title: 'Progress Card Report', component: 'Progress Card Report', action: '', },
7c435b5bb   Shikha Mishra   added icard repor...
163
              { name: 'idCard', title: 'Id Card Report', component: 'Id Card Report', action: '', },
710438de6   Shikha Mishra   added teacher mod...
164
              { name: 'admitCard', title: 'Admit Card Report', component: 'Admit Card Report', action: '', }
006544386   Neeraj Sharma   implement task
165
166
167
          ]
      },
      {
813e55a79   Neeraj Sharma   implement parents...
168
          title: 'Notification',
68d742034   Neeraj Sharma   implement new des...
169
          name: 'Notification',
67a276510   Shikha Mishra   fixed all bugs
170
          icon: '/static/icon/notification.png',
813e55a79   Neeraj Sharma   implement parents...
171
      },
8bb178441   Neeraj Sharma   implemnt api in s...
172
173
      {
          title: 'Social Media',
2fe1115d8   Shikha Mishra   added csv button ...
174
          name: 'Social Media',
aa310d61a   Shikha Mishra   added functionali...
175
          icon: '/static/icon/events.png',
8bb178441   Neeraj Sharma   implemnt api in s...
176
177
178
      },
      {
          title: 'Gallery',
68d742034   Neeraj Sharma   implement new des...
179
          name: 'Gallery',
67a276510   Shikha Mishra   fixed all bugs
180
          icon: '/static/icon/gallery.png',
8bb178441   Neeraj Sharma   implemnt api in s...
181
      },
4bd94ba60   Neeraj Sharma   implement api and...
182
183
      {
          title: 'Event',
68d742034   Neeraj Sharma   implement new des...
184
          name: 'Event',
67a276510   Shikha Mishra   fixed all bugs
185
          icon: '/static/icon/events.png',
4bd94ba60   Neeraj Sharma   implement api and...
186
187
      },
      {
687e0b929   Neeraj Sharma   add user,attenden...
188
189
190
          title: 'Account',
          group: 'Account',
          component: 'Account',
67a276510   Shikha Mishra   fixed all bugs
191
          icon: '/static/icon/accounts.png',
687e0b929   Neeraj Sharma   add user,attenden...
192
          items: [
2fe1115d8   Shikha Mishra   added csv button ...
193
              { name: 'feeTypes', title: 'Fee Types', component: 'Fee Types', action: '', },
687e0b929   Neeraj Sharma   add user,attenden...
194
              { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', },
2fe1115d8   Shikha Mishra   added csv button ...
195
              { name: 'PaymentHistory', title: 'Payment History', component: 'Payment History', action: '', },
687e0b929   Neeraj Sharma   add user,attenden...
196
197
              { name: 'Expense', title: 'Expense', component: 'Expense', action: '', },
              { name: 'Income', title: 'Income', component: 'Income', action: '', },
2fe1115d8   Shikha Mishra   added csv button ...
198
              { name: 'GlobalPayment', title: 'Global Payment', component: 'Global Payment', action: '', }
687e0b929   Neeraj Sharma   add user,attenden...
199
          ]
79583580d   Neeraj Sharma   implement task ma...
200
201
202
      },
      {
          title: 'Holiday',
68d742034   Neeraj Sharma   implement new des...
203
          name: 'Holiday',
67a276510   Shikha Mishra   fixed all bugs
204
          icon: '/static/icon/holiday.png',
79583580d   Neeraj Sharma   implement task ma...
205
206
207
      },
      {
          title: 'General Setting',
2fe1115d8   Shikha Mishra   added csv button ...
208
          name: 'General Setting',
67a276510   Shikha Mishra   fixed all bugs
209
          icon: '/static/icon/settings.png',
4bd94ba60   Neeraj Sharma   implement api and...
210
      }
1c1942362   Neeraj Sharma   commit code Schoo...
211
  ];
93a68cfa1   Jatinder Singh   first commit
212

99cd79184   Neeraj Sharma   implement all tas...
213
  const libraryMenu = [{
acb6c9e2b   Shikha Mishra   issues solved rel...
214
215
216
217
218
219
220
221
222
223
224
225
226
227
          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...
228

acb6c9e2b   Shikha Mishra   issues solved rel...
229
230
231
          ]
      },
  ];
99cd79184   Neeraj Sharma   implement all tas...
232
233
  
  const accountMenu = [{
acb6c9e2b   Shikha Mishra   issues solved rel...
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
          title: 'Dashboard',
          name: 'Dashboard',
          icon: '/static/icon/dashboard.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: '', }
          ]
      },
  ];
99cd79184   Neeraj Sharma   implement all tas...
254

37150e7c1   Neeraj Sharma   implement school ...
255
256
257
  const schoolMenu = [
      //  { header: 'Apps' },
      {
8c49cf221   Shikha Mishra   added dashboard o...
258
259
          title: 'Dashboard',
          // group: 'apps',
46993dc1d   Shikha Mishra   solve issue login
260
          name: 'View School Dashboard',
8c49cf221   Shikha Mishra   added dashboard o...
261
262
263
          icon: '/static/icon/dashboard.png',
      },
      {
37150e7c1   Neeraj Sharma   implement school ...
264
265
          title: 'School',
          // group: 'apps',
7d0816758   Shikha Mishra   show dashboard wh...
266
          name: 'School',
37150e7c1   Neeraj Sharma   implement school ...
267
          icon: '/static/schoolIcons/Dashboard.png',
1c69557ac   Neeraj Sharma   implement design ...
268
      }
37150e7c1   Neeraj Sharma   implement school ...
269
  ];
93a68cfa1   Jatinder Singh   first commit
270

57263a890   Shikha Mishra   hide subject from...
271
  const teacherMenu = [{
710438de6   Shikha Mishra   added teacher mod...
272
          title: 'Dashboard',
229463bd5   Neeraj Sharma   implement design ...
273
          name: 'Dashboard',
710438de6   Shikha Mishra   added teacher mod...
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
          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: '', },
          ]
      },
      {
229463bd5   Neeraj Sharma   implement design ...
307
308
309
310
311
312
313
          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: '', },
11d037abe   Neeraj Sharma   commit code
314
              { name: 'Course Detail', title: 'Course Detail', component: 'Course Detail', action: '', },
229463bd5   Neeraj Sharma   implement design ...
315
316
317
318
319
320
321
322
323
324
              // { name: 'Routine', title: 'Routine', component: 'Routine', action: '', },
          ]
      },
      {
          title: 'Annoucement',
          // group: 'apps',
          name: 'Annoucement',
          icon: '/static/icon/student.png',
      },
      {
710438de6   Shikha Mishra   added teacher mod...
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
          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: '', }
  
          ]
      },
2226dee5a   Neeraj Sharma   implement confere...
377
378
379
380
381
      {
          title: 'Meet',
          name: 'Meet',
          icon: '/static/icon/parents.png',
      }
710438de6   Shikha Mishra   added teacher mod...
382
  ];
11d037abe   Neeraj Sharma   commit code
383
384
385
386
387
  const parentMenu = [{
      title: 'Dashboard',
      name: 'Dashboard',
      icon: '/static/icon/dashboard.png',
  }];
93a68cfa1   Jatinder Singh   first commit
388
  // reorder menu
37150e7c1   Neeraj Sharma   implement school ...
389
390
391
392
393
394
395
396
397
  // 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
398

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