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