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="container mt-5"> |
||||
<div class="row"> |
<div class="row"> |
||||
<div class="col"> |
<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"> |
<p class="mb-4"> |
||||
<span i18n |
<span i18n |
||||
>Ghostfolio X-ray uses static analysis to identify potential issues |
>Ghostfolio X-ray uses static analysis to identify potential issues |
||||
and risks in your portfolio.</span |
and risks in your portfolio.</span |
||||
> |
> |
||||
<span class="d-none" |
<span class="d-none" i18n |
||||
>It will be highly configurable in the future: activate / deactivate |
>Activate / deactivate rules and customize the thresholds to match |
||||
rules and customize the thresholds to match your personal investment |
your personal investment style.</span |
||||
style.</span |
|
||||
> |
> |
||||
</p> |
</p> |
||||
<div class="mb-4"> |
<div class="mb-4"> |
@ -1,26 +1,22 @@ |
|||||
import { GfRulesModule } from '@ghostfolio/client/components/rules/rules.module'; |
import { GfRulesModule } from '@ghostfolio/client/components/rules/rules.module'; |
||||
import { GfFireCalculatorComponent } from '@ghostfolio/ui/fire-calculator'; |
|
||||
import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator'; |
import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator'; |
||||
import { GfValueComponent } from '@ghostfolio/ui/value'; |
|
||||
|
|
||||
import { CommonModule } from '@angular/common'; |
import { CommonModule } from '@angular/common'; |
||||
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; |
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; |
||||
import { RouterModule } from '@angular/router'; |
|
||||
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
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({ |
@NgModule({ |
||||
declarations: [XRayComponent], |
declarations: [XRayPageComponent], |
||||
imports: [ |
imports: [ |
||||
CommonModule, |
CommonModule, |
||||
GfFireCalculatorComponent, |
|
||||
GfPremiumIndicatorComponent, |
GfPremiumIndicatorComponent, |
||||
GfRulesModule, |
GfRulesModule, |
||||
GfValueComponent, |
|
||||
NgxSkeletonLoaderModule, |
NgxSkeletonLoaderModule, |
||||
RouterModule.forChild([{ path: '', component: XRayComponent }]) |
XRayPageRoutingModule |
||||
], |
], |
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA] |
schemas: [CUSTOM_ELEMENTS_SCHEMA] |
||||
}) |
}) |
||||
export class XRayModule {} |
export class XRayPageModule {} |
Loading…
Reference in new issue