]>
Commit | Line | Data |
---|---|---|
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' | |
5 | import { RouterModule } from '@angular/router' | |
6 | import { MarkdownTextareaComponent } from '@app/shared/forms/markdown-textarea.component' | |
7 | import { InfiniteScrollerDirective } from '@app/shared/video/infinite-scroller.directive' | |
8 | import { MarkdownService } from '@app/videos/shared' | |
9 | import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client' | |
10 | ||
11 | import { BsDropdownModule } from 'ngx-bootstrap/dropdown' | |
12 | import { ModalModule } from 'ngx-bootstrap/modal' | |
13 | import { TabsModule } from 'ngx-bootstrap/tabs' | |
14 | import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' | |
15 | import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared' | |
16 | ||
17 | import { AUTH_INTERCEPTOR_PROVIDER } from './auth' | |
18 | import { DeleteButtonComponent } from './misc/delete-button.component' | |
19 | import { EditButtonComponent } from './misc/edit-button.component' | |
20 | import { FromNowPipe } from './misc/from-now.pipe' | |
21 | import { LoaderComponent } from './misc/loader.component' | |
22 | import { NumberFormatterPipe } from './misc/number-formatter.pipe' | |
23 | import { RestExtractor, RestService } from './rest' | |
24 | import { UserService } from './users' | |
25 | import { VideoAbuseService } from './video-abuse' | |
26 | import { VideoBlacklistService } from './video-blacklist' | |
27 | import { VideoMiniatureComponent } from './video/video-miniature.component' | |
28 | import { VideoThumbnailComponent } from './video/video-thumbnail.component' | |
29 | import { VideoService } from './video/video.service' | |
30 | ||
31 | @NgModule({ | |
32 | imports: [ | |
33 | CommonModule, | |
34 | FormsModule, | |
35 | ReactiveFormsModule, | |
36 | RouterModule, | |
37 | HttpClientModule, | |
38 | ||
39 | LoadingBarHttpClientModule, | |
40 | ||
41 | BsDropdownModule.forRoot(), | |
42 | ModalModule.forRoot(), | |
43 | ||
44 | PrimeSharedModule, | |
45 | NgPipesModule, | |
46 | TabsModule.forRoot() | |
47 | ], | |
48 | ||
49 | declarations: [ | |
50 | LoaderComponent, | |
51 | VideoThumbnailComponent, | |
52 | VideoMiniatureComponent, | |
53 | DeleteButtonComponent, | |
54 | EditButtonComponent, | |
55 | NumberFormatterPipe, | |
56 | FromNowPipe, | |
57 | MarkdownTextareaComponent, | |
58 | InfiniteScrollerDirective | |
59 | ], | |
60 | ||
61 | exports: [ | |
62 | CommonModule, | |
63 | FormsModule, | |
64 | ReactiveFormsModule, | |
65 | RouterModule, | |
66 | HttpClientModule, | |
67 | ||
68 | LoadingBarHttpClientModule, | |
69 | ||
70 | BsDropdownModule, | |
71 | ModalModule, | |
72 | PrimeSharedModule, | |
73 | BytesPipe, | |
74 | KeysPipe, | |
75 | ||
76 | LoaderComponent, | |
77 | VideoThumbnailComponent, | |
78 | VideoMiniatureComponent, | |
79 | DeleteButtonComponent, | |
80 | EditButtonComponent, | |
81 | MarkdownTextareaComponent, | |
82 | InfiniteScrollerDirective, | |
83 | ||
84 | NumberFormatterPipe, | |
85 | FromNowPipe | |
86 | ], | |
87 | ||
88 | providers: [ | |
89 | AUTH_INTERCEPTOR_PROVIDER, | |
90 | RestExtractor, | |
91 | RestService, | |
92 | VideoAbuseService, | |
93 | VideoBlacklistService, | |
94 | UserService, | |
95 | VideoService, | |
96 | MarkdownService | |
97 | ] | |
98 | }) | |
99 | export class SharedModule { } |