diff options
Diffstat (limited to 'client/src/app/shared/shared.module.ts')
-rw-r--r-- | client/src/app/shared/shared.module.ts | 56 |
1 files changed, 34 insertions, 22 deletions
diff --git a/client/src/app/shared/shared.module.ts b/client/src/app/shared/shared.module.ts index 456ce851e..d0e163f69 100644 --- a/client/src/app/shared/shared.module.ts +++ b/client/src/app/shared/shared.module.ts | |||
@@ -1,25 +1,29 @@ | |||
1 | import { NgModule } from '@angular/core' | ||
2 | import { HttpClientModule } from '@angular/common/http' | ||
3 | import { CommonModule } from '@angular/common' | 1 | import { CommonModule } from '@angular/common' |
2 | import { HttpClientModule } from '@angular/common/http' | ||
3 | import { NgModule } from '@angular/core' | ||
4 | import { FormsModule, ReactiveFormsModule } from '@angular/forms' | 4 | import { FormsModule, ReactiveFormsModule } from '@angular/forms' |
5 | import { RouterModule } from '@angular/router' | 5 | import { RouterModule } from '@angular/router' |
6 | 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' | 7 | 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' | 8 | import { ModalModule } from 'ngx-bootstrap/modal' |
13 | import { DataTableModule } from 'primeng/components/datatable/datatable' | 9 | import { InfiniteScrollModule } from 'ngx-infinite-scroll' |
10 | import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' | ||
14 | import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared' | 11 | import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared' |
12 | import { DataTableModule } from 'primeng/components/datatable/datatable' | ||
15 | 13 | ||
16 | import { AUTH_INTERCEPTOR_PROVIDER } from './auth' | 14 | import { AUTH_INTERCEPTOR_PROVIDER } from './auth' |
15 | import { DeleteButtonComponent } from './misc/delete-button.component' | ||
16 | import { EditButtonComponent } from './misc/edit-button.component' | ||
17 | import { FromNowPipe } from './misc/from-now.pipe' | ||
18 | import { LoaderComponent } from './misc/loader.component' | ||
19 | import { NumberFormatterPipe } from './misc/number-formatter.pipe' | ||
17 | import { RestExtractor, RestService } from './rest' | 20 | import { RestExtractor, RestService } from './rest' |
18 | import { SearchComponent, SearchService } from './search' | ||
19 | import { UserService } from './users' | 21 | import { UserService } from './users' |
20 | import { VideoAbuseService } from './video-abuse' | 22 | import { VideoAbuseService } from './video-abuse' |
21 | import { VideoBlacklistService } from './video-blacklist' | 23 | import { VideoBlacklistService } from './video-blacklist' |
22 | import { LoaderComponent } from './misc/loader.component' | 24 | import { VideoMiniatureComponent } from './video/video-miniature.component' |
25 | import { VideoThumbnailComponent } from './video/video-thumbnail.component' | ||
26 | import { VideoService } from './video/video.service' | ||
23 | 27 | ||
24 | @NgModule({ | 28 | @NgModule({ |
25 | imports: [ | 29 | imports: [ |
@@ -31,18 +35,21 @@ import { LoaderComponent } from './misc/loader.component' | |||
31 | 35 | ||
32 | BsDropdownModule.forRoot(), | 36 | BsDropdownModule.forRoot(), |
33 | ModalModule.forRoot(), | 37 | ModalModule.forRoot(), |
34 | PaginationModule.forRoot(), | ||
35 | ProgressbarModule.forRoot(), | ||
36 | 38 | ||
37 | DataTableModule, | 39 | DataTableModule, |
38 | PrimeSharedModule | 40 | PrimeSharedModule, |
41 | InfiniteScrollModule, | ||
42 | NgPipesModule | ||
39 | ], | 43 | ], |
40 | 44 | ||
41 | declarations: [ | 45 | declarations: [ |
42 | BytesPipe, | 46 | LoaderComponent, |
43 | KeysPipe, | 47 | VideoThumbnailComponent, |
44 | SearchComponent, | 48 | VideoMiniatureComponent, |
45 | LoaderComponent | 49 | DeleteButtonComponent, |
50 | EditButtonComponent, | ||
51 | NumberFormatterPipe, | ||
52 | FromNowPipe | ||
46 | ], | 53 | ], |
47 | 54 | ||
48 | exports: [ | 55 | exports: [ |
@@ -54,25 +61,30 @@ import { LoaderComponent } from './misc/loader.component' | |||
54 | 61 | ||
55 | BsDropdownModule, | 62 | BsDropdownModule, |
56 | ModalModule, | 63 | ModalModule, |
57 | PaginationModule, | ||
58 | ProgressbarModule, | ||
59 | DataTableModule, | 64 | DataTableModule, |
60 | PrimeSharedModule, | 65 | PrimeSharedModule, |
66 | InfiniteScrollModule, | ||
61 | BytesPipe, | 67 | BytesPipe, |
62 | KeysPipe, | 68 | KeysPipe, |
63 | 69 | ||
64 | SearchComponent, | 70 | LoaderComponent, |
65 | LoaderComponent | 71 | VideoThumbnailComponent, |
72 | VideoMiniatureComponent, | ||
73 | DeleteButtonComponent, | ||
74 | EditButtonComponent, | ||
75 | |||
76 | NumberFormatterPipe, | ||
77 | FromNowPipe | ||
66 | ], | 78 | ], |
67 | 79 | ||
68 | providers: [ | 80 | providers: [ |
69 | AUTH_INTERCEPTOR_PROVIDER, | 81 | AUTH_INTERCEPTOR_PROVIDER, |
70 | RestExtractor, | 82 | RestExtractor, |
71 | RestService, | 83 | RestService, |
72 | SearchService, | ||
73 | VideoAbuseService, | 84 | VideoAbuseService, |
74 | VideoBlacklistService, | 85 | VideoBlacklistService, |
75 | UserService | 86 | UserService, |
87 | VideoService | ||
76 | ] | 88 | ] |
77 | }) | 89 | }) |
78 | export class SharedModule { } | 90 | export class SharedModule { } |