]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared.module.ts
Fix miniature with a long name
[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'
66b16caf 9import { MarkdownService } from '@app/videos/shared'
693b1aba 10
62e23e40 11import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes'
3523b64a 12import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared'
693b1aba 13
d592e0a9 14import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
74d63469 15import { ButtonComponent } from './buttons/button.component'
eacb25c4
C
16import { DeleteButtonComponent } from './buttons/delete-button.component'
17import { EditButtonComponent } from './buttons/edit-button.component'
2bbb3412 18import { FromNowPipe } from './misc/from-now.pipe'
9bf9d2a5 19import { LoaderComponent } from './misc/loader.component'
2bbb3412 20import { NumberFormatterPipe } from './misc/number-formatter.pipe'
244e76a5 21import { ObjectLengthPipe } from './misc/object-length.pipe'
df98563e 22import { RestExtractor, RestService } from './rest'
df98563e
C
23import { UserService } from './users'
24import { VideoAbuseService } from './video-abuse'
35bf0c83 25import { VideoBlacklistService } from './video-blacklist'
74d63469 26import { VideoOwnershipService } from './video-ownership'
b1fa3eba 27import { VideoMiniatureComponent } from './video/video-miniature.component'
c199c427 28import { FeedComponent } from './video/feed.component'
202f6b6c
C
29import { VideoThumbnailComponent } from './video/video-thumbnail.component'
30import { VideoService } from './video/video.service'
0626e7af 31import { AccountService } from '@app/shared/account/account.service'
d3e91a5f 32import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
989e526a 33import { I18n } from '@ngx-translate/i18n-polyfill'
d18d6478 34import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
e309822b
C
35import {
36 CustomConfigValidatorsService,
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,
2fbe7f19 48 VideoValidatorsService
e309822b 49} from '@app/shared/forms'
bbe0f064
C
50import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar'
51import { ScreenService } from '@app/shared/misc/screen.service'
40e87e9e
C
52import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service'
53import { VideoCaptionService } from '@app/shared/video-caption'
0f7fedc3 54import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component'
fbad87b0 55import { VideoImportService } from '@app/shared/video-import/video-import.service'
eacb25c4 56import { ActionDropdownComponent } from '@app/shared/buttons/action-dropdown.component'
63347a0f 57import { NgbDropdownModule, NgbModalModule, NgbPopoverModule, NgbTabsetModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap'
2fbe7f19 58import { RemoteSubscribeComponent, SubscribeButtonComponent, UserSubscriptionService } from '@app/shared/user-subscription'
41a676db 59import { InstanceFeaturesTableComponent } from '@app/shared/instance/instance-features-table.component'
2d3741d6 60import { OverviewService } from '@app/shared/overview'
e724fa93
C
61import { UserBanModalComponent } from '@app/shared/moderation'
62import { UserModerationDropdownComponent } from '@app/shared/moderation/user-moderation-dropdown.component'
af5767ff 63import { BlocklistService } from '@app/shared/blocklist'
693b1aba
C
64
65@NgModule({
66 imports: [
67 CommonModule,
68 FormsModule,
69 ReactiveFormsModule,
693b1aba 70 RouterModule,
d592e0a9 71 HttpClientModule,
693b1aba 72
d77ad726
C
73 NgbDropdownModule,
74 NgbModalModule,
75 NgbPopoverModule,
76 NgbTabsetModule,
77 NgbTooltipModule,
d396a937 78
202f6b6c 79 PrimeSharedModule,
6de36768 80 NgPipesModule
693b1aba
C
81 ],
82
83 declarations: [
9bf9d2a5 84 LoaderComponent,
202f6b6c 85 VideoThumbnailComponent,
b1fa3eba 86 VideoMiniatureComponent,
c199c427 87 FeedComponent,
74d63469 88 ButtonComponent,
cd83ea1b
C
89 DeleteButtonComponent,
90 EditButtonComponent,
eacb25c4 91 ActionDropdownComponent,
9bf9d2a5 92 NumberFormatterPipe,
244e76a5 93 ObjectLengthPipe,
66b16caf 94 FromNowPipe,
0cd4344f 95 MarkdownTextareaComponent,
8a8e02a4 96 InfiniteScrollerDirective,
2fbe7f19 97 TextareaAutoResizeDirective,
40e87e9e 98 HelpComponent,
0f7fedc3 99 ReactiveFileComponent,
22a16e36 100 PeertubeCheckboxComponent,
41a676db 101 SubscribeButtonComponent,
660d11e9 102 RemoteSubscribeComponent,
e724fa93
C
103 InstanceFeaturesTableComponent,
104 UserBanModalComponent,
105 UserModerationDropdownComponent
693b1aba
C
106 ],
107
108 exports: [
109 CommonModule,
110 FormsModule,
111 ReactiveFormsModule,
693b1aba 112 RouterModule,
d592e0a9 113 HttpClientModule,
693b1aba 114
63347a0f
C
115 NgbDropdownModule,
116 NgbModalModule,
117 NgbPopoverModule,
118 NgbTabsetModule,
119 NgbTooltipModule,
120
d592e0a9 121 PrimeSharedModule,
693b1aba 122 BytesPipe,
99fdec46 123 KeysPipe,
693b1aba 124
9bf9d2a5 125 LoaderComponent,
202f6b6c 126 VideoThumbnailComponent,
b1fa3eba 127 VideoMiniatureComponent,
c199c427 128 FeedComponent,
74d63469 129 ButtonComponent,
cd83ea1b
C
130 DeleteButtonComponent,
131 EditButtonComponent,
eacb25c4 132 ActionDropdownComponent,
66b16caf 133 MarkdownTextareaComponent,
0cd4344f 134 InfiniteScrollerDirective,
2fbe7f19 135 TextareaAutoResizeDirective,
8a8e02a4 136 HelpComponent,
40e87e9e 137 ReactiveFileComponent,
0f7fedc3 138 PeertubeCheckboxComponent,
22a16e36 139 SubscribeButtonComponent,
660d11e9 140 RemoteSubscribeComponent,
41a676db 141 InstanceFeaturesTableComponent,
e724fa93
C
142 UserBanModalComponent,
143 UserModerationDropdownComponent,
9bf9d2a5
C
144
145 NumberFormatterPipe,
244e76a5 146 ObjectLengthPipe,
9bf9d2a5 147 FromNowPipe
693b1aba
C
148 ],
149
150 providers: [
d592e0a9 151 AUTH_INTERCEPTOR_PROVIDER,
693b1aba
C
152 RestExtractor,
153 RestService,
e2a2d6c8 154 VideoAbuseService,
35bf0c83 155 VideoBlacklistService,
74d63469 156 VideoOwnershipService,
202f6b6c 157 UserService,
66b16caf 158 VideoService,
0626e7af 159 AccountService,
d3e91a5f 160 MarkdownService,
989e526a 161 VideoChannelService,
40e87e9e 162 VideoCaptionService,
26b7305a 163 VideoImportService,
22a16e36 164 UserSubscriptionService,
e309822b 165
d18d6478 166 FormValidatorService,
e309822b
C
167 CustomConfigValidatorsService,
168 LoginValidatorsService,
169 ResetPasswordValidatorsService,
170 UserValidatorsService,
171 VideoAbuseValidatorsService,
172 VideoChannelValidatorsService,
173 VideoCommentValidatorsService,
174 VideoValidatorsService,
40e87e9e 175 VideoCaptionsValidatorsService,
26b7305a 176 VideoBlacklistValidatorsService,
2d3741d6 177 OverviewService,
74d63469
GR
178 VideoChangeOwnershipValidatorsService,
179 VideoAcceptOwnershipValidatorsService,
af5767ff 180 BlocklistService,
e309822b 181
bbe0f064
C
182 I18nPrimengCalendarService,
183 ScreenService,
184
989e526a 185 I18n
693b1aba
C
186 ]
187})
188export class SharedModule { }