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