]>
Commit | Line | Data |
---|---|---|
923ff87d C |
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' | |
df98563e | 7 | import { CommonModule } from '@angular/common' |
9bf9d2a5 C |
8 | import { HttpClientModule } from '@angular/common/http' |
9 | import { NgModule } from '@angular/core' | |
df98563e C |
10 | import { FormsModule, ReactiveFormsModule } from '@angular/forms' |
11 | import { RouterModule } from '@angular/router' | |
923ff87d C |
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' | |
0626e7af | 16 | import { AccountService } from '@app/shared/account/account.service' |
923ff87d C |
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' | |
e309822b C |
28 | import { |
29 | CustomConfigValidatorsService, | |
1506307f | 30 | InstanceValidatorsService, |
57c36b27 C |
31 | LoginValidatorsService, |
32 | ReactiveFileComponent, | |
e309822b | 33 | ResetPasswordValidatorsService, |
2fbe7f19 | 34 | TextareaAutoResizeDirective, |
57c36b27 | 35 | UserValidatorsService, |
22a16e36 | 36 | VideoAbuseValidatorsService, |
2fbe7f19 | 37 | VideoAcceptOwnershipValidatorsService, |
5baee5fc | 38 | VideoBlockValidatorsService, |
2fbe7f19 | 39 | VideoChangeOwnershipValidatorsService, |
57c36b27 C |
40 | VideoChannelValidatorsService, |
41 | VideoCommentValidatorsService, | |
830b4faf | 42 | VideoPlaylistValidatorsService, |
2fbe7f19 | 43 | VideoValidatorsService |
e309822b | 44 | } from '@app/shared/forms' |
923ff87d | 45 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' |
40e87e9e | 46 | import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service' |
923ff87d C |
47 | import { InputReadonlyCopyComponent } from '@app/shared/forms/input-readonly-copy.component' |
48 | import { MarkdownTextareaComponent } from '@app/shared/forms/markdown-textarea.component' | |
0f7fedc3 | 49 | import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component' |
923ff87d C |
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' | |
41a676db | 56 | import { InstanceFeaturesTableComponent } from '@app/shared/instance/instance-features-table.component' |
3d05209c | 57 | import { InstanceStatisticsComponent } from '@app/shared/instance/instance-statistics.component' |
923ff87d C |
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' | |
e724fa93 C |
65 | import { UserBanModalComponent } from '@app/shared/moderation' |
66 | import { UserModerationDropdownComponent } from '@app/shared/moderation/user-moderation-dropdown.component' | |
923ff87d C |
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' | |
80bfd33c | 70 | import { UserHistoryService } from '@app/shared/users/user-history.service' |
2f1548fd C |
71 | import { UserNotificationService } from '@app/shared/users/user-notification.service' |
72 | import { UserNotificationsComponent } from '@app/shared/users/user-notifications.component' | |
923ff87d C |
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' | |
f0a39880 | 76 | import { VideoAddToPlaylistComponent } from '@app/shared/video-playlist/video-add-to-playlist.component' |
e2f01c47 | 77 | import { VideoPlaylistElementMiniatureComponent } from '@app/shared/video-playlist/video-playlist-element-miniature.component' |
923ff87d C |
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' | |
5baee5fc | 81 | import { VideoBlockComponent } from '@app/shared/video/modals/video-block.component' |
3a0fb65c C |
82 | import { VideoDownloadComponent } from '@app/shared/video/modals/video-download.component' |
83 | import { VideoReportComponent } from '@app/shared/video/modals/video-report.component' | |
b764380a | 84 | import { RedundancyService } from '@app/shared/video/redundancy.service' |
923ff87d C |
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' | |
5baee5fc | 105 | import { VideoBlockService } from './video-block' |
923ff87d C |
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' | |
693b1aba C |
111 | |
112 | @NgModule({ | |
113 | imports: [ | |
114 | CommonModule, | |
115 | FormsModule, | |
116 | ReactiveFormsModule, | |
693b1aba | 117 | RouterModule, |
d592e0a9 | 118 | HttpClientModule, |
693b1aba | 119 | |
d77ad726 C |
120 | NgbDropdownModule, |
121 | NgbModalModule, | |
122 | NgbPopoverModule, | |
45c6bcf3 | 123 | NgbNavModule, |
d77ad726 | 124 | NgbTooltipModule, |
2f4c784a | 125 | NgbCollapseModule, |
d396a937 | 126 | |
3a0fb65c C |
127 | ClipboardModule, |
128 | ||
202f6b6c | 129 | PrimeSharedModule, |
f0a39880 | 130 | InputMaskModule, |
ccc00cb2 | 131 | NgPipesModule, |
d3217560 RK |
132 | MultiSelectModule, |
133 | InputSwitchModule | |
693b1aba C |
134 | ], |
135 | ||
136 | declarations: [ | |
9bf9d2a5 | 137 | LoaderComponent, |
b28e4e5e | 138 | SmallLoaderComponent, |
830b4faf | 139 | |
202f6b6c | 140 | VideoThumbnailComponent, |
b1fa3eba | 141 | VideoMiniatureComponent, |
830b4faf | 142 | VideoPlaylistMiniatureComponent, |
f0a39880 | 143 | VideoAddToPlaylistComponent, |
e2f01c47 | 144 | VideoPlaylistElementMiniatureComponent, |
693263e9 | 145 | VideosSelectionComponent, |
3a0fb65c C |
146 | VideoActionsDropdownComponent, |
147 | ||
148 | VideoDownloadComponent, | |
149 | VideoReportComponent, | |
5baee5fc | 150 | VideoBlockComponent, |
830b4faf | 151 | |
c199c427 | 152 | FeedComponent, |
f0a39880 | 153 | |
74d63469 | 154 | ButtonComponent, |
cd83ea1b C |
155 | DeleteButtonComponent, |
156 | EditButtonComponent, | |
f0a39880 | 157 | |
9bf9d2a5 | 158 | NumberFormatterPipe, |
244e76a5 | 159 | ObjectLengthPipe, |
66b16caf | 160 | FromNowPipe, |
f409f0c3 | 161 | HighlightPipe, |
693263e9 | 162 | PeerTubeTemplateDirective, |
df8340b7 | 163 | VideoDurationPipe, |
693263e9 C |
164 | |
165 | ActionDropdownComponent, | |
0cd4344f | 166 | MarkdownTextareaComponent, |
8a8e02a4 | 167 | InfiniteScrollerDirective, |
2fbe7f19 | 168 | TextareaAutoResizeDirective, |
40e87e9e | 169 | HelpComponent, |
24e7916c | 170 | ListOverflowComponent, |
f0a39880 | 171 | |
0f7fedc3 | 172 | ReactiveFileComponent, |
22a16e36 | 173 | PeertubeCheckboxComponent, |
f0a39880 | 174 | TimestampInputComponent, |
3a1fed11 | 175 | InputReadonlyCopyComponent, |
f0a39880 | 176 | |
dd4f25ee | 177 | AvatarComponent, |
41a676db | 178 | SubscribeButtonComponent, |
660d11e9 | 179 | RemoteSubscribeComponent, |
e724fa93 | 180 | InstanceFeaturesTableComponent, |
3d05209c | 181 | InstanceStatisticsComponent, |
a00045a2 | 182 | FeatureBooleanComponent, |
e724fa93 | 183 | UserBanModalComponent, |
ddb83e49 | 184 | UserModerationDropdownComponent, |
2f1548fd | 185 | TopMenuDropdownComponent, |
457bb213 C |
186 | UserNotificationsComponent, |
187 | ConfirmComponent, | |
e8050208 | 188 | DateToggleComponent, |
830b4faf C |
189 | |
190 | GlobalIconComponent, | |
d3217560 RK |
191 | PreviewUploadComponent, |
192 | ||
193 | MyAccountVideoSettingsComponent, | |
76314386 RK |
194 | MyAccountInterfaceSettingsComponent, |
195 | ActorAvatarInfoComponent | |
693b1aba C |
196 | ], |
197 | ||
198 | exports: [ | |
199 | CommonModule, | |
200 | FormsModule, | |
201 | ReactiveFormsModule, | |
693b1aba | 202 | RouterModule, |
d592e0a9 | 203 | HttpClientModule, |
693b1aba | 204 | |
63347a0f C |
205 | NgbDropdownModule, |
206 | NgbModalModule, | |
207 | NgbPopoverModule, | |
45c6bcf3 | 208 | NgbNavModule, |
63347a0f | 209 | NgbTooltipModule, |
2f4c784a | 210 | NgbCollapseModule, |
63347a0f | 211 | |
3a0fb65c C |
212 | ClipboardModule, |
213 | ||
d592e0a9 | 214 | PrimeSharedModule, |
f0a39880 | 215 | InputMaskModule, |
693b1aba | 216 | BytesPipe, |
99fdec46 | 217 | KeysPipe, |
ccc00cb2 | 218 | MultiSelectModule, |
693b1aba | 219 | |
9bf9d2a5 | 220 | LoaderComponent, |
b28e4e5e | 221 | SmallLoaderComponent, |
830b4faf | 222 | |
202f6b6c | 223 | VideoThumbnailComponent, |
b1fa3eba | 224 | VideoMiniatureComponent, |
830b4faf | 225 | VideoPlaylistMiniatureComponent, |
f0a39880 | 226 | VideoAddToPlaylistComponent, |
e2f01c47 | 227 | VideoPlaylistElementMiniatureComponent, |
693263e9 | 228 | VideosSelectionComponent, |
3a0fb65c C |
229 | VideoActionsDropdownComponent, |
230 | ||
231 | VideoDownloadComponent, | |
232 | VideoReportComponent, | |
5baee5fc | 233 | VideoBlockComponent, |
830b4faf | 234 | |
c199c427 | 235 | FeedComponent, |
f0a39880 | 236 | |
74d63469 | 237 | ButtonComponent, |
cd83ea1b C |
238 | DeleteButtonComponent, |
239 | EditButtonComponent, | |
f0a39880 | 240 | |
eacb25c4 | 241 | ActionDropdownComponent, |
66b16caf | 242 | MarkdownTextareaComponent, |
0cd4344f | 243 | InfiniteScrollerDirective, |
2fbe7f19 | 244 | TextareaAutoResizeDirective, |
8a8e02a4 | 245 | HelpComponent, |
24e7916c | 246 | ListOverflowComponent, |
3a1fed11 | 247 | InputReadonlyCopyComponent, |
f0a39880 | 248 | |
40e87e9e | 249 | ReactiveFileComponent, |
0f7fedc3 | 250 | PeertubeCheckboxComponent, |
f0a39880 C |
251 | TimestampInputComponent, |
252 | ||
dd4f25ee | 253 | AvatarComponent, |
22a16e36 | 254 | SubscribeButtonComponent, |
660d11e9 | 255 | RemoteSubscribeComponent, |
41a676db | 256 | InstanceFeaturesTableComponent, |
3d05209c | 257 | InstanceStatisticsComponent, |
e724fa93 C |
258 | UserBanModalComponent, |
259 | UserModerationDropdownComponent, | |
ddb83e49 | 260 | TopMenuDropdownComponent, |
2f1548fd | 261 | UserNotificationsComponent, |
457bb213 | 262 | ConfirmComponent, |
e8050208 | 263 | DateToggleComponent, |
830b4faf | 264 | |
457bb213 | 265 | GlobalIconComponent, |
7b992a86 | 266 | PreviewUploadComponent, |
9bf9d2a5 C |
267 | |
268 | NumberFormatterPipe, | |
244e76a5 | 269 | ObjectLengthPipe, |
693263e9 | 270 | FromNowPipe, |
f409f0c3 | 271 | HighlightPipe, |
df8340b7 | 272 | PeerTubeTemplateDirective, |
d3217560 RK |
273 | VideoDurationPipe, |
274 | ||
275 | MyAccountVideoSettingsComponent, | |
76314386 RK |
276 | MyAccountInterfaceSettingsComponent, |
277 | ActorAvatarInfoComponent | |
693b1aba C |
278 | ], |
279 | ||
280 | providers: [ | |
d592e0a9 | 281 | AUTH_INTERCEPTOR_PROVIDER, |
693b1aba C |
282 | RestExtractor, |
283 | RestService, | |
e2a2d6c8 | 284 | VideoAbuseService, |
5baee5fc | 285 | VideoBlockService, |
74d63469 | 286 | VideoOwnershipService, |
202f6b6c | 287 | UserService, |
66b16caf | 288 | VideoService, |
0626e7af | 289 | AccountService, |
989e526a | 290 | VideoChannelService, |
830b4faf | 291 | VideoPlaylistService, |
40e87e9e | 292 | VideoCaptionService, |
26b7305a | 293 | VideoImportService, |
22a16e36 | 294 | UserSubscriptionService, |
e309822b | 295 | |
d18d6478 | 296 | FormValidatorService, |
e309822b C |
297 | CustomConfigValidatorsService, |
298 | LoginValidatorsService, | |
299 | ResetPasswordValidatorsService, | |
300 | UserValidatorsService, | |
bb152476 | 301 | BatchDomainsValidatorsService, |
830b4faf | 302 | VideoPlaylistValidatorsService, |
e309822b C |
303 | VideoAbuseValidatorsService, |
304 | VideoChannelValidatorsService, | |
305 | VideoCommentValidatorsService, | |
306 | VideoValidatorsService, | |
40e87e9e | 307 | VideoCaptionsValidatorsService, |
5baee5fc | 308 | VideoBlockValidatorsService, |
2d3741d6 | 309 | OverviewService, |
74d63469 GR |
310 | VideoChangeOwnershipValidatorsService, |
311 | VideoAcceptOwnershipValidatorsService, | |
d3e56c0c | 312 | InstanceValidatorsService, |
af5767ff | 313 | BlocklistService, |
80bfd33c | 314 | UserHistoryService, |
d3e56c0c | 315 | InstanceService, |
923ff87d | 316 | BulkService, |
e309822b | 317 | |
1506307f C |
318 | MarkdownService, |
319 | LinkifierService, | |
320 | HtmlRendererService, | |
321 | ||
bbe0f064 C |
322 | I18nPrimengCalendarService, |
323 | ScreenService, | |
d3217560 | 324 | LocalStorageService, SessionStorageService, |
bbe0f064 | 325 | |
2f1548fd C |
326 | UserNotificationService, |
327 | ||
a6dbbf03 | 328 | FollowService, |
b764380a | 329 | RedundancyService, |
a6dbbf03 | 330 | |
989e526a | 331 | I18n |
693b1aba C |
332 | ] |
333 | }) | |
334 | export class SharedModule { } |