mirror of https://github.com/ghostfolio/ghostfolio
Thomas
4 years ago
committed by
GitHub
8 changed files with 126 additions and 23 deletions
@ -0,0 +1,15 @@ |
|||
import { NgModule } from '@angular/core'; |
|||
import { RouterModule, Routes } from '@angular/router'; |
|||
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; |
|||
|
|||
import { ToolsPageComponent } from './tools-page.component'; |
|||
|
|||
const routes: Routes = [ |
|||
{ path: '', component: ToolsPageComponent, canActivate: [AuthGuard] } |
|||
]; |
|||
|
|||
@NgModule({ |
|||
imports: [RouterModule.forChild(routes)], |
|||
exports: [RouterModule] |
|||
}) |
|||
export class ToolsPageRoutingModule {} |
@ -0,0 +1,21 @@ |
|||
import { Component, OnInit } from '@angular/core'; |
|||
import { Subject } from 'rxjs'; |
|||
|
|||
@Component({ |
|||
selector: 'gf-tools-page', |
|||
templateUrl: './tools-page.html', |
|||
styleUrls: ['./tools-page.scss'] |
|||
}) |
|||
export class ToolsPageComponent implements OnInit { |
|||
private unsubscribeSubject = new Subject<void>(); |
|||
|
|||
/** |
|||
* @constructor |
|||
*/ |
|||
public constructor() {} |
|||
|
|||
/** |
|||
* Initializes the controller |
|||
*/ |
|||
public ngOnInit() {} |
|||
} |
@ -0,0 +1,33 @@ |
|||
<div class="container"> |
|||
<h3 class="d-flex justify-content-center mb-3" i18n>Tools</h3> |
|||
<div class="row"> |
|||
<div class="col-xs-12 col-md-6"> |
|||
<mat-card class="mb-3"> |
|||
<h4 i18n>Analysis</h4> |
|||
<p class="mb-0"> |
|||
Ghostfolio Analysis shows your positions and visualizes your |
|||
portfolio. |
|||
</p> |
|||
<p class="text-right"> |
|||
<button color="primary" i18n mat-button [routerLink]="['/analysis']"> |
|||
Open Analysis → |
|||
</button> |
|||
</p> |
|||
</mat-card> |
|||
</div> |
|||
<div class="col-xs-12 col-md-6"> |
|||
<mat-card class="mb-3"> |
|||
<h4 i18n>X-ray</h4> |
|||
<p class="mb-0"> |
|||
Ghostfolio X-ray uses static analysis to identify potential issues and |
|||
risks in your portfolio. |
|||
</p> |
|||
<p class="text-right"> |
|||
<button color="primary" i18n mat-button [routerLink]="['/report']"> |
|||
Open X-ray → |
|||
</button> |
|||
</p> |
|||
</mat-card> |
|||
</div> |
|||
</div> |
|||
</div> |
@ -0,0 +1,23 @@ |
|||
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 { RouterModule } from '@angular/router'; |
|||
|
|||
import { ToolsPageRoutingModule } from './tools-page-routing.module'; |
|||
import { ToolsPageComponent } from './tools-page.component'; |
|||
|
|||
@NgModule({ |
|||
declarations: [ToolsPageComponent], |
|||
exports: [], |
|||
imports: [ |
|||
CommonModule, |
|||
MatButtonModule, |
|||
MatCardModule, |
|||
RouterModule, |
|||
ToolsPageRoutingModule |
|||
], |
|||
providers: [], |
|||
schemas: [CUSTOM_ELEMENTS_SCHEMA] |
|||
}) |
|||
export class ToolsPageModule {} |
@ -0,0 +1,8 @@ |
|||
:host { |
|||
color: rgb(var(--dark-primary-text)); |
|||
display: block; |
|||
} |
|||
|
|||
:host-context(.is-dark-theme) { |
|||
color: rgb(var(--light-primary-text)); |
|||
} |
Loading…
Reference in new issue