From db44b283b012015da85bc334dd85359ff6db5787 Mon Sep 17 00:00:00 2001 From: Monil Prajapati Date: Sun, 29 Oct 2023 00:51:02 +0530 Subject: [PATCH 1/8] Solved the issue of undefined charAt in index.js --- apps/OpenSign/src/redux/actions/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/OpenSign/src/redux/actions/index.js b/apps/OpenSign/src/redux/actions/index.js index 1901f16c4..8a5734ef9 100644 --- a/apps/OpenSign/src/redux/actions/index.js +++ b/apps/OpenSign/src/redux/actions/index.js @@ -8,8 +8,10 @@ export const fetchAppInfo = (str, burl, app_id) => async (dispatch) => { Parse.initialize(app_id); const response = appInfo; - let _base = response.baseurl.charAt(response.baseurl.length - 1); - localStorage.removeItem("baseUrl"); + let _base = ""; // Define _base here and initialize it to an empty string + if (response && response.baseurl) { + _base = response.baseurl.charAt(response.baseurl.length - 1); + } localStorage.removeItem("baseUrl"); localStorage.setItem("_appName", response.appname); localStorage.setItem("_app_objectId", response.objectId); if (_base === "/") { From 46325564a147498bbf0f8a773f5b3a8fbbdfbc38 Mon Sep 17 00:00:00 2001 From: Monil Prajapati Date: Sun, 29 Oct 2023 01:29:30 +0530 Subject: [PATCH 2/8] Solved Issue67 - Password show in Login page --- apps/OpenSign/src/routes/Login.js | 42 +++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/apps/OpenSign/src/routes/Login.js b/apps/OpenSign/src/routes/Login.js index 6477d1193..8eea2dba7 100644 --- a/apps/OpenSign/src/routes/Login.js +++ b/apps/OpenSign/src/routes/Login.js @@ -1,4 +1,4 @@ -import React, { Component } from "react"; +import React, { Component, useState } from "react"; import Parse from "parse"; import "../styles/toast.css"; import "../styles/loader.css"; @@ -17,6 +17,7 @@ class Login extends Component { toastColor: "#5cb85c", toastDescription: "", password: "", + passwordVisible: false, mobile: "", phone: "", OTP: "", @@ -1009,9 +1010,14 @@ class Login extends Component { return ; } - const { email, password } = this.state; + const { email, password, passwordVisible } = this.state; let image = this.props.appInfo.applogo; let settings = this.props.appInfo.settings || undefined; + const togglePasswordVisibility = () => { + this.setState((prevState) => ({ + passwordVisible: !prevState.passwordVisible + })); + }; return (
{settings && @@ -1061,14 +1067,30 @@ class Login extends Component { />
- +
+ + + {passwordVisible ? ( + // Close eye icon + ) : ( + // Open eye icon + )} + +
From aa0f2ed31afefcfcebcff7e05e186f72a883907b Mon Sep 17 00:00:00 2001 From: Hans Fraiponts Date: Sun, 29 Oct 2023 09:34:40 +0100 Subject: [PATCH 3/8] Update INSTALLATION.md link fixed --- INSTALLATION.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INSTALLATION.md b/INSTALLATION.md index 16a49397a..360ca5492 100644 --- a/INSTALLATION.md +++ b/INSTALLATION.md @@ -1,7 +1,7 @@ # INSTALLATON INSTRUCTIONS -You can use our app as a cloud version from [OpenSignLabs](www.opensignlabs.com) +You can use our app as a cloud version from [OpenSignLabs](https://www.opensignlabs.com) or follow below instructions to install it on your own infrastructure. From 8990c5ef5ace88b04cda29ca92a6f9508eea4862 Mon Sep 17 00:00:00 2001 From: Andrew <148278535+andrew-opensignlabs@users.noreply.github.com> Date: Sun, 29 Oct 2023 20:29:29 +0530 Subject: [PATCH 4/8] Create .env.example.frontend Add example frontend dev .env example that can be used to quickly run the frontend development code locally with installing the API server and db --- .env.frontend_dev | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .env.frontend_dev diff --git a/.env.frontend_dev b/.env.frontend_dev new file mode 100644 index 000000000..d36422a82 --- /dev/null +++ b/.env.frontend_dev @@ -0,0 +1,14 @@ +# Clone the repo and rename this file to .env if you want to run the frontend react app locally for some quick contributions to the project. +# When used as it is, this env config will connect to our hosted UAT backend +# Note that any data in staging will get cleared from time to time and you may have to sign up again and again + +# Set CI to false while running the app locally +CI=false +# Set it to the URL form where the app home page will be accessed +PUBLIC_URL=http://localhost:3000 +# Set it to true if you want to generate the Sourcemap for debugging +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 From c95841124a88896cceeb481d3d41e0bd16d7768b Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Sun, 29 Oct 2023 15:02:39 +0000 Subject: [PATCH 5/8] docs: update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4a126eec5..48fb94c55 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,7 @@ We would like to thank all our contributors and users for their support and feed Jobin Selvanose
Jobin Selvanose

📖 + Hans Fraiponts
Hans Fraiponts

📖 From 7a337bc1f0c81bbbef26db9d6a53670bb9be1786 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Sun, 29 Oct 2023 15:02:40 +0000 Subject: [PATCH 6/8] docs: update .all-contributorsrc --- .all-contributorsrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.all-contributorsrc b/.all-contributorsrc index d6c71ea41..a3c7fb998 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -79,6 +79,15 @@ "contributions": [ "doc" ] + }, + { + "login": "HansF", + "name": "Hans Fraiponts", + "avatar_url": "https://avatars.githubusercontent.com/u/1503?v=4", + "profile": "https://github.com/HansF", + "contributions": [ + "doc" + ] } ] } From 405edc99b34789d776c7f53e62cddf16dbc9af70 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Sun, 29 Oct 2023 15:21:29 +0000 Subject: [PATCH 7/8] docs: update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 48fb94c55..70c3b4ae4 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,7 @@ We would like to thank all our contributors and users for their support and feed Jobin Selvanose
Jobin Selvanose

📖 Hans Fraiponts
Hans Fraiponts

📖 + Monil Prajapati
Monil Prajapati

💻 From ef5ede15645383d2c4dbae86afac0dc3a5490f1c Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Sun, 29 Oct 2023 15:21:30 +0000 Subject: [PATCH 8/8] docs: update .all-contributorsrc --- .all-contributorsrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.all-contributorsrc b/.all-contributorsrc index a3c7fb998..4589c78bd 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -88,6 +88,15 @@ "contributions": [ "doc" ] + }, + { + "login": "Monilprajapati", + "name": "Monil Prajapati", + "avatar_url": "https://avatars.githubusercontent.com/u/99136041?v=4", + "profile": "http://linktr.ee/monilprajapati", + "contributions": [ + "code" + ] } ] }