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'
29 CustomConfigValidatorsService,
30 InstanceValidatorsService,
31 LoginValidatorsService,
32 ReactiveFileComponent,
33 ResetPasswordValidatorsService,
34 TextareaAutoResizeDirective,
35 UserValidatorsService,
36 VideoAbuseValidatorsService,
37 VideoAcceptOwnershipValidatorsService,
38 VideoBlacklistValidatorsService,
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 { VideoBlacklistComponent } from '@app/shared/video/modals/video-blacklist.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'
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 { VideoBlacklistService } from './video-blacklist'
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'
138 SmallLoaderComponent,
140 VideoThumbnailComponent,
141 VideoMiniatureComponent,
142 VideoPlaylistMiniatureComponent,
143 VideoAddToPlaylistComponent,
144 VideoPlaylistElementMiniatureComponent,
145 VideosSelectionComponent,
146 VideoActionsDropdownComponent,
148 VideoDownloadComponent,
149 VideoReportComponent,
150 VideoBlacklistComponent,
155 DeleteButtonComponent,
162 PeerTubeTemplateDirective,
165 ActionDropdownComponent,
166 MarkdownTextareaComponent,
167 InfiniteScrollerDirective,
168 TextareaAutoResizeDirective,
170 ListOverflowComponent,
172 ReactiveFileComponent,
173 PeertubeCheckboxComponent,
174 TimestampInputComponent,
175 InputReadonlyCopyComponent,
178 SubscribeButtonComponent,
179 RemoteSubscribeComponent,
180 InstanceFeaturesTableComponent,
181 InstanceStatisticsComponent,
182 FeatureBooleanComponent,
183 UserBanModalComponent,
184 UserModerationDropdownComponent,
185 TopMenuDropdownComponent,
186 UserNotificationsComponent,
191 PreviewUploadComponent,
193 MyAccountVideoSettingsComponent,
194 MyAccountInterfaceSettingsComponent,
195 ActorAvatarInfoComponent
221 SmallLoaderComponent,
223 VideoThumbnailComponent,
224 VideoMiniatureComponent,
225 VideoPlaylistMiniatureComponent,
226 VideoAddToPlaylistComponent,
227 VideoPlaylistElementMiniatureComponent,
228 VideosSelectionComponent,
229 VideoActionsDropdownComponent,
231 VideoDownloadComponent,
232 VideoReportComponent,
233 VideoBlacklistComponent,
238 DeleteButtonComponent,
241 ActionDropdownComponent,
242 MarkdownTextareaComponent,
243 InfiniteScrollerDirective,
244 TextareaAutoResizeDirective,
246 ListOverflowComponent,
247 InputReadonlyCopyComponent,
249 ReactiveFileComponent,
250 PeertubeCheckboxComponent,
251 TimestampInputComponent,
254 SubscribeButtonComponent,
255 RemoteSubscribeComponent,
256 InstanceFeaturesTableComponent,
257 InstanceStatisticsComponent,
258 UserBanModalComponent,
259 UserModerationDropdownComponent,
260 TopMenuDropdownComponent,
261 UserNotificationsComponent,
266 PreviewUploadComponent,
272 PeerTubeTemplateDirective,
275 MyAccountVideoSettingsComponent,
276 MyAccountInterfaceSettingsComponent,
277 ActorAvatarInfoComponent
281 AUTH_INTERCEPTOR_PROVIDER,
285 VideoBlacklistService,
286 VideoOwnershipService,
291 VideoPlaylistService,
294 UserSubscriptionService,
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 VideoBlacklistValidatorsService,
310 VideoChangeOwnershipValidatorsService,
311 VideoAcceptOwnershipValidatorsService,
312 InstanceValidatorsService,
322 I18nPrimengCalendarService,
324 LocalStorageService, SessionStorageService,
326 UserNotificationService,
334 export class SharedModule { }