blob: 82b27c0947f6c4e79f2839786360cbcbd6dc5efe [file] [log] [blame]
kumaran.m3b4814a2020-05-01 19:48:54 +05301/*
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 */
22import { CommonModule } from '@angular/common';
23import { HttpClientModule } from '@angular/common/http';
24import { NgModule } from '@angular/core';
25import { FlexLayoutModule } from '@angular/flex-layout';
26import { FormsModule } from '@angular/forms';
27import { RouterModule, Routes } from '@angular/router';
28import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
SANDHYA.JS4a7a5422021-05-15 15:35:22 +053029import { NgSelectModule } from '@ng-select/ng-select';
kumaran.m3b4814a2020-05-01 19:48:54 +053030import { TranslateModule } from '@ngx-translate/core';
31import { DashboardComponent } from 'DashboardComponent';
32import { LoaderModule } from 'LoaderModule';
33import { ChartsModule } from 'ng2-charts';
SANDHYA.JS4a7a5422021-05-15 15:35:22 +053034import { SharedModule } from 'SharedModule';
kumaran.m3b4814a2020-05-01 19:48:54 +053035
36/** To halndle project information */
37const projectInfo: {} = { title: '{project}', url: '/' };
38
39/** const values for dashboard Routes */
40const 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.JS4a7a5422021-05-15 15:35:22 +053055 imports: [FormsModule, CommonModule, HttpClientModule, FlexLayoutModule, TranslateModule, NgSelectModule,
56 ChartsModule, RouterModule.forChild(routes), NgbModule, LoaderModule, SharedModule],
kumaran.m3b4814a2020-05-01 19:48:54 +053057 declarations: [DashboardComponent]
58})
59/** Exporting a class @exports DashboardModule */
60export class DashboardModule {
61 /** Variables declared to avoid state-less class */
62 private dashboardModule: string;
63}