Skip Wonnell | 2c977e2 | 2018-03-01 08:30:15 -0600 | [diff] [blame^] | 1 | /* |
| 2 | ============LICENSE_START========================================== |
| 3 | =================================================================== |
| 4 | Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. |
| 5 | =================================================================== |
| 6 | |
| 7 | Unless otherwise specified, all software contained herein is licensed |
| 8 | under the Apache License, Version 2.0 (the License); |
| 9 | you may not use this software except in compliance with the License. |
| 10 | You may obtain a copy of the License at |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 14 | Unless required by applicable law or agreed to in writing, software |
| 15 | distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | See the License for the specific language governing permissions and |
| 18 | limitations under the License. |
| 19 | |
| 20 | ECOMP is a trademark and service mark of AT&T Intellectual Property. |
| 21 | ============LICENSE_END============================================ |
| 22 | */ |
| 23 | |
| 24 | import {NgModule} from '@angular/core'; |
| 25 | import {FormsModule} from '@angular/forms'; |
| 26 | import {CommonModule} from '@angular/common'; |
| 27 | // modules |
| 28 | import {VnfRoutingModule} from './vnf.routing'; |
| 29 | import {SharedModule} from '../shared/shared.module'; |
| 30 | |
| 31 | import {AceEditorComponent} from 'ng2-ace-editor'; |
| 32 | // components |
| 33 | import {MyvnfsComponent} from './myvnfs/myvnfs.component'; |
| 34 | import {ReferenceDataformComponent} from './build-artifacts/reference-dataform/reference-dataform.component'; |
| 35 | import {GoldenConfigurationComponent} from './build-artifacts/template-holder/template-configuration/template-configuration.component'; |
| 36 | import {ParameterComponent} from './build-artifacts/parameter-definitions/parameter.component'; |
| 37 | import {ParameterHolderComponent} from './build-artifacts/parameter-holder/parameter-holder.component'; |
| 38 | import {BootstrapModalModule} from 'ng2-bootstrap-modal'; |
| 39 | import {BuildDesignComponent} from './build-artifacts/build-artifacts.component'; |
| 40 | import {userloginFormComponent} from './userlogin-form/userlogin-form.component'; |
| 41 | import {ReferenceDataHolderComponent} from './build-artifacts/reference-data-holder/reference-data-holder.component'; |
| 42 | import {ModalComponent} from '../shared/modal/modal.component'; |
| 43 | import {VnfsComponent} from './vnfs/vnfs.component'; |
| 44 | import {ConfirmComponent} from '../shared/confirmModal/confirm.component'; |
| 45 | import {GoldenConfigurationHolderComponent} from './build-artifacts/template-holder/template-holder.component'; |
| 46 | import {GoldenConfigurationMappingComponent} from './build-artifacts/template-holder/param-name-value/param-name-value.component'; |
| 47 | import {Tab} from './build-artifacts/template-holder/param-name-value/tab'; |
| 48 | import {Tabs} from './build-artifacts/template-holder/param-name-value/tabs'; |
| 49 | import {Ng2Bs3ModalModule} from 'ng2-bs3-modal/ng2-bs3-modal'; |
| 50 | import {AuthGuardModalComponent} from './auth-guard-modal/auth-guard-modal'; |
| 51 | import {GCAuthGuardService} from './GCAuthGuard/gcauth-guard.service'; |
| 52 | import {LoginGuardService} from './LoginGuardService/Login-guard-service'; |
| 53 | import {SimpleNotificationsModule} from 'angular2-notifications'; |
| 54 | |
| 55 | |
| 56 | export const components = [ |
| 57 | BuildDesignComponent, |
| 58 | GoldenConfigurationComponent, |
| 59 | GoldenConfigurationMappingComponent, |
| 60 | ParameterComponent, |
| 61 | ParameterHolderComponent, |
| 62 | MyvnfsComponent, |
| 63 | userloginFormComponent, |
| 64 | VnfsComponent, |
| 65 | ReferenceDataformComponent, |
| 66 | ReferenceDataHolderComponent, |
| 67 | ModalComponent, |
| 68 | GoldenConfigurationHolderComponent, |
| 69 | AceEditorComponent, |
| 70 | Tab, |
| 71 | Tabs, |
| 72 | ConfirmComponent, |
| 73 | AuthGuardModalComponent, |
| 74 | |
| 75 | |
| 76 | ]; |
| 77 | |
| 78 | export const modules = [ |
| 79 | CommonModule, VnfRoutingModule, SharedModule.forRoot(), |
| 80 | FormsModule, BootstrapModalModule, Ng2Bs3ModalModule, SimpleNotificationsModule.forRoot() |
| 81 | |
| 82 | ]; |
| 83 | |
| 84 | @NgModule({ |
| 85 | imports: [...modules], |
| 86 | declarations: [...components], |
| 87 | providers: [GCAuthGuardService, LoginGuardService], |
| 88 | |
| 89 | |
| 90 | entryComponents: [ConfirmComponent, AuthGuardModalComponent] |
| 91 | }) |
| 92 | export class VnfsModule { |
| 93 | } |