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