]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared.module.ts
Client: replace simple tables by ng2 smart table component
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared.module.ts
CommitLineData
693b1aba
C
1import { NgModule } from '@angular/core';
2import { CommonModule } from '@angular/common';
3import { HttpModule } from '@angular/http';
4import { FormsModule, ReactiveFormsModule } from '@angular/forms';
5import { RouterModule } from '@angular/router';
6
7import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe';
d396a937
C
8import { DropdownModule } from 'ng2-bootstrap/dropdown';
9import { ProgressbarModule } from 'ng2-bootstrap/progressbar';
10import { PaginationModule } from 'ng2-bootstrap/pagination';
11import { ModalModule } from 'ng2-bootstrap/modal';
693b1aba 12import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload';
28798b5d 13import { Ng2SmartTableModule } from 'ng2-smart-table';
693b1aba
C
14
15import { AUTH_HTTP_PROVIDERS } from './auth';
16import { RestExtractor, RestService } from './rest';
17import { SearchComponent, SearchService } from './search';
11ac88de 18import { VideoAbuseService } from './video-abuse';
693b1aba
C
19
20@NgModule({
21 imports: [
22 CommonModule,
23 FormsModule,
24 ReactiveFormsModule,
25 HttpModule,
26 RouterModule,
27
d396a937
C
28 DropdownModule.forRoot(),
29 ModalModule.forRoot(),
30 PaginationModule.forRoot(),
31 ProgressbarModule.forRoot(),
32
28798b5d
C
33 FileUploadModule,
34 Ng2SmartTableModule
693b1aba
C
35 ],
36
37 declarations: [
38 BytesPipe,
39 SearchComponent
40 ],
41
42 exports: [
43 CommonModule,
44 FormsModule,
45 ReactiveFormsModule,
46 HttpModule,
47 RouterModule,
48
49 DropdownModule,
50 FileUploadModule,
51 ModalModule,
52 PaginationModule,
53 ProgressbarModule,
28798b5d 54 Ng2SmartTableModule,
693b1aba
C
55 BytesPipe,
56
57 SearchComponent
58 ],
59
60 providers: [
61 AUTH_HTTP_PROVIDERS,
62 RestExtractor,
63 RestService,
11ac88de
C
64 SearchService,
65 VideoAbuseService
693b1aba
C
66 ]
67})
68export class SharedModule { }