]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared.module.ts
Update translations
[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,
d3e56c0c 40 InstanceValidatorsService,
2fbe7f19 41 TextareaAutoResizeDirective,
57c36b27 42 UserValidatorsService,
22a16e36 43 VideoAbuseValidatorsService,
2fbe7f19 44 VideoAcceptOwnershipValidatorsService,
22a16e36 45 VideoBlacklistValidatorsService,
2fbe7f19 46 VideoChangeOwnershipValidatorsService,
57c36b27
C
47 VideoChannelValidatorsService,
48 VideoCommentValidatorsService,
2fbe7f19 49 VideoValidatorsService
e309822b 50} from '@app/shared/forms'
bbe0f064
C
51import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar'
52import { ScreenService } from '@app/shared/misc/screen.service'
40e87e9e
C
53import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service'
54import { VideoCaptionService } from '@app/shared/video-caption'
0f7fedc3 55import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component'
fbad87b0 56import { VideoImportService } from '@app/shared/video-import/video-import.service'
eacb25c4 57import { ActionDropdownComponent } from '@app/shared/buttons/action-dropdown.component'
63347a0f 58import { NgbDropdownModule, NgbModalModule, NgbPopoverModule, NgbTabsetModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap'
2fbe7f19 59import { RemoteSubscribeComponent, SubscribeButtonComponent, UserSubscriptionService } from '@app/shared/user-subscription'
41a676db 60import { InstanceFeaturesTableComponent } from '@app/shared/instance/instance-features-table.component'
2d3741d6 61import { OverviewService } from '@app/shared/overview'
e724fa93
C
62import { UserBanModalComponent } from '@app/shared/moderation'
63import { UserModerationDropdownComponent } from '@app/shared/moderation/user-moderation-dropdown.component'
af5767ff 64import { BlocklistService } from '@app/shared/blocklist'
ddb83e49 65import { TopMenuDropdownComponent } from '@app/shared/menu/top-menu-dropdown.component'
80bfd33c 66import { UserHistoryService } from '@app/shared/users/user-history.service'
2f1548fd
C
67import { UserNotificationService } from '@app/shared/users/user-notification.service'
68import { UserNotificationsComponent } from '@app/shared/users/user-notifications.component'
d3e56c0c 69import { InstanceService } from '@app/shared/instance/instance.service'
693b1aba
C
70
71@NgModule({
72 imports: [
73 CommonModule,
74 FormsModule,
75 ReactiveFormsModule,
693b1aba 76 RouterModule,
d592e0a9 77 HttpClientModule,
693b1aba 78
d77ad726
C
79 NgbDropdownModule,
80 NgbModalModule,
81 NgbPopoverModule,
82 NgbTabsetModule,
83 NgbTooltipModule,
d396a937 84
202f6b6c 85 PrimeSharedModule,
6de36768 86 NgPipesModule
693b1aba
C
87 ],
88
89 declarations: [
9bf9d2a5 90 LoaderComponent,
202f6b6c 91 VideoThumbnailComponent,
b1fa3eba 92 VideoMiniatureComponent,
c199c427 93 FeedComponent,
74d63469 94 ButtonComponent,
cd83ea1b
C
95 DeleteButtonComponent,
96 EditButtonComponent,
eacb25c4 97 ActionDropdownComponent,
9bf9d2a5 98 NumberFormatterPipe,
244e76a5 99 ObjectLengthPipe,
66b16caf 100 FromNowPipe,
0cd4344f 101 MarkdownTextareaComponent,
8a8e02a4 102 InfiniteScrollerDirective,
2fbe7f19 103 TextareaAutoResizeDirective,
40e87e9e 104 HelpComponent,
0f7fedc3 105 ReactiveFileComponent,
22a16e36 106 PeertubeCheckboxComponent,
41a676db 107 SubscribeButtonComponent,
660d11e9 108 RemoteSubscribeComponent,
e724fa93
C
109 InstanceFeaturesTableComponent,
110 UserBanModalComponent,
ddb83e49 111 UserModerationDropdownComponent,
2f1548fd
C
112 TopMenuDropdownComponent,
113 UserNotificationsComponent
693b1aba
C
114 ],
115
116 exports: [
117 CommonModule,
118 FormsModule,
119 ReactiveFormsModule,
693b1aba 120 RouterModule,
d592e0a9 121 HttpClientModule,
693b1aba 122
63347a0f
C
123 NgbDropdownModule,
124 NgbModalModule,
125 NgbPopoverModule,
126 NgbTabsetModule,
127 NgbTooltipModule,
128
d592e0a9 129 PrimeSharedModule,
693b1aba 130 BytesPipe,
99fdec46 131 KeysPipe,
693b1aba 132
9bf9d2a5 133 LoaderComponent,
202f6b6c 134 VideoThumbnailComponent,
b1fa3eba 135 VideoMiniatureComponent,
c199c427 136 FeedComponent,
74d63469 137 ButtonComponent,
cd83ea1b
C
138 DeleteButtonComponent,
139 EditButtonComponent,
eacb25c4 140 ActionDropdownComponent,
66b16caf 141 MarkdownTextareaComponent,
0cd4344f 142 InfiniteScrollerDirective,
2fbe7f19 143 TextareaAutoResizeDirective,
8a8e02a4 144 HelpComponent,
40e87e9e 145 ReactiveFileComponent,
0f7fedc3 146 PeertubeCheckboxComponent,
22a16e36 147 SubscribeButtonComponent,
660d11e9 148 RemoteSubscribeComponent,
41a676db 149 InstanceFeaturesTableComponent,
e724fa93
C
150 UserBanModalComponent,
151 UserModerationDropdownComponent,
ddb83e49 152 TopMenuDropdownComponent,
2f1548fd 153 UserNotificationsComponent,
9bf9d2a5
C
154
155 NumberFormatterPipe,
244e76a5 156 ObjectLengthPipe,
9bf9d2a5 157 FromNowPipe
693b1aba
C
158 ],
159
160 providers: [
d592e0a9 161 AUTH_INTERCEPTOR_PROVIDER,
693b1aba
C
162 RestExtractor,
163 RestService,
e2a2d6c8 164 VideoAbuseService,
35bf0c83 165 VideoBlacklistService,
74d63469 166 VideoOwnershipService,
202f6b6c 167 UserService,
66b16caf 168 VideoService,
0626e7af 169 AccountService,
d3e91a5f 170 MarkdownService,
989e526a 171 VideoChannelService,
40e87e9e 172 VideoCaptionService,
26b7305a 173 VideoImportService,
22a16e36 174 UserSubscriptionService,
e309822b 175
d18d6478 176 FormValidatorService,
e309822b
C
177 CustomConfigValidatorsService,
178 LoginValidatorsService,
179 ResetPasswordValidatorsService,
180 UserValidatorsService,
181 VideoAbuseValidatorsService,
182 VideoChannelValidatorsService,
183 VideoCommentValidatorsService,
184 VideoValidatorsService,
40e87e9e 185 VideoCaptionsValidatorsService,
26b7305a 186 VideoBlacklistValidatorsService,
2d3741d6 187 OverviewService,
74d63469
GR
188 VideoChangeOwnershipValidatorsService,
189 VideoAcceptOwnershipValidatorsService,
d3e56c0c 190 InstanceValidatorsService,
af5767ff 191 BlocklistService,
80bfd33c 192 UserHistoryService,
d3e56c0c 193 InstanceService,
e309822b 194
bbe0f064
C
195 I18nPrimengCalendarService,
196 ScreenService,
197
2f1548fd
C
198 UserNotificationService,
199
989e526a 200 I18n
693b1aba
C
201 ]
202})
203export class SharedModule { }