]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared.module.ts
Translate subtitle langs in player
[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'
eacb25c4
C
15import { DeleteButtonComponent } from './buttons/delete-button.component'
16import { EditButtonComponent } from './buttons/edit-button.component'
2bbb3412 17import { FromNowPipe } from './misc/from-now.pipe'
9bf9d2a5 18import { LoaderComponent } from './misc/loader.component'
2bbb3412 19import { NumberFormatterPipe } from './misc/number-formatter.pipe'
244e76a5 20import { ObjectLengthPipe } from './misc/object-length.pipe'
df98563e 21import { RestExtractor, RestService } from './rest'
df98563e
C
22import { UserService } from './users'
23import { VideoAbuseService } from './video-abuse'
35bf0c83 24import { VideoBlacklistService } from './video-blacklist'
b1fa3eba 25import { VideoMiniatureComponent } from './video/video-miniature.component'
244e76a5 26import { VideoFeedComponent } from './video/video-feed.component'
202f6b6c
C
27import { VideoThumbnailComponent } from './video/video-thumbnail.component'
28import { VideoService } from './video/video.service'
0626e7af 29import { AccountService } from '@app/shared/account/account.service'
d3e91a5f 30import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
989e526a 31import { I18n } from '@ngx-translate/i18n-polyfill'
d18d6478 32import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
e309822b
C
33import {
34 CustomConfigValidatorsService,
57c36b27
C
35 LoginValidatorsService,
36 ReactiveFileComponent,
e309822b 37 ResetPasswordValidatorsService,
57c36b27 38 UserValidatorsService,
26b7305a 39 VideoAbuseValidatorsService, VideoBlacklistValidatorsService,
57c36b27
C
40 VideoChannelValidatorsService,
41 VideoCommentValidatorsService,
42 VideoValidatorsService
e309822b 43} from '@app/shared/forms'
bbe0f064
C
44import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar'
45import { ScreenService } from '@app/shared/misc/screen.service'
40e87e9e
C
46import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service'
47import { VideoCaptionService } from '@app/shared/video-caption'
0f7fedc3 48import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component'
fbad87b0 49import { VideoImportService } from '@app/shared/video-import/video-import.service'
eacb25c4 50import { ActionDropdownComponent } from '@app/shared/buttons/action-dropdown.component'
63347a0f 51import { NgbDropdownModule, NgbModalModule, NgbPopoverModule, NgbTabsetModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap'
693b1aba
C
52
53@NgModule({
54 imports: [
55 CommonModule,
56 FormsModule,
57 ReactiveFormsModule,
693b1aba 58 RouterModule,
d592e0a9 59 HttpClientModule,
693b1aba 60
63347a0f
C
61 NgbDropdownModule.forRoot(),
62 NgbModalModule.forRoot(),
63 NgbPopoverModule.forRoot(),
64 NgbTabsetModule.forRoot(),
65 NgbTooltipModule.forRoot(),
d396a937 66
202f6b6c 67 PrimeSharedModule,
6de36768 68 NgPipesModule
693b1aba
C
69 ],
70
71 declarations: [
9bf9d2a5 72 LoaderComponent,
202f6b6c 73 VideoThumbnailComponent,
b1fa3eba 74 VideoMiniatureComponent,
244e76a5 75 VideoFeedComponent,
cd83ea1b
C
76 DeleteButtonComponent,
77 EditButtonComponent,
eacb25c4 78 ActionDropdownComponent,
9bf9d2a5 79 NumberFormatterPipe,
244e76a5 80 ObjectLengthPipe,
66b16caf 81 FromNowPipe,
0cd4344f 82 MarkdownTextareaComponent,
8a8e02a4 83 InfiniteScrollerDirective,
40e87e9e 84 HelpComponent,
0f7fedc3
C
85 ReactiveFileComponent,
86 PeertubeCheckboxComponent
693b1aba
C
87 ],
88
89 exports: [
90 CommonModule,
91 FormsModule,
92 ReactiveFormsModule,
693b1aba 93 RouterModule,
d592e0a9 94 HttpClientModule,
693b1aba 95
63347a0f
C
96 NgbDropdownModule,
97 NgbModalModule,
98 NgbPopoverModule,
99 NgbTabsetModule,
100 NgbTooltipModule,
101
d592e0a9 102 PrimeSharedModule,
693b1aba 103 BytesPipe,
99fdec46 104 KeysPipe,
693b1aba 105
9bf9d2a5 106 LoaderComponent,
202f6b6c 107 VideoThumbnailComponent,
b1fa3eba 108 VideoMiniatureComponent,
244e76a5 109 VideoFeedComponent,
cd83ea1b
C
110 DeleteButtonComponent,
111 EditButtonComponent,
eacb25c4 112 ActionDropdownComponent,
66b16caf 113 MarkdownTextareaComponent,
0cd4344f 114 InfiniteScrollerDirective,
8a8e02a4 115 HelpComponent,
40e87e9e 116 ReactiveFileComponent,
0f7fedc3 117 PeertubeCheckboxComponent,
9bf9d2a5
C
118
119 NumberFormatterPipe,
244e76a5 120 ObjectLengthPipe,
9bf9d2a5 121 FromNowPipe
693b1aba
C
122 ],
123
124 providers: [
d592e0a9 125 AUTH_INTERCEPTOR_PROVIDER,
693b1aba
C
126 RestExtractor,
127 RestService,
e2a2d6c8 128 VideoAbuseService,
35bf0c83 129 VideoBlacklistService,
202f6b6c 130 UserService,
66b16caf 131 VideoService,
0626e7af 132 AccountService,
d3e91a5f 133 MarkdownService,
989e526a 134 VideoChannelService,
40e87e9e 135 VideoCaptionService,
26b7305a 136 VideoImportService,
e309822b 137
d18d6478 138 FormValidatorService,
e309822b
C
139 CustomConfigValidatorsService,
140 LoginValidatorsService,
141 ResetPasswordValidatorsService,
142 UserValidatorsService,
143 VideoAbuseValidatorsService,
144 VideoChannelValidatorsService,
145 VideoCommentValidatorsService,
146 VideoValidatorsService,
40e87e9e 147 VideoCaptionsValidatorsService,
26b7305a 148 VideoBlacklistValidatorsService,
e309822b 149
bbe0f064
C
150 I18nPrimengCalendarService,
151 ScreenService,
152
989e526a 153 I18n
693b1aba
C
154 ]
155})
156export class SharedModule { }