Blame view
src/api/menu.js
1.24 KB
93a68cfa1
|
1 2 |
const Menu = [ // { header: 'Apps' }, |
2b0e316ee
|
3 4 5 6 7 8 9 |
// { // title: 'Dashboard', // // group: 'apps', // name: 'dashboard', // icon: 'view_module', // }, { |
ae898ca2b
|
10 11 12 13 14 15 16 17 18 19 20 21 |
title: 'Class', // group: 'apps', name: 'addclass', icon: 'local_library', }, { title: 'Section', // group: 'apps', name: 'section', icon: 'view_module', }, { |
e3e2a04c6
|
22 |
title: 'Teachers', |
93a68cfa1
|
23 |
// group: '', |
1c1942362
|
24 |
name: 'teachers', |
e3e2a04c6
|
25 |
icon: 'group', |
93a68cfa1
|
26 |
}, |
93a68cfa1
|
27 |
{ |
e3e2a04c6
|
28 |
title: 'Students', |
93a68cfa1
|
29 |
// group: 'apps', |
e3e2a04c6
|
30 31 |
name: 'Students', icon: 'school', |
04e3fbc56
|
32 |
}, |
2b0e316ee
|
33 34 35 36 37 |
// { // title: 'Event', // name: 'event', // icon: 'event_available', // }, |
ae898ca2b
|
38 39 40 41 42 |
{ title: 'News', name: 'news', icon: 'notification_important', }, |
2b0e316ee
|
43 44 45 46 47 |
// { // title: 'Reminder', // name: 'reminder', // icon: 'alarm_add', // }, |
ae898ca2b
|
48 49 50 51 52 |
{ title: 'Time Table', name: 'timeTable', icon: 'event_note', }, |
55f72b7d7
|
53 54 55 56 57 |
{ title: 'Notification', name: 'notification', icon: 'notifications_active', }, |
1c1942362
|
58 |
]; |
93a68cfa1
|
59 |
|
93a68cfa1
|
60 |
|
93a68cfa1
|
61 62 63 64 65 66 67 68 69 70 71 72 |
// reorder menu 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; }); } }); export default Menu; |