]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared.module.ts
Correctly fix the webtorrent redundancy bug
[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'
244e76a5 28import { VideoFeedComponent } from './video/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,
57c36b27 40 UserValidatorsService,
22a16e36
C
41 VideoAbuseValidatorsService,
42 VideoBlacklistValidatorsService,
57c36b27
C
43 VideoChannelValidatorsService,
44 VideoCommentValidatorsService,
74d63469
GR
45 VideoValidatorsService,
46 VideoChangeOwnershipValidatorsService, VideoAcceptOwnershipValidatorsService
e309822b 47} from '@app/shared/forms'
bbe0f064
C
48import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar'
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'
63347a0f 55import { NgbDropdownModule, NgbModalModule, NgbPopoverModule, NgbTabsetModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap'
660d11e9 56import { SubscribeButtonComponent, RemoteSubscribeComponent, UserSubscriptionService } from '@app/shared/user-subscription'
41a676db 57import { InstanceFeaturesTableComponent } from '@app/shared/instance/instance-features-table.component'
2d3741d6 58import { OverviewService } from '@app/shared/overview'
693b1aba
C
59
60@NgModule({
61 imports: [
62 CommonModule,
63 FormsModule,
64 ReactiveFormsModule,
693b1aba 65 RouterModule,
d592e0a9 66 HttpClientModule,
693b1aba 67
d77ad726
C
68 NgbDropdownModule,
69 NgbModalModule,
70 NgbPopoverModule,
71 NgbTabsetModule,
72 NgbTooltipModule,
d396a937 73
202f6b6c 74 PrimeSharedModule,
6de36768 75 NgPipesModule
693b1aba
C
76 ],
77
78 declarations: [
9bf9d2a5 79 LoaderComponent,
202f6b6c 80 VideoThumbnailComponent,
b1fa3eba 81 VideoMiniatureComponent,
244e76a5 82 VideoFeedComponent,
74d63469 83 ButtonComponent,
cd83ea1b
C
84 DeleteButtonComponent,
85 EditButtonComponent,
eacb25c4 86 ActionDropdownComponent,
9bf9d2a5 87 NumberFormatterPipe,
244e76a5 88 ObjectLengthPipe,
66b16caf 89 FromNowPipe,
0cd4344f 90 MarkdownTextareaComponent,
8a8e02a4 91 InfiniteScrollerDirective,
40e87e9e 92 HelpComponent,
0f7fedc3 93 ReactiveFileComponent,
22a16e36 94 PeertubeCheckboxComponent,
41a676db 95 SubscribeButtonComponent,
660d11e9 96 RemoteSubscribeComponent,
41a676db 97 InstanceFeaturesTableComponent
693b1aba
C
98 ],
99
100 exports: [
101 CommonModule,
102 FormsModule,
103 ReactiveFormsModule,
693b1aba 104 RouterModule,
d592e0a9 105 HttpClientModule,
693b1aba 106
63347a0f
C
107 NgbDropdownModule,
108 NgbModalModule,
109 NgbPopoverModule,
110 NgbTabsetModule,
111 NgbTooltipModule,
112
d592e0a9 113 PrimeSharedModule,
693b1aba 114 BytesPipe,
99fdec46 115 KeysPipe,
693b1aba 116
9bf9d2a5 117 LoaderComponent,
202f6b6c 118 VideoThumbnailComponent,
b1fa3eba 119 VideoMiniatureComponent,
244e76a5 120 VideoFeedComponent,
74d63469 121 ButtonComponent,
cd83ea1b
C
122 DeleteButtonComponent,
123 EditButtonComponent,
eacb25c4 124 ActionDropdownComponent,
66b16caf 125 MarkdownTextareaComponent,
0cd4344f 126 InfiniteScrollerDirective,
8a8e02a4 127 HelpComponent,
40e87e9e 128 ReactiveFileComponent,
0f7fedc3 129 PeertubeCheckboxComponent,
22a16e36 130 SubscribeButtonComponent,
660d11e9 131 RemoteSubscribeComponent,
41a676db 132 InstanceFeaturesTableComponent,
9bf9d2a5
C
133
134 NumberFormatterPipe,
244e76a5 135 ObjectLengthPipe,
9bf9d2a5 136 FromNowPipe
693b1aba
C
137 ],
138
139 providers: [
d592e0a9 140 AUTH_INTERCEPTOR_PROVIDER,
693b1aba
C
141 RestExtractor,
142 RestService,
e2a2d6c8 143 VideoAbuseService,
35bf0c83 144 VideoBlacklistService,
74d63469 145 VideoOwnershipService,
202f6b6c 146 UserService,
66b16caf 147 VideoService,
0626e7af 148 AccountService,
d3e91a5f 149 MarkdownService,
989e526a 150 VideoChannelService,
40e87e9e 151 VideoCaptionService,
26b7305a 152 VideoImportService,
22a16e36 153 UserSubscriptionService,
e309822b 154
d18d6478 155 FormValidatorService,
e309822b
C
156 CustomConfigValidatorsService,
157 LoginValidatorsService,
158 ResetPasswordValidatorsService,
159 UserValidatorsService,
160 VideoAbuseValidatorsService,
161 VideoChannelValidatorsService,
162 VideoCommentValidatorsService,
163 VideoValidatorsService,
40e87e9e 164 VideoCaptionsValidatorsService,
26b7305a 165 VideoBlacklistValidatorsService,
2d3741d6 166 OverviewService,
74d63469
GR
167 VideoChangeOwnershipValidatorsService,
168 VideoAcceptOwnershipValidatorsService,
e309822b 169
bbe0f064
C
170 I18nPrimengCalendarService,
171 ScreenService,
172
989e526a 173 I18n
693b1aba
C
174 ]
175})
176export class SharedModule { }