From 0157a3b16810a5ad96843f14ae83885b6f084b95 Mon Sep 17 00:00:00 2001 From: geek Date: Wed, 30 May 2018 18:41:15 +0900 Subject: [PATCH] ing --- .../pages/auth/auth-page-routing.module.ts | 6 +++- src/app/pages/auth/auth-page.module.ts | 4 +++ ...confirm-reset-password-page.component.html | 27 ++++++++++++++++++ .../confirm-reset-password-page.component.ts | 28 +++++++++++++++++++ .../confirm-signup-page.component.html | 27 ++++++++++++++++++ .../confirm/confirm-signup-page.component.ts | 23 +++++++++++++++ 6 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 src/app/pages/auth/confirm/confirm-reset-password-page.component.html create mode 100644 src/app/pages/auth/confirm/confirm-reset-password-page.component.ts create mode 100644 src/app/pages/auth/confirm/confirm-signup-page.component.html create mode 100644 src/app/pages/auth/confirm/confirm-signup-page.component.ts diff --git a/src/app/pages/auth/auth-page-routing.module.ts b/src/app/pages/auth/auth-page-routing.module.ts index 3cd13d6..24a6b2b 100644 --- a/src/app/pages/auth/auth-page-routing.module.ts +++ b/src/app/pages/auth/auth-page-routing.module.ts @@ -6,6 +6,8 @@ import { SigninPageComponent } from './signin/signin-page.component'; import { SignupPageComponent } from './signup/signup-page.component'; import { ResetPasswordPageComponent } from './reset-password/reset-password-page.component'; import { ModifyPasswordPageComponent } from './reset-password/modify-password-page.component'; +import { ConfirmSignupPageComponent } from '@app/pages/auth/confirm/confirm-signup-page.component'; +import { ConfirmResetPasswordPageComponent } from '@app/pages/auth/confirm/confirm-reset-password-page.component'; const routes: Routes = [ { @@ -16,7 +18,9 @@ const routes: Routes = [ { path: 'signin', component: SigninPageComponent }, { path: 'signup', component: SignupPageComponent }, { path: 'reset-password', component: ResetPasswordPageComponent }, - { path: 'modify-password', component: ModifyPasswordPageComponent } + { path: 'modify-password', component: ModifyPasswordPageComponent }, + // { path: 'confirm-signup', component: ConfirmSignupPageComponent }, + // { path: 'confirm-reset-password', component: ConfirmResetPasswordPageComponent } ] } ]; diff --git a/src/app/pages/auth/auth-page.module.ts b/src/app/pages/auth/auth-page.module.ts index fe8dc9a..cd9658b 100644 --- a/src/app/pages/auth/auth-page.module.ts +++ b/src/app/pages/auth/auth-page.module.ts @@ -12,6 +12,8 @@ import { ResetPasswordPageComponent } from './reset-password/reset-password-page import { ModifyPasswordPageComponent } from './reset-password/modify-password-page.component'; import { } from '@app/commons/component/layout/banner/app.banner.component'; +import { ConfirmSignupPageComponent } from '@app/pages/auth/confirm/confirm-signup-page.component'; +import { ConfirmResetPasswordPageComponent } from '@app/pages/auth/confirm/confirm-reset-password-page.component'; export const COMPONENTS = [ AuthPageComponent, @@ -19,6 +21,8 @@ export const COMPONENTS = [ SignupPageComponent, ResetPasswordPageComponent, ModifyPasswordPageComponent, + ConfirmSignupPageComponent, + ConfirmResetPasswordPageComponent ]; @NgModule({ diff --git a/src/app/pages/auth/confirm/confirm-reset-password-page.component.html b/src/app/pages/auth/confirm/confirm-reset-password-page.component.html new file mode 100644 index 0000000..9eacd70 --- /dev/null +++ b/src/app/pages/auth/confirm/confirm-reset-password-page.component.html @@ -0,0 +1,27 @@ +
+
+ +
+ +
diff --git a/src/app/pages/auth/confirm/confirm-reset-password-page.component.ts b/src/app/pages/auth/confirm/confirm-reset-password-page.component.ts new file mode 100644 index 0000000..eca2d3c --- /dev/null +++ b/src/app/pages/auth/confirm/confirm-reset-password-page.component.ts @@ -0,0 +1,28 @@ +import { Component, OnInit } from '@angular/core'; +import {ActivatedRoute, Router} from '@angular/router'; + +@Component({ + selector: 'of-pages-auth-confirm-reset-password', + templateUrl: './confirm-reset-password-page.component.html', +}) +export class ConfirmResetPasswordPageComponent implements OnInit { + + token: string; + + constructor( + private router: Router, + private activatedRoute: ActivatedRoute, + ) { } + + ngOnInit() { + this.token = this.activatedRoute.snapshot.queryParams['token'] || '/'; + } + + onModifyPassword() { + this.router.navigate(['auth/modify-password']); + } + + onSignin() { + this.router.navigate(['auth/signin']); + } +} diff --git a/src/app/pages/auth/confirm/confirm-signup-page.component.html b/src/app/pages/auth/confirm/confirm-signup-page.component.html new file mode 100644 index 0000000..7469d82 --- /dev/null +++ b/src/app/pages/auth/confirm/confirm-signup-page.component.html @@ -0,0 +1,27 @@ +
+
+ +
+ +
diff --git a/src/app/pages/auth/confirm/confirm-signup-page.component.ts b/src/app/pages/auth/confirm/confirm-signup-page.component.ts new file mode 100644 index 0000000..3e128d3 --- /dev/null +++ b/src/app/pages/auth/confirm/confirm-signup-page.component.ts @@ -0,0 +1,23 @@ +import { Component, OnInit } from '@angular/core'; +import { ActivatedRoute, Router } from '@angular/router'; + +@Component({ + selector: 'of-pages-confirm-signup', + templateUrl: './confirm-signup-page.component.html', +}) +export class ConfirmSignupPageComponent implements OnInit { + token: string; + + constructor( + private router: Router, + private activatedRoute: ActivatedRoute, + ) { } + + ngOnInit() { + this.token = this.activatedRoute.snapshot.queryParams['token'] || '/'; + } + + onSignin() { + this.router.navigate(['auth/signin']); + } +}