]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - client/src/app/shared/shared.module.ts
Fix http token interceptor
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared.module.ts
... / ...
CommitLineData
1import { CommonModule } from '@angular/common'
2import { HttpClientModule } from '@angular/common/http'
3import { NgModule } from '@angular/core'
4import { FormsModule, ReactiveFormsModule } from '@angular/forms'
5import { RouterModule } from '@angular/router'
6import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client'
7
8import { BsDropdownModule } from 'ngx-bootstrap/dropdown'
9import { ModalModule } from 'ngx-bootstrap/modal'
10import { InfiniteScrollModule } from 'ngx-infinite-scroll'
11import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes'
12import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared'
13
14import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
15import { DeleteButtonComponent } from './misc/delete-button.component'
16import { EditButtonComponent } from './misc/edit-button.component'
17import { FromNowPipe } from './misc/from-now.pipe'
18import { LoaderComponent } from './misc/loader.component'
19import { NumberFormatterPipe } from './misc/number-formatter.pipe'
20import { RestExtractor, RestService } from './rest'
21import { UserService } from './users'
22import { VideoAbuseService } from './video-abuse'
23import { VideoBlacklistService } from './video-blacklist'
24import { VideoMiniatureComponent } from './video/video-miniature.component'
25import { VideoThumbnailComponent } from './video/video-thumbnail.component'
26import { VideoService } from './video/video.service'
27
28@NgModule({
29 imports: [
30 CommonModule,
31 FormsModule,
32 ReactiveFormsModule,
33 RouterModule,
34 HttpClientModule,
35
36 LoadingBarHttpClientModule,
37
38 BsDropdownModule.forRoot(),
39 ModalModule.forRoot(),
40
41 PrimeSharedModule,
42 InfiniteScrollModule,
43 NgPipesModule
44 ],
45
46 declarations: [
47 LoaderComponent,
48 VideoThumbnailComponent,
49 VideoMiniatureComponent,
50 DeleteButtonComponent,
51 EditButtonComponent,
52 NumberFormatterPipe,
53 FromNowPipe
54 ],
55
56 exports: [
57 CommonModule,
58 FormsModule,
59 ReactiveFormsModule,
60 RouterModule,
61 HttpClientModule,
62
63 LoadingBarHttpClientModule,
64
65 BsDropdownModule,
66 ModalModule,
67 PrimeSharedModule,
68 InfiniteScrollModule,
69 BytesPipe,
70 KeysPipe,
71
72 LoaderComponent,
73 VideoThumbnailComponent,
74 VideoMiniatureComponent,
75 DeleteButtonComponent,
76 EditButtonComponent,
77
78 NumberFormatterPipe,
79 FromNowPipe
80 ],
81
82 providers: [
83 AUTH_INTERCEPTOR_PROVIDER,
84 RestExtractor,
85 RestService,
86 VideoAbuseService,
87 VideoBlacklistService,
88 UserService,
89 VideoService
90 ]
91})
92export class SharedModule { }