mirror of https://github.com/ghostfolio/ghostfolio
committed by
GitHub
23 changed files with 224 additions and 114 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 { MarketsPageComponent } from './markets-page.component'; |
|||
|
|||
const routes: Routes = [ |
|||
{ path: '', component: MarketsPageComponent, canActivate: [AuthGuard] } |
|||
]; |
|||
|
|||
@NgModule({ |
|||
imports: [RouterModule.forChild(routes)], |
|||
exports: [RouterModule] |
|||
}) |
|||
export class MarketsPageRoutingModule {} |
@ -0,0 +1,21 @@ |
|||
import { Component, OnDestroy, OnInit } from '@angular/core'; |
|||
import { Subject } from 'rxjs'; |
|||
|
|||
@Component({ |
|||
host: { class: 'page' }, |
|||
selector: 'gf-markets-page', |
|||
styleUrls: ['./markets-page.scss'], |
|||
templateUrl: './markets-page.html' |
|||
}) |
|||
export class MarketsPageComponent implements OnDestroy, OnInit { |
|||
private unsubscribeSubject = new Subject<void>(); |
|||
|
|||
public constructor() {} |
|||
|
|||
public ngOnInit() {} |
|||
|
|||
public ngOnDestroy() { |
|||
this.unsubscribeSubject.next(); |
|||
this.unsubscribeSubject.complete(); |
|||
} |
|||
} |
@ -0,0 +1,7 @@ |
|||
<div class="container"> |
|||
<div class="row"> |
|||
<div class="col"> |
|||
<gf-home-market></gf-home-market> |
|||
</div> |
|||
</div> |
|||
</div> |
@ -0,0 +1,13 @@ |
|||
import { CommonModule } from '@angular/common'; |
|||
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; |
|||
import { GfHomeMarketModule } from '@ghostfolio/client/components/home-market/home-market.module'; |
|||
|
|||
import { MarketsPageRoutingModule } from './markets-page-routing.module'; |
|||
import { MarketsPageComponent } from './markets-page.component'; |
|||
|
|||
@NgModule({ |
|||
declarations: [MarketsPageComponent], |
|||
imports: [CommonModule, GfHomeMarketModule, MarketsPageRoutingModule], |
|||
schemas: [CUSTOM_ELEMENTS_SCHEMA] |
|||
}) |
|||
export class MarketsPageModule {} |
@ -0,0 +1,3 @@ |
|||
:host { |
|||
display: block; |
|||
} |
Loading…
Reference in new issue