]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared.module.ts
Refactor ellipsis CSS
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared.module.ts
1 import { CommonModule } from '@angular/common'
2 import { HttpClientModule } from '@angular/common/http'
3 import { NgModule } from '@angular/core'
4 import { FormsModule, ReactiveFormsModule } from '@angular/forms'
5 import { RouterModule } from '@angular/router'
6 import { MarkdownTextareaComponent } from '@app/shared/forms/markdown-textarea.component'
7 import { HelpComponent } from '@app/shared/misc/help.component'
8 import { InfiniteScrollerDirective } from '@app/shared/video/infinite-scroller.directive'
9
10 import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes'
11 import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared'
12
13 import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
14 import { ButtonComponent } from './buttons/button.component'
15 import { DeleteButtonComponent } from './buttons/delete-button.component'
16 import { EditButtonComponent } from './buttons/edit-button.component'
17 import { FromNowPipe } from './misc/from-now.pipe'
18 import { LoaderComponent } from './misc/loader.component'
19 import { NumberFormatterPipe } from './misc/number-formatter.pipe'
20 import { ObjectLengthPipe } from './misc/object-length.pipe'
21 import { RestExtractor, RestService } from './rest'
22 import { UserService } from './users'
23 import { VideoAbuseService } from './video-abuse'
24 import { VideoBlacklistService } from './video-blacklist'
25 import { VideoOwnershipService } from './video-ownership'
26 import { VideoMiniatureComponent } from './video/video-miniature.component'
27 import { FeedComponent } from './video/feed.component'
28 import { VideoThumbnailComponent } from './video/video-thumbnail.component'
29 import { VideoService } from './video/video.service'
30 import { AccountService } from '@app/shared/account/account.service'
31 import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
32 import { I18n } from '@ngx-translate/i18n-polyfill'
33 import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
34 import {
35 CustomConfigValidatorsService,
36 InstanceValidatorsService,
37 LoginValidatorsService,
38 ReactiveFileComponent,
39 ResetPasswordValidatorsService,
40 TextareaAutoResizeDirective,
41 UserValidatorsService,
42 VideoAbuseValidatorsService,
43 VideoAcceptOwnershipValidatorsService,
44 VideoBlacklistValidatorsService,
45 VideoChangeOwnershipValidatorsService,
46 VideoChannelValidatorsService,
47 VideoCommentValidatorsService,
48 VideoValidatorsService
49 } from '@app/shared/forms'
50 import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar'
51 import { ScreenService } from '@app/shared/misc/screen.service'
52 import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service'
53 import { VideoCaptionService } from '@app/shared/video-caption'
54 import { PeertubeCheckboxComponent } from '@app/shared/forms/peertube-checkbox.component'
55 import { VideoImportService } from '@app/shared/video-import/video-import.service'
56 import { ActionDropdownComponent } from '@app/shared/buttons/action-dropdown.component'
57 import { NgbDropdownModule, NgbModalModule, NgbPopoverModule, NgbTabsetModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap'
58 import { RemoteSubscribeComponent, SubscribeButtonComponent, UserSubscriptionService } from '@app/shared/user-subscription'
59 import { InstanceFeaturesTableComponent } from '@app/shared/instance/instance-features-table.component'
60 import { OverviewService } from '@app/shared/overview'
61 import { UserBanModalComponent } from '@app/shared/moderation'
62 import { UserModerationDropdownComponent } from '@app/shared/moderation/user-moderation-dropdown.component'
63 import { BlocklistService } from '@app/shared/blocklist'
64 import { TopMenuDropdownComponent } from '@app/shared/menu/top-menu-dropdown.component'
65 import { UserHistoryService } from '@app/shared/users/user-history.service'
66 import { UserNotificationService } from '@app/shared/users/user-notification.service'
67 import { UserNotificationsComponent } from '@app/shared/users/user-notifications.component'
68 import { InstanceService } from '@app/shared/instance/instance.service'
69 import { HtmlRendererService, LinkifierService, MarkdownService } from '@app/shared/renderer'
70 import { ConfirmComponent } from '@app/shared/confirm/confirm.component'
71 import { GlobalIconComponent } from '@app/shared/icons/global-icon.component'
72 import { SmallLoaderComponent } from '@app/shared/misc/small-loader.component'
73
74 @NgModule({
75 imports: [
76 CommonModule,
77 FormsModule,
78 ReactiveFormsModule,
79 RouterModule,
80 HttpClientModule,
81
82 NgbDropdownModule,
83 NgbModalModule,
84 NgbPopoverModule,
85 NgbTabsetModule,
86 NgbTooltipModule,
87
88 PrimeSharedModule,
89 NgPipesModule
90 ],
91
92 declarations: [
93 LoaderComponent,
94 SmallLoaderComponent,
95 VideoThumbnailComponent,
96 VideoMiniatureComponent,
97 FeedComponent,
98 ButtonComponent,
99 DeleteButtonComponent,
100 EditButtonComponent,
101 ActionDropdownComponent,
102 NumberFormatterPipe,
103 ObjectLengthPipe,
104 FromNowPipe,
105 MarkdownTextareaComponent,
106 InfiniteScrollerDirective,
107 TextareaAutoResizeDirective,
108 HelpComponent,
109 ReactiveFileComponent,
110 PeertubeCheckboxComponent,
111 SubscribeButtonComponent,
112 RemoteSubscribeComponent,
113 InstanceFeaturesTableComponent,
114 UserBanModalComponent,
115 UserModerationDropdownComponent,
116 TopMenuDropdownComponent,
117 UserNotificationsComponent,
118 ConfirmComponent,
119 GlobalIconComponent
120 ],
121
122 exports: [
123 CommonModule,
124 FormsModule,
125 ReactiveFormsModule,
126 RouterModule,
127 HttpClientModule,
128
129 NgbDropdownModule,
130 NgbModalModule,
131 NgbPopoverModule,
132 NgbTabsetModule,
133 NgbTooltipModule,
134
135 PrimeSharedModule,
136 BytesPipe,
137 KeysPipe,
138
139 LoaderComponent,
140 SmallLoaderComponent,
141 VideoThumbnailComponent,
142 VideoMiniatureComponent,
143 FeedComponent,
144 ButtonComponent,
145 DeleteButtonComponent,
146 EditButtonComponent,
147 ActionDropdownComponent,
148 MarkdownTextareaComponent,
149 InfiniteScrollerDirective,
150 TextareaAutoResizeDirective,
151 HelpComponent,
152 ReactiveFileComponent,
153 PeertubeCheckboxComponent,
154 SubscribeButtonComponent,
155 RemoteSubscribeComponent,
156 InstanceFeaturesTableComponent,
157 UserBanModalComponent,
158 UserModerationDropdownComponent,
159 TopMenuDropdownComponent,
160 UserNotificationsComponent,
161 ConfirmComponent,
162 GlobalIconComponent,
163
164 NumberFormatterPipe,
165 ObjectLengthPipe,
166 FromNowPipe
167 ],
168
169 providers: [
170 AUTH_INTERCEPTOR_PROVIDER,
171 RestExtractor,
172 RestService,
173 VideoAbuseService,
174 VideoBlacklistService,
175 VideoOwnershipService,
176 UserService,
177 VideoService,
178 AccountService,
179 VideoChannelService,
180 VideoCaptionService,
181 VideoImportService,
182 UserSubscriptionService,
183
184 FormValidatorService,
185 CustomConfigValidatorsService,
186 LoginValidatorsService,
187 ResetPasswordValidatorsService,
188 UserValidatorsService,
189 VideoAbuseValidatorsService,
190 VideoChannelValidatorsService,
191 VideoCommentValidatorsService,
192 VideoValidatorsService,
193 VideoCaptionsValidatorsService,
194 VideoBlacklistValidatorsService,
195 OverviewService,
196 VideoChangeOwnershipValidatorsService,
197 VideoAcceptOwnershipValidatorsService,
198 InstanceValidatorsService,
199 BlocklistService,
200 UserHistoryService,
201 InstanceService,
202
203 MarkdownService,
204 LinkifierService,
205 HtmlRendererService,
206
207 I18nPrimengCalendarService,
208 ScreenService,
209
210 UserNotificationService,
211
212 I18n
213 ]
214 })
215 export class SharedModule { }