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