]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared.module.ts
Client: upgrade angular dep'
[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 { DropdownModule } from 'ng2-bootstrap/dropdown';
9 import { ProgressbarModule } from 'ng2-bootstrap/progressbar';
10 import { PaginationModule } from 'ng2-bootstrap/pagination';
11 import { ModalModule } from 'ng2-bootstrap/modal';
12 import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload';
13
14 import { AUTH_HTTP_PROVIDERS } from './auth';
15 import { RestExtractor, RestService } from './rest';
16 import { SearchComponent, SearchService } from './search';
17
18 @NgModule({
19 imports: [
20 CommonModule,
21 FormsModule,
22 ReactiveFormsModule,
23 HttpModule,
24 RouterModule,
25
26 DropdownModule.forRoot(),
27 ModalModule.forRoot(),
28 PaginationModule.forRoot(),
29 ProgressbarModule.forRoot(),
30
31 FileUploadModule
32 ],
33
34 declarations: [
35 BytesPipe,
36 SearchComponent
37 ],
38
39 exports: [
40 CommonModule,
41 FormsModule,
42 ReactiveFormsModule,
43 HttpModule,
44 RouterModule,
45
46 DropdownModule,
47 FileUploadModule,
48 ModalModule,
49 PaginationModule,
50 ProgressbarModule,
51 BytesPipe,
52
53 SearchComponent
54 ],
55
56 providers: [
57 AUTH_HTTP_PROVIDERS,
58 RestExtractor,
59 RestService,
60 SearchService
61 ]
62 })
63 export class SharedModule { }