From 6e2aac51b4a3f08fac975c10e4cef808b93ca501 Mon Sep 17 00:00:00 2001 From: prafull-opensignlabs Date: Thu, 7 Mar 2024 17:21:43 +0530 Subject: [PATCH 1/3] fix: change appId of server --- .env.example | 4 ++-- .env.frontend_dev | 2 +- .env.local_dev | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 6fc74933f..9d7a990a1 100644 --- a/.env.example +++ b/.env.example @@ -7,13 +7,13 @@ GENERATE_SOURCEMAP=false # Set it to the URL from where APIs will be accessible, for local development it should be localhost:3000/api/app (use your local port number instead) REACT_APP_SERVERURL=https://app.opensignlabs.com/api/app # A 12 character long random app identifier. The value of this should be same as APP_ID which is a variable used by backend API. -REACT_APP_APPID=aDsADsqweqwe +REACT_APP_APPID=opensign # Google tag manager container id for configuring GTM on all pages of the app REACT_APP_GTM=GTM-123N7LD # Backend ExpressJS config **************************************************************************************************************************************************************************************** # A 12 character long random app identifier. The value of this should be same as REACT_APP_APPID which is a variable used by Frontend React App. -APP_ID=aDsADsqweqwe +APP_ID=opensign # Name of the app. It will be visible in the verification emails sent out. appName=open_sign_server # A 12 character long random secret key that allows access to all the data. It is used in Parse dashboard config to view all the data in the database. diff --git a/.env.frontend_dev b/.env.frontend_dev index f16acf752..c8f942ed0 100644 --- a/.env.frontend_dev +++ b/.env.frontend_dev @@ -9,4 +9,4 @@ GENERATE_SOURCEMAP=false # Set it to the URL from where APIs will be accessible, for local development it should be localhost:3000/api/app (use your local port number instead) REACT_APP_SERVERURL=https://staging-app.opensignlabs.com/api/app # A 12 character long random app identifier. The value of this should be same as APP_ID which is a variable used by backend API. -REACT_APP_APPID=opensignstgn +REACT_APP_APPID=opensign diff --git a/.env.local_dev b/.env.local_dev index 34fd3bf89..e8ecd6df1 100644 --- a/.env.local_dev +++ b/.env.local_dev @@ -9,12 +9,12 @@ GENERATE_SOURCEMAP=false # Set it to the URL from where APIs will be accessible, for local development it should be localhost:3000/api/app (use your local port number instead) REACT_APP_SERVERURL=http://localhost:8080/app # A 12 character long random app identifier. The value of this should be same as APP_ID which is a variable used by backend API. -REACT_APP_APPID=opensignstgn +REACT_APP_APPID=opensign # Backend ExpressJS config **************************************************************************************************************************************************************************************** # A 12 character long random app identifier. The value of this should be same as REACT_APP_APPID which is a variable used by Frontend React App. -APP_ID=opensignstgn +APP_ID=opensign # Name of the app. It will be visible in the verification emails sent out. appName=open_sign_server # A 12 character long random secret key that allows access to all the data. It is used in Parse dashboard config to view all the data in the database. From f463ffc8edddf11127b3e1f9a4450366f030b2af Mon Sep 17 00:00:00 2001 From: prafull-opensignlabs Date: Thu, 7 Mar 2024 18:35:22 +0530 Subject: [PATCH 2/3] fix: old gustlogin not wowrking --- apps/OpenSign/src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/OpenSign/src/App.js b/apps/OpenSign/src/App.js index 3a2362c05..e628b8eb0 100644 --- a/apps/OpenSign/src/App.js +++ b/apps/OpenSign/src/App.js @@ -101,7 +101,7 @@ function App() { /> } /> Date: Thu, 7 Mar 2024 19:04:50 +0530 Subject: [PATCH 3/3] fix: print button not working, declined popup should be at top --- apps/OpenSign/src/constant/Utils.js | 3 +-- apps/OpenSign/src/pages/GuestLogin.js | 2 +- apps/OpenSign/src/primitives/PdfDeclineModal.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/OpenSign/src/constant/Utils.js b/apps/OpenSign/src/constant/Utils.js index 615ce9cf5..034b4b5d3 100644 --- a/apps/OpenSign/src/constant/Utils.js +++ b/apps/OpenSign/src/constant/Utils.js @@ -362,8 +362,7 @@ export async function getBase64FromUrl(url) { reader.readAsDataURL(blob); reader.onloadend = function () { const pdfBase = this.result; - const removeBase64Prefix = "data:application/octet-stream;base64,"; - const suffixbase64 = pdfBase.replace(removeBase64Prefix, ""); + const suffixbase64 = pdfBase.split(",").pop(); resolve(suffixbase64); }; }); diff --git a/apps/OpenSign/src/pages/GuestLogin.js b/apps/OpenSign/src/pages/GuestLogin.js index 5b7d3e331..5ddf29b65 100644 --- a/apps/OpenSign/src/pages/GuestLogin.js +++ b/apps/OpenSign/src/pages/GuestLogin.js @@ -124,7 +124,7 @@ function GuestLogin() { }; return ( -
+
{isLoading ? (