X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared.module.ts;h=a5c56cb461e789b3b8aacc49a66756f91e9aa0e7;hb=cfe1efd200f80239e19f94335364ac9ef3813c19;hp=8ffaf964b624391af4c6b971175e0be2c57475c5;hpb=ad42bea3a55ca7937f082cc641764de70ce34bd1;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared.module.ts b/client/src/app/shared/shared.module.ts index 8ffaf964b..a5c56cb46 100644 --- a/client/src/app/shared/shared.module.ts +++ b/client/src/app/shared/shared.module.ts @@ -1,73 +1,92 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { HttpModule } from '@angular/http'; -import { FormsModule, ReactiveFormsModule } from '@angular/forms'; -import { RouterModule } from '@angular/router'; +import { CommonModule } from '@angular/common' +import { HttpClientModule } from '@angular/common/http' +import { NgModule } from '@angular/core' +import { FormsModule, ReactiveFormsModule } from '@angular/forms' +import { RouterModule } from '@angular/router' +import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client' -import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe'; -import { KeysPipe } from 'angular-pipes/src/object/keys.pipe'; -import { BsDropdownModule } from 'ngx-bootstrap/dropdown'; -import { ProgressbarModule } from 'ngx-bootstrap/progressbar'; -import { PaginationModule } from 'ngx-bootstrap/pagination'; -import { ModalModule } from 'ngx-bootstrap/modal'; -import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload'; -import { Ng2SmartTableModule } from 'ng2-smart-table'; +import { BsDropdownModule } from 'ngx-bootstrap/dropdown' +import { ModalModule } from 'ngx-bootstrap/modal' +import { InfiniteScrollModule } from 'ngx-infinite-scroll' +import { BytesPipe, KeysPipe, NgPipesModule } from 'ngx-pipes' +import { SharedModule as PrimeSharedModule } from 'primeng/components/common/shared' -import { AUTH_HTTP_PROVIDERS } from './auth'; -import { RestExtractor, RestService } from './rest'; -import { SearchComponent, SearchService } from './search'; -import { UserService } from './users'; -import { VideoAbuseService } from './video-abuse'; +import { AUTH_INTERCEPTOR_PROVIDER } from './auth' +import { DeleteButtonComponent } from './misc/delete-button.component' +import { EditButtonComponent } from './misc/edit-button.component' +import { FromNowPipe } from './misc/from-now.pipe' +import { LoaderComponent } from './misc/loader.component' +import { NumberFormatterPipe } from './misc/number-formatter.pipe' +import { RestExtractor, RestService } from './rest' +import { UserService } from './users' +import { VideoAbuseService } from './video-abuse' +import { VideoBlacklistService } from './video-blacklist' +import { VideoMiniatureComponent } from './video/video-miniature.component' +import { VideoThumbnailComponent } from './video/video-thumbnail.component' +import { VideoService } from './video/video.service' @NgModule({ imports: [ CommonModule, FormsModule, ReactiveFormsModule, - HttpModule, RouterModule, + HttpClientModule, + + LoadingBarHttpClientModule, BsDropdownModule.forRoot(), ModalModule.forRoot(), - PaginationModule.forRoot(), - ProgressbarModule.forRoot(), - FileUploadModule, - Ng2SmartTableModule + PrimeSharedModule, + InfiniteScrollModule, + NgPipesModule ], declarations: [ - BytesPipe, - KeysPipe, - SearchComponent + LoaderComponent, + VideoThumbnailComponent, + VideoMiniatureComponent, + DeleteButtonComponent, + EditButtonComponent, + NumberFormatterPipe, + FromNowPipe ], exports: [ CommonModule, FormsModule, ReactiveFormsModule, - HttpModule, RouterModule, + HttpClientModule, + + LoadingBarHttpClientModule, BsDropdownModule, - FileUploadModule, ModalModule, - PaginationModule, - ProgressbarModule, - Ng2SmartTableModule, + PrimeSharedModule, + InfiniteScrollModule, BytesPipe, KeysPipe, - SearchComponent + LoaderComponent, + VideoThumbnailComponent, + VideoMiniatureComponent, + DeleteButtonComponent, + EditButtonComponent, + + NumberFormatterPipe, + FromNowPipe ], providers: [ - AUTH_HTTP_PROVIDERS, + AUTH_INTERCEPTOR_PROVIDER, RestExtractor, RestService, - SearchService, VideoAbuseService, - UserService + VideoBlacklistService, + UserService, + VideoService ] }) export class SharedModule { }