]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - client/src/app/shared/shared-main/shared-main.module.ts
Merge branch 'release/3.3.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-main / shared-main.module.ts
... / ...
CommitLineData
1import { SharedModule as PrimeSharedModule } from 'primeng/api'
2import { ClipboardModule } from '@angular/cdk/clipboard'
3import { CommonModule, DatePipe } from '@angular/common'
4import { HttpClientModule } from '@angular/common/http'
5import { NgModule } from '@angular/core'
6import { FormsModule, ReactiveFormsModule } from '@angular/forms'
7import { RouterModule } from '@angular/router'
8import {
9 NgbButtonsModule,
10 NgbCollapseModule,
11 NgbDropdownModule,
12 NgbModalModule,
13 NgbNavModule,
14 NgbPopoverModule,
15 NgbTooltipModule
16} from '@ng-bootstrap/ng-bootstrap'
17import { LoadingBarModule } from '@ngx-loading-bar/core'
18import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client'
19import { SharedGlobalIconModule } from '../shared-icons'
20import { AccountService } from './account'
21import {
22 AutofocusDirective,
23 BytesPipe,
24 DurationFormatterPipe,
25 FromNowPipe,
26 InfiniteScrollerDirective,
27 LinkComponent,
28 NumberFormatterPipe,
29 PeerTubeTemplateDirective
30} from './angular'
31import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
32import { ActionDropdownComponent, ButtonComponent, DeleteButtonComponent, EditButtonComponent } from './buttons'
33import { CustomPageService } from './custom-page'
34import { DateToggleComponent } from './date'
35import { FeedComponent } from './feeds'
36import { LoaderComponent, SmallLoaderComponent } from './loaders'
37import { HelpComponent, ListOverflowComponent, SimpleSearchInputComponent, TopMenuDropdownComponent } from './misc'
38import { PluginPlaceholderComponent } from './plugins'
39import { ActorRedirectGuard } from './router'
40import { UserHistoryService, UserNotificationsComponent, UserNotificationService, UserQuotaComponent } from './users'
41import { RedundancyService, VideoImportService, VideoOwnershipService, VideoService } from './video'
42import { VideoCaptionService } from './video-caption'
43import { VideoChannelService } from './video-channel'
44
45@NgModule({
46 imports: [
47 CommonModule,
48 FormsModule,
49 ReactiveFormsModule,
50 RouterModule,
51 HttpClientModule,
52
53 LoadingBarHttpClientModule,
54 LoadingBarModule,
55
56 NgbDropdownModule,
57 NgbModalModule,
58 NgbPopoverModule,
59 NgbNavModule,
60 NgbTooltipModule,
61 NgbCollapseModule,
62 NgbButtonsModule,
63
64 ClipboardModule,
65
66 PrimeSharedModule,
67
68 SharedGlobalIconModule
69 ],
70
71 declarations: [
72 FromNowPipe,
73 NumberFormatterPipe,
74 BytesPipe,
75 DurationFormatterPipe,
76 AutofocusDirective,
77
78 InfiniteScrollerDirective,
79 PeerTubeTemplateDirective,
80 LinkComponent,
81
82 ActionDropdownComponent,
83 ButtonComponent,
84 DeleteButtonComponent,
85 EditButtonComponent,
86
87 DateToggleComponent,
88
89 FeedComponent,
90
91 LoaderComponent,
92 SmallLoaderComponent,
93
94 HelpComponent,
95 ListOverflowComponent,
96 TopMenuDropdownComponent,
97 SimpleSearchInputComponent,
98
99 UserQuotaComponent,
100 UserNotificationsComponent,
101
102 PluginPlaceholderComponent
103 ],
104
105 exports: [
106 CommonModule,
107 FormsModule,
108 ReactiveFormsModule,
109 RouterModule,
110 HttpClientModule,
111
112 LoadingBarHttpClientModule,
113 LoadingBarModule,
114
115 NgbDropdownModule,
116 NgbModalModule,
117 NgbPopoverModule,
118 NgbNavModule,
119 NgbTooltipModule,
120 NgbCollapseModule,
121 NgbButtonsModule,
122
123 ClipboardModule,
124
125 PrimeSharedModule,
126
127 FromNowPipe,
128 BytesPipe,
129 NumberFormatterPipe,
130 DurationFormatterPipe,
131 AutofocusDirective,
132
133 InfiniteScrollerDirective,
134 PeerTubeTemplateDirective,
135 LinkComponent,
136
137 ActionDropdownComponent,
138 ButtonComponent,
139 DeleteButtonComponent,
140 EditButtonComponent,
141
142 DateToggleComponent,
143
144 FeedComponent,
145
146 LoaderComponent,
147 SmallLoaderComponent,
148
149 HelpComponent,
150 ListOverflowComponent,
151 TopMenuDropdownComponent,
152 SimpleSearchInputComponent,
153
154 UserQuotaComponent,
155 UserNotificationsComponent,
156
157 PluginPlaceholderComponent
158 ],
159
160 providers: [
161 DatePipe,
162
163 FromNowPipe,
164
165 AUTH_INTERCEPTOR_PROVIDER,
166
167 AccountService,
168
169 UserHistoryService,
170 UserNotificationService,
171
172 RedundancyService,
173 VideoImportService,
174 VideoOwnershipService,
175 VideoService,
176
177 VideoCaptionService,
178
179 VideoChannelService,
180
181 CustomPageService,
182
183 ActorRedirectGuard
184 ]
185})
186export class SharedMainModule { }