mirror of https://github.com/ghostfolio/ghostfolio
6 changed files with 67 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||
import { NgModule } from '@angular/core'; |
|||
import { RouterModule, Routes } from '@angular/router'; |
|||
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; |
|||
|
|||
import { I18nPageComponent } from './i18n-page.component'; |
|||
|
|||
const routes: Routes = [ |
|||
{ |
|||
canActivate: [AuthGuard], |
|||
component: I18nPageComponent, |
|||
path: '' |
|||
} |
|||
]; |
|||
|
|||
@NgModule({ |
|||
imports: [RouterModule.forChild(routes)], |
|||
exports: [RouterModule] |
|||
}) |
|||
export class I18nPageRoutingModule {} |
@ -0,0 +1,21 @@ |
|||
import { Component, OnInit } from '@angular/core'; |
|||
import { Subject } from 'rxjs'; |
|||
|
|||
@Component({ |
|||
host: { class: 'page' }, |
|||
selector: 'gf-i18n-page', |
|||
styleUrls: ['./i18n-page.scss'], |
|||
templateUrl: './i18n-page.html' |
|||
}) |
|||
export class I18nPageComponent implements 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"> |
|||
<ul> |
|||
<li></li> |
|||
</ul> |
|||
</div> |
|||
</div> |
@ -0,0 +1,12 @@ |
|||
import { CommonModule } from '@angular/common'; |
|||
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; |
|||
|
|||
import { I18nPageRoutingModule } from './i18n-page-routing.module'; |
|||
import { I18nPageComponent } from './i18n-page.component'; |
|||
|
|||
@NgModule({ |
|||
declarations: [I18nPageComponent], |
|||
imports: [CommonModule, I18nPageRoutingModule], |
|||
schemas: [CUSTOM_ELEMENTS_SCHEMA] |
|||
}) |
|||
export class I18nPageModule {} |
@ -0,0 +1,3 @@ |
|||
:host { |
|||
display: block; |
|||
} |
Loading…
Reference in new issue