mirror of https://github.com/ghostfolio/ghostfolio
				
				
			
				 5 changed files with 50 additions and 52 deletions
			
			
		@ -1,16 +0,0 @@ | 
				
			|||
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; | 
				
			|||
 | 
				
			|||
import { NgModule } from '@angular/core'; | 
				
			|||
import { RouterModule, Routes } from '@angular/router'; | 
				
			|||
 | 
				
			|||
import { LandingPageComponent } from './landing-page.component'; | 
				
			|||
 | 
				
			|||
const routes: Routes = [ | 
				
			|||
  { path: '', component: LandingPageComponent, canActivate: [AuthGuard] } | 
				
			|||
]; | 
				
			|||
 | 
				
			|||
@NgModule({ | 
				
			|||
  imports: [RouterModule.forChild(routes)], | 
				
			|||
  exports: [RouterModule] | 
				
			|||
}) | 
				
			|||
export class LandingPageRoutingModule {} | 
				
			|||
@ -1,30 +0,0 @@ | 
				
			|||
import { GfWorldMapChartModule } from '@ghostfolio/client/components/world-map-chart/world-map-chart.module'; | 
				
			|||
import { GfCarouselComponent } from '@ghostfolio/ui/carousel'; | 
				
			|||
import { GfLogoComponent } from '@ghostfolio/ui/logo'; | 
				
			|||
import { GfValueComponent } from '@ghostfolio/ui/value'; | 
				
			|||
 | 
				
			|||
import { CommonModule } from '@angular/common'; | 
				
			|||
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; | 
				
			|||
import { MatButtonModule } from '@angular/material/button'; | 
				
			|||
import { MatCardModule } from '@angular/material/card'; | 
				
			|||
import { RouterModule } from '@angular/router'; | 
				
			|||
 | 
				
			|||
import { LandingPageRoutingModule } from './landing-page-routing.module'; | 
				
			|||
import { LandingPageComponent } from './landing-page.component'; | 
				
			|||
 | 
				
			|||
@NgModule({ | 
				
			|||
  declarations: [LandingPageComponent], | 
				
			|||
  imports: [ | 
				
			|||
    CommonModule, | 
				
			|||
    GfCarouselComponent, | 
				
			|||
    GfLogoComponent, | 
				
			|||
    GfValueComponent, | 
				
			|||
    GfWorldMapChartModule, | 
				
			|||
    LandingPageRoutingModule, | 
				
			|||
    MatButtonModule, | 
				
			|||
    MatCardModule, | 
				
			|||
    RouterModule | 
				
			|||
  ], | 
				
			|||
  schemas: [CUSTOM_ELEMENTS_SCHEMA] | 
				
			|||
}) | 
				
			|||
export class LandingPageModule {} | 
				
			|||
@ -0,0 +1,15 @@ | 
				
			|||
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; | 
				
			|||
import { publicRoutes } from '@ghostfolio/common/routes/routes'; | 
				
			|||
 | 
				
			|||
import { Routes } from '@angular/router'; | 
				
			|||
 | 
				
			|||
import { GfLandingPageComponent } from './landing-page.component'; | 
				
			|||
 | 
				
			|||
export const routes: Routes = [ | 
				
			|||
  { | 
				
			|||
    canActivate: [AuthGuard], | 
				
			|||
    component: GfLandingPageComponent, | 
				
			|||
    path: '', | 
				
			|||
    title: publicRoutes.register.title | 
				
			|||
  } | 
				
			|||
]; | 
				
			|||
					Loading…
					
					
				
		Reference in new issue