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