mirror of https://github.com/ghostfolio/ghostfolio
committed by
GitHub
6 changed files with 40 additions and 55 deletions
@ -1,20 +0,0 @@ |
|||
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; |
|||
|
|||
import { NgModule } from '@angular/core'; |
|||
import { RouterModule, Routes } from '@angular/router'; |
|||
|
|||
import { PublicPageComponent } from './public-page.component'; |
|||
|
|||
const routes: Routes = [ |
|||
{ |
|||
canActivate: [AuthGuard], |
|||
component: PublicPageComponent, |
|||
path: ':id' |
|||
} |
|||
]; |
|||
|
|||
@NgModule({ |
|||
imports: [RouterModule.forChild(routes)], |
|||
exports: [RouterModule] |
|||
}) |
|||
export class PublicPageRoutingModule {} |
@ -1,28 +0,0 @@ |
|||
import { GfWorldMapChartComponent } from '@ghostfolio/client/components/world-map-chart/world-map-chart.component'; |
|||
import { GfHoldingsTableComponent } from '@ghostfolio/ui/holdings-table'; |
|||
import { GfPortfolioProportionChartComponent } from '@ghostfolio/ui/portfolio-proportion-chart'; |
|||
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 { PublicPageRoutingModule } from './public-page-routing.module'; |
|||
import { PublicPageComponent } from './public-page.component'; |
|||
|
|||
@NgModule({ |
|||
declarations: [PublicPageComponent], |
|||
imports: [ |
|||
CommonModule, |
|||
GfHoldingsTableComponent, |
|||
GfPortfolioProportionChartComponent, |
|||
GfValueComponent, |
|||
GfWorldMapChartComponent, |
|||
MatButtonModule, |
|||
MatCardModule, |
|||
PublicPageRoutingModule |
|||
], |
|||
schemas: [CUSTOM_ELEMENTS_SCHEMA] |
|||
}) |
|||
export class PublicPageModule {} |
@ -0,0 +1,13 @@ |
|||
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; |
|||
|
|||
import { Routes } from '@angular/router'; |
|||
|
|||
import { GfPublicPageComponent } from './public-page.component'; |
|||
|
|||
export const routes: Routes = [ |
|||
{ |
|||
canActivate: [AuthGuard], |
|||
component: GfPublicPageComponent, |
|||
path: ':id' |
|||
} |
|||
]; |
Loading…
Reference in new issue