Blame view

src/api/menu.js 1.5 KB
813e55a79   Neeraj Sharma   implement parents...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  const Menu = [
      //  { header: 'Apps' },
      {
          title: 'Class',
          // group: 'apps',
          name: 'addclass',
          icon: 'local_library',
      },
      {
          title: 'Section',
          // group: 'apps',
          name: 'section',
          icon: 'view_module',
      },
      {
46db0a3b5   Neeraj Sharma   add sunbject and ...
16
17
18
19
20
          title: 'Subjects',
          name: 'Subject',
          icon: 'subject',
      },
      {
813e55a79   Neeraj Sharma   implement parents...
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
          title: 'Parents',
          // group: 'apps',
          name: 'parents',
          icon: 'group',
      },
      {
          title: 'Teachers',
          // group: '',
          name: 'teachers',
          icon: 'person',
      },
      {
          title: 'Students',
          // group: 'apps',
          name: 'Students',
          icon: 'school',
      },
46db0a3b5   Neeraj Sharma   add sunbject and ...
38
39
40
41
42
      {
          title: 'Notice Board',
          name: 'NoticeBoard',
          icon: 'contactless',
      },
813e55a79   Neeraj Sharma   implement parents...
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
      {
          title: 'News',
          name: 'news',
          icon: 'notification_important',
      },
      // {
      //   title: 'Reminder',
      //   name: 'reminder',
      //   icon: 'alarm_add',
      // },
      {
          title: 'Time Table',
          name: 'timeTable',
          icon: 'event_note',
      },
      {
          title: 'Notification',
          name: 'notification',
          icon: 'notifications_active',
      },
1c1942362   Neeraj Sharma   commit code Schoo...
63
  ];
93a68cfa1   Jatinder Singh   first commit
64

93a68cfa1   Jatinder Singh   first commit
65

93a68cfa1   Jatinder Singh   first commit
66
67
  // reorder menu
  Menu.forEach((item) => {
813e55a79   Neeraj Sharma   implement parents...
68
69
70
71
72
73
74
      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   Jatinder Singh   first commit
75
  });
813e55a79   Neeraj Sharma   implement parents...
76
  export default Menu;