Blame view
src/api/menu.js
1.96 KB
813e55a79
|
1 2 |
const Menu = [ // { header: 'Apps' }, |
a17c68a03
|
3 4 5 6 7 8 |
{ title: 'Dashboard', // group: 'apps', name: 'Dashboard', icon: 'dashboard', }, |
813e55a79
|
9 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', }, { |
46db0a3b5
|
22 23 24 25 26 |
title: 'Subjects', name: 'Subject', icon: 'subject', }, { |
813e55a79
|
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
title: 'Parents', // group: 'apps', name: 'parents', icon: 'group', }, { title: 'Teachers', // group: '', name: 'teachers', icon: 'person', }, { title: 'Students', // group: 'apps', name: 'Students', icon: 'school', }, |
46db0a3b5
|
44 45 46 |
{ title: 'Notice Board', name: 'NoticeBoard', |
8bb178441
|
47 |
icon: 'notifications', |
46db0a3b5
|
48 |
}, |
813e55a79
|
49 50 51 |
{ title: 'News', name: 'news', |
8bb178441
|
52 |
icon: 'announcement', |
813e55a79
|
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
}, // { // title: 'Reminder', // name: 'reminder', // icon: 'alarm_add', // }, { title: 'Time Table', name: 'timeTable', icon: 'event_note', }, { title: 'Notification', name: 'notification', icon: 'notifications_active', }, |
8bb178441
|
69 70 71 72 73 74 75 76 77 78 |
{ title: 'Social Media', name: 'SocialMedia', icon: 'cloud_upload', }, { title: 'Gallery', name: 'Gallery', icon: 'photo', }, |
4bd94ba60
|
79 80 81 82 83 84 85 86 87 88 |
{ title: 'Event', name: 'Event', icon: 'event', }, { title: 'Holiday', name: 'Holiday', icon: 'star', } |
1c1942362
|
89 |
]; |
93a68cfa1
|
90 |
|
93a68cfa1
|
91 |
|
93a68cfa1
|
92 93 |
// reorder menu Menu.forEach((item) => { |
813e55a79
|
94 95 96 97 98 99 100 |
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
|
101 |
}); |
813e55a79
|
102 |
export default Menu; |