Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
getme
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
amal
getme
Commits
dba0e182
Commit
dba0e182
authored
Feb 04, 2020
by
Adarsh K
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'adarsh' into 'master'
Adarsh See merge request
!52
parents
e324df3e
522787f4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
29 deletions
+45
-29
app.component.ts
src/app/app.component.ts
+3
-1
forgot.page.html
src/app/forgot/forgot.page.html
+33
-17
forgot.page.ts
src/app/forgot/forgot.page.ts
+6
-7
login.page.html
src/app/login/login.page.html
+1
-1
auth.service.ts
src/config/auth.service.ts
+2
-3
No files found.
src/app/app.component.ts
View file @
dba0e182
...
@@ -83,6 +83,7 @@ export class AppComponent {
...
@@ -83,6 +83,7 @@ export class AppComponent {
initializeApp
()
{
initializeApp
()
{
this
.
platform
.
ready
().
then
(()
=>
{
this
.
platform
.
ready
().
then
(()
=>
{
this
.
statusBar
.
styleDefault
();
this
.
statusBar
.
styleDefault
();
this
.
statusBar
.
hide
();
this
.
statusBar
.
overlaysWebView
(
false
);
this
.
statusBar
.
overlaysWebView
(
false
);
this
.
statusBar
.
backgroundColorByHexString
(
'#29285b'
);
this
.
statusBar
.
backgroundColorByHexString
(
'#29285b'
);
});
});
...
@@ -107,7 +108,8 @@ export class AppComponent {
...
@@ -107,7 +108,8 @@ export class AppComponent {
'landing'
,
'landing'
,
'login'
,
'login'
,
'signup'
,
'signup'
,
'address'
'address'
,
'forgot'
];
];
const
currentUrl
=
this
.
router
.
url
.
split
(
'/'
);
const
currentUrl
=
this
.
router
.
url
.
split
(
'/'
);
const
index
=
restrictedUrl
.
findIndex
(
x
=>
x
===
currentUrl
[
1
]);
const
index
=
restrictedUrl
.
findIndex
(
x
=>
x
===
currentUrl
[
1
]);
...
...
src/app/forgot/forgot.page.html
View file @
dba0e182
<div
class=
"nav_header"
>
<div
class=
"nav_header"
>
<button
class=
"nav_btn nav_back floatLeft"
(
click
)="
goBack
()"
>
<button
class=
"nav_btn nav_back floatLeft"
(
click
)="
goBack
()"
>
<img
src=
"../assets/Group17_2.png"
>
<img
src=
"../assets/Group17_2.png"
/
>
</button>
</button>
<div
class=
"nav_title floatLeft"
>
<div
class=
"nav_title floatLeft"
>
<h4>
FORGOT PASSWORD
</h4>
<h4>
FORGOT PASSWORD
</h4>
</div>
</div>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
</div>
</div>
<ion-content>
<ion-content>
<div
class=
"verification_div"
>
<div
class=
"verification_div"
>
<div
class=
"form_div"
>
<div
class=
"form_div"
>
<div
class=
"row"
>
<div
class=
"row"
>
<input
class=
""
type=
"text"
placeholder=
"Type your phone number"
>
<input
</div>
class=
""
<div
class=
"row"
>
type=
"email"
<button
class=
"login_btn"
>
GET OTP
</button>
placeholder=
"Type your email Id"
</div>
#
emailId
</div>
required
/>
</div>
<div
class=
"row"
>
<button
class=
"login_btn"
(
click
)="
authService
.
resetPassword
(
emailId
.
value
)"
>
RESET PASSWORD
</button>
</div>
</div>
</div>
</ion-content>
</div>
\ No newline at end of file
</ion-content>
<div
class=
"loader"
*
ngIf=
"authService.loader"
>
<div
class=
"lds-ripple"
>
<div></div>
<div></div>
</div>
</div>
src/app/forgot/forgot.page.ts
View file @
dba0e182
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Location
}
from
'@angular/common'
;
import
{
Location
}
from
'@angular/common'
;
import
{
Router
,
ActivatedRoute
}
from
'@angular/router'
;
import
{
Router
,
ActivatedRoute
}
from
'@angular/router'
;
import
{
AuthService
}
from
'./../../config/auth.service'
;
@
Component
({
@
Component
({
selector
:
'app-forgot'
,
selector
:
'app-forgot'
,
templateUrl
:
'./forgot.page.html'
,
templateUrl
:
'./forgot.page.html'
,
styleUrls
:
[
'./forgot.page.scss'
]
,
styleUrls
:
[
'./forgot.page.scss'
]
})
})
export
class
ForgotPage
implements
OnInit
{
export
class
ForgotPage
implements
OnInit
{
constructor
(
constructor
(
private
router
:
Router
,
private
router
:
Router
,
private
route
:
ActivatedRoute
,
private
route
:
ActivatedRoute
,
private
location
:
Location
private
location
:
Location
,
)
{
}
public
authService
:
AuthService
)
{}
ngOnInit
()
{
ngOnInit
()
{}
}
goToPage
(
path
,
data
=
null
)
{
goToPage
(
path
,
data
=
null
)
{
this
.
router
.
navigateByUrl
(
path
,
{
queryParams
:
data
});
this
.
router
.
navigateByUrl
(
path
,
{
queryParams
:
data
});
...
@@ -26,5 +26,4 @@ export class ForgotPage implements OnInit {
...
@@ -26,5 +26,4 @@ export class ForgotPage implements OnInit {
goBack
()
{
goBack
()
{
this
.
location
.
back
();
this
.
location
.
back
();
}
}
}
}
src/app/login/login.page.html
View file @
dba0e182
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
<!-- <button (click)="goToPage('addaddresss')">Address</button> -->
<!-- <button (click)="goToPage('addaddresss')">Address</button> -->
</div>
</div>
</div>
</div>
<div
class=
"loader"
*
ngIf=
"
authService.
loader"
>
<div
class=
"loader"
*
ngIf=
"loader"
>
<div
class=
"lds-ripple"
>
<div
class=
"lds-ripple"
>
<div></div>
<div></div>
<div></div>
<div></div>
...
...
src/config/auth.service.ts
View file @
dba0e182
...
@@ -113,7 +113,6 @@ export class AuthService {
...
@@ -113,7 +113,6 @@ export class AuthService {
}
}
public
async
google
(
type
:
number
)
{
public
async
google
(
type
:
number
)
{
this
.
loader
=
true
;
this
.
type
=
type
;
this
.
type
=
type
;
// this.googlePlus.login({}).then(res => console.log(res)).catch(err => console.error(err));
// this.googlePlus.login({}).then(res => console.log(res)).catch(err => console.error(err));
this
.
afAuth
.
auth
this
.
afAuth
.
auth
...
@@ -129,13 +128,13 @@ export class AuthService {
...
@@ -129,13 +128,13 @@ export class AuthService {
}
}
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
console
.
log
(
err
);
this
.
loader
=
false
;
this
.
loader
=
false
;
console
.
log
(
this
.
loader
);
});
});
}
}
public
async
facebook
(
type
:
number
)
{
public
async
facebook
(
type
:
number
)
{
console
.
log
(
'here fab'
);
this
.
loader
=
true
;
this
.
type
=
type
;
this
.
type
=
type
;
const
This
=
this
;
const
This
=
this
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment