Refactor: Separated "Other Videos" section into a dedicated component/service (#969)
[oweals/peertube.git] / client / src / app / videos / +video-watch / video-watch.module.ts
1 import { NgModule } from '@angular/core'
2 import { LinkifierService } from '@app/videos/+video-watch/comment/linkifier.service'
3 import { VideoSupportComponent } from '@app/videos/+video-watch/modal/video-support.component'
4 import { ClipboardModule } from 'ngx-clipboard'
5 import { SharedModule } from '../../shared'
6 import { MarkdownService } from '../shared'
7 import { VideoCommentAddComponent } from './comment/video-comment-add.component'
8 import { VideoCommentComponent } from './comment/video-comment.component'
9 import { VideoCommentService } from './comment/video-comment.service'
10 import { VideoCommentsComponent } from './comment/video-comments.component'
11 import { VideoDownloadComponent } from './modal/video-download.component'
12 import { VideoReportComponent } from './modal/video-report.component'
13 import { VideoShareComponent } from './modal/video-share.component'
14 import { VideoWatchRoutingModule } from './video-watch-routing.module'
15 import { VideoWatchComponent } from './video-watch.component'
16 import { NgxQRCodeModule } from 'ngx-qrcode2'
17 import { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap'
18 import { VideoBlacklistComponent } from '@app/videos/+video-watch/modal/video-blacklist.component'
19 import { RecommendationsModule } from '@app/videos/recommendations/recommendations.module'
20 import { TextareaAutosizeModule } from 'ngx-textarea-autosize'
21
22 @NgModule({
23   imports: [
24     VideoWatchRoutingModule,
25     SharedModule,
26     ClipboardModule,
27     NgbTooltipModule,
28     NgxQRCodeModule,
29     TextareaAutosizeModule,
30     RecommendationsModule
31   ],
32
33   declarations: [
34     VideoWatchComponent,
35
36     VideoDownloadComponent,
37     VideoShareComponent,
38     VideoReportComponent,
39     VideoBlacklistComponent,
40     VideoSupportComponent,
41     VideoCommentsComponent,
42     VideoCommentAddComponent,
43     VideoCommentComponent
44   ],
45
46   exports: [
47     VideoWatchComponent
48   ],
49
50   providers: [
51     MarkdownService,
52     LinkifierService,
53     VideoCommentService
54   ]
55 })
56 export class VideoWatchModule { }