ActivityPub-federated video streaming platform using P2P directly in your web browser
Lazy load all routes
Chocobozzz1942f11d5ee6
diff --git a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-details.component.ts b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-details.component.tsindex 9aa70288dd..5db2887fa8 100644--- a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-details.component.ts+++ b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-details.component.ts@@ -3,6 +3,7 @@ import { Actor } from '@app/shared/shared-main'import { I18n } from '@ngx-translate/i18n-polyfill'import { VideoAbusePredefinedReasonsString } from '../../../../../../shared/models/videos/abuse/video-abuse-reason.model'import { ProcessedVideoAbuse } from './video-abuse-list.component'+import { durationToString } from '@app/helpers'@Component({selector: 'my-video-abuse-details',diff --git a/client/src/app/login/login-routing.module.ts b/client/src/app/+login/login-routing.module.tssimilarity index 97%rename from client/src/app/login/login-routing.module.tsrename to client/src/app/+login/login-routing.module.tsindex 22f59b4d91..aad55eac80 100644--- a/client/src/app/login/login-routing.module.ts+++ b/client/src/app/+login/login-routing.module.ts@@ -6,7 +6,7 @@ import { ServerConfigResolver } from '@app/core/routing/server-config-resolver.sconst loginRoutes: Routes = [{- path: 'login',+ path: '',component: LoginComponent,canActivate: [ MetaGuard ],data: {diff --git a/client/src/app/login/login.component.html b/client/src/app/+login/login.component.htmlsimilarity index 100%rename from client/src/app/login/login.component.htmlrename to client/src/app/+login/login.component.htmldiff --git a/client/src/app/login/login.component.scss b/client/src/app/+login/login.component.scsssimilarity index 100%rename from client/src/app/login/login.component.scssrename to client/src/app/+login/login.component.scssdiff --git a/client/src/app/login/login.component.ts b/client/src/app/+login/login.component.tssimilarity index 100%rename from client/src/app/login/login.component.tsrename to client/src/app/+login/login.component.tsdiff --git a/client/src/app/login/login.module.ts b/client/src/app/+login/login.module.tssimilarity index 100%rename from client/src/app/login/login.module.tsrename to client/src/app/+login/login.module.tsdiff --git a/client/src/app/reset-password/reset-password-routing.module.ts b/client/src/app/+reset-password/reset-password-routing.module.tssimilarity index 95%rename from client/src/app/reset-password/reset-password-routing.module.tsrename to client/src/app/+reset-password/reset-password-routing.module.tsindex d443b51d64..31bc08709b 100644--- a/client/src/app/reset-password/reset-password-routing.module.ts+++ b/client/src/app/+reset-password/reset-password-routing.module.ts@@ -5,7 +5,7 @@ import { ResetPasswordComponent } from './reset-password.component'const resetPasswordRoutes: Routes = [{- path: 'reset-password',+ path: '',component: ResetPasswordComponent,canActivate: [ MetaGuard ],data: {diff --git a/client/src/app/reset-password/reset-password.component.html b/client/src/app/+reset-password/reset-password.component.htmlsimilarity index 100%rename from client/src/app/reset-password/reset-password.component.htmlrename to client/src/app/+reset-password/reset-password.component.htmldiff --git a/client/src/app/reset-password/reset-password.component.scss b/client/src/app/+reset-password/reset-password.component.scsssimilarity index 100%rename from client/src/app/reset-password/reset-password.component.scssrename to client/src/app/+reset-password/reset-password.component.scssdiff --git a/client/src/app/reset-password/reset-password.component.ts b/client/src/app/+reset-password/reset-password.component.tssimilarity index 100%rename from client/src/app/reset-password/reset-password.component.tsrename to client/src/app/+reset-password/reset-password.component.tsdiff --git a/client/src/app/reset-password/reset-password.module.ts b/client/src/app/+reset-password/reset-password.module.tssimilarity index 100%rename from client/src/app/reset-password/reset-password.module.tsrename to client/src/app/+reset-password/reset-password.module.tsdiff --git a/client/src/app/search/channel-lazy-load.resolver.ts b/client/src/app/+search/channel-lazy-load.resolver.tssimilarity index 95%rename from client/src/app/search/channel-lazy-load.resolver.tsrename to client/src/app/+search/channel-lazy-load.resolver.tsindex 5b6961e985..17a2128297 100644--- a/client/src/app/search/channel-lazy-load.resolver.ts+++ b/client/src/app/+search/channel-lazy-load.resolver.ts@@ -1,7 +1,7 @@import { map } from 'rxjs/operators'import { Injectable } from '@angular/core'import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router'-import { SearchService } from './search.service'+import { SearchService } from '@app/shared/shared-search'@Injectable()export class ChannelLazyLoadResolver implements Resolve<any> {diff --git a/client/src/app/search/search-filters.component.html b/client/src/app/+search/search-filters.component.htmlsimilarity index 100%rename from client/src/app/search/search-filters.component.htmlrename to client/src/app/+search/search-filters.component.htmldiff --git a/client/src/app/search/search-filters.component.scss b/client/src/app/+search/search-filters.component.scsssimilarity index 100%rename from client/src/app/search/search-filters.component.scssrename to client/src/app/+search/search-filters.component.scssdiff --git a/client/src/app/search/search-filters.component.ts b/client/src/app/+search/search-filters.component.tssimilarity index 99%rename from client/src/app/search/search-filters.component.tsrename to client/src/app/+search/search-filters.component.tsindex 14a5d04846..fc1db3258a 100644--- a/client/src/app/search/search-filters.component.ts+++ b/client/src/app/+search/search-filters.component.ts@@ -1,8 +1,8 @@import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'import { ValidatorFn } from '@angular/forms'import { ServerService } from '@app/core'-import { AdvancedSearch } from '@app/search/advanced-search.model'import { VideoValidatorsService } from '@app/shared/shared-forms'+import { AdvancedSearch } from '@app/shared/shared-search'import { I18n } from '@ngx-translate/i18n-polyfill'import { ServerConfig, VideoConstant } from '@shared/models'diff --git a/client/src/app/search/search-routing.module.ts b/client/src/app/+search/search-routing.module.tssimilarity index 84%rename from client/src/app/search/search-routing.module.tsrename to client/src/app/+search/search-routing.module.tsindex 9da900e9a7..14a0d0a13d 100644--- a/client/src/app/search/search-routing.module.ts+++ b/client/src/app/+search/search-routing.module.ts@@ -1,13 +1,13 @@import { NgModule } from '@angular/core'import { RouterModule, Routes } from '@angular/router'-import { SearchComponent } from '@app/search/search.component'import { MetaGuard } from '@ngx-meta/core'-import { VideoLazyLoadResolver } from './video-lazy-load.resolver'import { ChannelLazyLoadResolver } from './channel-lazy-load.resolver'+import { SearchComponent } from './search.component'+import { VideoLazyLoadResolver } from './video-lazy-load.resolver'const searchRoutes: Routes = [{- path: 'search',+ path: '',component: SearchComponent,canActivate: [ MetaGuard ],data: {@@ -17,7 +17,7 @@ const searchRoutes: Routes = [}},{- path: 'search/lazy-load-video',+ path: 'lazy-load-video',component: SearchComponent,canActivate: [ MetaGuard ],resolve: {@@ -25,7 +25,7 @@ const searchRoutes: Routes = [}},{- path: 'search/lazy-load-channel',+ path: 'lazy-load-channel',component: SearchComponent,canActivate: [ MetaGuard ],resolve: {diff --git a/client/src/app/search/search.component.html b/client/src/app/+search/search.component.htmlsimilarity index 100%rename from client/src/app/search/search.component.htmlrename to client/src/app/+search/search.component.htmldiff --git a/client/src/app/search/search.component.scss b/client/src/app/+search/search.component.scsssimilarity index 100%rename from client/src/app/search/search.component.scssrename to client/src/app/+search/search.component.scssdiff --git a/client/src/app/search/search.component.ts b/client/src/app/+search/search.component.tssimilarity index 98%rename from client/src/app/search/search.component.tsrename to client/src/app/+search/search.component.tsindex 83b06e0cec..1ed54937b5 100644--- a/client/src/app/search/search.component.ts+++ b/client/src/app/+search/search.component.ts@@ -4,12 +4,11 @@ import { ActivatedRoute, Router } from '@angular/router'import { AuthService, ComponentPagination, HooksService, Notifier, ServerService, User, UserService } from '@app/core'import { immutableAssign } from '@app/helpers'import { Video, VideoChannel } from '@app/shared/shared-main'+import { AdvancedSearch, SearchService } from '@app/shared/shared-search'import { MiniatureDisplayOptions } from '@app/shared/shared-video-miniature'import { MetaService } from '@ngx-meta/core'import { I18n } from '@ngx-translate/i18n-polyfill'import { SearchTargetType, ServerConfig } from '@shared/models'-import { AdvancedSearch } from './advanced-search.model'-import { SearchService } from './search.service'@Component({selector: 'my-search',diff --git a/client/src/app/search/search.module.ts b/client/src/app/+search/search.module.tssimilarity index 85%rename from client/src/app/search/search.module.tsrename to client/src/app/+search/search.module.tsindex 65c954de89..ee4f07ad19 100644--- a/client/src/app/search/search.module.ts+++ b/client/src/app/+search/search.module.ts@@ -2,14 +2,14 @@ import { TagInputModule } from 'ngx-chips'import { NgModule } from '@angular/core'import { SharedFormModule } from '@app/shared/shared-forms'import { SharedMainModule } from '@app/shared/shared-main'+import { SharedSearchModule } from '@app/shared/shared-search'import { SharedUserSubscriptionModule } from '@app/shared/shared-user-subscription'import { SharedVideoMiniatureModule } from '@app/shared/shared-video-miniature'+import { SearchService } from '../shared/shared-search/search.service'import { ChannelLazyLoadResolver } from './channel-lazy-load.resolver'-import { HighlightPipe } from './highlight.pipe'import { SearchFiltersComponent } from './search-filters.component'import { SearchRoutingModule } from './search-routing.module'import { SearchComponent } from './search.component'-import { SearchService } from './search.service'import { VideoLazyLoadResolver } from './video-lazy-load.resolver'@NgModule({@@ -17,7 +17,9 @@ import { VideoLazyLoadResolver } from './video-lazy-load.resolver'TagInputModule,SearchRoutingModule,+SharedMainModule,+ SharedSearchModule,SharedFormModule,SharedUserSubscriptionModule,SharedVideoMiniatureModule@@ -36,8 +38,7 @@ import { VideoLazyLoadResolver } from './video-lazy-load.resolver'providers: [SearchService,VideoLazyLoadResolver,- ChannelLazyLoadResolver,- HighlightPipe+ ChannelLazyLoadResolver]})export class SearchModule { }diff --git a/client/src/app/search/video-lazy-load.resolver.ts b/client/src/app/+search/video-lazy-load.resolver.tssimilarity index 95%rename from client/src/app/search/video-lazy-load.resolver.tsrename to client/src/app/+search/video-lazy-load.resolver.tsindex 8d846d3670..e8b2b8c74b 100644--- a/client/src/app/search/video-lazy-load.resolver.ts+++ b/client/src/app/+search/video-lazy-load.resolver.ts@@ -1,7 +1,7 @@import { map } from 'rxjs/operators'import { Injectable } from '@angular/core'import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router'-import { SearchService } from './search.service'+import { SearchService } from '@app/shared/shared-search'@Injectable()export class VideoLazyLoadResolver implements Resolve<any> {diff --git a/client/src/app/videos/+video-edit/shared/i18n-primeng-calendar.service.ts b/client/src/app/+videos/+video-edit/shared/i18n-primeng-calendar.service.tssimilarity index 100%rename from client/src/app/videos/+video-edit/shared/i18n-primeng-calendar.service.tsrename to client/src/app/+videos/+video-edit/shared/i18n-primeng-calendar.service.tsdiff --git a/client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.html b/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.htmlsimilarity index 100%rename from client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.htmlrename to client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.htmldiff --git a/client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.scss b/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.scsssimilarity index 100%rename from client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.scssrename to client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.scssdiff --git a/client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.ts b/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.tssimilarity index 100%rename from client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.tsrename to client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.tsdiff --git a/client/src/app/videos/+video-edit/shared/video-edit.component.html b/client/src/app/+videos/+video-edit/shared/video-edit.component.htmlsimilarity index 100%rename from client/src/app/videos/+video-edit/shared/video-edit.component.htmlrename to client/src/app/+videos/+video-edit/shared/video-edit.component.htmldiff --git a/client/src/app/videos/+video-edit/shared/video-edit.component.scss b/client/src/app/+videos/+video-edit/shared/video-edit.component.scsssimilarity index 100%rename from client/src/app/videos/+video-edit/shared/video-edit.component.scssrename to client/src/app/+videos/+video-edit/shared/video-edit.component.scssdiff --git a/client/src/app/videos/+video-edit/shared/video-edit.component.ts b/client/src/app/+videos/+video-edit/shared/video-edit.component.tssimilarity index 100%rename from client/src/app/videos/+video-edit/shared/video-edit.component.tsrename to client/src/app/+videos/+video-edit/shared/video-edit.component.tsdiff --git a/client/src/app/videos/+video-edit/shared/video-edit.module.ts b/client/src/app/+videos/+video-edit/shared/video-edit.module.tssimilarity index 100%rename from client/src/app/videos/+video-edit/shared/video-edit.module.tsrename to client/src/app/+videos/+video-edit/shared/video-edit.module.tsdiff --git a/client/src/app/videos/+video-edit/video-add-components/drag-drop.directive.ts b/client/src/app/+videos/+video-edit/video-add-components/drag-drop.directive.tssimilarity index 100%rename from client/src/app/videos/+video-edit/video-add-components/drag-drop.directive.tsrename to client/src/app/+videos/+video-edit/video-add-components/drag-drop.directive.tsdiff --git a/client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.html b/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.htmlsimilarity index 100%rename from client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.htmlrename to client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.htmldiff --git a/client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.scss b/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.scsssimilarity index 100%rename from client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.scssrename to client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.scssdiff --git a/client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.tssimilarity index 97%rename from client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.tsrename to client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.tsindex 5b453a1d99..538a187a83 100644--- a/client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.ts+++ b/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts@@ -4,7 +4,7 @@ import { AuthService, CanComponentDeactivate, Notifier, ServerService } from '@aimport { scrollToTop } from '@app/helpers'import { FormValidatorService } from '@app/shared/shared-forms'import { VideoCaptionService, VideoEdit, VideoImportService, VideoService } from '@app/shared/shared-main'-import { VideoSend } from '@app/videos/+video-edit/video-add-components/video-send'+import { VideoSend } from './video-send'import { LoadingBarService } from '@ngx-loading-bar/core'import { I18n } from '@ngx-translate/i18n-polyfill'import { VideoPrivacy, VideoUpdate } from '@shared/models'diff --git a/client/src/app/videos/+video-edit/video-add-components/video-import-url.component.html b/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.htmlsimilarity index 100%rename from client/src/app/videos/+video-edit/video-add-components/video-import-url.component.htmlrename to client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.htmldiff --git a/client/src/app/videos/+video-edit/video-add-components/video-import-url.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.tssimilarity index 98%rename from client/src/app/videos/+video-edit/video-add-components/video-import-url.component.tsrename to client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.tsindex d0bd1f54df..6508eef7ed 100644--- a/client/src/app/videos/+video-edit/video-add-components/video-import-url.component.ts+++ b/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts@@ -5,7 +5,7 @@ import { AuthService, CanComponentDeactivate, Notifier, ServerService } from '@aimport { getAbsoluteAPIUrl, scrollToTop } from '@app/helpers'import { FormValidatorService } from '@app/shared/shared-forms'import { VideoCaptionService, VideoEdit, VideoImportService, VideoService } from '@app/shared/shared-main'-import { VideoSend } from '@app/videos/+video-edit/video-add-components/video-send'+import { VideoSend } from './video-send'import { LoadingBarService } from '@ngx-loading-bar/core'import { I18n } from '@ngx-translate/i18n-polyfill'import { VideoPrivacy, VideoUpdate } from '@shared/models'diff --git a/client/src/app/videos/+video-edit/video-add-components/video-send.scss b/client/src/app/+videos/+video-edit/video-add-components/video-send.scsssimilarity index 100%rename from client/src/app/videos/+video-edit/video-add-components/video-send.scssrename to client/src/app/+videos/+video-edit/video-add-components/video-send.scssdiff --git a/client/src/app/videos/+video-edit/video-add-components/video-send.ts b/client/src/app/+videos/+video-edit/video-add-components/video-send.tssimilarity index 100%rename from client/src/app/videos/+video-edit/video-add-components/video-send.tsrename to client/src/app/+videos/+video-edit/video-add-components/video-send.tsdiff --git a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.htmlsimilarity index 100%rename from client/src/app/videos/+video-edit/video-add-components/video-upload.component.htmlrename to client/src/app/+videos/+video-edit/video-add-components/video-upload.component.htmldiff --git a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.scss b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.scsssimilarity index 100%rename from client/src/app/videos/+video-edit/video-add-components/video-upload.component.scssrename to client/src/app/+videos/+video-edit/video-add-components/video-upload.component.scssdiff --git a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.tssimilarity index 99%rename from client/src/app/videos/+video-edit/video-add-components/video-upload.component.tsrename to client/src/app/+videos/+video-edit/video-add-components/video-upload.component.tsindex eb7ac32ae5..e46ce65996 100644--- a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts+++ b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts@@ -7,10 +7,10 @@ import { AuthService, CanComponentDeactivate, Notifier, ServerService, UserServiimport { scrollToTop } from '@app/helpers'import { FormValidatorService } from '@app/shared/shared-forms'import { VideoCaptionService, VideoEdit, VideoService } from '@app/shared/shared-main'-import { VideoSend } from '@app/videos/+video-edit/video-add-components/video-send'import { LoadingBarService } from '@ngx-loading-bar/core'import { I18n } from '@ngx-translate/i18n-polyfill'import { VideoPrivacy } from '@shared/models'+import { VideoSend } from './video-send'@Component({selector: 'my-video-upload',diff --git a/client/src/app/videos/+video-edit/video-add-routing.module.ts b/client/src/app/+videos/+video-edit/video-add-routing.module.tssimilarity index 100%rename from client/src/app/videos/+video-edit/video-add-routing.module.tsrename to client/src/app/+videos/+video-edit/video-add-routing.module.tsdiff --git a/client/src/app/videos/+video-edit/video-add.component.html b/client/src/app/+videos/+video-edit/video-add.component.htmlsimilarity index 100%rename from client/src/app/videos/+video-edit/video-add.component.htmlrename to client/src/app/+videos/+video-edit/video-add.component.htmldiff --git a/client/src/app/videos/+video-edit/video-add.component.scss b/client/src/app/+videos/+video-edit/video-add.component.scsssimilarity index 100%rename from client/src/app/videos/+video-edit/video-add.component.scssrename to client/src/app/+videos/+video-edit/video-add.component.scssdiff --git a/client/src/app/videos/+video-edit/video-add.component.ts b/client/src/app/+videos/+video-edit/video-add.component.tssimilarity index 100%rename from client/src/app/videos/+video-edit/video-add.component.tsrename to client/src/app/+videos/+video-edit/video-add.component.tsdiff --git a/client/src/app/videos/+video-edit/video-add.module.ts b/client/src/app/+videos/+video-edit/video-add.module.tssimilarity index 100%rename from client/src/app/videos/+video-edit/video-add.module.tsrename to client/src/app/+videos/+video-edit/video-add.module.tsdiff --git a/client/src/app/videos/+video-edit/video-update-routing.module.ts b/client/src/app/+videos/+video-edit/video-update-routing.module.tssimilarity index 100%rename from client/src/app/videos/+video-edit/video-update-routing.module.tsrename to client/src/app/+videos/+video-edit/video-update-routing.module.tsdiff --git a/client/src/app/videos/+video-edit/video-update.component.html b/client/src/app/+videos/+video-edit/video-update.component.htmlsimilarity index 100%rename from client/src/app/videos/+video-edit/video-update.component.htmlrename to client/src/app/+videos/+video-edit/video-update.component.htmldiff --git a/client/src/app/videos/+video-edit/video-update.component.ts b/client/src/app/+videos/+video-edit/video-update.component.tssimilarity index 100%rename from client/src/app/videos/+video-edit/video-update.component.tsrename to client/src/app/+videos/+video-edit/video-update.component.tsdiff --git a/client/src/app/videos/+video-edit/video-update.module.ts b/client/src/app/+videos/+video-edit/video-update.module.tssimilarity index 86%rename from client/src/app/videos/+video-edit/video-update.module.tsrename to client/src/app/+videos/+video-edit/video-update.module.tsindex 322c69629f..99cd8bea14 100644--- a/client/src/app/videos/+video-edit/video-update.module.ts+++ b/client/src/app/+videos/+video-edit/video-update.module.ts@@ -1,9 +1,9 @@import { NgModule } from '@angular/core'import { CanDeactivateGuard } from '@app/core'-import { VideoUpdateResolver } from '@app/videos/+video-edit/video-update.resolver'import { VideoEditModule } from './shared/video-edit.module'import { VideoUpdateRoutingModule } from './video-update-routing.module'import { VideoUpdateComponent } from './video-update.component'+import { VideoUpdateResolver } from './video-update.resolver'@NgModule({imports: [diff --git a/client/src/app/videos/+video-edit/video-update.resolver.ts b/client/src/app/+videos/+video-edit/video-update.resolver.tssimilarity index 100%rename from client/src/app/videos/+video-edit/video-update.resolver.tsrename to client/src/app/+videos/+video-edit/video-update.resolver.tsdiff --git a/client/src/app/videos/+video-watch/comment/video-comment-add.component.html b/client/src/app/+videos/+video-watch/comment/video-comment-add.component.htmlsimilarity index 100%rename from client/src/app/videos/+video-watch/comment/video-comment-add.component.htmlrename to client/src/app/+videos/+video-watch/comment/video-comment-add.component.htmldiff --git a/client/src/app/videos/+video-watch/comment/video-comment-add.component.scss b/client/src/app/+videos/+video-watch/comment/video-comment-add.component.scsssimilarity index 100%rename from client/src/app/videos/+video-watch/comment/video-comment-add.component.scssrename to client/src/app/+videos/+video-watch/comment/video-comment-add.component.scssdiff --git a/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts b/client/src/app/+videos/+video-watch/comment/video-comment-add.component.tssimilarity index 100%rename from client/src/app/videos/+video-watch/comment/video-comment-add.component.tsrename to client/src/app/+videos/+video-watch/comment/video-comment-add.component.tsdiff --git a/client/src/app/videos/+video-watch/comment/video-comment-thread-tree.model.ts b/client/src/app/+videos/+video-watch/comment/video-comment-thread-tree.model.tssimilarity index 100%rename from client/src/app/videos/+video-watch/comment/video-comment-thread-tree.model.tsrename to client/src/app/+videos/+video-watch/comment/video-comment-thread-tree.model.tsdiff --git a/client/src/app/videos/+video-watch/comment/video-comment.component.html b/client/src/app/+videos/+video-watch/comment/video-comment.component.htmlsimilarity index 100%rename from client/src/app/videos/+video-watch/comment/video-comment.component.htmlrename to client/src/app/+videos/+video-watch/comment/video-comment.component.htmldiff --git a/client/src/app/videos/+video-watch/comment/video-comment.component.scss b/client/src/app/+videos/+video-watch/comment/video-comment.component.scsssimilarity index 100%rename from client/src/app/videos/+video-watch/comment/video-comment.component.scssrename to client/src/app/+videos/+video-watch/comment/video-comment.component.scssdiff --git a/client/src/app/videos/+video-watch/comment/video-comment.component.ts b/client/src/app/+videos/+video-watch/comment/video-comment.component.tssimilarity index 100%rename from client/src/app/videos/+video-watch/comment/video-comment.component.tsrename to client/src/app/+videos/+video-watch/comment/video-comment.component.tsdiff --git a/client/src/app/videos/+video-watch/comment/video-comment.model.ts b/client/src/app/+videos/+video-watch/comment/video-comment.model.tssimilarity index 100%rename from client/src/app/videos/+video-watch/comment/video-comment.model.tsrename to client/src/app/+videos/+video-watch/comment/video-comment.model.tsdiff --git a/client/src/app/videos/+video-watch/comment/video-comment.service.ts b/client/src/app/+videos/+video-watch/comment/video-comment.service.tssimilarity index 100%rename from client/src/app/videos/+video-watch/comment/video-comment.service.tsrename to client/src/app/+videos/+video-watch/comment/video-comment.service.tsdiff --git a/client/src/app/videos/+video-watch/comment/video-comments.component.html b/client/src/app/+videos/+video-watch/comment/video-comments.component.htmlsimilarity index 100%rename from client/src/app/videos/+video-watch/comment/video-comments.component.htmlrename to client/src/app/+videos/+video-watch/comment/video-comments.component.htmldiff --git a/client/src/app/videos/+video-watch/comment/video-comments.component.scss b/client/src/app/+videos/+video-watch/comment/video-comments.component.scsssimilarity index 100%rename from client/src/app/videos/+video-watch/comment/video-comments.component.scssrename to client/src/app/+videos/+video-watch/comment/video-comments.component.scssdiff --git a/client/src/app/videos/+video-watch/comment/video-comments.component.ts b/client/src/app/+videos/+video-watch/comment/video-comments.component.tssimilarity index 100%rename from client/src/app/videos/+video-watch/comment/video-comments.component.tsrename to client/src/app/+videos/+video-watch/comment/video-comments.component.tsdiff --git a/client/src/app/videos/+video-watch/modal/video-share.component.html b/client/src/app/+videos/+video-watch/modal/video-share.component.htmlsimilarity index 100%rename from client/src/app/videos/+video-watch/modal/video-share.component.htmlrename to client/src/app/+videos/+video-watch/modal/video-share.component.htmldiff --git a/client/src/app/videos/+video-watch/modal/video-share.component.scss b/client/src/app/+videos/+video-watch/modal/video-share.component.scsssimilarity index 100%rename from client/src/app/videos/+video-watch/modal/video-share.component.scssrename to client/src/app/+videos/+video-watch/modal/video-share.component.scssdiff --git a/client/src/app/videos/+video-watch/modal/video-share.component.ts b/client/src/app/+videos/+video-watch/modal/video-share.component.tssimilarity index 100%rename from client/src/app/videos/+video-watch/modal/video-share.component.tsrename to client/src/app/+videos/+video-watch/modal/video-share.component.tsdiff --git a/client/src/app/videos/+video-watch/modal/video-support.component.html b/client/src/app/+videos/+video-watch/modal/video-support.component.htmlsimilarity index 100%rename from client/src/app/videos/+video-watch/modal/video-support.component.htmlrename to client/src/app/+videos/+video-watch/modal/video-support.component.htmldiff --git a/client/src/app/videos/+video-watch/modal/video-support.component.scss b/client/src/app/+videos/+video-watch/modal/video-support.component.scsssimilarity index 100%rename from client/src/app/videos/+video-watch/modal/video-support.component.scssrename to client/src/app/+videos/+video-watch/modal/video-support.component.scssdiff --git a/client/src/app/videos/+video-watch/modal/video-support.component.ts b/client/src/app/+videos/+video-watch/modal/video-support.component.tssimilarity index 100%rename from client/src/app/videos/+video-watch/modal/video-support.component.tsrename to client/src/app/+videos/+video-watch/modal/video-support.component.tsdiff --git a/client/src/app/videos/recommendations/recent-videos-recommendation.service.ts b/client/src/app/+videos/+video-watch/recommendations/recent-videos-recommendation.service.tssimilarity index 95%rename from client/src/app/videos/recommendations/recent-videos-recommendation.service.tsrename to client/src/app/+videos/+video-watch/recommendations/recent-videos-recommendation.service.tsindex a376453bf9..29fa268f4b 100644--- a/client/src/app/videos/recommendations/recent-videos-recommendation.service.ts+++ b/client/src/app/+videos/+video-watch/recommendations/recent-videos-recommendation.service.ts@@ -2,9 +2,8 @@ import { Observable, of } from 'rxjs'import { map, switchMap } from 'rxjs/operators'import { Injectable } from '@angular/core'import { ServerService, UserService } from '@app/core'-import { AdvancedSearch } from '@app/search/advanced-search.model'-import { SearchService } from '@app/search/search.service'import { Video, VideoService } from '@app/shared/shared-main'+import { AdvancedSearch, SearchService } from '@app/shared/shared-search'import { ServerConfig } from '@shared/models'import { RecommendationInfo } from './recommendation-info.model'import { RecommendationService } from './recommendations.service'diff --git a/client/src/app/videos/recommendations/recommendation-info.model.ts b/client/src/app/+videos/+video-watch/recommendations/recommendation-info.model.tssimilarity index 100%rename from client/src/app/videos/recommendations/recommendation-info.model.tsrename to client/src/app/+videos/+video-watch/recommendations/recommendation-info.model.tsdiff --git a/client/src/app/videos/recommendations/recommendations.module.ts b/client/src/app/+videos/+video-watch/recommendations/recommendations.module.tssimilarity index 91%rename from client/src/app/videos/recommendations/recommendations.module.tsrename to client/src/app/+videos/+video-watch/recommendations/recommendations.module.tsindex 03cc272cac..259afb1960 100644--- a/client/src/app/videos/recommendations/recommendations.module.ts+++ b/client/src/app/+videos/+video-watch/recommendations/recommendations.module.ts@@ -2,6 +2,7 @@ import { InputSwitchModule } from 'primeng/inputswitch'import { CommonModule } from '@angular/common'import { NgModule } from '@angular/core'import { SharedMainModule } from '@app/shared/shared-main'+import { SharedSearchModule } from '@app/shared/shared-search'import { SharedVideoMiniatureModule } from '@app/shared/shared-video-miniature'import { SharedVideoPlaylistModule } from '@app/shared/shared-video-playlist'import { RecentVideosRecommendationService } from './recent-videos-recommendation.service'@@ -14,6 +15,7 @@ import { RecommendedVideosStore } from './recommended-videos.store'InputSwitchModule,SharedMainModule,+ SharedSearchModule,SharedVideoPlaylistModule,SharedVideoMiniatureModule],diff --git a/client/src/app/videos/recommendations/recommendations.service.ts b/client/src/app/+videos/+video-watch/recommendations/recommendations.service.tssimilarity index 100%rename from client/src/app/videos/recommendations/recommendations.service.tsrename to client/src/app/+videos/+video-watch/recommendations/recommendations.service.tsdiff --git a/client/src/app/videos/recommendations/recommended-videos.component.html b/client/src/app/+videos/+video-watch/recommendations/recommended-videos.component.htmlsimilarity index 100%rename from client/src/app/videos/recommendations/recommended-videos.component.htmlrename to client/src/app/+videos/+video-watch/recommendations/recommended-videos.component.htmldiff --git a/client/src/app/videos/recommendations/recommended-videos.component.scss b/client/src/app/+videos/+video-watch/recommendations/recommended-videos.component.scsssimilarity index 100%rename from client/src/app/videos/recommendations/recommended-videos.component.scssrename to client/src/app/+videos/+video-watch/recommendations/recommended-videos.component.scssdiff --git a/client/src/app/videos/recommendations/recommended-videos.component.ts b/client/src/app/+videos/+video-watch/recommendations/recommended-videos.component.tssimilarity index 100%rename from client/src/app/videos/recommendations/recommended-videos.component.tsrename to client/src/app/+videos/+video-watch/recommendations/recommended-videos.component.tsdiff --git a/client/src/app/videos/recommendations/recommended-videos.store.ts b/client/src/app/+videos/+video-watch/recommendations/recommended-videos.store.tssimilarity index 100%rename from client/src/app/videos/recommendations/recommended-videos.store.tsrename to client/src/app/+videos/+video-watch/recommendations/recommended-videos.store.tsdiff --git a/client/src/app/videos/+video-watch/timestamp-route-transformer.directive.ts b/client/src/app/+videos/+video-watch/timestamp-route-transformer.directive.tssimilarity index 100%rename from client/src/app/videos/+video-watch/timestamp-route-transformer.directive.tsrename to client/src/app/+videos/+video-watch/timestamp-route-transformer.directive.tsdiff --git a/client/src/app/videos/+video-watch/video-duration-formatter.pipe.ts b/client/src/app/+videos/+video-watch/video-duration-formatter.pipe.tssimilarity index 100%rename from client/src/app/videos/+video-watch/video-duration-formatter.pipe.tsrename to client/src/app/+videos/+video-watch/video-duration-formatter.pipe.tsdiff --git a/client/src/app/videos/+video-watch/video-watch-playlist.component.html b/client/src/app/+videos/+video-watch/video-watch-playlist.component.htmlsimilarity index 100%rename from client/src/app/videos/+video-watch/video-watch-playlist.component.htmlrename to client/src/app/+videos/+video-watch/video-watch-playlist.component.htmldiff --git a/client/src/app/videos/+video-watch/video-watch-playlist.component.scss b/client/src/app/+videos/+video-watch/video-watch-playlist.component.scsssimilarity index 100%rename from client/src/app/videos/+video-watch/video-watch-playlist.component.scssrename to client/src/app/+videos/+video-watch/video-watch-playlist.component.scssdiff --git a/client/src/app/videos/+video-watch/video-watch-playlist.component.ts b/client/src/app/+videos/+video-watch/video-watch-playlist.component.tssimilarity index 100%rename from client/src/app/videos/+video-watch/video-watch-playlist.component.tsrename to client/src/app/+videos/+video-watch/video-watch-playlist.component.tsdiff --git a/client/src/app/videos/+video-watch/video-watch-routing.module.ts b/client/src/app/+videos/+video-watch/video-watch-routing.module.tssimilarity index 100%rename from client/src/app/videos/+video-watch/video-watch-routing.module.tsrename to client/src/app/+videos/+video-watch/video-watch-routing.module.tsdiff --git a/client/src/app/videos/+video-watch/video-watch.component.html b/client/src/app/+videos/+video-watch/video-watch.component.htmlsimilarity index 100%rename from client/src/app/videos/+video-watch/video-watch.component.htmlrename to client/src/app/+videos/+video-watch/video-watch.component.htmldiff --git a/client/src/app/videos/+video-watch/video-watch.component.scss b/client/src/app/+videos/+video-watch/video-watch.component.scsssimilarity index 100%rename from client/src/app/videos/+video-watch/video-watch.component.scssrename to client/src/app/+videos/+video-watch/video-watch.component.scssdiff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/+videos/+video-watch/video-watch.component.tssimilarity index 100%rename from client/src/app/videos/+video-watch/video-watch.component.tsrename to client/src/app/+videos/+video-watch/video-watch.component.tsdiff --git a/client/src/app/videos/+video-watch/video-watch.module.ts b/client/src/app/+videos/+video-watch/video-watch.module.tssimilarity index 96%rename from client/src/app/videos/+video-watch/video-watch.module.tsrename to client/src/app/+videos/+video-watch/video-watch.module.tsindex a1c54f0653..421170d817 100644--- a/client/src/app/videos/+video-watch/video-watch.module.ts+++ b/client/src/app/+videos/+video-watch/video-watch.module.ts@@ -7,7 +7,7 @@ import { SharedModerationModule } from '@app/shared/shared-moderation'import { SharedUserSubscriptionModule } from '@app/shared/shared-user-subscription'import { SharedVideoMiniatureModule } from '@app/shared/shared-video-miniature'import { SharedVideoPlaylistModule } from '@app/shared/shared-video-playlist'-import { RecommendationsModule } from '@app/videos/recommendations/recommendations.module'+import { RecommendationsModule } from './recommendations/recommendations.module'import { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap'import { VideoCommentAddComponent } from './comment/video-comment-add.component'import { VideoCommentComponent } from './comment/video-comment.component'diff --git a/client/src/app/videos/index.ts b/client/src/app/+videos/index.tssimilarity index 100%rename from client/src/app/videos/index.tsrename to client/src/app/+videos/index.tsdiff --git a/client/src/app/videos/video-list/index.ts b/client/src/app/+videos/video-list/index.tssimilarity index 100%rename from client/src/app/videos/video-list/index.tsrename to client/src/app/+videos/video-list/index.tsdiff --git a/client/src/app/videos/video-list/overview/index.ts b/client/src/app/+videos/video-list/overview/index.tssimilarity index 100%rename from client/src/app/videos/video-list/overview/index.tsrename to client/src/app/+videos/video-list/overview/index.tsdiff --git a/client/src/app/videos/video-list/overview/overview.service.ts b/client/src/app/+videos/video-list/overview/overview.service.tssimilarity index 100%rename from client/src/app/videos/video-list/overview/overview.service.tsrename to client/src/app/+videos/video-list/overview/overview.service.tsdiff --git a/client/src/app/videos/video-list/overview/video-overview.component.html b/client/src/app/+videos/video-list/overview/video-overview.component.htmlsimilarity index 100%rename from client/src/app/videos/video-list/overview/video-overview.component.htmlrename to client/src/app/+videos/video-list/overview/video-overview.component.htmldiff --git a/client/src/app/videos/video-list/overview/video-overview.component.scss b/client/src/app/+videos/video-list/overview/video-overview.component.scsssimilarity index 100%rename from client/src/app/videos/video-list/overview/video-overview.component.scssrename to client/src/app/+videos/video-list/overview/video-overview.component.scssdiff --git a/client/src/app/videos/video-list/overview/video-overview.component.ts b/client/src/app/+videos/video-list/overview/video-overview.component.tssimilarity index 100%rename from client/src/app/videos/video-list/overview/video-overview.component.tsrename to client/src/app/+videos/video-list/overview/video-overview.component.tsdiff --git a/client/src/app/videos/video-list/overview/videos-overview.model.ts b/client/src/app/+videos/video-list/overview/videos-overview.model.tssimilarity index 100%rename from client/src/app/videos/video-list/overview/videos-overview.model.tsrename to client/src/app/+videos/video-list/overview/videos-overview.model.tsdiff --git a/client/src/app/videos/video-list/video-local.component.ts b/client/src/app/+videos/video-list/video-local.component.tssimilarity index 100%rename from client/src/app/videos/video-list/video-local.component.tsrename to client/src/app/+videos/video-list/video-local.component.tsdiff --git a/client/src/app/videos/video-list/video-most-liked.component.ts b/client/src/app/+videos/video-list/video-most-liked.component.tssimilarity index 100%rename from client/src/app/videos/video-list/video-most-liked.component.tsrename to client/src/app/+videos/video-list/video-most-liked.component.tsdiff --git a/client/src/app/videos/video-list/video-recently-added.component.ts b/client/src/app/+videos/video-list/video-recently-added.component.tssimilarity index 100%rename from client/src/app/videos/video-list/video-recently-added.component.tsrename to client/src/app/+videos/video-list/video-recently-added.component.tsdiff --git a/client/src/app/videos/video-list/video-trending.component.ts b/client/src/app/+videos/video-list/video-trending.component.tssimilarity index 100%rename from client/src/app/videos/video-list/video-trending.component.tsrename to client/src/app/+videos/video-list/video-trending.component.tsdiff --git a/client/src/app/videos/video-list/video-user-subscriptions.component.ts b/client/src/app/+videos/video-list/video-user-subscriptions.component.tssimilarity index 100%rename from client/src/app/videos/video-list/video-user-subscriptions.component.tsrename to client/src/app/+videos/video-list/video-user-subscriptions.component.tsdiff --git a/client/src/app/videos/videos-routing.module.ts b/client/src/app/+videos/videos-routing.module.tssimilarity index 86%rename from client/src/app/videos/videos-routing.module.tsrename to client/src/app/+videos/videos-routing.module.tsindex 16b65be636..e0e877fc67 100644--- a/client/src/app/videos/videos-routing.module.ts+++ b/client/src/app/+videos/videos-routing.module.ts@@ -1,17 +1,17 @@import { NgModule } from '@angular/core'import { RouterModule, Routes } from '@angular/router'-import { VideoLocalComponent } from '@app/videos/video-list/video-local.component'import { MetaGuard } from '@ngx-meta/core'+import { VideoOverviewComponent } from './video-list/overview/video-overview.component'+import { VideoLocalComponent } from './video-list/video-local.component'+import { VideoMostLikedComponent } from './video-list/video-most-liked.component'import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component'import { VideoTrendingComponent } from './video-list/video-trending.component'-import { VideoMostLikedComponent } from './video-list/video-most-liked.component'-import { VideosComponent } from './videos.component'import { VideoUserSubscriptionsComponent } from './video-list/video-user-subscriptions.component'-import { VideoOverviewComponent } from './video-list/overview/video-overview.component'+import { VideosComponent } from './videos.component'const videosRoutes: Routes = [{- path: 'videos',+ path: '',component: VideosComponent,canActivateChild: [ MetaGuard ],children: [@@ -91,7 +91,7 @@ const videosRoutes: Routes = [},{path: 'upload',- loadChildren: () => import('@app/videos/+video-edit/video-add.module').then(m => m.VideoAddModule),+ loadChildren: () => import('@app/+videos/+video-edit/video-add.module').then(m => m.VideoAddModule),data: {meta: {title: 'Upload a video'@@ -100,7 +100,7 @@ const videosRoutes: Routes = [},{path: 'update/:uuid',- loadChildren: () => import('@app/videos/+video-edit/video-update.module').then(m => m.VideoUpdateModule),+ loadChildren: () => import('@app/+videos/+video-edit/video-update.module').then(m => m.VideoUpdateModule),data: {meta: {title: 'Edit a video'@@ -109,7 +109,7 @@ const videosRoutes: Routes = [},{path: 'watch',- loadChildren: () => import('@app/videos/+video-watch/video-watch.module').then(m => m.VideoWatchModule),+ loadChildren: () => import('@app/+videos/+video-watch/video-watch.module').then(m => m.VideoWatchModule),data: {preload: 3000}diff --git a/client/src/app/videos/videos.component.ts b/client/src/app/+videos/videos.component.tssimilarity index 100%rename from client/src/app/videos/videos.component.tsrename to client/src/app/+videos/videos.component.tsdiff --git a/client/src/app/videos/videos.module.ts b/client/src/app/+videos/videos.module.tssimilarity index 94%rename from client/src/app/videos/videos.module.tsrename to client/src/app/+videos/videos.module.tsindex 217e5bb50d..1cf68bf836 100644--- a/client/src/app/videos/videos.module.ts+++ b/client/src/app/+videos/videos.module.ts@@ -4,6 +4,7 @@ import { SharedGlobalIconModule } from '@app/shared/shared-icons'import { SharedMainModule } from '@app/shared/shared-main'import { SharedUserSubscriptionModule } from '@app/shared/shared-user-subscription'import { SharedVideoMiniatureModule } from '@app/shared/shared-video-miniature'+import { OverviewService } from './video-list'import { VideoOverviewComponent } from './video-list/overview/video-overview.component'import { VideoLocalComponent } from './video-list/video-local.component'import { VideoMostLikedComponent } from './video-list/video-most-liked.component'@@ -39,6 +40,8 @@ import { VideosComponent } from './videos.component'VideosComponent],- providers: []+ providers: [+ OverviewService+ ]})export class VideosModule { }diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.tsindex ceda414150..a39be17dcf 100644--- a/client/src/app/app-routing.module.ts+++ b/client/src/app/app-routing.module.ts@@ -4,6 +4,7 @@ import { AppComponent } from '@app/app.component'import { CustomReuseStrategy } from '@app/core/routing/custom-reuse-strategy'import { MenuGuards } from '@app/core/routing/menu-guard.service'import { PreloadSelectedModulesList } from './core'+import { EmptyComponent } from './empty.component'const routes: Routes = [{@@ -36,9 +37,25 @@ const routes: Routes = [path: 'signup',loadChildren: () => import('./+signup/+register/register.module').then(m => m.RegisterModule)},+ {+ path: 'reset-password',+ loadChildren: () => import('./+reset-password/reset-password.module').then(m => m.ResetPasswordModule)+ },+ {+ path: 'login',+ loadChildren: () => import('./+login/login.module').then(m => m.LoginModule)+ },+ {+ path: 'search',+ loadChildren: () => import('./+search/search.module').then(m => m.SearchModule)+ },+ {+ path: 'videos',+ loadChildren: () => import('./+videos/videos.module').then(m => m.VideosModule)+ },{path: '',- component: AppComponent // Avoid 404, app component will redirect dynamically+ component: EmptyComponent // Avoid 404, app component will redirect dynamically},{path: '**',diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.tsindex 7fbc6463b0..c6e9d73157 100644--- a/client/src/app/app.module.ts+++ b/client/src/app/app.module.ts@@ -4,15 +4,13 @@ import { LOCALE_ID, NgModule, TRANSLATIONS, TRANSLATIONS_FORMAT } from '@angularimport { BrowserModule } from '@angular/platform-browser'import { ServerService } from '@app/core'import localeOc from '@app/helpers/locales/oc'-import { ResetPasswordModule } from '@app/reset-password'-import { SearchModule } from '@app/search'import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core'import { buildFileLocale, getCompleteLocale, isDefaultLocale } from '@shared/models'import { AppRoutingModule } from './app-routing.module'import { AppComponent } from './app.component'import { CoreModule } from './core'import { HeaderComponent, SearchTypeaheadComponent, SuggestionComponent } from './header'-import { LoginModule } from './login'+import { HighlightPipe } from './header/highlight.pipe'import { AvatarNotificationComponent, LanguageChooserComponent, MenuComponent } from './menu'import { ConfirmComponent } from './modal/confirm.component'import { CustomModalComponent } from './modal/custom-modal.component'@@ -24,7 +22,6 @@ import { SharedGlobalIconModule } from './shared/shared-icons'import { SharedInstanceModule } from './shared/shared-instance'import { SharedMainModule } from './shared/shared-main'import { SharedUserInterfaceSettingsModule } from './shared/shared-user-settings'-import { VideosModule } from './videos'registerLocaleData(localeOc, 'oc')@@ -41,6 +38,7 @@ registerLocaleData(localeOc, 'oc')HeaderComponent,SearchTypeaheadComponent,SuggestionComponent,+ HighlightPipe,CustomModalComponent,WelcomeModalComponent,@@ -58,12 +56,6 @@ registerLocaleData(localeOc, 'oc')SharedGlobalIconModule,SharedInstanceModule,- LoginModule,- ResetPasswordModule,- SearchModule,-- VideosModule,-MetaModule.forRoot({provide: MetaLoader,useFactory: (serverService: ServerService) => {diff --git a/client/src/app/empty.component.ts b/client/src/app/empty.component.tsnew file mode 100644index 0000000000..5cde05a320--- /dev/null+++ b/client/src/app/empty.component.ts@@ -0,0 +1,10 @@++import { Component } from '@angular/core'++@Component({+ selector: 'my-empty',+ template: ''+})+export class EmptyComponent {++}diff --git a/client/src/app/search/highlight.pipe.ts b/client/src/app/header/highlight.pipe.tssimilarity index 100%rename from client/src/app/search/highlight.pipe.tsrename to client/src/app/header/highlight.pipe.tsdiff --git a/client/src/app/login/index.ts b/client/src/app/login/index.tsdeleted file mode 100644index f1301d8b51..0000000000--- a/client/src/app/login/index.ts+++ /dev/null@@ -1,3 +0,0 @@-export * from './login-routing.module'-export * from './login.component'-export * from './login.module'diff --git a/client/src/app/reset-password/index.ts b/client/src/app/reset-password/index.tsdeleted file mode 100644index 438dc576ad..0000000000--- a/client/src/app/reset-password/index.ts+++ /dev/null@@ -1,3 +0,0 @@-export * from './reset-password-routing.module'-export * from './reset-password.component'-export * from './reset-password.module'diff --git a/client/src/app/search/index.ts b/client/src/app/search/index.tsdeleted file mode 100644index 40f4e021fa..0000000000--- a/client/src/app/search/index.ts+++ /dev/null@@ -1,3 +0,0 @@-export * from './search-routing.module'-export * from './search.component'-export * from './search.module'diff --git a/client/src/app/search/advanced-search.model.ts b/client/src/app/shared/shared-search/advanced-search.model.tssimilarity index 100%rename from client/src/app/search/advanced-search.model.tsrename to client/src/app/shared/shared-search/advanced-search.model.tsdiff --git a/client/src/app/shared/shared-search/index.ts b/client/src/app/shared/shared-search/index.tsnew file mode 100644index 0000000000..f687f6767d--- /dev/null+++ b/client/src/app/shared/shared-search/index.ts@@ -0,0 +1,3 @@+export * from './advanced-search.model'+export * from './search.service'+export * from './shared-search.module'diff --git a/client/src/app/search/search.service.ts b/client/src/app/shared/shared-search/search.service.tssimilarity index 90%rename from client/src/app/search/search.service.tsrename to client/src/app/shared/shared-search/search.service.tsindex 36342034f1..96b954c993 100644--- a/client/src/app/search/search.service.ts+++ b/client/src/app/shared/shared-search/search.service.ts@@ -4,11 +4,10 @@ import { HttpClient, HttpParams } from '@angular/common/http'import { Injectable } from '@angular/core'import { ComponentPaginationLight, RestExtractor, RestPagination, RestService } from '@app/core'import { peertubeLocalStorage } from '@app/helpers'-import { AdvancedSearch } from '@app/search/advanced-search.model'import { Video, VideoChannel, VideoChannelService, VideoService } from '@app/shared/shared-main'-import { ResultList, Video as VideoServerModel, VideoChannel as VideoChannelServerModel } from '@shared/models'-import { SearchTargetType } from '@shared/models/search/search-target-query.model'-import { environment } from '../../environments/environment'+import { ResultList, SearchTargetType, Video as VideoServerModel, VideoChannel as VideoChannelServerModel } from '@shared/models'+import { environment } from '../../../environments/environment'+import { AdvancedSearch } from './advanced-search.model'@Injectable()export class SearchService {diff --git a/client/src/app/shared/shared-search/shared-search.module.ts b/client/src/app/shared/shared-search/shared-search.module.tsnew file mode 100644index 0000000000..134300d887--- /dev/null+++ b/client/src/app/shared/shared-search/shared-search.module.ts@@ -0,0 +1,20 @@+import { NgModule } from '@angular/core'+import { SharedMainModule } from '../shared-main'+import { SearchService } from './search.service'++@NgModule({+ imports: [+ SharedMainModule+ ],++ declarations: [+ ],++ exports: [+ ],++ providers: [+ SearchService+ ]+})+export class SharedSearchModule { }diff --git a/shared/models/videos/abuse/index.ts b/shared/models/videos/abuse/index.tsindex bdeef1dad8..f70bc736fb 100644--- a/shared/models/videos/abuse/index.ts+++ b/shared/models/videos/abuse/index.ts@@ -1,4 +1,5 @@export * from './video-abuse-create.model'+export * from './video-abuse-reason.model'export * from './video-abuse-state.model'export * from './video-abuse-update.model'export * from './video-abuse-video-is.type'