Blame view

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

93a68cfa1   Jatinder Singh   first commit
60

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