aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared.module.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared.module.ts')
-rw-r--r--client/src/app/shared/shared.module.ts79
1 files changed, 72 insertions, 7 deletions
diff --git a/client/src/app/shared/shared.module.ts b/client/src/app/shared/shared.module.ts
index 6f8625c7e..ded65653f 100644
--- a/client/src/app/shared/shared.module.ts
+++ b/client/src/app/shared/shared.module.ts
@@ -14,10 +14,7 @@ import { AUTH_INTERCEPTOR_PROVIDER } from './auth'
14import { ButtonComponent } from './buttons/button.component' 14import { ButtonComponent } from './buttons/button.component'
15import { DeleteButtonComponent } from './buttons/delete-button.component' 15import { DeleteButtonComponent } from './buttons/delete-button.component'
16import { EditButtonComponent } from './buttons/edit-button.component' 16import { EditButtonComponent } from './buttons/edit-button.component'
17import { FromNowPipe } from './misc/from-now.pipe'
18import { LoaderComponent } from './misc/loader.component' 17import { LoaderComponent } from './misc/loader.component'
19import { NumberFormatterPipe } from './misc/number-formatter.pipe'
20import { ObjectLengthPipe } from './misc/object-length.pipe'
21import { RestExtractor, RestService } from './rest' 18import { RestExtractor, RestService } from './rest'
22import { UserService } from './users' 19import { UserService } from './users'
23import { VideoAbuseService } from './video-abuse' 20import { VideoAbuseService } from './video-abuse'
@@ -45,9 +42,11 @@ import {
45 VideoChangeOwnershipValidatorsService, 42 VideoChangeOwnershipValidatorsService,
46 VideoChannelValidatorsService, 43 VideoChannelValidatorsService,
47 VideoCommentValidatorsService, 44 VideoCommentValidatorsService,
45 VideoPlaylistValidatorsService,
48 VideoValidatorsService 46 VideoValidatorsService
49} from '@app/shared/forms' 47} from '@app/shared/forms'
50import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar' 48import { I18nPrimengCalendarService } from '@app/shared/i18n/i18n-primeng-calendar'
49import { InputMaskModule } from 'primeng/inputmask'
51import { ScreenService } from '@app/shared/misc/screen.service' 50import { ScreenService } from '@app/shared/misc/screen.service'
52import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service' 51import { VideoCaptionsValidatorsService } from '@app/shared/forms/form-validators/video-captions-validators.service'
53import { VideoCaptionService } from '@app/shared/video-caption' 52import { VideoCaptionService } from '@app/shared/video-caption'
@@ -68,7 +67,24 @@ import { UserNotificationsComponent } from '@app/shared/users/user-notifications
68import { InstanceService } from '@app/shared/instance/instance.service' 67import { InstanceService } from '@app/shared/instance/instance.service'
69import { HtmlRendererService, LinkifierService, MarkdownService } from '@app/shared/renderer' 68import { HtmlRendererService, LinkifierService, MarkdownService } from '@app/shared/renderer'
70import { ConfirmComponent } from '@app/shared/confirm/confirm.component' 69import { ConfirmComponent } from '@app/shared/confirm/confirm.component'
71import { GlobalIconComponent } from '@app/shared/icons/global-icon.component' 70import { SmallLoaderComponent } from '@app/shared/misc/small-loader.component'
71import { VideoPlaylistService } from '@app/shared/video-playlist/video-playlist.service'
72import { ImageUploadComponent } from '@app/shared/images/image-upload.component'
73import { GlobalIconComponent } from '@app/shared/images/global-icon.component'
74import { VideoPlaylistMiniatureComponent } from '@app/shared/video-playlist/video-playlist-miniature.component'
75import { VideoAddToPlaylistComponent } from '@app/shared/video-playlist/video-add-to-playlist.component'
76import { TimestampInputComponent } from '@app/shared/forms/timestamp-input.component'
77import { VideoPlaylistElementMiniatureComponent } from '@app/shared/video-playlist/video-playlist-element-miniature.component'
78import { VideosSelectionComponent } from '@app/shared/video/videos-selection.component'
79import { NumberFormatterPipe } from '@app/shared/angular/number-formatter.pipe'
80import { ObjectLengthPipe } from '@app/shared/angular/object-length.pipe'
81import { FromNowPipe } from '@app/shared/angular/from-now.pipe'
82import { PeerTubeTemplateDirective } from '@app/shared/angular/peertube-template.directive'
83import { VideoActionsDropdownComponent } from '@app/shared/video/video-actions-dropdown.component'
84import { VideoBlacklistComponent } from '@app/shared/video/modals/video-blacklist.component'
85import { VideoDownloadComponent } from '@app/shared/video/modals/video-download.component'
86import { VideoReportComponent } from '@app/shared/video/modals/video-report.component'
87import { ClipboardModule } from 'ngx-clipboard'
72 88
73@NgModule({ 89@NgModule({
74 imports: [ 90 imports: [
@@ -84,28 +100,50 @@ import { GlobalIconComponent } from '@app/shared/icons/global-icon.component'
84 NgbTabsetModule, 100 NgbTabsetModule,
85 NgbTooltipModule, 101 NgbTooltipModule,
86 102
103 ClipboardModule,
104
87 PrimeSharedModule, 105 PrimeSharedModule,
106 InputMaskModule,
88 NgPipesModule 107 NgPipesModule
89 ], 108 ],
90 109
91 declarations: [ 110 declarations: [
92 LoaderComponent, 111 LoaderComponent,
112 SmallLoaderComponent,
113
93 VideoThumbnailComponent, 114 VideoThumbnailComponent,
94 VideoMiniatureComponent, 115 VideoMiniatureComponent,
116 VideoPlaylistMiniatureComponent,
117 VideoAddToPlaylistComponent,
118 VideoPlaylistElementMiniatureComponent,
119 VideosSelectionComponent,
120 VideoActionsDropdownComponent,
121
122 VideoDownloadComponent,
123 VideoReportComponent,
124 VideoBlacklistComponent,
125
95 FeedComponent, 126 FeedComponent,
127
96 ButtonComponent, 128 ButtonComponent,
97 DeleteButtonComponent, 129 DeleteButtonComponent,
98 EditButtonComponent, 130 EditButtonComponent,
99 ActionDropdownComponent, 131
100 NumberFormatterPipe, 132 NumberFormatterPipe,
101 ObjectLengthPipe, 133 ObjectLengthPipe,
102 FromNowPipe, 134 FromNowPipe,
135 PeerTubeTemplateDirective,
136
137 ActionDropdownComponent,
103 MarkdownTextareaComponent, 138 MarkdownTextareaComponent,
104 InfiniteScrollerDirective, 139 InfiniteScrollerDirective,
105 TextareaAutoResizeDirective, 140 TextareaAutoResizeDirective,
106 HelpComponent, 141 HelpComponent,
142
107 ReactiveFileComponent, 143 ReactiveFileComponent,
108 PeertubeCheckboxComponent, 144 PeertubeCheckboxComponent,
145 TimestampInputComponent,
146
109 SubscribeButtonComponent, 147 SubscribeButtonComponent,
110 RemoteSubscribeComponent, 148 RemoteSubscribeComponent,
111 InstanceFeaturesTableComponent, 149 InstanceFeaturesTableComponent,
@@ -114,7 +152,9 @@ import { GlobalIconComponent } from '@app/shared/icons/global-icon.component'
114 TopMenuDropdownComponent, 152 TopMenuDropdownComponent,
115 UserNotificationsComponent, 153 UserNotificationsComponent,
116 ConfirmComponent, 154 ConfirmComponent,
117 GlobalIconComponent 155
156 GlobalIconComponent,
157 ImageUploadComponent
118 ], 158 ],
119 159
120 exports: [ 160 exports: [
@@ -130,24 +170,44 @@ import { GlobalIconComponent } from '@app/shared/icons/global-icon.component'
130 NgbTabsetModule, 170 NgbTabsetModule,
131 NgbTooltipModule, 171 NgbTooltipModule,
132 172
173 ClipboardModule,
174
133 PrimeSharedModule, 175 PrimeSharedModule,
176 InputMaskModule,
134 BytesPipe, 177 BytesPipe,
135 KeysPipe, 178 KeysPipe,
136 179
137 LoaderComponent, 180 LoaderComponent,
181 SmallLoaderComponent,
182
138 VideoThumbnailComponent, 183 VideoThumbnailComponent,
139 VideoMiniatureComponent, 184 VideoMiniatureComponent,
185 VideoPlaylistMiniatureComponent,
186 VideoAddToPlaylistComponent,
187 VideoPlaylistElementMiniatureComponent,
188 VideosSelectionComponent,
189 VideoActionsDropdownComponent,
190
191 VideoDownloadComponent,
192 VideoReportComponent,
193 VideoBlacklistComponent,
194
140 FeedComponent, 195 FeedComponent,
196
141 ButtonComponent, 197 ButtonComponent,
142 DeleteButtonComponent, 198 DeleteButtonComponent,
143 EditButtonComponent, 199 EditButtonComponent,
200
144 ActionDropdownComponent, 201 ActionDropdownComponent,
145 MarkdownTextareaComponent, 202 MarkdownTextareaComponent,
146 InfiniteScrollerDirective, 203 InfiniteScrollerDirective,
147 TextareaAutoResizeDirective, 204 TextareaAutoResizeDirective,
148 HelpComponent, 205 HelpComponent,
206
149 ReactiveFileComponent, 207 ReactiveFileComponent,
150 PeertubeCheckboxComponent, 208 PeertubeCheckboxComponent,
209 TimestampInputComponent,
210
151 SubscribeButtonComponent, 211 SubscribeButtonComponent,
152 RemoteSubscribeComponent, 212 RemoteSubscribeComponent,
153 InstanceFeaturesTableComponent, 213 InstanceFeaturesTableComponent,
@@ -156,11 +216,14 @@ import { GlobalIconComponent } from '@app/shared/icons/global-icon.component'
156 TopMenuDropdownComponent, 216 TopMenuDropdownComponent,
157 UserNotificationsComponent, 217 UserNotificationsComponent,
158 ConfirmComponent, 218 ConfirmComponent,
219
159 GlobalIconComponent, 220 GlobalIconComponent,
221 ImageUploadComponent,
160 222
161 NumberFormatterPipe, 223 NumberFormatterPipe,
162 ObjectLengthPipe, 224 ObjectLengthPipe,
163 FromNowPipe 225 FromNowPipe,
226 PeerTubeTemplateDirective
164 ], 227 ],
165 228
166 providers: [ 229 providers: [
@@ -174,6 +237,7 @@ import { GlobalIconComponent } from '@app/shared/icons/global-icon.component'
174 VideoService, 237 VideoService,
175 AccountService, 238 AccountService,
176 VideoChannelService, 239 VideoChannelService,
240 VideoPlaylistService,
177 VideoCaptionService, 241 VideoCaptionService,
178 VideoImportService, 242 VideoImportService,
179 UserSubscriptionService, 243 UserSubscriptionService,
@@ -183,6 +247,7 @@ import { GlobalIconComponent } from '@app/shared/icons/global-icon.component'
183 LoginValidatorsService, 247 LoginValidatorsService,
184 ResetPasswordValidatorsService, 248 ResetPasswordValidatorsService,
185 UserValidatorsService, 249 UserValidatorsService,
250 VideoPlaylistValidatorsService,
186 VideoAbuseValidatorsService, 251 VideoAbuseValidatorsService,
187 VideoChannelValidatorsService, 252 VideoChannelValidatorsService,
188 VideoCommentValidatorsService, 253 VideoCommentValidatorsService,