From 2539932e16129992a2c0889b4ff527c265a8e2c7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 27 May 2021 15:59:55 +0200 Subject: Instance homepage support (#4007) * Prepare homepage parsers * Add ability to update instance hompage * Add ability to set homepage as landing page * Add homepage preview in admin * Dynamically update left menu for homepage * Inject home content in homepage * Add videos list and channel miniature custom markup * Remove unused elements in markup service --- client/src/app/app-routing.module.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/src/app/app-routing.module.ts') diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.ts index 3ea5b7e5e..57e485e8e 100644 --- a/client/src/app/app-routing.module.ts +++ b/client/src/app/app-routing.module.ts @@ -13,6 +13,10 @@ const routes: Routes = [ canDeactivate: [ MenuGuards.open() ], loadChildren: () => import('./+admin/admin.module').then(m => m.AdminModule) }, + { + path: 'home', + loadChildren: () => import('./+home/home.module').then(m => m.HomeModule) + }, { path: 'my-account', loadChildren: () => import('./+my-account/my-account.module').then(m => m.MyAccountModule) -- cgit v1.2.3 From 0f01a8bacddf6c502e6470e34fdac7750bb76e89 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 14 May 2021 16:12:45 +0200 Subject: Remove ngx-meta Unmaintained --- client/src/app/app-routing.module.ts | 41 ++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 14 deletions(-) (limited to 'client/src/app/app-routing.module.ts') diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.ts index 57e485e8e..4e3cce590 100644 --- a/client/src/app/app-routing.module.ts +++ b/client/src/app/app-routing.module.ts @@ -3,7 +3,7 @@ import { RouteReuseStrategy, RouterModule, Routes } from '@angular/router' import { CustomReuseStrategy } from '@app/core/routing/custom-reuse-strategy' import { MenuGuards } from '@app/core/routing/menu-guard.service' import { POSSIBLE_LOCALES } from '@shared/core-utils/i18n' -import { PreloadSelectedModulesList } from './core' +import { MetaGuard, PreloadSelectedModulesList } from './core' import { EmptyComponent } from './empty.component' const routes: Routes = [ @@ -11,7 +11,8 @@ const routes: Routes = [ path: 'admin', canActivate: [ MenuGuards.close() ], canDeactivate: [ MenuGuards.open() ], - loadChildren: () => import('./+admin/admin.module').then(m => m.AdminModule) + loadChildren: () => import('./+admin/admin.module').then(m => m.AdminModule), + canActivateChild: [ MetaGuard ] }, { path: 'home', @@ -19,51 +20,63 @@ const routes: Routes = [ }, { path: 'my-account', - loadChildren: () => import('./+my-account/my-account.module').then(m => m.MyAccountModule) + loadChildren: () => import('./+my-account/my-account.module').then(m => m.MyAccountModule), + canActivateChild: [ MetaGuard ] }, { path: 'my-library', - loadChildren: () => import('./+my-library/my-library.module').then(m => m.MyLibraryModule) + loadChildren: () => import('./+my-library/my-library.module').then(m => m.MyLibraryModule), + canActivateChild: [ MetaGuard ] }, { path: 'verify-account', - loadChildren: () => import('./+signup/+verify-account/verify-account.module').then(m => m.VerifyAccountModule) + loadChildren: () => import('./+signup/+verify-account/verify-account.module').then(m => m.VerifyAccountModule), + canActivateChild: [ MetaGuard ] }, { path: 'accounts', - loadChildren: () => import('./+accounts/accounts.module').then(m => m.AccountsModule) + loadChildren: () => import('./+accounts/accounts.module').then(m => m.AccountsModule), + canActivateChild: [ MetaGuard ] }, { path: 'video-channels', - loadChildren: () => import('./+video-channels/video-channels.module').then(m => m.VideoChannelsModule) + loadChildren: () => import('./+video-channels/video-channels.module').then(m => m.VideoChannelsModule), + canActivateChild: [ MetaGuard ] }, { path: 'about', - loadChildren: () => import('./+about/about.module').then(m => m.AboutModule) + loadChildren: () => import('./+about/about.module').then(m => m.AboutModule), + canActivateChild: [ MetaGuard ] }, { path: 'signup', - loadChildren: () => import('./+signup/+register/register.module').then(m => m.RegisterModule) + loadChildren: () => import('./+signup/+register/register.module').then(m => m.RegisterModule), + canActivateChild: [ MetaGuard ] }, { path: 'reset-password', - loadChildren: () => import('./+reset-password/reset-password.module').then(m => m.ResetPasswordModule) + loadChildren: () => import('./+reset-password/reset-password.module').then(m => m.ResetPasswordModule), + canActivateChild: [ MetaGuard ] }, { path: 'login', - loadChildren: () => import('./+login/login.module').then(m => m.LoginModule) + loadChildren: () => import('./+login/login.module').then(m => m.LoginModule), + canActivateChild: [ MetaGuard ] }, { path: 'search', - loadChildren: () => import('./+search/search.module').then(m => m.SearchModule) + loadChildren: () => import('./+search/search.module').then(m => m.SearchModule), + canActivateChild: [ MetaGuard ] }, { path: 'videos', - loadChildren: () => import('./+videos/videos.module').then(m => m.VideosModule) + loadChildren: () => import('./+videos/videos.module').then(m => m.VideosModule), + canActivateChild: [ MetaGuard ] }, { path: 'remote-interaction', - loadChildren: () => import('./+remote-interaction/remote-interaction.module').then(m => m.RemoteInteractionModule) + loadChildren: () => import('./+remote-interaction/remote-interaction.module').then(m => m.RemoteInteractionModule), + canActivateChild: [ MetaGuard ] }, { path: 'video-playlists/watch', -- cgit v1.2.3