mirror of https://github.com/ghostfolio/ghostfolio
5 changed files with 40 additions and 38 deletions
@ -1,26 +0,0 @@ |
|||
import { GfHomeHoldingsComponent } from '@ghostfolio/client/components/home-holdings/home-holdings.component'; |
|||
import { GfHomeOverviewComponent } from '@ghostfolio/client/components/home-overview/home-overview.component'; |
|||
|
|||
import { CommonModule } from '@angular/common'; |
|||
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; |
|||
import { MatTabsModule } from '@angular/material/tabs'; |
|||
import { RouterModule } from '@angular/router'; |
|||
import { IonIcon } from '@ionic/angular/standalone'; |
|||
|
|||
import { ZenPageRoutingModule } from './zen-page-routing.module'; |
|||
import { ZenPageComponent } from './zen-page.component'; |
|||
|
|||
@NgModule({ |
|||
declarations: [ZenPageComponent], |
|||
imports: [ |
|||
CommonModule, |
|||
GfHomeHoldingsComponent, |
|||
GfHomeOverviewComponent, |
|||
IonIcon, |
|||
MatTabsModule, |
|||
RouterModule, |
|||
ZenPageRoutingModule |
|||
], |
|||
schemas: [CUSTOM_ELEMENTS_SCHEMA] |
|||
}) |
|||
export class ZenPageModule {} |
|||
@ -0,0 +1,28 @@ |
|||
import { GfHomeHoldingsComponent } from '@ghostfolio/client/components/home-holdings/home-holdings.component'; |
|||
import { GfHomeOverviewComponent } from '@ghostfolio/client/components/home-overview/home-overview.component'; |
|||
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; |
|||
import { internalRoutes } from '@ghostfolio/common/routes/routes'; |
|||
|
|||
import { Routes } from '@angular/router'; |
|||
|
|||
import { ZenPageComponent } from './zen-page.component'; |
|||
|
|||
export const routes: Routes = [ |
|||
{ |
|||
canActivate: [AuthGuard], |
|||
children: [ |
|||
{ |
|||
path: '', |
|||
component: GfHomeOverviewComponent |
|||
}, |
|||
{ |
|||
path: internalRoutes.zen.subRoutes.holdings.path, |
|||
component: GfHomeHoldingsComponent, |
|||
title: internalRoutes.home.subRoutes.holdings.title |
|||
} |
|||
], |
|||
component: ZenPageComponent, |
|||
path: '', |
|||
title: internalRoutes.zen.title |
|||
} |
|||
]; |
|||
Loading…
Reference in new issue