]>
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 { HelpComponent } from '@app/shared/misc/help.component' | |
8 | import { InfiniteScrollerDirective } from '@app/shared/video/infinite-scroller.directive' | |
9 | import { MarkdownService } from '@app/videos/shared' | |
10 | ||
11 | import { BsDropdownModule } from 'ngx-bootstrap/dropdown' | |
12 | import { ModalModule } from 'ngx-bootstrap/modal' | |
13 | import { PopoverModule } from 'ngx-bootstrap/popover' | |
14 | import { TabsModule } from 'ngx-bootstrap/tabs' | |
15 | import { TooltipModule } from 'ngx-bootstrap/tooltip' | |
16 | import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' | |
17 | import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared' | |
18 | ||
19 | import { AUTH_INTERCEPTOR_PROVIDER } from './auth' | |
20 | import { DeleteButtonComponent } from './misc/delete-button.component' | |
21 | import { EditButtonComponent } from './misc/edit-button.component' | |
22 | import { FromNowPipe } from './misc/from-now.pipe' | |
23 | import { LoaderComponent } from './misc/loader.component' | |
24 | import { NumberFormatterPipe } from './misc/number-formatter.pipe' | |
25 | import { ObjectLengthPipe } from './misc/object-length.pipe' | |
26 | import { RestExtractor, RestService } from './rest' | |
27 | import { UserService } from './users' | |
28 | import { VideoAbuseService } from './video-abuse' | |
29 | import { VideoBlacklistService } from './video-blacklist' | |
30 | import { VideoMiniatureComponent } from './video/video-miniature.component' | |
31 | import { VideoFeedComponent } from './video/video-feed.component' | |
32 | import { VideoThumbnailComponent } from './video/video-thumbnail.component' | |
33 | import { VideoService } from './video/video.service' | |
34 | import { AccountService } from '@app/shared/account/account.service' | |
35 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' | |
36 | import { I18n } from '@ngx-translate/i18n-polyfill' | |
37 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' | |
38 | import { | |
39 | CustomConfigValidatorsService, | |
40 | LoginValidatorsService, | |
41 | ReactiveFileComponent, | |
42 | ResetPasswordValidatorsService, | |
43 | UserValidatorsService, | |
44 | VideoAbuseValidatorsService, | |
45 | VideoChannelValidatorsService, | |
46 | VideoCommentValidatorsService, | |
47 | VideoValidatorsService | |
48 | } from '@app/shared/forms' | |
49 | import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar' | |
50 | import { ScreenService } from '@app/shared/misc/screen.service' | |
51 | import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service' | |
52 | import { VideoCaptionService } from '@app/shared/video-caption' | |
53 | import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component' | |
54 | ||
55 | @NgModule({ | |
56 | imports: [ | |
57 | CommonModule, | |
58 | FormsModule, | |
59 | ReactiveFormsModule, | |
60 | RouterModule, | |
61 | HttpClientModule, | |
62 | ||
63 | BsDropdownModule.forRoot(), | |
64 | ModalModule.forRoot(), | |
65 | PopoverModule.forRoot(), | |
66 | TabsModule.forRoot(), | |
67 | TooltipModule.forRoot(), | |
68 | ||
69 | PrimeSharedModule, | |
70 | NgPipesModule | |
71 | ], | |
72 | ||
73 | declarations: [ | |
74 | LoaderComponent, | |
75 | VideoThumbnailComponent, | |
76 | VideoMiniatureComponent, | |
77 | VideoFeedComponent, | |
78 | DeleteButtonComponent, | |
79 | EditButtonComponent, | |
80 | NumberFormatterPipe, | |
81 | ObjectLengthPipe, | |
82 | FromNowPipe, | |
83 | MarkdownTextareaComponent, | |
84 | InfiniteScrollerDirective, | |
85 | HelpComponent, | |
86 | ReactiveFileComponent, | |
87 | PeertubeCheckboxComponent | |
88 | ], | |
89 | ||
90 | exports: [ | |
91 | CommonModule, | |
92 | FormsModule, | |
93 | ReactiveFormsModule, | |
94 | RouterModule, | |
95 | HttpClientModule, | |
96 | ||
97 | BsDropdownModule, | |
98 | ModalModule, | |
99 | PopoverModule, | |
100 | TabsModule, | |
101 | TooltipModule, | |
102 | PrimeSharedModule, | |
103 | BytesPipe, | |
104 | KeysPipe, | |
105 | ||
106 | LoaderComponent, | |
107 | VideoThumbnailComponent, | |
108 | VideoMiniatureComponent, | |
109 | VideoFeedComponent, | |
110 | DeleteButtonComponent, | |
111 | EditButtonComponent, | |
112 | MarkdownTextareaComponent, | |
113 | InfiniteScrollerDirective, | |
114 | HelpComponent, | |
115 | ReactiveFileComponent, | |
116 | PeertubeCheckboxComponent, | |
117 | ||
118 | NumberFormatterPipe, | |
119 | ObjectLengthPipe, | |
120 | FromNowPipe | |
121 | ], | |
122 | ||
123 | providers: [ | |
124 | AUTH_INTERCEPTOR_PROVIDER, | |
125 | RestExtractor, | |
126 | RestService, | |
127 | VideoAbuseService, | |
128 | VideoBlacklistService, | |
129 | UserService, | |
130 | VideoService, | |
131 | AccountService, | |
132 | MarkdownService, | |
133 | VideoChannelService, | |
134 | VideoCaptionService, | |
135 | ||
136 | FormValidatorService, | |
137 | CustomConfigValidatorsService, | |
138 | LoginValidatorsService, | |
139 | ResetPasswordValidatorsService, | |
140 | UserValidatorsService, | |
141 | VideoAbuseValidatorsService, | |
142 | VideoChannelValidatorsService, | |
143 | VideoCommentValidatorsService, | |
144 | VideoValidatorsService, | |
145 | VideoCaptionsValidatorsService, | |
146 | ||
147 | I18nPrimengCalendarService, | |
148 | ScreenService, | |
149 | ||
150 | I18n | |
151 | ] | |
152 | }) | |
153 | export class SharedModule { } |