mirror of https://github.com/ghostfolio/ghostfolio
				
				
			
							committed by
							
								
								GitHub
							
						
					
				
				 6 changed files with 32 additions and 48 deletions
			
			
		@ -1,22 +0,0 @@ | 
				
			|||||
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; | 
					 | 
				
			||||
import { publicRoutes } from '@ghostfolio/common/routes/routes'; | 
					 | 
				
			||||
 | 
					 | 
				
			||||
import { NgModule } from '@angular/core'; | 
					 | 
				
			||||
import { RouterModule, Routes } from '@angular/router'; | 
					 | 
				
			||||
 | 
					 | 
				
			||||
import { OpenPageComponent } from './open-page.component'; | 
					 | 
				
			||||
 | 
					 | 
				
			||||
const routes: Routes = [ | 
					 | 
				
			||||
  { | 
					 | 
				
			||||
    canActivate: [AuthGuard], | 
					 | 
				
			||||
    component: OpenPageComponent, | 
					 | 
				
			||||
    path: '', | 
					 | 
				
			||||
    title: publicRoutes.openStartup.title | 
					 | 
				
			||||
  } | 
					 | 
				
			||||
]; | 
					 | 
				
			||||
 | 
					 | 
				
			||||
@NgModule({ | 
					 | 
				
			||||
  imports: [RouterModule.forChild(routes)], | 
					 | 
				
			||||
  exports: [RouterModule] | 
					 | 
				
			||||
}) | 
					 | 
				
			||||
export class OpenPageRoutingModule {} | 
					 | 
				
			||||
@ -1,20 +0,0 @@ | 
				
			|||||
import { GfValueComponent } from '@ghostfolio/ui/value'; | 
					 | 
				
			||||
 | 
					 | 
				
			||||
import { CommonModule } from '@angular/common'; | 
					 | 
				
			||||
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; | 
					 | 
				
			||||
import { MatCardModule } from '@angular/material/card'; | 
					 | 
				
			||||
 | 
					 | 
				
			||||
import { OpenPageRoutingModule } from './open-page-routing.module'; | 
					 | 
				
			||||
import { OpenPageComponent } from './open-page.component'; | 
					 | 
				
			||||
 | 
					 | 
				
			||||
@NgModule({ | 
					 | 
				
			||||
  declarations: [OpenPageComponent], | 
					 | 
				
			||||
  imports: [ | 
					 | 
				
			||||
    CommonModule, | 
					 | 
				
			||||
    GfValueComponent, | 
					 | 
				
			||||
    MatCardModule, | 
					 | 
				
			||||
    OpenPageRoutingModule | 
					 | 
				
			||||
  ], | 
					 | 
				
			||||
  schemas: [CUSTOM_ELEMENTS_SCHEMA] | 
					 | 
				
			||||
}) | 
					 | 
				
			||||
export class OpenPageModule {} | 
					 | 
				
			||||
@ -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 { GfOpenPageComponent } from './open-page.component'; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					export const routes: Routes = [ | 
				
			||||
 | 
					  { | 
				
			||||
 | 
					    canActivate: [AuthGuard], | 
				
			||||
 | 
					    component: GfOpenPageComponent, | 
				
			||||
 | 
					    path: '', | 
				
			||||
 | 
					    title: publicRoutes.openStartup.title | 
				
			||||
 | 
					  } | 
				
			||||
 | 
					]; | 
				
			||||
					Loading…
					
					
				
		Reference in new issue