Blame view

src/api/menu.js 7.96 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
21
      },
      {
46db0a3b5   Neeraj Sharma   add sunbject and ...
22
          title: 'Subjects',
68d742034   Neeraj Sharma   implement new des...
23
          name: 'Subject',
67a276510   Shikha Mishra   fixed all bugs
24
          icon: '/static/icon/subject.png',
46db0a3b5   Neeraj Sharma   add sunbject and ...
25
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
56
              { name: 'StudentAttendence', title: 'Student Attendance', component: 'Student Attendence', action: '', },
              { name: 'TeacherAttendence', title: 'Teacher Attendance', component: 'Teacher Attendence', action: '', }
687e0b929   Neeraj Sharma   add user,attenden...
57
58
              // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', },
          ]
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: '', },
006544386   Neeraj Sharma   implement task
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',
67a276510   Shikha Mishra   fixed all bugs
88
          icon: '/static/icon/adminstrator.png',
006544386   Neeraj Sharma   implement task
89
          items: [
2fe1115d8   Shikha Mishra   added csv button ...
90
              { name: 'AcademicYear', title: 'Academic Year', component: 'Academic Year', action: '', },
20ed133e3   Neeraj Sharma   remove system adm...
91
              // { name: 'systemAdmin', title: 'System Admin', component: 'systemAdmin', action: '', },
c8fc8e42e   Shikha Mishra   solved issues
92
              { name: 'resetPassword', title: 'Change Password', component: 'Change Password', action: '', },
006544386   Neeraj Sharma   implement task
93
              { name: 'Role', title: 'Role', component: 'Role', action: '', },
2fe1115d8   Shikha Mishra   added csv button ...
94
              { name: 'BulkImport', title: 'Bulk Import', component: 'Bulk Import', action: '', },
1c69557ac   Neeraj Sharma   implement design ...
95

006544386   Neeraj Sharma   implement task
96
97
98
          ]
      },
      {
46db0a3b5   Neeraj Sharma   add sunbject and ...
99
          title: 'Notice Board',
2fe1115d8   Shikha Mishra   added csv button ...
100
          name: 'Notice Board',
67a276510   Shikha Mishra   fixed all bugs
101
          icon: '/static/icon/notice board.png',
46db0a3b5   Neeraj Sharma   add sunbject and ...
102
      },
813e55a79   Neeraj Sharma   implement parents...
103
104
      {
          title: 'News',
68d742034   Neeraj Sharma   implement new des...
105
          name: 'News',
67a276510   Shikha Mishra   fixed all bugs
106
          icon: '/static/icon/news.png',
813e55a79   Neeraj Sharma   implement parents...
107
108
109
110
111
112
113
114
      },
      // {
      //   title: 'Reminder',
      //   name: 'reminder',
      //   icon: 'alarm_add',
      // },
      {
          title: 'Time Table',
2fe1115d8   Shikha Mishra   added csv button ...
115
          name: 'Time Table',
67a276510   Shikha Mishra   fixed all bugs
116
          icon: '/static/icon/time table.png',
813e55a79   Neeraj Sharma   implement parents...
117
      },
ab54b5656   Neeraj Sharma   implement library...
118
119
120
121
      {
          title: 'Library',
          group: 'Library',
          component: 'Library',
67a276510   Shikha Mishra   fixed all bugs
122
          icon: '/static/icon/library.png',
ab54b5656   Neeraj Sharma   implement library...
123
          items: [
2fe1115d8   Shikha Mishra   added csv button ...
124
              { name: 'LibraryMember', title: ' Library Member', component: 'Library Member', action: '', },
ab54b5656   Neeraj Sharma   implement library...
125
              { name: 'Books', title: 'Books', component: 'Books', action: '', },
be1fe29bb   Neeraj Sharma   implement number ...
126
              { name: 'Issue', title: ' Issue', component: 'Issue', action: '', },
68d742034   Neeraj Sharma   implement new des...
127
              { name: 'E-Books', title: 'E-Books', component: 'E-Books', action: '', }
687e0b929   Neeraj Sharma   add user,attenden...
128

ab54b5656   Neeraj Sharma   implement library...
129
130
          ]
      },
813e55a79   Neeraj Sharma   implement parents...
131
      {
006544386   Neeraj Sharma   implement task
132
133
134
          title: 'Report',
          group: 'Report',
          component: 'Report',
67a276510   Shikha Mishra   fixed all bugs
135
          icon: '/static/icon/reports.png',
006544386   Neeraj Sharma   implement task
136
          items: [
2fe1115d8   Shikha Mishra   added csv button ...
137
              { name: 'studentReport', title: 'Student Report', component: 'Student Report', action: '', },
e56d46b13   Shikha Mishra   admit card option...
138
              { name: 'ProgressCardReport', title: 'Progress Card Report', component: 'Progress Card Report', action: '', },
46c5b5fdd   Shikha Mishra   minor changes
139
              // { name: 'idCard', title: 'Id Card Report', component: 'Id Card Report', action: '', },
e56d46b13   Shikha Mishra   admit card option...
140
              { name: 'admitCard', title: 'Admit Card Report', component: 'Admit Card Report', action: '',}
006544386   Neeraj Sharma   implement task
141
142
143
          ]
      },
      {
813e55a79   Neeraj Sharma   implement parents...
144
          title: 'Notification',
68d742034   Neeraj Sharma   implement new des...
145
          name: 'Notification',
67a276510   Shikha Mishra   fixed all bugs
146
          icon: '/static/icon/notification.png',
813e55a79   Neeraj Sharma   implement parents...
147
      },
