]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - 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
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';
8import { DropdownModule } from 'ng2-bootstrap/dropdown';
9import { ProgressbarModule } from 'ng2-bootstrap/progressbar';
10import { PaginationModule } from 'ng2-bootstrap/pagination';
11import { ModalModule } from 'ng2-bootstrap/modal';
12import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload';
13import { Ng2SmartTableModule } from 'ng2-smart-table';
14
15import { AUTH_HTTP_PROVIDERS } from './auth';
16import { RestExtractor, RestService } from './rest';
17import { SearchComponent, SearchService } from './search';
18import { VideoAbuseService } from './video-abuse';
19
20@NgModule({
21 imports: [
22 CommonModule,
23 FormsModule,
24 ReactiveFormsModule,
25 HttpModule,
26 RouterModule,
27
28 DropdownModule.forRoot(),
29 ModalModule.forRoot(),
30 PaginationModule.forRoot(),
31 ProgressbarModule.forRoot(),
32
33 FileUploadModule,
34 Ng2SmartTableModule
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,
54 Ng2SmartTableModule,
55 BytesPipe,
56
57 SearchComponent
58 ],
59
60 providers: [
61 AUTH_HTTP_PROVIDERS,
62 RestExtractor,
63 RestService,
64 SearchService,
65 VideoAbuseService
66 ]
67})
68export class SharedModule { }