diff --git a/src/app/packages/member/component/modify.component.html b/src/app/packages/member/component/modify/modify.component.html
similarity index 100%
rename from src/app/packages/member/component/modify.component.html
rename to src/app/packages/member/component/modify/modify.component.html
diff --git a/src/app/packages/member/component/modify.component.scss b/src/app/packages/member/component/modify/modify.component.scss
similarity index 100%
rename from src/app/packages/member/component/modify.component.scss
rename to src/app/packages/member/component/modify/modify.component.scss
diff --git a/src/app/packages/member/component/modify.component.spec.ts b/src/app/packages/member/component/modify/modify.component.spec.ts
similarity index 100%
rename from src/app/packages/member/component/modify.component.spec.ts
rename to src/app/packages/member/component/modify/modify.component.spec.ts
diff --git a/src/app/packages/member/component/modify.component.ts b/src/app/packages/member/component/modify/modify.component.ts
similarity index 100%
rename from src/app/packages/member/component/modify.component.ts
rename to src/app/packages/member/component/modify/modify.component.ts
diff --git a/src/app/packages/member/component/reset-password.component.html b/src/app/packages/member/component/reset-password/reset-password.component.html
similarity index 100%
rename from src/app/packages/member/component/reset-password.component.html
rename to src/app/packages/member/component/reset-password/reset-password.component.html
diff --git a/src/app/packages/member/component/reset-password.component.scss b/src/app/packages/member/component/reset-password/reset-password.component.scss
similarity index 100%
rename from src/app/packages/member/component/reset-password.component.scss
rename to src/app/packages/member/component/reset-password/reset-password.component.scss
diff --git a/src/app/packages/member/component/reset-password.component.spec.ts b/src/app/packages/member/component/reset-password/reset-password.component.spec.ts
similarity index 100%
rename from src/app/packages/member/component/reset-password.component.spec.ts
rename to src/app/packages/member/component/reset-password/reset-password.component.spec.ts
diff --git a/src/app/packages/member/component/reset-password.component.ts b/src/app/packages/member/component/reset-password/reset-password.component.ts
similarity index 100%
rename from src/app/packages/member/component/reset-password.component.ts
rename to src/app/packages/member/component/reset-password/reset-password.component.ts
diff --git a/src/app/packages/member/component/signin.component.html b/src/app/packages/member/component/signin/signin.component.html
similarity index 94%
rename from src/app/packages/member/component/signin.component.html
rename to src/app/packages/member/component/signin/signin.component.html
index 8571642..d8b9905 100644
--- a/src/app/packages/member/component/signin.component.html
+++ b/src/app/packages/member/component/signin/signin.component.html
@@ -3,7 +3,7 @@
Register an account
-
diff --git a/src/app/packages/member/component/signin.component.scss b/src/app/packages/member/component/signin/signin.component.scss
similarity index 100%
rename from src/app/packages/member/component/signin.component.scss
rename to src/app/packages/member/component/signin/signin.component.scss
diff --git a/src/app/packages/member/component/signin.component.spec.ts b/src/app/packages/member/component/signin/signin.component.spec.ts
similarity index 100%
rename from src/app/packages/member/component/signin.component.spec.ts
rename to src/app/packages/member/component/signin/signin.component.spec.ts
diff --git a/src/app/packages/member/component/signin.component.ts b/src/app/packages/member/component/signin/signin.component.ts
similarity index 84%
rename from src/app/packages/member/component/signin.component.ts
rename to src/app/packages/member/component/signin/signin.component.ts
index c0f8997..80f5585 100644
--- a/src/app/packages/member/component/signin.component.ts
+++ b/src/app/packages/member/component/signin/signin.component.ts
@@ -3,7 +3,7 @@ import { Router } from '@angular/router';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { Store } from '@ngrx/store';
-import * as AuthStore from '../store/auth';
+import * as AuthStore from '../../store/auth';
@Component({
selector: 'of-member-signin',
@@ -22,7 +22,9 @@ export class SigninComponent implements OnInit {
private router: Router,
private store: Store,
private formBuilder: FormBuilder,
- ) { }
+ ) {
+ console.log(this.store);
+ }
ngOnInit() {
this.initForm();
@@ -52,7 +54,8 @@ export class SigninComponent implements OnInit {
signupBtnClick() {
this.router.navigateByUrl('/auth/signup');
}
- login() {
- console.log('signin component login fnc');
+ signin() {
+ this.store.dispatch(new AuthStore.Signin(this.signinForm.value));
+ console.log('signin component signin fnc');
}
}
diff --git a/src/app/packages/member/component/signup.component.html b/src/app/packages/member/component/signup/signup.component.html
similarity index 100%
rename from src/app/packages/member/component/signup.component.html
rename to src/app/packages/member/component/signup/signup.component.html
diff --git a/src/app/packages/member/component/signup.component.scss b/src/app/packages/member/component/signup/signup.component.scss
similarity index 100%
rename from src/app/packages/member/component/signup.component.scss
rename to src/app/packages/member/component/signup/signup.component.scss
diff --git a/src/app/packages/member/component/signup.component.spec.ts b/src/app/packages/member/component/signup/signup.component.spec.ts
similarity index 100%
rename from src/app/packages/member/component/signup.component.spec.ts
rename to src/app/packages/member/component/signup/signup.component.spec.ts
diff --git a/src/app/packages/member/component/signup.component.ts b/src/app/packages/member/component/signup/signup.component.ts
similarity index 100%
rename from src/app/packages/member/component/signup.component.ts
rename to src/app/packages/member/component/signup/signup.component.ts
diff --git a/src/app/packages/member/member.constant.ts b/src/app/packages/member/member.constant.ts
index 485bf09..99769e5 100644
--- a/src/app/packages/member/member.constant.ts
+++ b/src/app/packages/member/member.constant.ts
@@ -1,3 +1,3 @@
export const MODULE = {
- name: 'Member'
+ name: 'member'
};
diff --git a/src/app/packages/member/member.module.ts b/src/app/packages/member/member.module.ts
index bad2b6b..d1d27df 100644
--- a/src/app/packages/member/member.module.ts
+++ b/src/app/packages/member/member.module.ts
@@ -5,10 +5,10 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MaterialModule } from 'app/commons/ui/material/material.module';
-import { ModifyComponent } from './component/modify.component';
-import { SigninComponent } from './component/signin.component';
-import { SignupComponent } from './component/signup.component';
-import { ResetPasswordComponent } from './component/reset-password.component';
+import { ModifyComponent } from './component/modify/modify.component';
+import { SigninComponent } from './component/signin/signin.component';
+import { SignupComponent } from './component/signup/signup.component';
+import { ResetPasswordComponent } from './component/reset-password/reset-password.component';
import { MemberService } from './service/member.service';
import { AuthGuard } from './guard/auth.guard';