Home page carousel
[eliot.git] / blueprints / common / eliot-ui / frontend-src / src / app / toolbar / toolbar.component.ts
1 import { Component, OnInit } from '@angular/core';
2 import { ToolbarService } from './toolbar.service';
3
4 @Component({
5   selector: 'app-toolbar',
6   templateUrl: './toolbar.component.html',
7   styleUrls: ['./toolbar.component.scss']
8 })
9 export class ToolbarComponent implements OnInit {
10   toolbarmenu = [];
11   menuicon: string;
12   constructor(public toolbarService: ToolbarService) { }
13
14   ngOnInit() {
15     this.menuicon = "menu";
16     this.init();
17   }
18
19   init(){
20     this.toolbarmenu = [
21       {
22         displayName: 'ELIOT',
23         route: '/home'
24       },
25       {
26         displayName: 'NETWORK MANAGEMENT',
27         children: [
28           {
29             displayName: 'ELIOT CLUSTER',
30             children: [
31               {
32                 displayName: 'NODES',
33                 route: '/nodes'
34               },
35               {
36                 displayName: 'PODS',
37                 route: '/pods'
38               },
39               {
40                 displayName: 'SERVICES',
41                 route: '/services'
42               },
43               {
44                 displayName: 'DEPLOYMENTS',
45                 route: ''
46               },
47               {
48                 displayName: 'REPLICATION',
49                 route: '/replica'
50               }
51             ]
52           },
53           {
54             displayName: 'ELIOT NAMESPACE',
55             route: ''
56           }
57         ]
58       },
59       {
60         displayName: 'APPLICATION MANAGEMENT',
61         children: [
62           {
63             displayName: 'DEPLOYMENT',
64             route: '/deployments'
65           },
66           {
67             displayName: 'UNINSTALLATION',
68             route: '/uninstall'
69           },
70           {
71             displayName: 'MONITORING',
72             route: '',
73             children: [
74               {
75                 displayName: 'APPLICATION INFO',
76                 route: 'Application Info'
77               },
78               {
79                 displayName: 'DEPLOYMENT HISTORY',
80                 route: '/history'
81               }
82             ]
83           }
84         ]
85       },
86       {
87         displayName: 'DEVELOPER',
88         children: [
89           {
90             displayName: 'Eliot Application APIs',
91             route: '',
92             children: [
93               {
94                 displayName: 'Video Surveilance APIs',
95                 route: ''
96               }
97             ]
98           },
99           {
100             displayName: 'ELIOT SDKs',
101             children: [
102               {
103                 displayName: 'EdgeX',
104                 route: ''
105               },
106               {
107                 displayName: 'Face Detection',
108                 route: ''
109               },
110               {
111                 displayName: 'Model Building',
112                 route: ''
113               }
114             ]
115           },
116           {
117             displayName: 'Frameworks',
118           },
119           {
120             displayName: 'Development Flow',
121             route: '',
122             children: [
123               {
124                 displayName: 'Model / graph',
125                 route: ''
126               }
127             ]
128           }
129         ]
130       },
131       {
132         displayName: 'ELIOT APP SOLUTION',
133         children: [
134           {
135             displayName: 'ELIOT Solutions',
136             route: '',
137             children: [
138               {
139                 displayName: 'Video Surveilance',
140                 route: ''
141               },
142               {
143                 displayName: 'EdgeX',
144                 route: ''
145               },
146               {
147                 displayName: 'Smart Edge Data Center',
148                 route: ''
149               }
150             ]
151           }
152         ]
153       },
154       {
155         displayName: 'HELP',
156         children: [
157           {
158             displayName: 'About ELIOT Portal',
159             route: '/describe'
160           },
161           {
162             displayName: 'Akraino ELIOT wiki',
163             route: '/akrainowiki'
164           }
165         ]
166       },
167       {
168         displayName: 'OTHERS',
169         children: [
170           {
171             displayName: 'Command Prompt',
172             route: '/terminal'
173           }
174         ]
175       },
176       {
177         iconName: 'account_circle',
178         children: [
179           {
180             iconName: 'account_circle',
181             displayName: 'login / signup',
182             route: '/login'
183           },
184           {
185             iconName: 'logout',
186             displayName: 'logout',
187           }
188         ]
189       }
190     ]
191   }
192
193 }