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