mirror of https://github.com/ghostfolio/ghostfolio
committed by
GitHub
6 changed files with 40 additions and 59 deletions
@ -1,22 +0,0 @@ |
|||
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; |
|||
import { publicRoutes } from '@ghostfolio/common/routes/routes'; |
|||
|
|||
import { NgModule } from '@angular/core'; |
|||
import { RouterModule, Routes } from '@angular/router'; |
|||
|
|||
import { RegisterPageComponent } from './register-page.component'; |
|||
|
|||
const routes: Routes = [ |
|||
{ |
|||
canActivate: [AuthGuard], |
|||
component: RegisterPageComponent, |
|||
path: '', |
|||
title: publicRoutes.register.title |
|||
} |
|||
]; |
|||
|
|||
@NgModule({ |
|||
imports: [RouterModule.forChild(routes)], |
|||
exports: [RouterModule] |
|||
}) |
|||
export class RegisterPageRoutingModule {} |
@ -1,26 +0,0 @@ |
|||
import { GfLogoComponent } from '@ghostfolio/ui/logo'; |
|||
|
|||
import { CommonModule } from '@angular/common'; |
|||
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; |
|||
import { MatButtonModule } from '@angular/material/button'; |
|||
import { RouterModule } from '@angular/router'; |
|||
import { IonIcon } from '@ionic/angular/standalone'; |
|||
|
|||
import { RegisterPageRoutingModule } from './register-page-routing.module'; |
|||
import { RegisterPageComponent } from './register-page.component'; |
|||
import { ShowAccessTokenDialogModule } from './show-access-token-dialog/show-access-token-dialog.module'; |
|||
|
|||
@NgModule({ |
|||
declarations: [RegisterPageComponent], |
|||
imports: [ |
|||
CommonModule, |
|||
GfLogoComponent, |
|||
IonIcon, |
|||
MatButtonModule, |
|||
RegisterPageRoutingModule, |
|||
RouterModule, |
|||
ShowAccessTokenDialogModule |
|||
], |
|||
schemas: [CUSTOM_ELEMENTS_SCHEMA] |
|||
}) |
|||
export class RegisterPageModule {} |
@ -0,0 +1,15 @@ |
|||
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; |
|||
import { publicRoutes } from '@ghostfolio/common/routes/routes'; |
|||
|
|||
import { Routes } from '@angular/router'; |
|||
|
|||
import { GfRegisterPageComponent } from './register-page.component'; |
|||
|
|||
export const routes: Routes = [ |
|||
{ |
|||
canActivate: [AuthGuard], |
|||
component: GfRegisterPageComponent, |
|||
path: '', |
|||
title: publicRoutes.register.title |
|||
} |
|||
]; |
Loading…
Reference in new issue