blob: db42c4d4d7381f20a6f0f53406c52c4f1f65f189 [file] [log] [blame]
Sean Condon83fc39f2018-04-19 18:56:13 +01001/*
2 * Copyright 2015-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16import { Component, OnInit } from '@angular/core';
17import { DetailsPanelService } from '../../fw/layer/detailspanel.service';
18import { FnService } from '../../fw/util/fn.service';
19import { IconService } from '../../fw/svg/icon.service';
20import { KeyService } from '../../fw/util/key.service';
21import { LoadingService } from '../../fw/layer/loading.service';
22import { LogService } from '../../log.service';
23import { MastService } from '../../fw/mast/mast.service';
24import { NavService } from '../../fw/nav/nav.service';
25import { PanelService } from '../../fw/layer/panel.service';
26import { TableBuilderService } from '../../fw/widget/tablebuilder.service';
27import { TableDetailService } from '../../fw/widget/tabledetail.service';
28import { WebSocketService } from '../../fw/remote/websocket.service';
29
30/**
31 * ONOS GUI -- Device View Component
32 */
33@Component({
34 selector: 'onos-device',
35 templateUrl: './device.component.html',
36 styleUrls: ['./device.component.css']
37})
38export class DeviceComponent implements OnInit {
39
40 constructor(
41 private dps: DetailsPanelService,
42 private fs: FnService,
43 private is: IconService,
44 private ks: KeyService,
45 private log: LogService,
46 private mast: MastService,
47 private nav: NavService,
48 private ps: PanelService,
49 private tbs: TableBuilderService,
50 private tds: TableDetailService,
51 private wss: WebSocketService,
52 private ls: LoadingService, // TODO: Remove - already added through tbs
53 private window: Window
54 ) {
55 this.log.debug('DeviceComponent constructed');
56 }
57
58 ngOnInit() {
59 this.log.debug('DeviceComponent initialized');
60 // TODO: Remove this - it's only for demo purposes
61 this.ls.startAnim();
62 }
63
64}