This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
FoodLoop-Web/src/app/dashboard/dashboard.module.ts

90 lines
3.2 KiB
TypeScript
Raw Normal View History

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ChartsModule } from 'ng2-charts/ng2-charts';
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
import { NgxPaginationModule } from 'ngx-pagination';
2017-09-27 12:54:10 +00:00
import { AgmCoreModule, GoogleMapsAPIWrapper } from '@agm/core';
import { AgmJsMarkerClustererModule } from '@agm/js-marker-clusterer';
2017-11-15 15:36:45 +00:00
import { ModalModule } from 'ngx-bootstrap/modal';
import { CurrencyPipe } from '@angular/common';
import { DashboardComponent } from './dashboard.component';
import { DashboardCustomerComponent } from './dashboard-customer.component';
import { AccountEditComponent } from './account-edit.component';
import { AddDataComponent } from './add-data.component';
import { FeedbackComponent } from './feedback.component';
import { TransactionLogComponent } from './transaction-log.component';
import { CategoryMonthComponent } from './category-month.component';
2017-09-19 16:22:19 +00:00
import { PayrollLogComponent } from './payroll-log.component';
import { LeaderboardComponent } from './leaderboard.component';
2017-09-26 16:31:40 +00:00
import { MapComponent } from './map.component';
import { TrailMapComponent } from './trail-map.component';
import { GraphWidget } from '../widgets/graph-widget.component';
import { OrgBarSnippetComponent } from '../snippets/org-snippet-bar.component';
import { CustBarSnippetComponent } from '../snippets/cust-snippet-bar.component';
import { GraphPanel } from '../panels/graph-panel.component';
import { PiePanel } from '../panels/pie-panel.component';
import { DashboardRoutingModule } from './dashboard.routing';
2017-08-29 17:15:47 +00:00
import { OrgResultComponent } from '../shared/org-result.component';
import { OrgTableComponent } from '../shared/org-table.component';
import { RecurResultComponent } from '../shared/recur-result.component';
import { RecurTableComponent } from '../shared/recur-table.component';
import { TransactionResultComponent } from '../shared/transaction-result.component';
2017-09-19 16:22:19 +00:00
import { PayrollResultComponent } from '../shared/payroll-result.component';
import { LeaderboardResultComponent } from '../shared/leaderboard-result.component';
2017-09-26 16:31:40 +00:00
// API key env variable import
import { environment } from '../../environments/environment';
@NgModule({
imports: [
2017-08-16 14:55:12 +00:00
// Angular imports
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
}),
AgmJsMarkerClustererModule,
2017-08-16 14:55:12 +00:00
BsDropdownModule,
NgxPaginationModule,
2017-08-16 14:55:12 +00:00
DashboardRoutingModule,
2017-11-15 15:36:45 +00:00
ModalModule.forRoot(),
],
declarations: [
DashboardComponent,
DashboardCustomerComponent,
AccountEditComponent,
AddDataComponent,
2017-08-29 17:15:47 +00:00
OrgResultComponent,
OrgTableComponent,
RecurResultComponent,
RecurTableComponent,
TransactionLogComponent,
CategoryMonthComponent,
TransactionResultComponent,
2017-09-19 16:22:19 +00:00
PayrollLogComponent,
PayrollResultComponent,
LeaderboardComponent,
LeaderboardResultComponent,
2017-09-26 16:31:40 +00:00
MapComponent,
TrailMapComponent,
FeedbackComponent,
GraphWidget,
OrgBarSnippetComponent,
CustBarSnippetComponent,
GraphPanel,
PiePanel,
],
providers: [
2017-09-27 12:54:10 +00:00
CurrencyPipe,
GoogleMapsAPIWrapper,
],
})
export class DashboardModule { }