Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 1 | /* |
| 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 | */ |
| 16 | import { Component, OnInit } from '@angular/core'; |
| 17 | import { DetailsPanelService } from '../../fw/layer/detailspanel.service'; |
| 18 | import { FnService } from '../../fw/util/fn.service'; |
| 19 | import { IconService } from '../../fw/svg/icon.service'; |
| 20 | import { KeyService } from '../../fw/util/key.service'; |
| 21 | import { LoadingService } from '../../fw/layer/loading.service'; |
| 22 | import { LogService } from '../../log.service'; |
| 23 | import { MastService } from '../../fw/mast/mast.service'; |
| 24 | import { NavService } from '../../fw/nav/nav.service'; |
| 25 | import { PanelService } from '../../fw/layer/panel.service'; |
| 26 | import { TableBuilderService } from '../../fw/widget/tablebuilder.service'; |
| 27 | import { TableDetailService } from '../../fw/widget/tabledetail.service'; |
| 28 | import { 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 | }) |
| 38 | export 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 |
Sean Condon | fd6d11b | 2018-06-02 20:29:49 +0100 | [diff] [blame] | 61 | // this.ls.startAnim(); |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 62 | } |
| 63 | |
| 64 | } |