| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 1 | /* |
| 2 | Copyright 2020 TATA ELXSI |
| 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 | Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in) |
| 17 | */ |
| 18 | |
| 19 | /** |
| 20 | * @file Dashboard Module |
| 21 | */ |
| 22 | import { CommonModule } from '@angular/common'; |
| 23 | import { HttpClientModule } from '@angular/common/http'; |
| 24 | import { NgModule } from '@angular/core'; |
| 25 | import { FlexLayoutModule } from '@angular/flex-layout'; |
| 26 | import { FormsModule } from '@angular/forms'; |
| 27 | import { RouterModule, Routes } from '@angular/router'; |
| 28 | import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; |
| SANDHYA.JS | 4a7a542 | 2021-05-15 15:35:22 +0530 | [diff] [blame^] | 29 | import { NgSelectModule } from '@ng-select/ng-select'; |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 30 | import { TranslateModule } from '@ngx-translate/core'; |
| 31 | import { DashboardComponent } from 'DashboardComponent'; |
| 32 | import { LoaderModule } from 'LoaderModule'; |
| 33 | import { ChartsModule } from 'ng2-charts'; |
| SANDHYA.JS | 4a7a542 | 2021-05-15 15:35:22 +0530 | [diff] [blame^] | 34 | import { SharedModule } from 'SharedModule'; |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 35 | |
| 36 | /** To halndle project information */ |
| 37 | const projectInfo: {} = { title: '{project}', url: '/' }; |
| 38 | |
| 39 | /** const values for dashboard Routes */ |
| 40 | const routes: Routes = [ |
| 41 | { |
| 42 | path: '', |
| 43 | data: { |
| 44 | breadcrumb: [{ title: 'PAGE.DASHBOARD.DASHBOARD', url: '/' }, { title: 'PAGE.DASHBOARD.PROJECTS', url: '/projects' }, |
| 45 | projectInfo] |
| 46 | }, |
| 47 | component: DashboardComponent |
| 48 | } |
| 49 | ]; |
| 50 | /** |
| 51 | * An NgModule is a class adorned with the @NgModule decorator function. |
| 52 | * @NgModule takes a metadata object that tells Angular how to compile and run module code. |
| 53 | */ |
| 54 | @NgModule({ |
| SANDHYA.JS | 4a7a542 | 2021-05-15 15:35:22 +0530 | [diff] [blame^] | 55 | imports: [FormsModule, CommonModule, HttpClientModule, FlexLayoutModule, TranslateModule, NgSelectModule, |
| 56 | ChartsModule, RouterModule.forChild(routes), NgbModule, LoaderModule, SharedModule], |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 57 | declarations: [DashboardComponent] |
| 58 | }) |
| 59 | /** Exporting a class @exports DashboardModule */ |
| 60 | export class DashboardModule { |
| 61 | /** Variables declared to avoid state-less class */ |
| 62 | private dashboardModule: string; |
| 63 | } |