]>
Commit | Line | Data |
---|---|---|
1 | import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' | |
2 | import { SharedModule as PrimeSharedModule } from 'primeng/api' | |
3 | import { InputMaskModule } from 'primeng/inputmask' | |
4 | import { InputSwitchModule } from 'primeng/inputswitch' | |
5 | import { MultiSelectModule } from 'primeng/multiselect' | |
6 | import { ClipboardModule } from '@angular/cdk/clipboard' | |
7 | import { CommonModule } from '@angular/common' | |
8 | import { HttpClientModule } from '@angular/common/http' | |
9 | import { NgModule } from '@angular/core' | |
10 | import { FormsModule, ReactiveFormsModule } from '@angular/forms' | |
11 | import { RouterModule } from '@angular/router' | |
12 | import { BatchDomainsValidatorsService } from '@app/+admin/config/shared/batch-domains-validators.service' | |
13 | import { MyAccountInterfaceSettingsComponent } from '@app/+my-account/my-account-settings/my-account-interface' | |
14 | import { MyAccountVideoSettingsComponent } from '@app/+my-account/my-account-settings/my-account-video-settings' | |
15 | import { ActorAvatarInfoComponent } from '@app/+my-account/shared/actor-avatar-info.component' | |
16 | import { AccountService } from '@app/shared/account/account.service' | |
17 | import { FromNowPipe } from '@app/shared/angular/from-now.pipe' | |
18 | import { HighlightPipe } from '@app/shared/angular/highlight.pipe' | |
19 | import { NumberFormatterPipe } from '@app/shared/angular/number-formatter.pipe' | |
20 | import { ObjectLengthPipe } from '@app/shared/angular/object-length.pipe' | |
21 | import { PeerTubeTemplateDirective } from '@app/shared/angular/peertube-template.directive' | |
22 | import { VideoDurationPipe } from '@app/shared/angular/video-duration-formatter.pipe' | |
23 | import { BlocklistService } from '@app/shared/blocklist' | |
24 | import { ActionDropdownComponent } from '@app/shared/buttons/action-dropdown.component' | |
25 | import { AvatarComponent } from '@app/shared/channel/avatar.component' | |
26 | import { ConfirmComponent } from '@app/shared/confirm/confirm.component' | |
27 | import { DateToggleComponent } from '@app/shared/date/date-toggle.component' | |
28 | import { | |
29 | CustomConfigValidatorsService, | |
30 | InstanceValidatorsService, | |
31 | LoginValidatorsService, | |
32 | ReactiveFileComponent, | |
33 | ResetPasswordValidatorsService, | |
34 | TextareaAutoResizeDirective, | |
35 | UserValidatorsService, | |
36 | VideoAbuseValidatorsService, | |
37 | VideoAcceptOwnershipValidatorsService, | |
38 | VideoBlockValidatorsService, | |
39 | VideoChangeOwnershipValidatorsService, | |
40 | VideoChannelValidatorsService, | |
41 | VideoCommentValidatorsService, | |
42 | VideoPlaylistValidatorsService, | |
43 | VideoValidatorsService | |
44 | } from '@app/shared/forms' | |
45 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' | |
46 | import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service' | |
47 | import { InputReadonlyCopyComponent } from '@app/shared/forms/input-readonly-copy.component' | |
48 | import { MarkdownTextareaComponent } from '@app/shared/forms/markdown-textarea.component' | |
49 | import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component' | |
50 | import { TimestampInputComponent } from '@app/shared/forms/timestamp-input.component' | |
51 | import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar' | |
52 | import { GlobalIconComponent } from '@app/shared/images/global-icon.component' | |
53 | import { PreviewUploadComponent } from '@app/shared/images/preview-upload.component' | |
54 | import { FeatureBooleanComponent } from '@app/shared/instance/feature-boolean.component' | |
55 | import { FollowService } from '@app/shared/instance/follow.service' | |
56 | import { InstanceFeaturesTableComponent } from '@app/shared/instance/instance-features-table.component' | |
57 | import { InstanceStatisticsComponent } from '@app/shared/instance/instance-statistics.component' | |
58 | import { InstanceService } from '@app/shared/instance/instance.service' | |
59 | import { TopMenuDropdownComponent } from '@app/shared/menu/top-menu-dropdown.component' | |
60 | import { HelpComponent } from '@app/shared/misc/help.component' | |
61 | import { ListOverflowComponent } from '@app/shared/misc/list-overflow.component' | |
62 | import { ScreenService } from '@app/shared/misc/screen.service' | |
63 | import { SmallLoaderComponent } from '@app/shared/misc/small-loader.component' | |
64 | import { LocalStorageService, SessionStorageService } from '@app/shared/misc/storage.service' | |
65 | import { UserBanModalComponent } from '@app/shared/moderation' | |
66 | import { UserModerationDropdownComponent } from '@app/shared/moderation/user-moderation-dropdown.component' | |
67 | import { OverviewService } from '@app/shared/overview' | |
68 | import { HtmlRendererService, LinkifierService, MarkdownService } from '@app/shared/renderer' | |
69 | import { RemoteSubscribeComponent, SubscribeButtonComponent, UserSubscriptionService } from '@app/shared/user-subscription' | |
70 | import { UserHistoryService } from '@app/shared/users/user-history.service' | |
71 | import { UserNotificationService } from '@app/shared/users/user-notification.service' | |
72 | import { UserNotificationsComponent } from '@app/shared/users/user-notifications.component' | |
73 | import { VideoCaptionService } from '@app/shared/video-caption' | |
74 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' | |
75 | import { VideoImportService } from '@app/shared/video-import/video-import.service' | |
76 | import { VideoAddToPlaylistComponent } from '@app/shared/video-playlist/video-add-to-playlist.component' | |
77 | import { VideoPlaylistElementMiniatureComponent } from '@app/shared/video-playlist/video-playlist-element-miniature.component' | |
78 | import { VideoPlaylistMiniatureComponent } from '@app/shared/video-playlist/video-playlist-miniature.component' | |
79 | import { VideoPlaylistService } from '@app/shared/video-playlist/video-playlist.service' | |
80 | import { InfiniteScrollerDirective } from '@app/shared/video/infinite-scroller.directive' | |
81 | import { VideoBlockComponent } from '@app/shared/video/modals/video-block.component' | |
82 | import { VideoDownloadComponent } from '@app/shared/video/modals/video-download.component' | |
83 | import { VideoReportComponent } from '@app/shared/video/modals/video-report.component' | |
84 | import { RedundancyService } from '@app/shared/video/redundancy.service' | |
85 | import { VideoActionsDropdownComponent } from '@app/shared/video/video-actions-dropdown.component' | |
86 | import { VideosSelectionComponent } from '@app/shared/video/videos-selection.component' | |
87 | import { | |
88 | NgbCollapseModule, | |
89 | NgbDropdownModule, | |
90 | NgbModalModule, | |
91 | NgbNavModule, | |
92 | NgbPopoverModule, | |
93 | NgbTooltipModule | |
94 | } from '@ng-bootstrap/ng-bootstrap' | |
95 | import { I18n } from '@ngx-translate/i18n-polyfill' | |
96 | import { AUTH_INTERCEPTOR_PROVIDER } from './auth' | |
97 | import { BulkService } from './bulk/bulk.service' | |
98 | import { ButtonComponent } from './buttons/button.component' | |
99 | import { DeleteButtonComponent } from './buttons/delete-button.component' | |
100 | import { EditButtonComponent } from './buttons/edit-button.component' | |
101 | import { LoaderComponent } from './misc/loader.component' | |
102 | import { RestExtractor, RestService } from './rest' | |
103 | import { UserService } from './users' | |
104 | import { VideoAbuseService } from './video-abuse' | |
105 | import { VideoBlockService } from './video-block' | |
106 | import { VideoOwnershipService } from './video-ownership' | |
107 | import { FeedComponent } from './video/feed.component' | |
108 | import { VideoMiniatureComponent } from './video/video-miniature.component' | |
109 | import { VideoThumbnailComponent } from './video/video-thumbnail.component' | |
110 | import { VideoService } from './video/video.service' | |
111 | ||
112 | @NgModule({ | |
113 | imports: [ | |
114 | CommonModule, | |
115 | FormsModule, | |
116 | ReactiveFormsModule, | |
117 | RouterModule, | |
118 | HttpClientModule, | |
119 | ||
120 | NgbDropdownModule, | |
121 | NgbModalModule, | |
122 | NgbPopoverModule, | |
123 | NgbNavModule, | |
124 | NgbTooltipModule, | |
125 | NgbCollapseModule, | |
126 | ||
127 | ClipboardModule, | |
128 | ||
129 | PrimeSharedModule, | |
130 | InputMaskModule, | |
131 | NgPipesModule, | |
132 | MultiSelectModule, | |
133 | InputSwitchModule | |
134 | ], | |
135 | ||
136 | declarations: [ | |
137 | LoaderComponent, | |
138 | SmallLoaderComponent, | |
139 | ||
140 | VideoThumbnailComponent, | |
141 | VideoMiniatureComponent, | |
142 | VideoPlaylistMiniatureComponent, | |
143 | VideoAddToPlaylistComponent, | |
144 | VideoPlaylistElementMiniatureComponent, | |
145 | VideosSelectionComponent, | |
146 | VideoActionsDropdownComponent, | |
147 | ||
148 | VideoDownloadComponent, | |
149 | VideoReportComponent, | |
150 | VideoBlockComponent, | |
151 | ||
152 | FeedComponent, | |
153 | ||
154 | ButtonComponent, | |
155 | DeleteButtonComponent, | |
156 | EditButtonComponent, | |
157 | ||
158 | NumberFormatterPipe, | |
159 | ObjectLengthPipe, | |
160 | FromNowPipe, | |
161 | HighlightPipe, | |
162 | PeerTubeTemplateDirective, | |
163 | VideoDurationPipe, | |
164 | ||
165 | ActionDropdownComponent, | |
166 | MarkdownTextareaComponent, | |
167 | InfiniteScrollerDirective, | |
168 | TextareaAutoResizeDirective, | |
169 | HelpComponent, | |
170 | ListOverflowComponent, | |
171 | ||
172 | ReactiveFileComponent, | |
173 | PeertubeCheckboxComponent, | |
174 | TimestampInputComponent, | |
175 | InputReadonlyCopyComponent, | |
176 | ||
177 | AvatarComponent, | |
178 | SubscribeButtonComponent, | |
179 | RemoteSubscribeComponent, | |
180 | InstanceFeaturesTableComponent, | |
181 | InstanceStatisticsComponent, | |
182 | FeatureBooleanComponent, | |
183 | UserBanModalComponent, | |
184 | UserModerationDropdownComponent, | |
185 | TopMenuDropdownComponent, | |
186 | UserNotificationsComponent, | |
187 | ConfirmComponent, | |
188 | DateToggleComponent, | |
189 | ||
190 | GlobalIconComponent, | |
191 | PreviewUploadComponent, | |
192 | ||
193 | MyAccountVideoSettingsComponent, | |
194 | MyAccountInterfaceSettingsComponent, | |
195 | ActorAvatarInfoComponent | |
196 | ], | |
197 | ||
198 | exports: [ | |
199 | CommonModule, | |
200 | FormsModule, | |
201 | ReactiveFormsModule, | |
202 | RouterModule, | |
203 | HttpClientModule, | |
204 | ||
205 | NgbDropdownModule, | |
206 | NgbModalModule, | |
207 | NgbPopoverModule, | |
208 | NgbNavModule, | |
209 | NgbTooltipModule, | |
210 | NgbCollapseModule, | |
211 | ||
212 | ClipboardModule, | |
213 | ||
214 | PrimeSharedModule, | |
215 | InputMaskModule, | |
216 | BytesPipe, | |
217 | KeysPipe, | |
218 | MultiSelectModule, | |
219 | ||
220 | LoaderComponent, | |
221 | SmallLoaderComponent, | |
222 | ||
223 | VideoThumbnailComponent, | |
224 | VideoMiniatureComponent, | |
225 | VideoPlaylistMiniatureComponent, | |
226 | VideoAddToPlaylistComponent, | |
227 | VideoPlaylistElementMiniatureComponent, | |
228 | VideosSelectionComponent, | |
229 | VideoActionsDropdownComponent, | |
230 | ||
231 | VideoDownloadComponent, | |
232 | VideoReportComponent, | |
233 | VideoBlockComponent, | |
234 | ||
235 | FeedComponent, | |
236 | ||
237 | ButtonComponent, | |
238 | DeleteButtonComponent, | |
239 | EditButtonComponent, | |
240 | ||
241 | ActionDropdownComponent, | |
242 | MarkdownTextareaComponent, | |
243 | InfiniteScrollerDirective, | |
244 | TextareaAutoResizeDirective, | |
245 | HelpComponent, | |
246 | ListOverflowComponent, | |
247 | InputReadonlyCopyComponent, | |
248 | ||
249 | ReactiveFileComponent, | |
250 | PeertubeCheckboxComponent, | |
251 | TimestampInputComponent, | |
252 | ||
253 | AvatarComponent, | |
254 | SubscribeButtonComponent, | |
255 | RemoteSubscribeComponent, | |
256 | InstanceFeaturesTableComponent, | |
257 | InstanceStatisticsComponent, | |
258 | UserBanModalComponent, | |
259 | UserModerationDropdownComponent, | |
260 | TopMenuDropdownComponent, | |
261 | UserNotificationsComponent, | |
262 | ConfirmComponent, | |
263 | DateToggleComponent, | |
264 | ||
265 | GlobalIconComponent, | |
266 | PreviewUploadComponent, | |
267 | ||
268 | NumberFormatterPipe, | |
269 | ObjectLengthPipe, | |
270 | FromNowPipe, | |
271 | HighlightPipe, | |
272 | PeerTubeTemplateDirective, | |
273 | VideoDurationPipe, | |
274 | ||
275 | MyAccountVideoSettingsComponent, | |
276 | MyAccountInterfaceSettingsComponent, | |
277 | ActorAvatarInfoComponent | |
278 | ], | |
279 | ||
280 | providers: [ | |
281 | AUTH_INTERCEPTOR_PROVIDER, | |
282 | RestExtractor, | |
283 | RestService, | |
284 | VideoAbuseService, | |
285 | VideoBlockService, | |
286 | VideoOwnershipService, | |
287 | UserService, | |
288 | VideoService, | |
289 | AccountService, | |
290 | VideoChannelService, | |
291 | VideoPlaylistService, | |
292 | VideoCaptionService, | |
293 | VideoImportService, | |
294 | UserSubscriptionService, | |
295 | ||
296 | FormValidatorService, | |
297 | CustomConfigValidatorsService, | |
298 | LoginValidatorsService, | |
299 | ResetPasswordValidatorsService, | |
300 | UserValidatorsService, | |
301 | BatchDomainsValidatorsService, | |
302 | VideoPlaylistValidatorsService, | |
303 | VideoAbuseValidatorsService, | |
304 | VideoChannelValidatorsService, | |
305 | VideoCommentValidatorsService, | |
306 | VideoValidatorsService, | |
307 | VideoCaptionsValidatorsService, | |
308 | VideoBlockValidatorsService, | |
309 | OverviewService, | |
310 | VideoChangeOwnershipValidatorsService, | |
311 | VideoAcceptOwnershipValidatorsService, | |
312 | InstanceValidatorsService, | |
313 | BlocklistService, | |
314 | UserHistoryService, | |
315 | InstanceService, | |
316 | BulkService, | |
317 | ||
318 | MarkdownService, | |
319 | LinkifierService, | |
320 | HtmlRendererService, | |
321 | ||
322 | I18nPrimengCalendarService, | |
323 | ScreenService, | |
324 | LocalStorageService, SessionStorageService, | |
325 | ||
326 | UserNotificationService, | |
327 | ||
328 | FollowService, | |
329 | RedundancyService, | |
330 | ||
331 | I18n | |
332 | ] | |
333 | }) | |
334 | export class SharedModule { } |