Use O-RAN-SC
[portal/ric-dashboard.git] / webapp-frontend / src / app / app.module.ts
1 /*-
2  * ========================LICENSE_START=================================
3  * O-RAN-SC
4  * %%
5  * Copyright (C) 2019 AT&T Intellectual Property and Nokia
6  * %%
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ========================LICENSE_END===================================
19  */
20 import { BrowserModule } from '@angular/platform-browser';
21 // tslint:disable-next-line:max-line-length
22 import { MatIconModule, MatCardModule, MatListModule, MatSidenavModule,
23     MatButtonToggleModule, MatSliderModule, MatGridListModule, MatSlideToggleModule,
24     MatExpansionModule, MatTabsModule } from '@angular/material';
25 import { BrowserAnimationsModule} from '@angular/platform-browser/animations';
26 import { NgModule } from '@angular/core';
27 import { Ng2SmartTableModule } from 'ng2-smart-table';
28 import { ChartsModule } from 'ng2-charts';
29 import { MDBBootstrapModule } from 'angular-bootstrap-md';
30 import {FormsModule, ReactiveFormsModule} from '@angular/forms';
31
32 import { AppRoutingModule } from './app-routing.module';
33 import { AppComponent } from './app.component';
34 import { LoginComponent } from './login/login.component';
35 import { CatalogComponent, AppCatalogDeployDialog, } from './catalog/catalog.component';
36 import { UiService} from './services/ui/ui.service';
37 import { AdminService} from './services/admin/admin.service';
38 import { CatalogService} from './services/catalog/catalog.service';
39 import { ControlService} from './services/control/control.service';
40 import { SidenavListComponent } from './navigation/sidenav-list/sidenav-list.component';
41 import { ControlComponent } from './control/control.component';
42 import { StatsComponent } from './stats/stats.component';
43 import { AdminComponent } from './admin/admin.component';
44 import { CatalogCardComponent} from './ui/catalog-card/catalog-card.component';
45 import { ControlCardComponent} from './ui/control-card/control-card.component';
46 import { StatCardComponent} from './ui/stat-card/stat-card.component';
47 import { ModalEventComponent } from './ui/modal-event/modal-event.component';
48 import { XappComponent } from './xapp/xapp.component';
49 import { ConfigEventComponent } from './ui/config-event/config-event.component';
50 import { MatDialogModule } from '@angular/material';
51
52 @NgModule({
53   declarations: [
54     AppComponent,
55     LoginComponent,
56     CatalogComponent,
57     SidenavListComponent,
58     CatalogCardComponent,
59     ControlCardComponent,
60     StatCardComponent,
61     ControlComponent,
62     StatsComponent,
63     AdminComponent,
64     ModalEventComponent,
65     XappComponent,
66     ConfigEventComponent,
67     AppCatalogDeployDialog,
68   ],
69     imports: [
70     BrowserModule,
71     BrowserAnimationsModule,
72     ChartsModule,
73     AppRoutingModule,
74     FormsModule,
75     ReactiveFormsModule,
76     MatButtonToggleModule,
77     MatExpansionModule,
78     MatSliderModule,
79     MatCardModule,
80     MatIconModule,
81     MatGridListModule,
82     MatListModule,
83     MatSidenavModule,
84     MatSlideToggleModule,
85     MatTabsModule,
86     Ng2SmartTableModule,
87     MDBBootstrapModule.forRoot(),
88   ],
89     exports: [
90     MatDialogModule, 
91     MatButtonToggleModule,
92     MatExpansionModule,
93     MatSliderModule,
94     MatCardModule,
95     MatIconModule,
96     MatGridListModule,
97     MatListModule,
98     MatSidenavModule,
99     MatSlideToggleModule,
100     MatTabsModule,
101     ],
102     entryComponents: [
103     AppCatalogDeployDialog,
104     ],
105   providers: [
106       UiService,
107       AdminService,
108       CatalogService,
109       ControlService,
110     ],
111   bootstrap: [AppComponent]
112 })
113 export class AppModule { }