Blame view

src/api/menu.js 5.67 KB
93a68cfa1   Jatinder Singh   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  const Menu =  [
  //  { header: 'Apps' },
    // {
    //   title: 'Dashboard',
    //   group: 'apps',
    //   icon: 'dashboard',
    //   name: 'Dashboard',
    // },
    // {
    //   title: 'Chat',
    //   group: 'apps',
    //   icon: 'chat_bubble',
    //   target: '_blank',
    //   name: 'Chat',
    // },
    // {
    //   title: 'Inbox',
    //   group: 'apps',
    //   name: 'Mail',
    //   target: '_blank',
    //   icon: 'email',
    // },
    {
      title: 'User',
      // group: '',
      name: 'Dashboard',
      icon: '',
    },
  
    {
      title: 'Health Care Provider',
      // group: 'apps',
      name: 'Provider',
      icon: '',
    },
    {
      title: 'Notification',
      // group: 'apps',
      name: 'notification',
      icon: '',
    },
04e3fbc56   Jatinder Singh   minor fix
42
43
44
45
46
47
    {
      title: 'Forum Questions',
      // group: 'apps',
      name: 'questions',
      icon: '',
    },
93a68cfa1   Jatinder Singh   first commit
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
    // {
    //   title: 'Widgets',
    //   group: 'widgets',
    //   component: 'widgets',
    //   icon: 'widgets',
    //   items: [
    //     { name: 'social', title: 'Social', component: 'components/social' },
    //     { name: 'statistic', title: 'Statistic', badge: 'new', component: 'components/statistic' },
    //     { name: 'chart', title: 'Chart', component: 'components/chart' },
    //     { name: 'list', title: 'List', component: 'components/widget-list' },
    //     // { name: 'post', title: 'Post', component: 'components/widget-post' },
    //   ]
    // },  
    // { header: 'UI Elements' },
    // {
    //   title: 'General',
    //   group: 'components',
    //   component: 'components',
    //   icon: 'tune',
    //   items: [
    //     { name: 'alerts', title: 'Alerts', component: 'components/alerts' },
    //     { name: 'avatars', title: 'Avatars', component: 'components/avatars' },
    //     { name: 'badges', title: 'Badges', component: 'components/badges' },
    //     { name: 'buttons', title: 'Buttons', component: 'components/buttons' },
    //     { name: 'cards', title: 'Cards', component: 'components/cards' },
    //     { name: 'carousels', title: 'Carousels', component: 'components/carousels' },
    //     { name: 'chips', title: 'Chips', component: 'components/chips' },
    //     { name: 'dialogs', title: 'Dialogs', component: 'components/dialogs' },
    //     { name: 'icons', title: 'Icons', component: 'components/icons' },
    //     { name: 'tables', title: 'Data Tables', component: 'components/tables' },
    //     { name: 'parallax', title: 'Parallax  image', component: 'components/parallax' },
    //     { name: 'snackbar', title: 'Snackbar', component: 'components/snackbar' },
    //     { name: 'progress', title: 'Progress', component: 'components/progress' },      
    //     { name: 'slider', title: 'Slider', component: 'components/sliders' },      
    //     { name: 'tooltip', title: 'Tooltip', component: 'components/tooltips' },      
    //     { name: 'pagination', title: 'Pagination', component: 'components/paginations' },      
    //     { name: 'typography', title: 'Typography', component: 'components/typography' },      
    //     { name: 'color', title: 'Color', component: 'components/color' },      
  
    //   ]
    // },
    // {
    //   title: 'Pickers',
    //   group: 'pickers',
    //   component: 'picker',
    //   icon: 'filter_vintage',
    //   items: [
    //     { name: 'timepicker', title: 'Timepicker', component: 'pickers/timepicker' },     
    //     { name: 'datepicker', title: 'Datepicker', component: 'pickers/datepicker' },      
  
    //   ]
    // },
    // {
    //   title: 'Layout',
    //   group: 'layout',
    //   component: 'layout',
    //   icon: 'view_compact',
    //   items: [
    //     { name: 'bottom-sheets', title: 'Bottom panels', component: 'components/bottom-sheets' },
    //     { name: 'expansion-panels', title: 'Expansion panels', component: 'components/expansion-panels' },
    //     { name: 'footer', title: 'Footer', component: 'components/footer' },
    //     { name: 'lists', title: 'Lists', component: 'components/lists' },
    //     { name: 'jumbotrons', title: 'Jumbotrons', badge: 'new', component: 'components/jumbotrons' },
    //     { name: 'menus', title: 'Menus', component: 'components/menus' },
    //     // { name: 'navigation-drawers', title: 'Navigation drawers', component: 'components/navigation-drawers' },
    //     { name: 'tabs', title: 'Tabs', component: 'components/tabs' },
    //     { name: 'toolbar', title: 'Toolbars', component: 'components/toolbar' },
    //     { name: 'timeline', title: 'Timeline', component: 'components/timeline' },
    //   ]
    // },  
    // {
    //   title: 'Forms & Controls',
    //   group: 'forms',
    //   component: 'forms',
    //   icon: 'edit',
    //   items: [
    //     { name: 'basic', title: 'General', component: 'components/basic-forms' },
    //     { name: 'selects', title: 'Selects', badge: 'new', component: 'components/selects' },
    //     { name: 'selection-controls', title: 'Selection Controls', component: 'components/selection-controls' },
    //     { name: 'text-fields', title: 'Text Fields', component: 'components/text-fields' },
    //     { name: 'steppers', title: 'Steppers', component: 'components/steppers' },
    //     { name: 'editors', title: 'Editors', component: 'components/editors' },
    //   ]
    // },
    // { divider: true },
    // { header: 'Extras' },
    // {
    //   title: 'Pages',
    //   group: 'extra',
    //   icon: 'list',
    //   items: [
    //     { name: 'Login', title: 'Login', component: 'Login' },
    //     { name: '404', title: '404', component: 'NotFound' },
    //     { name: '403', title: '403', component: 'AccessDenied' },
    //     { name: '500', title: '500', component: 'ServerError' },
    //   ]
    // },
  ];
  // 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;