mirror of https://github.com/ghostfolio/ghostfolio
8 changed files with 37 additions and 103 deletions
@ -0,0 +1,21 @@ |
|||
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; |
|||
|
|||
import { NgModule } from '@angular/core'; |
|||
import { RouterModule, Routes } from '@angular/router'; |
|||
|
|||
import { XRayPageComponent } from './x-ray-page.component'; |
|||
|
|||
const routes: Routes = [ |
|||
{ |
|||
canActivate: [AuthGuard], |
|||
component: XRayPageComponent, |
|||
path: '', |
|||
title: $localize`X-ray` |
|||
} |
|||
]; |
|||
|
|||
@NgModule({ |
|||
imports: [RouterModule.forChild(routes)], |
|||
exports: [RouterModule] |
|||
}) |
|||
export class XRayPageRoutingModule {} |
@ -1,16 +1,15 @@ |
|||
<div class="container mt-5"> |
|||
<div class="row"> |
|||
<div class="col"> |
|||
<h2 class="h3 mb-3 text-center">X-ray</h2> |
|||
<h2 class="d-none d-sm-block h3 mb-3 text-center">X-ray</h2> |
|||
<p class="mb-4"> |
|||
<span i18n |
|||
>Ghostfolio X-ray uses static analysis to identify potential issues |
|||
and risks in your portfolio.</span |
|||
> |
|||
<span class="d-none" |
|||
>It will be highly configurable in the future: activate / deactivate |
|||
rules and customize the thresholds to match your personal investment |
|||
style.</span |
|||
<span class="d-none" i18n |
|||
>Activate / deactivate rules and customize the thresholds to match |
|||
your personal investment style.</span |
|||
> |
|||
</p> |
|||
<div class="mb-4"> |
@ -1,26 +1,22 @@ |
|||
import { GfRulesModule } from '@ghostfolio/client/components/rules/rules.module'; |
|||
import { GfFireCalculatorComponent } from '@ghostfolio/ui/fire-calculator'; |
|||
import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator'; |
|||
import { GfValueComponent } from '@ghostfolio/ui/value'; |
|||
|
|||
import { CommonModule } from '@angular/common'; |
|||
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; |
|||
import { RouterModule } from '@angular/router'; |
|||
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
|||
|
|||
import { XRayComponent } from './x-ray.component'; |
|||
import { XRayPageRoutingModule } from './x-ray-page-routing.module'; |
|||
import { XRayPageComponent } from './x-ray-page.component'; |
|||
|
|||
@NgModule({ |
|||
declarations: [XRayComponent], |
|||
declarations: [XRayPageComponent], |
|||
imports: [ |
|||
CommonModule, |
|||
GfFireCalculatorComponent, |
|||
GfPremiumIndicatorComponent, |
|||
GfRulesModule, |
|||
GfValueComponent, |
|||
NgxSkeletonLoaderModule, |
|||
RouterModule.forChild([{ path: '', component: XRayComponent }]) |
|||
XRayPageRoutingModule |
|||
], |
|||
schemas: [CUSTOM_ELEMENTS_SCHEMA] |
|||
}) |
|||
export class XRayModule {} |
|||
export class XRayPageModule {} |
Loading…
Reference in new issue