This commit is contained in:
crusader
2018-06-04 17:55:47 +09:00
parent ffcee6564e
commit 9990650925
34 changed files with 127 additions and 103 deletions

View File

@@ -1,7 +1,7 @@
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { Store, select } from '@ngrx/store';
import { Observable, of } from 'rxjs';
import { catchError, exhaustMap, map, tap } from 'rxjs/operators';
import { catchError, exhaustMap, map, tap, take } from 'rxjs/operators';
import { FormBuilder } from '@angular/forms';
import { EmailAuthService } from '../service/email-auth.service';
import { EmailAuth } from '@overflow/commons-typescript/model/email/EmailAuth';
@@ -40,7 +40,8 @@ export class MemberConfirmResetPasswordComponent implements OnInit {
tap(() => {
this.pending$ = of(false);
}),
).take(1).subscribe();
take(1),
).subscribe();
}
onModifyPassword() {

View File

@@ -1,7 +1,7 @@
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { Store, select } from '@ngrx/store';
import { Observable, of } from 'rxjs';
import { catchError, exhaustMap, map, tap } from 'rxjs/operators';
import { catchError, exhaustMap, map, tap, take } from 'rxjs/operators';
import { FormBuilder } from '@angular/forms';
import { EmailAuthService } from '../service/email-auth.service';
import { EmailAuth } from '@overflow/commons-typescript/model/email/EmailAuth';
@@ -39,7 +39,8 @@ export class MemberConfirmSignupComponent implements OnInit {
tap(() => {
this.pending$ = of(false);
}),
).take(1).subscribe();
take(1),
).subscribe();
}
onSignin() {

View File

@@ -3,7 +3,7 @@ import { FormGroup, FormBuilder, Validators, FormControl, ValidationErrors, Abst
import { Member } from '@overflow/commons-typescript/model/member';
import { Store, select } from '@ngrx/store';
import { Observable, of } from 'rxjs';
import { catchError, exhaustMap, map, tap } from 'rxjs/operators';
import { catchError, exhaustMap, map, tap, take } from 'rxjs/operators';
import { MemberService } from '../service/member.service';
@@ -95,7 +95,8 @@ export class MemberModifyPasswordComponent implements OnInit {
tap(() => {
this.pending$ = of(false);
}),
).take(1).subscribe();
take(1),
).subscribe();
}
onSignin() {

View File

@@ -1,12 +1,16 @@
import { Component, OnInit, OnDestroy, Input, Output, EventEmitter } from '@angular/core';
import { Member } from '@overflow/commons-typescript/model/member';
import { AbstractControl, FormBuilder, FormGroup, Validators} from '@angular/forms';
import { DomainMember } from '@overflow/commons-typescript/model/domain';
import { Observable, of } from 'rxjs';
import { Store } from '@ngrx/store';
import { Observable, of } from 'rxjs';
import { catchError, map, tap, take } from 'rxjs/operators';
import { Member } from '@overflow/commons-typescript/model/member';
import { DomainMember } from '@overflow/commons-typescript/model/domain';
import { AuthSelector } from '@overflow/shared/auth/store';
import * as AuthStore from '@overflow/shared/auth/store/auth';
import { catchError, map, tap } from 'rxjs/operators';
import { MemberService } from '../service/member.service';
@Component({
@@ -98,7 +102,8 @@ export class MemberProfileComponent implements OnInit, OnDestroy {
tap(() => {
this.pending$ = of(false);
}),
).take(1).subscribe();
take(1),
).subscribe();
}
private checkProfile(formValue: any): boolean {

View File

@@ -12,7 +12,7 @@ import {
} from '@angular/forms';
import { Store, select } from '@ngrx/store';
import { Observable, of } from 'rxjs';
import { catchError, exhaustMap, map, tap } from 'rxjs/operators';
import { catchError, exhaustMap, map, tap, take } from 'rxjs/operators';
import { Member } from '@overflow/commons-typescript/model/member';
import { MemberService } from '../service/member.service';
@@ -71,7 +71,8 @@ export class MemberResetPasswordComponent implements OnInit {
tap(() => {
this.pending$ = of(false);
}),
).take(1).subscribe();
take(1),
).subscribe();
}
onSignin() {

View File

@@ -2,7 +2,7 @@ import { Component, OnInit, Output, EventEmitter, Input } from '@angular/core';
import { FormGroup, FormBuilder, Validators, AbstractControl } from '@angular/forms';
import { Store, select } from '@ngrx/store';
import { Observable, of } from 'rxjs';
import { catchError, exhaustMap, map, tap } from 'rxjs/operators';
import { catchError, exhaustMap, map, tap, take } from 'rxjs/operators';
import { MemberService } from '../service/member.service';
import {DomainMember} from '@overflow/commons-typescript/model/domain';
import * as AuthStore from '../../shared/auth/store/auth';
@@ -80,7 +80,8 @@ export class MemberSigninComponent implements OnInit {
tap(() => {
this.pending$ = of(false);
}),
).take(1).subscribe();
take(1),
).subscribe();
}
onResetPassword() {

View File

@@ -9,7 +9,7 @@ import { FormGroup, FormBuilder, Validators, AbstractControl, FormControl, Valid
import { Member } from '@overflow/commons-typescript/model/member';
import { Store, select } from '@ngrx/store';
import { Observable, of } from 'rxjs';
import { catchError, exhaustMap, map, tap } from 'rxjs/operators';
import { catchError, exhaustMap, map, tap, take } from 'rxjs/operators';
import { MemberService } from '../service/member.service';
@Component({
@@ -146,7 +146,8 @@ export class MemberSignupComponent implements OnInit, OnDestroy {
tap(() => {
this.pending$ = of(false);
}),
).take(1).subscribe();
take(1),
).subscribe();
}
termsDisplayOpen() {

View File

@@ -1,11 +1,15 @@
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { Store } from '@ngrx/store';
import { Observable, of } from 'rxjs';
import { catchError, map, tap } from 'rxjs/operators';
import { DomainMember } from '@overflow/commons-typescript/model/domain';
import { Member } from '@overflow/commons-typescript/model/member';
import {AuthSelector} from '../../shared/auth/store';
import { Observable, of } from 'rxjs';
import { Store } from '@ngrx/store';
import * as AuthStore from '@overflow/shared/auth/store/auth';
import { catchError, map, tap } from 'rxjs/operators';
import {AuthSelector} from '../../shared/auth/store';
@Component({
selector: 'of-member-totp',