]>
Commit | Line | Data |
---|---|---|
df98563e | 1 | import { CommonModule } from '@angular/common' |
9bf9d2a5 C |
2 | import { HttpClientModule } from '@angular/common/http' |
3 | import { NgModule } from '@angular/core' | |
df98563e C |
4 | import { FormsModule, ReactiveFormsModule } from '@angular/forms' |
5 | import { RouterModule } from '@angular/router' | |
66b16caf | 6 | import { MarkdownTextareaComponent } from '@app/shared/forms/markdown-textarea.component' |
8a8e02a4 | 7 | import { HelpComponent } from '@app/shared/misc/help.component' |
0cd4344f | 8 | import { InfiniteScrollerDirective } from '@app/shared/video/infinite-scroller.directive' |
62e23e40 | 9 | import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' |
3523b64a | 10 | import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared' |
d592e0a9 | 11 | import { AUTH_INTERCEPTOR_PROVIDER } from './auth' |
74d63469 | 12 | import { ButtonComponent } from './buttons/button.component' |
eacb25c4 C |
13 | import { DeleteButtonComponent } from './buttons/delete-button.component' |
14 | import { EditButtonComponent } from './buttons/edit-button.component' | |
9bf9d2a5 | 15 | import { LoaderComponent } from './misc/loader.component' |
df98563e | 16 | import { RestExtractor, RestService } from './rest' |
df98563e C |
17 | import { UserService } from './users' |
18 | import { VideoAbuseService } from './video-abuse' | |
35bf0c83 | 19 | import { VideoBlacklistService } from './video-blacklist' |
74d63469 | 20 | import { VideoOwnershipService } from './video-ownership' |
b1fa3eba | 21 | import { VideoMiniatureComponent } from './video/video-miniature.component' |
c199c427 | 22 | import { FeedComponent } from './video/feed.component' |
202f6b6c C |
23 | import { VideoThumbnailComponent } from './video/video-thumbnail.component' |
24 | import { VideoService } from './video/video.service' | |
0626e7af | 25 | import { AccountService } from '@app/shared/account/account.service' |
d3e91a5f | 26 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' |
989e526a | 27 | import { I18n } from '@ngx-translate/i18n-polyfill' |
d18d6478 | 28 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' |
e309822b C |
29 | import { |
30 | CustomConfigValidatorsService, | |
1506307f | 31 | InstanceValidatorsService, |
57c36b27 C |
32 | LoginValidatorsService, |
33 | ReactiveFileComponent, | |
e309822b | 34 | ResetPasswordValidatorsService, |
2fbe7f19 | 35 | TextareaAutoResizeDirective, |
57c36b27 | 36 | UserValidatorsService, |
22a16e36 | 37 | VideoAbuseValidatorsService, |
2fbe7f19 | 38 | VideoAcceptOwnershipValidatorsService, |
22a16e36 | 39 | VideoBlacklistValidatorsService, |
2fbe7f19 | 40 | VideoChangeOwnershipValidatorsService, |
57c36b27 C |
41 | VideoChannelValidatorsService, |
42 | VideoCommentValidatorsService, | |
830b4faf | 43 | VideoPlaylistValidatorsService, |
2fbe7f19 | 44 | VideoValidatorsService |
e309822b | 45 | } from '@app/shared/forms' |
bbe0f064 | 46 | import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar' |
f0a39880 | 47 | import { InputMaskModule } from 'primeng/inputmask' |
bbe0f064 | 48 | import { ScreenService } from '@app/shared/misc/screen.service' |
40e87e9e C |
49 | import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service' |
50 | import { VideoCaptionService } from '@app/shared/video-caption' | |
0f7fedc3 | 51 | import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component' |
fbad87b0 | 52 | import { VideoImportService } from '@app/shared/video-import/video-import.service' |
eacb25c4 | 53 | import { ActionDropdownComponent } from '@app/shared/buttons/action-dropdown.component' |
2f4c784a C |
54 | import { |
55 | NgbCollapseModule, | |
56 | NgbDropdownModule, | |
57 | NgbModalModule, | |
58 | NgbPopoverModule, | |
59 | NgbTabsetModule, | |
60 | NgbTooltipModule | |
61 | } from '@ng-bootstrap/ng-bootstrap' | |
2fbe7f19 | 62 | import { RemoteSubscribeComponent, SubscribeButtonComponent, UserSubscriptionService } from '@app/shared/user-subscription' |
41a676db | 63 | import { InstanceFeaturesTableComponent } from '@app/shared/instance/instance-features-table.component' |
3d05209c | 64 | import { InstanceStatisticsComponent } from '@app/shared/instance/instance-statistics.component' |
2d3741d6 | 65 | import { OverviewService } from '@app/shared/overview' |
e724fa93 C |
66 | import { UserBanModalComponent } from '@app/shared/moderation' |
67 | import { UserModerationDropdownComponent } from '@app/shared/moderation/user-moderation-dropdown.component' | |
af5767ff | 68 | import { BlocklistService } from '@app/shared/blocklist' |
ddb83e49 | 69 | import { TopMenuDropdownComponent } from '@app/shared/menu/top-menu-dropdown.component' |
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' | |
d3e56c0c | 73 | import { InstanceService } from '@app/shared/instance/instance.service' |
1506307f | 74 | import { HtmlRendererService, LinkifierService, MarkdownService } from '@app/shared/renderer' |
457bb213 | 75 | import { ConfirmComponent } from '@app/shared/confirm/confirm.component' |
e8050208 | 76 | import { DateToggleComponent } from '@app/shared/date/date-toggle.component' |
b28e4e5e | 77 | import { SmallLoaderComponent } from '@app/shared/misc/small-loader.component' |
830b4faf | 78 | import { VideoPlaylistService } from '@app/shared/video-playlist/video-playlist.service' |
7b992a86 | 79 | import { PreviewUploadComponent } from '@app/shared/images/preview-upload.component' |
830b4faf C |
80 | import { GlobalIconComponent } from '@app/shared/images/global-icon.component' |
81 | import { VideoPlaylistMiniatureComponent } from '@app/shared/video-playlist/video-playlist-miniature.component' | |
f0a39880 C |
82 | import { VideoAddToPlaylistComponent } from '@app/shared/video-playlist/video-add-to-playlist.component' |
83 | import { TimestampInputComponent } from '@app/shared/forms/timestamp-input.component' | |
e2f01c47 | 84 | import { VideoPlaylistElementMiniatureComponent } from '@app/shared/video-playlist/video-playlist-element-miniature.component' |
693263e9 C |
85 | import { VideosSelectionComponent } from '@app/shared/video/videos-selection.component' |
86 | import { NumberFormatterPipe } from '@app/shared/angular/number-formatter.pipe' | |
87 | import { ObjectLengthPipe } from '@app/shared/angular/object-length.pipe' | |
88 | import { FromNowPipe } from '@app/shared/angular/from-now.pipe' | |
89 | import { PeerTubeTemplateDirective } from '@app/shared/angular/peertube-template.directive' | |
3a0fb65c C |
90 | import { VideoActionsDropdownComponent } from '@app/shared/video/video-actions-dropdown.component' |
91 | import { VideoBlacklistComponent } from '@app/shared/video/modals/video-blacklist.component' | |
92 | import { VideoDownloadComponent } from '@app/shared/video/modals/video-download.component' | |
93 | import { VideoReportComponent } from '@app/shared/video/modals/video-report.component' | |
94 | import { ClipboardModule } from 'ngx-clipboard' | |
a6dbbf03 | 95 | import { FollowService } from '@app/shared/instance/follow.service' |
ccc00cb2 | 96 | import { MultiSelectModule } from 'primeng/multiselect' |
a00045a2 | 97 | import { FeatureBooleanComponent } from '@app/shared/instance/feature-boolean.component' |
693b1aba C |
98 | |
99 | @NgModule({ | |
100 | imports: [ | |
101 | CommonModule, | |
102 | FormsModule, | |
103 | ReactiveFormsModule, | |
693b1aba | 104 | RouterModule, |
d592e0a9 | 105 | HttpClientModule, |
693b1aba | 106 | |
d77ad726 C |
107 | NgbDropdownModule, |
108 | NgbModalModule, | |
109 | NgbPopoverModule, | |
110 | NgbTabsetModule, | |
111 | NgbTooltipModule, | |
2f4c784a | 112 | NgbCollapseModule, |
d396a937 | 113 | |
3a0fb65c C |
114 | ClipboardModule, |
115 | ||
202f6b6c | 116 | PrimeSharedModule, |
f0a39880 | 117 | InputMaskModule, |
ccc00cb2 C |
118 | NgPipesModule, |
119 | MultiSelectModule | |
693b1aba C |
120 | ], |
121 | ||
122 | declarations: [ | |
9bf9d2a5 | 123 | LoaderComponent, |
b28e4e5e | 124 | SmallLoaderComponent, |
830b4faf | 125 | |
202f6b6c | 126 | VideoThumbnailComponent, |
b1fa3eba | 127 | VideoMiniatureComponent, |
830b4faf | 128 | VideoPlaylistMiniatureComponent, |
f0a39880 | 129 | VideoAddToPlaylistComponent, |
e2f01c47 | 130 | VideoPlaylistElementMiniatureComponent, |
693263e9 | 131 | VideosSelectionComponent, |
3a0fb65c C |
132 | VideoActionsDropdownComponent, |
133 | ||
134 | VideoDownloadComponent, | |
135 | VideoReportComponent, | |
136 | VideoBlacklistComponent, | |
830b4faf | 137 | |
c199c427 | 138 | FeedComponent, |
f0a39880 | 139 | |
74d63469 | 140 | ButtonComponent, |
cd83ea1b C |
141 | DeleteButtonComponent, |
142 | EditButtonComponent, | |
f0a39880 | 143 | |
9bf9d2a5 | 144 | NumberFormatterPipe, |
244e76a5 | 145 | ObjectLengthPipe, |
66b16caf | 146 | FromNowPipe, |
693263e9 C |
147 | PeerTubeTemplateDirective, |
148 | ||
149 | ActionDropdownComponent, | |
0cd4344f | 150 | MarkdownTextareaComponent, |
8a8e02a4 | 151 | InfiniteScrollerDirective, |
2fbe7f19 | 152 | TextareaAutoResizeDirective, |
40e87e9e | 153 | HelpComponent, |
f0a39880 | 154 | |
0f7fedc3 | 155 | ReactiveFileComponent, |
22a16e36 | 156 | PeertubeCheckboxComponent, |
f0a39880 C |
157 | TimestampInputComponent, |
158 | ||
41a676db | 159 | SubscribeButtonComponent, |
660d11e9 | 160 | RemoteSubscribeComponent, |
e724fa93 | 161 | InstanceFeaturesTableComponent, |
3d05209c | 162 | InstanceStatisticsComponent, |
a00045a2 | 163 | FeatureBooleanComponent, |
e724fa93 | 164 | UserBanModalComponent, |
ddb83e49 | 165 | UserModerationDropdownComponent, |
2f1548fd | 166 | TopMenuDropdownComponent, |
457bb213 C |
167 | UserNotificationsComponent, |
168 | ConfirmComponent, | |
e8050208 | 169 | DateToggleComponent, |
830b4faf C |
170 | |
171 | GlobalIconComponent, | |
7b992a86 | 172 | PreviewUploadComponent |
693b1aba C |
173 | ], |
174 | ||
175 | exports: [ | |
176 | CommonModule, | |
177 | FormsModule, | |
178 | ReactiveFormsModule, | |
693b1aba | 179 | RouterModule, |
d592e0a9 | 180 | HttpClientModule, |
693b1aba | 181 | |
63347a0f C |
182 | NgbDropdownModule, |
183 | NgbModalModule, | |
184 | NgbPopoverModule, | |
185 | NgbTabsetModule, | |
186 | NgbTooltipModule, | |
2f4c784a | 187 | NgbCollapseModule, |
63347a0f | 188 | |
3a0fb65c C |
189 | ClipboardModule, |
190 | ||
d592e0a9 | 191 | PrimeSharedModule, |
f0a39880 | 192 | InputMaskModule, |
693b1aba | 193 | BytesPipe, |
99fdec46 | 194 | KeysPipe, |
ccc00cb2 | 195 | MultiSelectModule, |
693b1aba | 196 | |
9bf9d2a5 | 197 | LoaderComponent, |
b28e4e5e | 198 | SmallLoaderComponent, |
830b4faf | 199 | |
202f6b6c | 200 | VideoThumbnailComponent, |
b1fa3eba | 201 | VideoMiniatureComponent, |
830b4faf | 202 | VideoPlaylistMiniatureComponent, |
f0a39880 | 203 | VideoAddToPlaylistComponent, |
e2f01c47 | 204 | VideoPlaylistElementMiniatureComponent, |
693263e9 | 205 | VideosSelectionComponent, |
3a0fb65c C |
206 | VideoActionsDropdownComponent, |
207 | ||
208 | VideoDownloadComponent, | |
209 | VideoReportComponent, | |
210 | VideoBlacklistComponent, | |
830b4faf | 211 | |
c199c427 | 212 | FeedComponent, |
f0a39880 | 213 | |
74d63469 | 214 | ButtonComponent, |
cd83ea1b C |
215 | DeleteButtonComponent, |
216 | EditButtonComponent, | |
f0a39880 | 217 | |
eacb25c4 | 218 | ActionDropdownComponent, |
66b16caf | 219 | MarkdownTextareaComponent, |
0cd4344f | 220 | InfiniteScrollerDirective, |
2fbe7f19 | 221 | TextareaAutoResizeDirective, |
8a8e02a4 | 222 | HelpComponent, |
f0a39880 | 223 | |
40e87e9e | 224 | ReactiveFileComponent, |
0f7fedc3 | 225 | PeertubeCheckboxComponent, |
f0a39880 C |
226 | TimestampInputComponent, |
227 | ||
22a16e36 | 228 | SubscribeButtonComponent, |
660d11e9 | 229 | RemoteSubscribeComponent, |
41a676db | 230 | InstanceFeaturesTableComponent, |
3d05209c | 231 | InstanceStatisticsComponent, |
e724fa93 C |
232 | UserBanModalComponent, |
233 | UserModerationDropdownComponent, | |
ddb83e49 | 234 | TopMenuDropdownComponent, |
2f1548fd | 235 | UserNotificationsComponent, |
457bb213 | 236 | ConfirmComponent, |
e8050208 | 237 | DateToggleComponent, |
830b4faf | 238 | |
457bb213 | 239 | GlobalIconComponent, |
7b992a86 | 240 | PreviewUploadComponent, |
9bf9d2a5 C |
241 | |
242 | NumberFormatterPipe, | |
244e76a5 | 243 | ObjectLengthPipe, |
693263e9 C |
244 | FromNowPipe, |
245 | PeerTubeTemplateDirective | |
693b1aba C |
246 | ], |
247 | ||
248 | providers: [ | |
d592e0a9 | 249 | AUTH_INTERCEPTOR_PROVIDER, |
693b1aba C |
250 | RestExtractor, |
251 | RestService, | |
e2a2d6c8 | 252 | VideoAbuseService, |
35bf0c83 | 253 | VideoBlacklistService, |
74d63469 | 254 | VideoOwnershipService, |
202f6b6c | 255 | UserService, |
66b16caf | 256 | VideoService, |
0626e7af | 257 | AccountService, |
989e526a | 258 | VideoChannelService, |
830b4faf | 259 | VideoPlaylistService, |
40e87e9e | 260 | VideoCaptionService, |
26b7305a | 261 | VideoImportService, |
22a16e36 | 262 | UserSubscriptionService, |
e309822b | 263 | |
d18d6478 | 264 | FormValidatorService, |
e309822b C |
265 | CustomConfigValidatorsService, |
266 | LoginValidatorsService, | |
267 | ResetPasswordValidatorsService, | |
268 | UserValidatorsService, | |
830b4faf | 269 | VideoPlaylistValidatorsService, |
e309822b C |
270 | VideoAbuseValidatorsService, |
271 | VideoChannelValidatorsService, | |
272 | VideoCommentValidatorsService, | |
273 | VideoValidatorsService, | |
40e87e9e | 274 | VideoCaptionsValidatorsService, |
26b7305a | 275 | VideoBlacklistValidatorsService, |
2d3741d6 | 276 | OverviewService, |
74d63469 GR |
277 | VideoChangeOwnershipValidatorsService, |
278 | VideoAcceptOwnershipValidatorsService, | |
d3e56c0c | 279 | InstanceValidatorsService, |
af5767ff | 280 | BlocklistService, |
80bfd33c | 281 | UserHistoryService, |
d3e56c0c | 282 | InstanceService, |
e309822b | 283 | |
1506307f C |
284 | MarkdownService, |
285 | LinkifierService, | |
286 | HtmlRendererService, | |
287 | ||
bbe0f064 C |
288 | I18nPrimengCalendarService, |
289 | ScreenService, | |
290 | ||
2f1548fd C |
291 | UserNotificationService, |
292 | ||
a6dbbf03 C |
293 | FollowService, |
294 | ||
989e526a | 295 | I18n |
693b1aba C |
296 | ] |
297 | }) | |
298 | export class SharedModule { } |