2017-04-27 14:29:31 +00:00
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { LocationStrategy, HashLocationStrategy } from '@angular/common';
|
2017-11-15 14:12:28 +00:00
|
|
|
import { HttpClientModule } from '@angular/common/http';
|
2017-04-27 14:29:31 +00:00
|
|
|
|
|
|
|
import { AppComponent } from './app.component';
|
|
|
|
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
|
|
|
|
import { TabsModule } from 'ngx-bootstrap/tabs';
|
2017-09-06 16:51:56 +00:00
|
|
|
import { NgxPaginationModule } from 'ngx-pagination';
|
2017-04-27 14:29:31 +00:00
|
|
|
import { NAV_DROPDOWN_DIRECTIVES } from './shared/nav-dropdown.directive';
|
|
|
|
|
|
|
|
import { SIDEBAR_TOGGLE_DIRECTIVES } from './shared/sidebar.directive';
|
|
|
|
import { AsideToggleDirective } from './shared/aside.directive';
|
|
|
|
import { BreadcrumbsComponent } from './shared/breadcrumb.component';
|
|
|
|
|
2017-06-08 13:28:54 +00:00
|
|
|
// Routing & Guard Module
|
2017-04-27 14:29:31 +00:00
|
|
|
import { AppRoutingModule } from './app.routing';
|
2017-06-08 15:05:01 +00:00
|
|
|
import { AuthGuard } from './_guards/auth.guard';
|
2017-08-31 17:44:17 +00:00
|
|
|
import { OrgGuard } from './_guards/org.guard';
|
|
|
|
import { CustomerGuard } from './_guards/customer.guard';
|
2017-08-15 16:41:27 +00:00
|
|
|
import { ApiService } from './providers/api-service';
|
2017-04-27 14:29:31 +00:00
|
|
|
|
2017-08-29 16:39:27 +00:00
|
|
|
import { OrgGraphsService } from './providers/org-graphs.service';
|
2017-09-07 14:12:49 +00:00
|
|
|
import { OrgSnippetsService } from './providers/org-snippets.service';
|
2017-08-29 16:39:27 +00:00
|
|
|
|
2017-04-27 14:29:31 +00:00
|
|
|
// Layouts
|
|
|
|
import { FullLayoutComponent } from './layouts/full-layout.component';
|
|
|
|
import { SimpleLayoutComponent } from './layouts/simple-layout.component';
|
|
|
|
|
2017-08-15 15:12:55 +00:00
|
|
|
// Error Pages
|
|
|
|
import { P404Component } from './pages/404.component';
|
|
|
|
import { P500Component } from './pages/500.component';
|
|
|
|
|
2017-08-15 14:59:43 +00:00
|
|
|
// Submodules
|
|
|
|
import { AuthModule } from './auth/auth.module';
|
2017-08-15 16:41:27 +00:00
|
|
|
import { DashboardModule } from './dashboard/dashboard.module';
|
2017-08-15 14:59:43 +00:00
|
|
|
|
2017-04-27 14:29:31 +00:00
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
2017-11-15 14:12:28 +00:00
|
|
|
HttpClientModule,
|
2017-09-06 16:51:56 +00:00
|
|
|
NgxPaginationModule,
|
2017-04-27 14:29:31 +00:00
|
|
|
BsDropdownModule.forRoot(),
|
|
|
|
TabsModule.forRoot(),
|
2017-08-15 14:59:43 +00:00
|
|
|
AuthModule,
|
2017-08-15 16:41:27 +00:00
|
|
|
DashboardModule,
|
|
|
|
// Loaded last to allow for 404 catchall
|
|
|
|
AppRoutingModule,
|
2017-04-27 14:29:31 +00:00
|
|
|
],
|
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
|
|
|
FullLayoutComponent,
|
|
|
|
SimpleLayoutComponent,
|
|
|
|
NAV_DROPDOWN_DIRECTIVES,
|
|
|
|
BreadcrumbsComponent,
|
|
|
|
SIDEBAR_TOGGLE_DIRECTIVES,
|
|
|
|
AsideToggleDirective,
|
2017-08-15 15:12:55 +00:00
|
|
|
P404Component,
|
|
|
|
P500Component,
|
2017-04-27 14:29:31 +00:00
|
|
|
],
|
2017-06-08 13:28:54 +00:00
|
|
|
providers: [
|
2017-08-24 15:03:45 +00:00
|
|
|
AuthGuard,
|
2017-08-31 17:44:17 +00:00
|
|
|
OrgGuard,
|
|
|
|
CustomerGuard,
|
2017-08-24 15:03:45 +00:00
|
|
|
ApiService,
|
2017-08-29 16:39:27 +00:00
|
|
|
OrgGraphsService,
|
2017-09-07 14:12:49 +00:00
|
|
|
OrgSnippetsService,
|
2017-08-24 15:03:45 +00:00
|
|
|
{
|
|
|
|
provide: LocationStrategy,
|
|
|
|
useClass: HashLocationStrategy
|
|
|
|
}
|
|
|
|
],
|
2017-04-27 14:29:31 +00:00
|
|
|
bootstrap: [ AppComponent ]
|
|
|
|
})
|
|
|
|
export class AppModule { }
|