8bb178441   Neeraj Sharma   implemnt api in s...
148
149
      {
          title: 'Social Media',
2fe1115d8   Shikha Mishra   added csv button ...
150
          name: 'Social Media',
aa310d61a   Shikha Mishra   added functionali...
151
          icon: '/static/icon/events.png',
8bb178441   Neeraj Sharma   implemnt api in s...
152
153
154
      },
      {
          title: 'Gallery',
68d742034   Neeraj Sharma   implement new des...
155
          name: 'Gallery',
67a276510   Shikha Mishra   fixed all bugs
156
          icon: '/static/icon/gallery.png',
8bb178441   Neeraj Sharma   implemnt api in s...
157
      },
4bd94ba60   Neeraj Sharma   implement api and...
158
159
      {
          title: 'Event',
68d742034   Neeraj Sharma   implement new des...
160
          name: 'Event',
67a276510   Shikha Mishra   fixed all bugs
161
          icon: '/static/icon/events.png',
4bd94ba60   Neeraj Sharma   implement api and...
162
163
      },
      {
687e0b929   Neeraj Sharma   add user,attenden...
164
165
166
          title: 'Account',
          group: 'Account',
          component: 'Account',
67a276510   Shikha Mishra   fixed all bugs
167
          icon: '/static/icon/accounts.png',
687e0b929   Neeraj Sharma   add user,attenden...
168
          items: [
2fe1115d8   Shikha Mishra   added csv button ...
169
              { name: 'feeTypes', title: 'Fee Types', component: 'Fee Types', action: '', },
687e0b929   Neeraj Sharma   add user,attenden...
170
              { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', },
2fe1115d8   Shikha Mishra   added csv button ...
171
              { name: 'PaymentHistory', title: 'Payment History', component: 'Payment History', action: '', },
687e0b929   Neeraj Sharma   add user,attenden...
172
173
              { name: 'Expense', title: 'Expense', component: 'Expense', action: '', },
              { name: 'Income', title: 'Income', component: 'Income', action: '', },
2fe1115d8   Shikha Mishra   added csv button ...
174
              { name: 'GlobalPayment', title: 'Global Payment', component: 'Global Payment', action: '', }
687e0b929   Neeraj Sharma   add user,attenden...
175
          ]
79583580d   Neeraj Sharma   implement task ma...
176
177
178
      },
      {
          title: 'Holiday',
68d742034   Neeraj Sharma   implement new des...
179
          name: 'Holiday',
67a276510   Shikha Mishra   fixed all bugs
180
          icon: '/static/icon/holiday.png',
79583580d   Neeraj Sharma   implement task ma...
181
182
183
      },
      {
          title: 'General Setting',
2fe1115d8   Shikha Mishra   added csv button ...
184
          name: 'General Setting',
67a276510   Shikha Mishra   fixed all bugs
185
          icon: '/static/icon/settings.png',
4bd94ba60   Neeraj Sharma   implement api and...
186
      }
1c1942362   Neeraj Sharma   commit code Schoo...
187
  ];
93a68cfa1   Jatinder Singh   first commit
188

99cd79184   Neeraj Sharma   implement all tas...
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
  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   Neeraj Sharma   implement school ...
217
218
219
  const schoolMenu = [
      //  { header: 'Apps' },
      {
8c49cf221   Shikha Mishra   added dashboard o...
220
221
          title: 'Dashboard',
          // group: 'apps',
46993dc1d   Shikha Mishra   solve issue login
222
          name: 'View School Dashboard',
8c49cf221   Shikha Mishra   added dashboard o...
223
224
225
          icon: '/static/icon/dashboard.png',
      },
      {
37150e7c1   Neeraj Sharma   implement school ...
226
227
          title: 'School',
          // group: 'apps',
7d0816758   Shikha Mishra   show dashboard wh...
228
          name: 'School',
37150e7c1   Neeraj Sharma   implement school ...
229
          icon: '/static/schoolIcons/Dashboard.png',
1c69557ac   Neeraj Sharma   implement design ...
230
      }
37150e7c1   Neeraj Sharma   implement school ...
231
  ];
93a68cfa1   Jatinder Singh   first commit
232

93a68cfa1   Jatinder Singh   first commit
233
  // reorder menu
37150e7c1   Neeraj Sharma   implement school ...
234
235
236
237
238
239
240
241
242
  // 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
243

99cd79184   Neeraj Sharma   implement all tas...
244
  export default { adminMenu, schoolMenu, libraryMenu, accountMenu };