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