Commit 20ed133e3b966a33598fac26cb85b2353a11b3c9
1 parent
b33ed58c24
Exists in
master
and in
3 other branches
remove system admin in side bar
Showing
1 changed file
with
1 additions
and
1 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 | path: '/dashboard', | 6 | path: '/dashboard', |
7 | icon: '/static/schoolIcons/Dashboard.png', | 7 | icon: '/static/schoolIcons/Dashboard.png', |
8 | }, | 8 | }, |
9 | { | 9 | { |
10 | title: 'Class', | 10 | title: 'Class', |
11 | // group: 'apps', | 11 | // group: 'apps', |
12 | path: '/addclass', | 12 | path: '/addclass', |
13 | icon: '/static/schoolIcons/Class.png', | 13 | icon: '/static/schoolIcons/Class.png', |
14 | }, | 14 | }, |
15 | { | 15 | { |
16 | title: 'Section', | 16 | title: 'Section', |
17 | // group: 'apps', | 17 | // group: 'apps', |
18 | path: '/section', | 18 | path: '/section', |
19 | icon: '/static/schoolIcons/Section.png', | 19 | icon: '/static/schoolIcons/Section.png', |
20 | }, | 20 | }, |
21 | { | 21 | { |
22 | title: 'Subjects', | 22 | title: 'Subjects', |
23 | path: '/subject', | 23 | path: '/subject', |
24 | icon: '/static/schoolIcons/Subjects.png', | 24 | icon: '/static/schoolIcons/Subjects.png', |
25 | }, | 25 | }, |
26 | { | 26 | { |
27 | title: 'Parents', | 27 | title: 'Parents', |
28 | // group: 'apps', | 28 | // group: 'apps', |
29 | path: '/parents', | 29 | path: '/parents', |
30 | icon: '/static/schoolIcons/Parents.png', | 30 | icon: '/static/schoolIcons/Parents.png', |
31 | }, | 31 | }, |
32 | { | 32 | { |
33 | title: 'Teachers', | 33 | title: 'Teachers', |
34 | // group: '', | 34 | // group: '', |
35 | path: 'teachers', | 35 | path: 'teachers', |
36 | icon: '/static/schoolIcons/Teachers.png', | 36 | icon: '/static/schoolIcons/Teachers.png', |
37 | }, | 37 | }, |
38 | { | 38 | { |
39 | title: 'Students', | 39 | title: 'Students', |
40 | // group: 'apps', | 40 | // group: 'apps', |
41 | path: '/Students', | 41 | path: '/Students', |
42 | icon: '/static/schoolIcons/Students.png', | 42 | icon: '/static/schoolIcons/Students.png', |
43 | }, | 43 | }, |
44 | { | 44 | { |
45 | title: 'User', | 45 | title: 'User', |
46 | path: '/User', | 46 | path: '/User', |
47 | icon: '/static/schoolIcons/User.png', | 47 | icon: '/static/schoolIcons/User.png', |
48 | }, | 48 | }, |
49 | { | 49 | { |
50 | title: 'Attendance', | 50 | title: 'Attendance', |
51 | group: 'Attendance', | 51 | group: 'Attendance', |
52 | component: 'Attendance', | 52 | component: 'Attendance', |
53 | icon: '/static/schoolIcons/Attendance.png', | 53 | icon: '/static/schoolIcons/Attendance.png', |
54 | items: [ | 54 | items: [ |
55 | { name: 'studentAttendence', title: 'Student Attendance', component: 'studentAttendence', action: '', }, | 55 | { name: 'studentAttendence', title: 'Student Attendance', component: 'studentAttendence', action: '', }, |
56 | { name: 'teacherAttendence', title: 'Teacher Attendance', component: 'teacherAttendence', action: '', } | 56 | { name: 'teacherAttendence', title: 'Teacher Attendance', component: 'teacherAttendence', action: '', } |
57 | // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, | 57 | // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, |
58 | ] | 58 | ] |
59 | }, | 59 | }, |
60 | { | 60 | { |
61 | title: 'Exam', | 61 | title: 'Exam', |
62 | group: 'Exam', | 62 | group: 'Exam', |
63 | component: 'Exam', | 63 | component: 'Exam', |
64 | icon: '/static/schoolIcons/exam.png', | 64 | icon: '/static/schoolIcons/exam.png', |
65 | items: [ | 65 | items: [ |
66 | { name: 'Exam', title: 'Exam', component: 'Exam', action: '', }, | 66 | { name: 'Exam', title: 'Exam', component: 'Exam', action: '', }, |
67 | { name: 'ExamSchedule', title: 'Exam Schedule', component: 'ExamSchedule', action: '', }, | 67 | { name: 'ExamSchedule', title: 'Exam Schedule', component: 'ExamSchedule', action: '', }, |
68 | { name: 'Grade', title: 'Grade', component: 'Grade', action: '', }, | 68 | { name: 'Grade', title: 'Grade', component: 'Grade', action: '', }, |
69 | // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, | 69 | // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, |
70 | ] | 70 | ] |
71 | }, | 71 | }, |
72 | { | 72 | { |
73 | title: 'Mark', | 73 | title: 'Mark', |
74 | group: 'Mark', | 74 | group: 'Mark', |
75 | component: 'Mark', | 75 | component: 'Mark', |
76 | icon: '/static/schoolIcons/marks.png', | 76 | icon: '/static/schoolIcons/marks.png', |
77 | items: [ | 77 | items: [ |
78 | { name: 'Mark', title: 'Mark', component: 'Mark', action: '', }, | 78 | { name: 'Mark', title: 'Mark', component: 'Mark', action: '', }, |
79 | { name: 'markDistribution', title: 'Mark Distribution', component: 'markDistribution', action: '', }, | 79 | { name: 'markDistribution', title: 'Mark Distribution', component: 'markDistribution', action: '', }, |
80 | { name: 'Promotion', title: 'promotion', component: 'Promotion', action: '', }, | 80 | { name: 'Promotion', title: 'promotion', component: 'Promotion', action: '', }, |
81 | // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, | 81 | // { name: 'userAttendence', title: 'User Attendance', component: 'userAttendence', action: '', }, |
82 | ] | 82 | ] |
83 | }, | 83 | }, |
84 | { | 84 | { |
85 | title: 'Administrator', | 85 | title: 'Administrator', |
86 | group: 'Administrator', | 86 | group: 'Administrator', |
87 | component: 'Administrator', | 87 | component: 'Administrator', |
88 | icon: '/static/schoolIcons/administrator.png', | 88 | icon: '/static/schoolIcons/administrator.png', |
89 | items: [ | 89 | items: [ |
90 | { name: 'academicYear', title: 'Academic Year', component: 'academicYear', action: '', }, | 90 | { name: 'academicYear', title: 'Academic Year', component: 'academicYear', action: '', }, |
91 | { name: 'systemAdmin', title: 'System Admin', component: 'systemAdmin', action: '', }, | 91 | // { name: 'systemAdmin', title: 'System Admin', component: 'systemAdmin', action: '', }, |
92 | { name: 'resetPassword', title: 'Reset Password', component: 'resetPassword', action: '', }, | 92 | { name: 'resetPassword', title: 'Reset Password', component: 'resetPassword', action: '', }, |
93 | { name: 'Role', title: 'Role', component: 'Role', action: '', }, | 93 | { name: 'Role', title: 'Role', component: 'Role', action: '', }, |
94 | { name: 'bulkImportole', title: 'Bulk Import', component: 'bulkImport', action: '', }, | 94 | { name: 'bulkImportole', title: 'Bulk Import', component: 'bulkImport', action: '', }, |
95 | 95 | ||
96 | ] | 96 | ] |
97 | }, | 97 | }, |
98 | { | 98 | { |
99 | title: 'Notice Board', | 99 | title: 'Notice Board', |
100 | path: '/NoticeBoard', | 100 | path: '/NoticeBoard', |
101 | icon: '/static/schoolIcons/Notice_board.png', | 101 | icon: '/static/schoolIcons/Notice_board.png', |
102 | }, | 102 | }, |
103 | { | 103 | { |
104 | title: 'News', | 104 | title: 'News', |
105 | path: '/news', | 105 | path: '/news', |
106 | icon: '/static/schoolIcons/News.png', | 106 | icon: '/static/schoolIcons/News.png', |
107 | }, | 107 | }, |
108 | // { | 108 | // { |
109 | // title: 'Reminder', | 109 | // title: 'Reminder', |
110 | // name: 'reminder', | 110 | // name: 'reminder', |
111 | // icon: 'alarm_add', | 111 | // icon: 'alarm_add', |
112 | // }, | 112 | // }, |
113 | { | 113 | { |
114 | title: 'Time Table', | 114 | title: 'Time Table', |
115 | path: '/timeTable', | 115 | path: '/timeTable', |
116 | icon: '/static/schoolIcons/Time_table.png', | 116 | icon: '/static/schoolIcons/Time_table.png', |
117 | }, | 117 | }, |
118 | { | 118 | { |
119 | title: 'Library', | 119 | title: 'Library', |
120 | group: 'Library', | 120 | group: 'Library', |
121 | component: 'Library', | 121 | component: 'Library', |
122 | icon: '/static/schoolIcons/Library.png', | 122 | icon: '/static/schoolIcons/Library.png', |
123 | items: [ | 123 | items: [ |
124 | { name: 'libraryMember', title: ' Library Member', component: 'libraryMember', action: '', }, | 124 | { name: 'libraryMember', title: ' Library Member', component: 'libraryMember', action: '', }, |
125 | { name: 'Books', title: 'Books', component: 'Books', action: '', }, | 125 | { name: 'Books', title: 'Books', component: 'Books', action: '', }, |
126 | { name: 'Issue', title: ' Issue', component: 'Issue', action: '', }, | 126 | { name: 'Issue', title: ' Issue', component: 'Issue', action: '', }, |
127 | { name: 'eBooks', title: 'E-Books', component: 'eBooks', action: '', } | 127 | { name: 'eBooks', title: 'E-Books', component: 'eBooks', action: '', } |
128 | 128 | ||
129 | ] | 129 | ] |
130 | }, | 130 | }, |
131 | { | 131 | { |
132 | title: 'Report', | 132 | title: 'Report', |
133 | group: 'Report', | 133 | group: 'Report', |
134 | component: 'Report', | 134 | component: 'Report', |
135 | icon: '/static/schoolIcons/reports.png', | 135 | icon: '/static/schoolIcons/reports.png', |
136 | items: [ | 136 | items: [ |
137 | { name: 'studentReport', title: 'Student Report', component: 'studentReport', action: '', }, | 137 | { name: 'studentReport', title: 'Student Report', component: 'studentReport', action: '', }, |
138 | { name: 'progressCardReport', title: 'Progress Card Report', component: 'progressCardReport', action: '', } | 138 | { name: 'progressCardReport', title: 'Progress Card Report', component: 'progressCardReport', action: '', } |
139 | ] | 139 | ] |
140 | }, | 140 | }, |
141 | { | 141 | { |
142 | title: 'Notification', | 142 | title: 'Notification', |
143 | path: '/notification', | 143 | path: '/notification', |
144 | icon: '/static/schoolIcons/Notification.png', | 144 | icon: '/static/schoolIcons/Notification.png', |
145 | }, | 145 | }, |
146 | { | 146 | { |
147 | title: 'Social Media', | 147 | title: 'Social Media', |
148 | path: '/SocialMedia', | 148 | path: '/SocialMedia', |
149 | icon: '/static/schoolIcons/Social_Media.png', | 149 | icon: '/static/schoolIcons/Social_Media.png', |
150 | }, | 150 | }, |
151 | { | 151 | { |
152 | title: 'Gallery', | 152 | title: 'Gallery', |
153 | path: '/Gallery', | 153 | path: '/Gallery', |
154 | icon: '/static/schoolIcons/Gallery.png', | 154 | icon: '/static/schoolIcons/Gallery.png', |
155 | }, | 155 | }, |
156 | { | 156 | { |
157 | title: 'Event', | 157 | title: 'Event', |
158 | path: '/Event', | 158 | path: '/Event', |
159 | icon: '/static/schoolIcons/Events.png', | 159 | icon: '/static/schoolIcons/Events.png', |
160 | }, | 160 | }, |
161 | { | 161 | { |
162 | title: 'Account', | 162 | title: 'Account', |
163 | group: 'Account', | 163 | group: 'Account', |
164 | component: 'Account', | 164 | component: 'Account', |
165 | icon: '/static/schoolIcons/Account.png', | 165 | icon: '/static/schoolIcons/Account.png', |
166 | items: [ | 166 | items: [ |
167 | { name: 'feeTypes', title: 'Fee Types', component: 'feeTypes', action: '', }, | 167 | { name: 'feeTypes', title: 'Fee Types', component: 'feeTypes', action: '', }, |
168 | { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', }, | 168 | { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', }, |
169 | { name: 'paymentHistory', title: 'Payment History', component: 'paymentHistory', action: '', }, | 169 | { name: 'paymentHistory', title: 'Payment History', component: 'paymentHistory', action: '', }, |
170 | { name: 'Expense', title: 'Expense', component: 'Expense', action: '', }, | 170 | { name: 'Expense', title: 'Expense', component: 'Expense', action: '', }, |
171 | { name: 'Income', title: 'Income', component: 'Income', action: '', }, | 171 | { name: 'Income', title: 'Income', component: 'Income', action: '', }, |
172 | { name: 'GlobalPayment', title: 'Global Payment', component: 'GlobalPayment', action: '', } | 172 | { name: 'GlobalPayment', title: 'Global Payment', component: 'GlobalPayment', action: '', } |
173 | ] | 173 | ] |
174 | }, | 174 | }, |
175 | { | 175 | { |
176 | title: 'Holiday', | 176 | title: 'Holiday', |
177 | path: '/Holiday', | 177 | path: '/Holiday', |
178 | icon: '/static/schoolIcons/Holidays.png', | 178 | icon: '/static/schoolIcons/Holidays.png', |
179 | }, | 179 | }, |
180 | { | 180 | { |
181 | title: 'General Setting', | 181 | title: 'General Setting', |
182 | path: '/generalSetting', | 182 | path: '/generalSetting', |
183 | icon: '/static/schoolIcons/settings.png', | 183 | icon: '/static/schoolIcons/settings.png', |
184 | } | 184 | } |
185 | ]; | 185 | ]; |
186 | 186 | ||
187 | const libraryMenu = [{ | 187 | const libraryMenu = [{ |
188 | title: 'Library', | 188 | title: 'Library', |
189 | group: 'Library', | 189 | group: 'Library', |
190 | component: 'Library', | 190 | component: 'Library', |
191 | icon: '/static/schoolIcons/Library.png', | 191 | icon: '/static/schoolIcons/Library.png', |
192 | items: [ | 192 | items: [ |
193 | { name: 'libraryMember', title: ' Library Member', component: 'libraryMember', action: '', }, | 193 | { name: 'libraryMember', title: ' Library Member', component: 'libraryMember', action: '', }, |
194 | { name: 'Books', title: 'Books', component: 'Books', action: '', }, | 194 | { name: 'Books', title: 'Books', component: 'Books', action: '', }, |
195 | { name: 'Issue', title: ' Issue', component: 'Issue', action: '', }, | 195 | { name: 'Issue', title: ' Issue', component: 'Issue', action: '', }, |
196 | { name: 'eBooks', title: 'E-Books', component: 'eBooks', action: '', } | 196 | { name: 'eBooks', title: 'E-Books', component: 'eBooks', action: '', } |
197 | 197 | ||
198 | ] | 198 | ] |
199 | }]; | 199 | }]; |
200 | 200 | ||
201 | const accountMenu = [{ | 201 | const accountMenu = [{ |
202 | title: 'Account', | 202 | title: 'Account', |
203 | group: 'Account', | 203 | group: 'Account', |
204 | component: 'Account', | 204 | component: 'Account', |
205 | icon: '/static/schoolIcons/Account.png', | 205 | icon: '/static/schoolIcons/Account.png', |
206 | items: [ | 206 | items: [ |
207 | { name: 'feeTypes', title: 'Fee Types', component: 'feeTypes', action: '', }, | 207 | { name: 'feeTypes', title: 'Fee Types', component: 'feeTypes', action: '', }, |
208 | { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', }, | 208 | { name: 'Invoice', title: 'Invoice', component: 'Invoice', action: '', }, |
209 | { name: 'paymentHistory', title: 'Payment History', component: 'paymentHistory', action: '', }, | 209 | { name: 'paymentHistory', title: 'Payment History', component: 'paymentHistory', action: '', }, |
210 | { name: 'Expense', title: 'Expense', component: 'Expense', action: '', }, | 210 | { name: 'Expense', title: 'Expense', component: 'Expense', action: '', }, |
211 | { name: 'Income', title: 'Income', component: 'Income', action: '', }, | 211 | { name: 'Income', title: 'Income', component: 'Income', action: '', }, |
212 | { name: 'GlobalPayment', title: 'Global Payment', component: 'GlobalPayment', action: '', } | 212 | { name: 'GlobalPayment', title: 'Global Payment', component: 'GlobalPayment', action: '', } |
213 | ] | 213 | ] |
214 | }]; | 214 | }]; |
215 | 215 | ||
216 | const schoolMenu = [ | 216 | const schoolMenu = [ |
217 | // { header: 'Apps' }, | 217 | // { header: 'Apps' }, |
218 | { | 218 | { |
219 | title: 'School', | 219 | title: 'School', |
220 | // group: 'apps', | 220 | // group: 'apps', |
221 | path: '/school', | 221 | path: '/school', |
222 | icon: '/static/schoolIcons/Dashboard.png', | 222 | icon: '/static/schoolIcons/Dashboard.png', |
223 | } | 223 | } |
224 | ]; | 224 | ]; |
225 | 225 | ||
226 | // reorder menu | 226 | // reorder menu |
227 | // Menu.forEach((item) => { | 227 | // Menu.forEach((item) => { |
228 | // if (item.items) { | 228 | // if (item.items) { |
229 | // item.items.sort((x, y) => { | 229 | // item.items.sort((x, y) => { |
230 | // let textA = x.title.toUpperCase(); | 230 | // let textA = x.title.toUpperCase(); |
231 | // let textB = y.title.toUpperCase(); | 231 | // let textB = y.title.toUpperCase(); |
232 | // return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; | 232 | // return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; |
233 | // }); | 233 | // }); |
234 | // } | 234 | // } |
235 | // }); | 235 | // }); |
236 | 236 | ||
237 | export default { adminMenu, schoolMenu, libraryMenu, accountMenu }; | 237 | export default { adminMenu, schoolMenu, libraryMenu, accountMenu }; |