diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-11-20 17:18:15 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-11-21 22:09:45 +0100 |
commit | 693b1aba4675f7e3d850e0f6d07dbfc7bdff9b8c (patch) | |
tree | d6004d282a55d995eecba78bae95173bd0f11767 /client/src/app/shared/shared.module.ts | |
parent | 2c8d4697db4b5a2d645b7bfcaf91093a64597958 (diff) | |
download | PeerTube-693b1aba4675f7e3d850e0f6d07dbfc7bdff9b8c.tar.gz PeerTube-693b1aba4675f7e3d850e0f6d07dbfc7bdff9b8c.tar.zst PeerTube-693b1aba4675f7e3d850e0f6d07dbfc7bdff9b8c.zip |
Client: split in angular modules
Diffstat (limited to 'client/src/app/shared/shared.module.ts')
-rw-r--r-- | client/src/app/shared/shared.module.ts | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/client/src/app/shared/shared.module.ts b/client/src/app/shared/shared.module.ts new file mode 100644 index 000000000..141922322 --- /dev/null +++ b/client/src/app/shared/shared.module.ts | |||
@@ -0,0 +1,62 @@ | |||
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/components/dropdown'; | ||
9 | import { ProgressbarModule } from 'ng2-bootstrap/components/progressbar'; | ||
10 | import { PaginationModule } from 'ng2-bootstrap/components/pagination'; | ||
11 | import { ModalModule } from 'ng2-bootstrap/components/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, | ||
27 | FileUploadModule, | ||
28 | ModalModule, | ||
29 | PaginationModule, | ||
30 | ProgressbarModule | ||
31 | ], | ||
32 | |||
33 | declarations: [ | ||
34 | BytesPipe, | ||
35 | SearchComponent | ||
36 | ], | ||
37 | |||
38 | exports: [ | ||
39 | CommonModule, | ||
40 | FormsModule, | ||
41 | ReactiveFormsModule, | ||
42 | HttpModule, | ||
43 | RouterModule, | ||
44 | |||
45 | DropdownModule, | ||
46 | FileUploadModule, | ||
47 | ModalModule, | ||
48 | PaginationModule, | ||
49 | ProgressbarModule, | ||
50 | BytesPipe, | ||
51 | |||
52 | SearchComponent | ||
53 | ], | ||
54 | |||
55 | providers: [ | ||
56 | AUTH_HTTP_PROVIDERS, | ||
57 | RestExtractor, | ||
58 | RestService, | ||
59 | SearchService | ||
60 | ] | ||
61 | }) | ||
62 | export class SharedModule { } | ||