2017-07-12 14:34:32 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
2017-07-15 15:03:40 +00:00
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
|
|
import { HttpClientModule } from '@angular/common/http';
|
2017-07-12 14:34:32 +00:00
|
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
|
|
import { AppComponent } from './app.component';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
2017-07-15 15:03:40 +00:00
|
|
|
import 'hammerjs';
|
2017-07-12 14:34:32 +00:00
|
|
|
import { ProjectModule } from './main/apps/dashboards/project/project.module';
|
2017-07-13 14:43:22 +00:00
|
|
|
import { FuseLayoutService } from './core/services/layout.service';
|
|
|
|
import { FuseNavigationService } from './core/components/navigation/navigation.service';
|
2017-07-12 14:34:32 +00:00
|
|
|
import { FuseMatchMedia } from './core/services/match-media.service';
|
2017-07-13 14:43:22 +00:00
|
|
|
import { FuseNavbarService } from './core/components/layout/navbar/navbar.service';
|
2017-07-12 12:35:07 +00:00
|
|
|
import { SharedModule } from './core/modules/shared.module';
|
2017-07-12 14:34:32 +00:00
|
|
|
import { FuseMdSidenavHelperService } from './core/directives/md-sidenav-helper/md-sidenav-helper.service';
|
2017-07-13 14:43:22 +00:00
|
|
|
import { FuseLayoutModule } from './core/components/layout/layout.module';
|
2017-07-15 15:03:40 +00:00
|
|
|
import { PerfectScrollbarConfigInterface, PerfectScrollbarModule } from 'ngx-perfect-scrollbar';
|
2017-07-17 15:11:34 +00:00
|
|
|
import { HttpModule } from '@angular/http';
|
2017-07-18 16:34:12 +00:00
|
|
|
import { InMemoryWebApiModule } from 'angular-in-memory-web-api';
|
|
|
|
import { FuseFakeDbService } from './fuse-fake-db/fuse-fake-db.service';
|
2017-07-27 15:05:50 +00:00
|
|
|
import { PagesModule } from './main/pages/pages.module';
|
|
|
|
import { UIModule } from './main/ui/ui.module';
|
2017-07-29 13:42:53 +00:00
|
|
|
import { ComponentsModule } from './main/components/components.module';
|
2017-07-15 15:03:40 +00:00
|
|
|
|
|
|
|
const PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = {
|
|
|
|
suppressScrollX: true
|
|
|
|
};
|
2017-07-08 16:12:52 +00:00
|
|
|
|
|
|
|
const appRoutes: Routes = [
|
2017-07-13 14:43:22 +00:00
|
|
|
{
|
2017-07-15 15:03:40 +00:00
|
|
|
path : 'apps/mail',
|
2017-07-26 10:58:55 +00:00
|
|
|
loadChildren: './main/apps/mail/mail.module#FuseMailModule'
|
2017-07-13 14:43:22 +00:00
|
|
|
},
|
2017-07-23 07:32:13 +00:00
|
|
|
{
|
|
|
|
path : 'apps/chat',
|
2017-07-26 21:33:17 +00:00
|
|
|
loadChildren: './main/apps/chat/chat.module#FuseChatModule'
|
2017-07-23 07:32:13 +00:00
|
|
|
},
|
2017-07-23 15:20:48 +00:00
|
|
|
{
|
|
|
|
path : 'apps/calendar',
|
|
|
|
loadChildren: './main/apps/calendar/calendar.module#FuseCalendarModule'
|
|
|
|
},
|
2017-07-26 21:33:17 +00:00
|
|
|
{
|
|
|
|
path : 'apps/todo',
|
|
|
|
loadChildren: './main/apps/todo/todo.module#FuseTodoModule'
|
|
|
|
},
|
2017-07-12 12:35:07 +00:00
|
|
|
{
|
|
|
|
path : '**',
|
|
|
|
redirectTo: 'apps/dashboards/project'
|
2017-07-15 15:03:40 +00:00
|
|
|
}
|
2017-07-08 16:12:52 +00:00
|
|
|
];
|
2017-06-27 08:08:19 +00:00
|
|
|
|
|
|
|
@NgModule({
|
2017-07-04 09:42:00 +00:00
|
|
|
declarations: [
|
2017-07-31 13:59:09 +00:00
|
|
|
AppComponent
|
2017-07-04 09:42:00 +00:00
|
|
|
],
|
|
|
|
imports : [
|
|
|
|
BrowserModule,
|
2017-07-17 15:11:34 +00:00
|
|
|
HttpModule,
|
2017-07-15 15:03:40 +00:00
|
|
|
HttpClientModule,
|
2017-07-04 09:42:00 +00:00
|
|
|
BrowserAnimationsModule,
|
2017-07-13 14:43:22 +00:00
|
|
|
SharedModule,
|
2017-07-12 12:35:07 +00:00
|
|
|
RouterModule.forRoot(appRoutes),
|
2017-07-13 14:43:22 +00:00
|
|
|
|
2017-07-18 16:34:12 +00:00
|
|
|
InMemoryWebApiModule.forRoot(FuseFakeDbService, {delay: 125}),
|
2017-07-17 20:17:18 +00:00
|
|
|
|
2017-07-15 15:03:40 +00:00
|
|
|
PerfectScrollbarModule.forRoot(PERFECT_SCROLLBAR_CONFIG),
|
|
|
|
|
2017-07-13 14:43:22 +00:00
|
|
|
FuseLayoutModule,
|
|
|
|
|
2017-07-08 22:21:25 +00:00
|
|
|
ProjectModule,
|
2017-07-13 14:43:22 +00:00
|
|
|
|
2017-07-27 15:05:50 +00:00
|
|
|
PagesModule,
|
2017-07-29 13:42:53 +00:00
|
|
|
UIModule,
|
|
|
|
ComponentsModule
|
2017-07-04 09:42:00 +00:00
|
|
|
],
|
2017-07-12 14:34:32 +00:00
|
|
|
providers : [
|
2017-07-13 14:43:22 +00:00
|
|
|
FuseNavigationService,
|
|
|
|
FuseLayoutService,
|
2017-07-12 14:34:32 +00:00
|
|
|
FuseMatchMedia,
|
2017-07-13 14:43:22 +00:00
|
|
|
FuseNavbarService,
|
2017-07-12 14:34:32 +00:00
|
|
|
FuseMdSidenavHelperService
|
|
|
|
],
|
2017-07-04 09:42:00 +00:00
|
|
|
bootstrap : [AppComponent]
|
2017-06-27 08:08:19 +00:00
|
|
|
})
|
2017-07-04 09:42:00 +00:00
|
|
|
export class AppModule
|
|
|
|
{
|
|
|
|
}
|