2017-04-27 14:29:31 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
2017-08-15 16:41:27 +00:00
|
|
|
import { CommonModule } from '@angular/common';
|
2017-08-16 14:48:42 +00:00
|
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
2019-07-03 12:46:28 +00:00
|
|
|
import { ChartsModule } from 'ng2-charts';
|
2017-04-27 14:29:31 +00:00
|
|
|
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
|
2017-09-06 16:51:56 +00:00
|
|
|
import { NgxPaginationModule } from 'ngx-pagination';
|
2017-09-27 12:54:10 +00:00
|
|
|
import { AgmCoreModule, GoogleMapsAPIWrapper } from '@agm/core';
|
2017-11-13 22:21:59 +00:00
|
|
|
import { AgmJsMarkerClustererModule } from '@agm/js-marker-clusterer';
|
2017-11-15 15:36:45 +00:00
|
|
|
import { ModalModule } from 'ngx-bootstrap/modal';
|
2017-04-27 14:29:31 +00:00
|
|
|
|
2017-09-07 12:32:59 +00:00
|
|
|
import { CurrencyPipe } from '@angular/common';
|
|
|
|
|
2017-04-27 14:29:31 +00:00
|
|
|
import { DashboardComponent } from './dashboard.component';
|
2017-08-31 17:44:17 +00:00
|
|
|
import { DashboardCustomerComponent } from './dashboard-customer.component';
|
2017-08-16 14:48:42 +00:00
|
|
|
import { AccountEditComponent } from './account-edit.component';
|
|
|
|
import { AddDataComponent } from './add-data.component';
|
2017-09-01 14:02:05 +00:00
|
|
|
import { FeedbackComponent } from './feedback.component';
|
2017-09-06 15:05:35 +00:00
|
|
|
import { TransactionLogComponent } from './transaction-log.component';
|
2018-01-17 17:36:28 +00:00
|
|
|
import { CategoryMonthComponent } from './category-month.component';
|
2017-09-19 16:22:19 +00:00
|
|
|
import { PayrollLogComponent } from './payroll-log.component';
|
2019-07-12 16:45:43 +00:00
|
|
|
import { SuppliersComponent } from './suppliers.component';
|
2017-11-10 17:15:11 +00:00
|
|
|
import { LeaderboardComponent } from './leaderboard.component';
|
2017-09-26 16:31:40 +00:00
|
|
|
import { MapComponent } from './map.component';
|
2017-11-14 12:47:28 +00:00
|
|
|
import { TrailMapComponent } from './trail-map.component';
|
2017-08-15 16:41:27 +00:00
|
|
|
|
2017-08-30 11:35:43 +00:00
|
|
|
import { GraphWidget } from '../widgets/graph-widget.component';
|
2017-09-07 14:12:49 +00:00
|
|
|
import { OrgBarSnippetComponent } from '../snippets/org-snippet-bar.component';
|
2017-12-12 15:10:44 +00:00
|
|
|
import { CustBarSnippetComponent } from '../snippets/cust-snippet-bar.component';
|
2017-09-08 12:09:23 +00:00
|
|
|
import { GraphPanel } from '../panels/graph-panel.component';
|
2019-07-12 16:12:01 +00:00
|
|
|
import { BubbleChartComponent } from '../panels/bubble-panel.component';
|
2017-12-13 12:37:11 +00:00
|
|
|
import { PiePanel } from '../panels/pie-panel.component';
|
2019-07-11 15:12:46 +00:00
|
|
|
import { OrgPiePanel } from '../panels/org-pie-panel.component';
|
2017-08-29 15:42:32 +00:00
|
|
|
|
2017-08-15 16:41:27 +00:00
|
|
|
import { DashboardRoutingModule } from './dashboard.routing';
|
2017-08-29 17:15:47 +00:00
|
|
|
import { OrgResultComponent } from '../shared/org-result.component';
|
2017-08-30 15:09:57 +00:00
|
|
|
import { OrgTableComponent } from '../shared/org-table.component';
|
2018-03-14 20:06:21 +00:00
|
|
|
import { RecurResultComponent } from '../shared/recur-result.component';
|
|
|
|
import { RecurTableComponent } from '../shared/recur-table.component';
|
2017-09-06 15:05:35 +00:00
|
|
|
import { TransactionResultComponent } from '../shared/transaction-result.component';
|
2019-07-12 17:50:59 +00:00
|
|
|
import { SupplierResultComponent } from '../shared/supplier-result.component';
|
2017-09-19 16:22:19 +00:00
|
|
|
import { PayrollResultComponent } from '../shared/payroll-result.component';
|
2017-11-10 17:15:11 +00:00
|
|
|
import { LeaderboardResultComponent } from '../shared/leaderboard-result.component';
|
2017-04-27 14:29:31 +00:00
|
|
|
|
2017-09-26 16:31:40 +00:00
|
|
|
// API key env variable import
|
|
|
|
import { environment } from '../../environments/environment';
|
|
|
|
|
2017-04-27 14:29:31 +00:00
|
|
|
@NgModule({
|
|
|
|
imports: [
|
2017-08-16 14:55:12 +00:00
|
|
|
// Angular imports
|
2017-08-16 14:48:42 +00:00
|
|
|
CommonModule,
|
|
|
|
FormsModule,
|
|
|
|
ReactiveFormsModule,
|
2017-08-16 14:55:12 +00:00
|
|
|
ChartsModule,
|
2017-09-26 16:31:40 +00:00
|
|
|
AgmCoreModule.forRoot({
|
|
|
|
apiKey: environment.mapApiKey
|
|
|
|
}),
|
2017-11-13 22:21:59 +00:00
|
|
|
AgmJsMarkerClustererModule,
|
2017-08-16 14:55:12 +00:00
|
|
|
BsDropdownModule,
|
2017-09-06 16:51:56 +00:00
|
|
|
NgxPaginationModule,
|
2017-08-16 14:55:12 +00:00
|
|
|
DashboardRoutingModule,
|
2017-11-15 15:36:45 +00:00
|
|
|
ModalModule.forRoot(),
|
2017-04-27 14:29:31 +00:00
|
|
|
],
|
2017-08-15 16:41:27 +00:00
|
|
|
declarations: [
|
|
|
|
DashboardComponent,
|
2017-08-31 17:44:17 +00:00
|
|
|
DashboardCustomerComponent,
|
2017-08-16 14:48:42 +00:00
|
|
|
AccountEditComponent,
|
|
|
|
AddDataComponent,
|
2017-08-29 17:15:47 +00:00
|
|
|
OrgResultComponent,
|
2017-08-30 15:09:57 +00:00
|
|
|
OrgTableComponent,
|
2018-03-14 20:06:21 +00:00
|
|
|
RecurResultComponent,
|
|
|
|
RecurTableComponent,
|
2017-09-06 15:05:35 +00:00
|
|
|
TransactionLogComponent,
|
2018-01-17 17:36:28 +00:00
|
|
|
CategoryMonthComponent,
|
2017-09-06 15:05:35 +00:00
|
|
|
TransactionResultComponent,
|
2019-07-12 17:50:59 +00:00
|
|
|
SupplierResultComponent,
|
2017-09-19 16:22:19 +00:00
|
|
|
PayrollLogComponent,
|
|
|
|
PayrollResultComponent,
|
2017-11-10 17:15:11 +00:00
|
|
|
LeaderboardComponent,
|
|
|
|
LeaderboardResultComponent,
|
2017-09-26 16:31:40 +00:00
|
|
|
MapComponent,
|
2017-11-14 12:47:28 +00:00
|
|
|
TrailMapComponent,
|
2017-09-01 14:02:05 +00:00
|
|
|
FeedbackComponent,
|
2017-08-30 11:35:43 +00:00
|
|
|
GraphWidget,
|
2017-09-07 14:12:49 +00:00
|
|
|
OrgBarSnippetComponent,
|
2017-12-12 15:10:44 +00:00
|
|
|
CustBarSnippetComponent,
|
2017-09-08 12:09:23 +00:00
|
|
|
GraphPanel,
|
2017-12-13 12:37:11 +00:00
|
|
|
PiePanel,
|
2019-07-11 15:12:46 +00:00
|
|
|
OrgPiePanel,
|
2019-07-12 16:12:01 +00:00
|
|
|
BubbleChartComponent,
|
2019-07-12 16:45:43 +00:00
|
|
|
SuppliersComponent,
|
2017-09-07 12:32:59 +00:00
|
|
|
],
|
|
|
|
providers: [
|
2017-09-27 12:54:10 +00:00
|
|
|
CurrencyPipe,
|
|
|
|
GoogleMapsAPIWrapper,
|
2017-09-07 12:32:59 +00:00
|
|
|
],
|
2017-04-27 14:29:31 +00:00
|
|
|
})
|
|
|
|
export class DashboardModule { }
|