From cc752fb1f0177440c2b7fb39cf19e4f2c058d29d Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 13 Aug 2023 13:50:31 -0400 Subject: [PATCH] enrion update --- src/app/pages/login/login.page.html | 38 ++++++++++++++------------ src/app/pages/login/login.page.ts | 3 ++ src/environments/environment.prod.ts | 5 ++-- src/environments/environment.ts | 1 + src/environments/environment_sample.ts | 8 ++++++ 5 files changed, 35 insertions(+), 20 deletions(-) create mode 100644 src/environments/environment_sample.ts diff --git a/src/app/pages/login/login.page.html b/src/app/pages/login/login.page.html index 4233c3d..32e71ad 100644 --- a/src/app/pages/login/login.page.html +++ b/src/app/pages/login/login.page.html @@ -39,27 +39,29 @@ Forgot your password ? - Or Continue With +
+ Or Continue With +
+ + + + + -
- - - - - + + + + + - - - - - + + + + + +
+
- - - - - -
diff --git a/src/app/pages/login/login.page.ts b/src/app/pages/login/login.page.ts index bd1e704..bd252e8 100644 --- a/src/app/pages/login/login.page.ts +++ b/src/app/pages/login/login.page.ts @@ -3,6 +3,7 @@ import { Component, OnInit, ViewChild } from '@angular/core'; import { WrenchService } from 'src/app/services/wrench.service'; import { SessionDataProviderService } from 'src/app/store/session-data-provider.service'; import { BlogDataService } from 'src/app/store/blog-data.service'; +import { environment} from "../../../environments/environment"; @Component({ selector: 'app-login', @@ -14,6 +15,7 @@ export class LoginPage implements OnInit { @ViewChild('password') password; loginResult: any; blogResult:any; + showSocial:boolean = true; constructor( private router: Router, @@ -25,6 +27,7 @@ export class LoginPage implements OnInit { } ngOnInit() { + this.showSocial = environment.loginSocial; // this.username='ses66181+6018@gmail.com'; // this.username='ses66181+1@gmail.com'; // this.password='may12002'; diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 38f8157..7560327 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -1,6 +1,7 @@ export const environment = { production: true, apiKey: '', // <-- Enter your own key here!' PROD - baseUrl: 'https://orion.lotus.g1.wrenchboard.com/svs/user', - images: 'https://orion.lotus.g1.wrenchboard.com/svs/user', + baseUrl: 'https://apigate.orion.g1.wrenchboard.com/svs/user', + images: 'https://apigate.orion.g1.wrenchboard.com/svs/user', + loginSocial: false }; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index fa4e16a..760a825 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -3,5 +3,6 @@ export const environment = { apiKey: '', // <-- Enter your own key here!' TEST baseUrl: 'https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1', images: 'https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1/', + loginSocial: true }; diff --git a/src/environments/environment_sample.ts b/src/environments/environment_sample.ts new file mode 100644 index 0000000..326f246 --- /dev/null +++ b/src/environments/environment_sample.ts @@ -0,0 +1,8 @@ +export const environment = { + production: false, + apiKey: '', // <-- Enter your own key here!' TEST + baseUrl: 'https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1', + images: 'https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1/', + loginSocial: true +}; +