]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared.module.ts
preserve original variable names server-side
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared.module.ts
CommitLineData
923ff87d
C
1import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes'
2import { SharedModule as PrimeSharedModule } from 'primeng/api'
3import { InputMaskModule } from 'primeng/inputmask'
4import { InputSwitchModule } from 'primeng/inputswitch'
5import { MultiSelectModule } from 'primeng/multiselect'
6import { ClipboardModule } from '@angular/cdk/clipboard'
df98563e 7import { CommonModule } from '@angular/common'
9bf9d2a5
C
8import { HttpClientModule } from '@angular/common/http'
9import { NgModule } from '@angular/core'
df98563e
C
10import { FormsModule, ReactiveFormsModule } from '@angular/forms'
11import { RouterModule } from '@angular/router'
923ff87d
C
12import { BatchDomainsValidatorsService } from '@app/+admin/config/shared/batch-domains-validators.service'
13import { MyAccountInterfaceSettingsComponent } from '@app/+my-account/my-account-settings/my-account-interface'
14import { MyAccountVideoSettingsComponent } from '@app/+my-account/my-account-settings/my-account-video-settings'
15import { ActorAvatarInfoComponent } from '@app/+my-account/shared/actor-avatar-info.component'
0626e7af 16import { AccountService } from '@app/shared/account/account.service'
923ff87d
C
17import { FromNowPipe } from '@app/shared/angular/from-now.pipe'
18import { HighlightPipe } from '@app/shared/angular/highlight.pipe'
19import { NumberFormatterPipe } from '@app/shared/angular/number-formatter.pipe'
20import { ObjectLengthPipe } from '@app/shared/angular/object-length.pipe'
21import { PeerTubeTemplateDirective } from '@app/shared/angular/peertube-template.directive'
22import { VideoDurationPipe } from '@app/shared/angular/video-duration-formatter.pipe'
23import { BlocklistService } from '@app/shared/blocklist'
24import { ActionDropdownComponent } from '@app/shared/buttons/action-dropdown.component'
25import { AvatarComponent } from '@app/shared/channel/avatar.component'
26import { ConfirmComponent } from '@app/shared/confirm/confirm.component'
27import { DateToggleComponent } from '@app/shared/date/date-toggle.component'
e309822b
C
28import {
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 45import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
40e87e9e 46import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service'
923ff87d
C
47import { InputReadonlyCopyComponent } from '@app/shared/forms/input-readonly-copy.component'
48import { MarkdownTextareaComponent } from '@app/shared/forms/markdown-textarea.component'
0f7fedc3 49import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component'
923ff87d
C
50import { TimestampInputComponent } from '@app/shared/forms/timestamp-input.component'
51import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar'
52import { GlobalIconComponent } from '@app/shared/images/global-icon.component'
53import { PreviewUploadComponent } from '@app/shared/images/preview-upload.component'
54import { FeatureBooleanComponent } from '@app/shared/instance/feature-boolean.component'
55import { FollowService } from '@app/shared/instance/follow.service'
41a676db 56import { InstanceFeaturesTableComponent } from '@app/shared/instance/instance-features-table.component'
3d05209c 57import { InstanceStatisticsComponent } from '@app/shared/instance/instance-statistics.component'
923ff87d
C
58import { InstanceService } from '@app/shared/instance/instance.service'
59import { TopMenuDropdownComponent } from '@app/shared/menu/top-menu-dropdown.component'
60import { HelpComponent } from '@app/shared/misc/help.component'
61import { ListOverflowComponent } from '@app/shared/misc/list-overflow.component'
62import { ScreenService } from '@app/shared/misc/screen.service'
63import { SmallLoaderComponent } from '@app/shared/misc/small-loader.component'
64import { LocalStorageService, SessionStorageService } from '@app/shared/misc/storage.service'
e724fa93
C
65import { UserBanModalComponent } from '@app/shared/moderation'
66import { UserModerationDropdownComponent } from '@app/shared/moderation/user-moderation-dropdown.component'
923ff87d
C
67import { OverviewService } from '@app/shared/overview'
68import { HtmlRendererService, LinkifierService, MarkdownService } from '@app/shared/renderer'
69import { RemoteSubscribeComponent, SubscribeButtonComponent, UserSubscriptionService } from '@app/shared/user-subscription'
80bfd33c 70import { UserHistoryService } from '@app/shared/users/user-history.service'
2f1548fd
C
71import { UserNotificationService } from '@app/shared/users/user-notification.service'
72import { UserNotificationsComponent } from '@app/shared/users/user-notifications.component'
923ff87d
C
73import { VideoCaptionService } from '@app/shared/video-caption'
74import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
75import { VideoImportService } from '@app/shared/video-import/video-import.service'
f0a39880 76import { VideoAddToPlaylistComponent } from '@app/shared/video-playlist/video-add-to-playlist.component'
e2f01c47 77import { VideoPlaylistElementMiniatureComponent } from '@app/shared/video-playlist/video-playlist-element-miniature.component'
923ff87d
C
78import { VideoPlaylistMiniatureComponent } from '@app/shared/video-playlist/video-playlist-miniature.component'
79import { VideoPlaylistService } from '@app/shared/video-playlist/video-playlist.service'
80import { InfiniteScrollerDirective } from '@app/shared/video/infinite-scroller.directive'
5baee5fc 81import { VideoBlockComponent } from '@app/shared/video/modals/video-block.component'
3a0fb65c
C
82import { VideoDownloadComponent } from '@app/shared/video/modals/video-download.component'
83import { VideoReportComponent } from '@app/shared/video/modals/video-report.component'
b764380a 84import { RedundancyService } from '@app/shared/video/redundancy.service'
923ff87d
C
85import { VideoActionsDropdownComponent } from '@app/shared/video/video-actions-dropdown.component'
86import { VideosSelectionComponent } from '@app/shared/video/videos-selection.component'
87import {
88 NgbCollapseModule,
89 NgbDropdownModule,
90 NgbModalModule,
91 NgbNavModule,
92 NgbPopoverModule,
93 NgbTooltipModule
94} from '@ng-bootstrap/ng-bootstrap'
95import { I18n } from '@ngx-translate/i18n-polyfill'
96import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
97import { BulkService } from './bulk/bulk.service'
98import { ButtonComponent } from './buttons/button.component'
99import { DeleteButtonComponent } from './buttons/delete-button.component'
100import { EditButtonComponent } from './buttons/edit-button.component'
101import { LoaderComponent } from './misc/loader.component'
102import { RestExtractor, RestService } from './rest'
103import { UserService } from './users'
104import { VideoAbuseService } from './video-abuse'
5baee5fc 105import { VideoBlockService } from './video-block'
923ff87d
C
106import { VideoOwnershipService } from './video-ownership'
107import { FeedComponent } from './video/feed.component'
108import { VideoMiniatureComponent } from './video/video-miniature.component'
109import { VideoThumbnailComponent } from './video/video-thumbnail.component'
110import { 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})
334export class SharedModule { }