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