Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018-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 { NgModule } from '@angular/core'; |
| 17 | import { CommonModule } from '@angular/common'; |
| 18 | import { TopologyRoutingModule } from './topology-routing.module'; |
| 19 | import { TopologyComponent } from './topology/topology.component'; |
| 20 | import { NoDeviceConnectedSvgComponent } from './layer/nodeviceconnectedsvg/nodeviceconnectedsvg.component'; |
Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 21 | import { InstanceComponent } from './panel/instance/instance.component'; |
| 22 | import { SummaryComponent } from './panel/summary/summary.component'; |
| 23 | import { ToolbarComponent } from './panel/toolbar/toolbar.component'; |
| 24 | import { DetailsComponent } from './panel/details/details.component'; |
Sean Condon | 3b3fdab | 2020-04-14 09:25:00 +0100 | [diff] [blame] | 25 | import { Gui2FwLibModule } from 'org_onosproject_onos/web/gui2-fw-lib/public_api'; |
Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 26 | import { BackgroundSvgComponent } from './layer/backgroundsvg/backgroundsvg.component'; |
| 27 | import { ForceSvgComponent } from './layer/forcesvg/forcesvg.component'; |
| 28 | import { MapSvgComponent } from './layer/mapsvg/mapsvg.component'; |
Sean Condon | aa4366d | 2018-11-02 14:29:01 +0000 | [diff] [blame] | 29 | import { TopologyService } from './topology.service'; |
Sean Condon | 0c577f6 | 2018-11-18 22:40:05 +0000 | [diff] [blame] | 30 | import { DraggableDirective } from './layer/forcesvg/draggable/draggable.directive'; |
Sean Condon | 0d064ec | 2019-02-04 21:53:53 +0000 | [diff] [blame] | 31 | import { MapSelectorComponent } from './panel/mapselector/mapselector.component'; |
Sean Condon | ff85fbe | 2019-03-16 14:28:46 +0000 | [diff] [blame] | 32 | import { DeviceNodeSvgComponent} from './layer/forcesvg/visuals/devicenodesvg/devicenodesvg.component'; |
| 33 | import { HostNodeSvgComponent } from './layer/forcesvg/visuals/hostnodesvg/hostnodesvg.component'; |
| 34 | import { SubRegionNodeSvgComponent } from './layer/forcesvg/visuals/subregionnodesvg/subregionnodesvg.component'; |
| 35 | import { LinkSvgComponent} from './layer/forcesvg/visuals/linksvg/linksvg.component'; |
Sean Condon | 0d064ec | 2019-02-04 21:53:53 +0000 | [diff] [blame] | 36 | import {FormsModule, ReactiveFormsModule} from '@angular/forms'; |
Sean Condon | 7191054 | 2019-02-16 18:16:42 +0000 | [diff] [blame] | 37 | import { GridsvgComponent } from './layer/gridsvg/gridsvg.component'; |
Sean Condon | ff85fbe | 2019-03-16 14:28:46 +0000 | [diff] [blame] | 38 | import {TrafficService} from './traffic.service'; |
Sean Condon | 2888433 | 2019-03-21 14:07:00 +0000 | [diff] [blame] | 39 | import {LayoutService} from './layout.service'; |
Sean Condon | 590b34b | 2019-12-04 18:44:37 +0000 | [diff] [blame] | 40 | import { BadgeSvgComponent } from './layer/forcesvg/visuals/badgesvg/badgesvg.component'; |
Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 41 | |
| 42 | /** |
| 43 | * ONOS GUI -- Topology View Module |
| 44 | * |
Sean Condon | 9148182 | 2019-01-01 13:56:14 +0000 | [diff] [blame] | 45 | * The main entry point is the TopologyComponent |
| 46 | * |
Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 47 | * Note: This has been updated from onos-gui-1.0.0 where it was called 'topo2' |
| 48 | * whereas here it is now called 'topology'. This also merges in the old 'topo' |
| 49 | */ |
| 50 | @NgModule({ |
| 51 | imports: [ |
| 52 | CommonModule, |
Sean Condon | 0d064ec | 2019-02-04 21:53:53 +0000 | [diff] [blame] | 53 | FormsModule, |
| 54 | ReactiveFormsModule, |
Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 55 | TopologyRoutingModule, |
| 56 | Gui2FwLibModule |
| 57 | ], |
| 58 | declarations: [ |
Sean Condon | ff85fbe | 2019-03-16 14:28:46 +0000 | [diff] [blame] | 59 | BackgroundSvgComponent, |
| 60 | DetailsComponent, |
| 61 | DeviceNodeSvgComponent, |
| 62 | ForceSvgComponent, |
| 63 | GridsvgComponent, |
| 64 | HostNodeSvgComponent, |
Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 65 | InstanceComponent, |
Sean Condon | ff85fbe | 2019-03-16 14:28:46 +0000 | [diff] [blame] | 66 | LinkSvgComponent, |
| 67 | MapSelectorComponent, |
| 68 | MapSvgComponent, |
| 69 | NoDeviceConnectedSvgComponent, |
| 70 | SubRegionNodeSvgComponent, |
Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 71 | SummaryComponent, |
| 72 | ToolbarComponent, |
Sean Condon | ff85fbe | 2019-03-16 14:28:46 +0000 | [diff] [blame] | 73 | TopologyComponent, |
Sean Condon | 0c577f6 | 2018-11-18 22:40:05 +0000 | [diff] [blame] | 74 | DraggableDirective, |
Sean Condon | 590b34b | 2019-12-04 18:44:37 +0000 | [diff] [blame] | 75 | BadgeSvgComponent, |
Sean Condon | aa4366d | 2018-11-02 14:29:01 +0000 | [diff] [blame] | 76 | ], |
| 77 | providers: [ |
Sean Condon | ff85fbe | 2019-03-16 14:28:46 +0000 | [diff] [blame] | 78 | TopologyService, |
Sean Condon | 2888433 | 2019-03-21 14:07:00 +0000 | [diff] [blame] | 79 | TrafficService, |
| 80 | LayoutService |
Sean Condon | ff85fbe | 2019-03-16 14:28:46 +0000 | [diff] [blame] | 81 | ], |
| 82 | exports: [ |
| 83 | BackgroundSvgComponent, |
| 84 | DetailsComponent, |
| 85 | DeviceNodeSvgComponent, |
| 86 | ForceSvgComponent, |
| 87 | GridsvgComponent, |
| 88 | HostNodeSvgComponent, |
| 89 | InstanceComponent, |
| 90 | LinkSvgComponent, |
| 91 | MapSelectorComponent, |
| 92 | MapSvgComponent, |
| 93 | NoDeviceConnectedSvgComponent, |
| 94 | SubRegionNodeSvgComponent, |
| 95 | SummaryComponent, |
| 96 | ToolbarComponent, |
| 97 | TopologyComponent, |
Sean Condon | ff85fbe | 2019-03-16 14:28:46 +0000 | [diff] [blame] | 98 | DraggableDirective, |
Sean Condon | 590b34b | 2019-12-04 18:44:37 +0000 | [diff] [blame] | 99 | BadgeSvgComponent |
Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 100 | ] |
| 101 | }) |
Sean Condon | ff85fbe | 2019-03-16 14:28:46 +0000 | [diff] [blame] | 102 | export class Gui2TopoLibModule { } |