2017-08-17 07:40:25 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
2018-02-17 14:21:38 +00:00
|
|
|
|
2018-03-05 09:17:32 +00:00
|
|
|
import { MatButtonModule, MatCardModule, MatFormFieldModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatRadioModule, MatSidenavModule, MatToolbarModule } from '@angular/material';
|
|
|
|
|
2018-02-21 06:36:41 +00:00
|
|
|
import { FuseSharedModule } from '@fuse/shared.module';
|
2018-02-17 14:21:38 +00:00
|
|
|
|
2017-08-17 07:40:25 +00:00
|
|
|
import { ChatService } from './chat.service';
|
2018-03-05 09:17:32 +00:00
|
|
|
import { FuseChatComponent } from './chat.component';
|
2017-08-18 11:50:19 +00:00
|
|
|
import { FuseChatViewComponent } from './chat-view/chat-view.component';
|
|
|
|
import { FuseChatStartComponent } from './chat-start/chat-start.component';
|
|
|
|
import { FuseChatChatsSidenavComponent } from './sidenavs/left/chats/chats.component';
|
|
|
|
import { FuseChatUserSidenavComponent } from './sidenavs/left/user/user.component';
|
|
|
|
import { FuseChatLeftSidenavComponent } from './sidenavs/left/left.component';
|
|
|
|
import { FuseChatRightSidenavComponent } from './sidenavs/right/right.component';
|
|
|
|
import { FuseChatContactSidenavComponent } from './sidenavs/right/contact/contact.component';
|
2017-07-08 16:12:52 +00:00
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{
|
2017-08-17 07:40:25 +00:00
|
|
|
path : '**',
|
2017-08-18 11:50:19 +00:00
|
|
|
component: FuseChatComponent,
|
2017-08-17 07:40:25 +00:00
|
|
|
children : [],
|
|
|
|
resolve : {
|
2017-07-23 07:32:13 +00:00
|
|
|
chat: ChatService
|
|
|
|
}
|
2017-07-08 16:12:52 +00:00
|
|
|
}
|
2017-07-12 12:35:07 +00:00
|
|
|
];
|
2017-07-08 16:12:52 +00:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
declarations: [
|
2017-08-18 11:50:19 +00:00
|
|
|
FuseChatComponent,
|
|
|
|
FuseChatViewComponent,
|
|
|
|
FuseChatStartComponent,
|
|
|
|
FuseChatChatsSidenavComponent,
|
|
|
|
FuseChatUserSidenavComponent,
|
|
|
|
FuseChatLeftSidenavComponent,
|
|
|
|
FuseChatRightSidenavComponent,
|
|
|
|
FuseChatContactSidenavComponent
|
2017-07-23 07:32:13 +00:00
|
|
|
],
|
2018-03-05 09:17:32 +00:00
|
|
|
imports : [
|
|
|
|
RouterModule.forChild(routes),
|
|
|
|
|
|
|
|
MatButtonModule,
|
|
|
|
MatCardModule,
|
|
|
|
MatFormFieldModule,
|
|
|
|
MatIconModule,
|
|
|
|
MatInputModule,
|
|
|
|
MatListModule,
|
|
|
|
MatMenuModule,
|
|
|
|
MatRadioModule,
|
|
|
|
MatSidenavModule,
|
|
|
|
MatToolbarModule,
|
|
|
|
|
|
|
|
FuseSharedModule
|
|
|
|
],
|
2017-07-23 07:32:13 +00:00
|
|
|
providers : [
|
|
|
|
ChatService
|
2017-07-08 16:12:52 +00:00
|
|
|
]
|
|
|
|
})
|
2017-07-26 21:33:17 +00:00
|
|
|
export class FuseChatModule
|
2017-07-08 16:12:52 +00:00
|
|
|
{
|
|
|
|
}
|