Blame view

src/api/menu.js 1.12 KB
93a68cfa1   Jatinder Singh   first commit
1
2
  const Menu =  [
  //  { header: 'Apps' },
2b0e316ee   Neeraj Sharma   upload mytiple im...
3
     {
ae898ca2b   Neeraj Sharma   add new pages routes
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   Neeraj Sharma   first commit
16
      title: 'Teachers',
93a68cfa1   Jatinder Singh   first commit
17
      // group: '',
1c1942362   Neeraj Sharma   commit code Schoo...
18
      name: 'teachers',
e3e2a04c6   Neeraj Sharma   first commit
19
      icon: 'group',
93a68cfa1   Jatinder Singh   first commit
20
    },
93a68cfa1   Jatinder Singh   first commit
21
    {
e3e2a04c6   Neeraj Sharma   first commit
22
      title: 'Students',
93a68cfa1   Jatinder Singh   first commit
23
      // group: 'apps',
e3e2a04c6   Neeraj Sharma   first commit
24
25
      name: 'Students',
      icon: 'school',
04e3fbc56   Jatinder Singh   minor fix
26
    },
2b0e316ee   Neeraj Sharma   upload mytiple im...
27
28
29
30
31
    // {
    //   title: 'Event',
    //   name: 'event',
    //   icon: 'event_available',
    // },
ae898ca2b   Neeraj Sharma   add new pages routes
32
33
34
35
36
    {
      title: 'News',
      name: 'news',
      icon: 'notification_important',
    },
2b0e316ee   Neeraj Sharma   upload mytiple im...
37
38
39
40
41
    // {
    //   title: 'Reminder',
    //   name: 'reminder',
    //   icon: 'alarm_add',
    // },
ae898ca2b   Neeraj Sharma   add new pages routes
42
43
44
45
46
    {
      title: 'Time Table',
      name: 'timeTable',
      icon: 'event_note',
    },
55f72b7d7   Neeraj Sharma   add new page are ...
47
48
49
50
51
    {
      title: 'Notification',
      name: 'notification',
      icon: 'notifications_active',
    },
1c1942362   Neeraj Sharma   commit code Schoo...
52
  ];
93a68cfa1   Jatinder Singh   first commit
53

93a68cfa1   Jatinder Singh   first commit
54

93a68cfa1   Jatinder Singh   first commit
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;