Skip to content

Commit 3c54f22

Browse files
Merge pull request #28 from OpenSignLabs/staging
update
2 parents db1e81a + dfa121f commit 3c54f22

File tree

30 files changed

+1840
-1059
lines changed

30 files changed

+1840
-1059
lines changed

.all-contributorsrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,24 @@
178178
"contributions": [
179179
"a11y"
180180
]
181+
},
182+
{
183+
"login": "Govinda04",
184+
"name": "Govinda Kocharekar",
185+
"avatar_url": "https://avatars.githubusercontent.com/u/50038172?v=4",
186+
"profile": "https://github.com/Govinda04",
187+
"contributions": [
188+
"code"
189+
]
190+
},
191+
{
192+
"login": "crediblebilal",
193+
"name": "Bilal Ahmad Bhat",
194+
"avatar_url": "https://avatars.githubusercontent.com/u/55330484?v=4",
195+
"profile": "https://bilal.cc",
196+
"contributions": [
197+
"code"
198+
]
181199
}
182200
]
183201
}

.env.example

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,18 @@ DO_ACCESS_KEY_ID=
3939
DO_SECRET_ACCESS_KEY=
4040
# Digital ocean spaces region or AWS s3 region
4141
DO_REGION=us-west
42+
# Set this to true id you are using local storage instead of s3 compatible storage
43+
# USE_LOCAL=TRUE
4244

43-
# Email mailgun config (The app will not initialize if any of these 3 variables are not set) *********************************************************************************************************************
44-
MAILGUN_API_KEY=
45+
# Email mailgun or set SMTP_ENABLE true to use SMTP config (The app will not initialize if any of these 3 variables are not set) *********************************************************************************************************************
46+
MAILGUN_API_KEY=XXXXX
4547
MAILGUN_DOMAIN=mail.yourdomain.com
4648
MAILGUN_SENDER=[email protected]
49+
SMTP_ENABLE=
50+
SMTP_HOST=
51+
SMTP_PORT=
52+
SMTP_USER_EMAIL=
53+
SMTP_PASS=
4754

4855
# Base64 encoded PFX or p12 document signing certificate file *********************************************************************************************************************
4956
PFX_BASE64=

.env.local_dev

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,16 @@ DO_REGION=us-west
4444
# local storage
4545
USE_LOCAL=TRUE
4646

47-
# Email mailgun config (The app will not initialize if any of these 3 variables are not set) *********************************************************************************************************************
47+
# Email mailgun or set SMTP_ENABLE true to use SMTP config (The app will not initialize if any of these 3 variables are not set) *********************************************************************************************************************
4848
MAILGUN_API_KEY=XXXXX
4949
MAILGUN_DOMAIN=mail.yourdomain.com
5050
51+
SMTP_ENABLE=
52+
SMTP_HOST=
53+
SMTP_PORT=
54+
SMTP_USER_EMAIL=
55+
SMTP_PASS=
56+
5157

5258
# Base64 encoded PFX or p12 document signing certificate file *********************************************************************************************************************
5359
PFX_BASE64='MIIKCQIBAzCCCc8GCSqGSIb3DQEHAaCCCcAEggm8MIIJuDCCBG8GCSqGSIb3DQEH
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: "Bug Report"
2+
labels: ["bug","up-for-grabs"]
3+
title: "[Bug]: "
4+
assignees:
5+
- andrew-opensignlabs
6+
description: Create a bug report to help us make OpenSign™ the world's best document e-signature platform
7+
body:
8+
- type: textarea
9+
attributes:
10+
label: Issue Description
11+
description: Please provide a clear & concise description of the problem.
12+
- type: textarea
13+
attributes:
14+
label: Expected Behavior
15+
description: Describe what you expected to happen.
16+
- type: textarea
17+
attributes:
18+
label: Current Behavior
19+
description: Describe what is happening instead.
20+
- type: textarea
21+
attributes:
22+
label: Steps to reproduce
23+
description: Please provide step-by-step instructions to reproduce the issue. Include code snippets, URLs, error messages and any other relevant information.
24+
- type: textarea
25+
attributes:
26+
label: Screenshots of the issue(optional)
27+
description: Add screenshots to better explain the issue.
28+
- type: input
29+
attributes:
30+
label: Operating System [e.g. MacOS Sonoma 14.1, Windows 11]
31+
- type: dropdown
32+
id: browsers
33+
attributes:
34+
label: What browsers are you seeing the problem on?
35+
multiple: true
36+
options:
37+
- Chrome
38+
- Firefox
39+
- Safari
40+
- Microsoft Edge
41+
default: 0
42+
- type: input
43+
attributes:
44+
label: What version of OpenSign™ are you seeing this issue on? [e.g. 1.0.6]
45+
validations:
46+
required: true
47+
- type: dropdown
48+
id: environment
49+
attributes:
50+
label: What environment are you seeing the problem on?
51+
multiple: true
52+
options:
53+
- Production (app.opensignlabs.com)
54+
- Staging (staging-app.opensignlabs.com)
55+
- Hosted (app.yourdomain.com)
56+
- Dev (localhost or vercel)
57+
- type: checkboxes
58+
attributes:
59+
label: Please check the boxes that apply to this issue report.
60+
options:
61+
- label: I have searched the existing issues & discussions to make sure that this is not a duplicate.
62+
validations:
63+
required: true
64+
- type: checkboxes
65+
id: terms
66+
attributes:
67+
label: Code of Conduct
68+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://www.opensignlabs.com)
69+
options:
70+
- label: I agree to follow this project's Code of Conduct
71+
required: true
72+
- label: I have searched the existing issues & discussions to make sure that this is not a duplicate.
73+
required: true
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Feature Request
2+
description: Suggest an idea for OpenSign™
3+
title: "Feature Request: [Short Description]"
4+
labels: [feature request, needs triage]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
## Thanks for taking the time to fill out this feature request!
10+
11+
- type: input
12+
id: title
13+
attributes:
14+
label: Feature Title
15+
description: What would you call this feature?
16+
placeholder: e.g., Advanced Signature Verification
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
id: feature-description
22+
attributes:
23+
label: Feature Description
24+
description: |
25+
Please provide a detailed description of the feature you're proposing.
26+
placeholder: |
27+
e.g., I'm proposing an advanced signature verification feature that...
28+
validations:
29+
required: true
30+
- type: dropdown
31+
id: featuretype
32+
attributes:
33+
label: What type of feature are you requesting?
34+
multiple: true
35+
options:
36+
- UI/UX Improvement
37+
- Security / Compliance
38+
- Performance / Optimization
39+
- 3rd party integration
40+
- Other
41+
- type: dropdown
42+
id: importance
43+
attributes:
44+
label: Importance
45+
description: How important is this feature to you?
46+
options:
47+
- Critical
48+
- High
49+
- Medium
50+
- Low
51+
validations:
52+
required: true
53+
54+
- type: textarea
55+
id: additional-context
56+
attributes:
57+
label: Additional Context
58+
description: Any other context or screenshots about the feature request here.
59+
placeholder: Additional details, examples, or screenshots...
60+
61+
- type: checkboxes
62+
id: terms
63+
attributes:
64+
label: Code of Conduct
65+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://www.opensignlabs.com)
66+
options:
67+
- label: I agree to follow this project's Code of Conduct
68+
required: true
69+
- label: I have searched the existing issues & discussions to make sure that this is not a duplicate.
70+
required: true

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ We would like to thank all our contributors and users for their support and feed
128128
<td align="center" valign="top" width="14.28%"><a href="https://github.com/rishabjasrotia"><img src="https://avatars.githubusercontent.com/u/33950743?v=4?s=100" width="100px;" alt="Rishab"/><br /><sub><b>Rishab</b></sub></a><br /><a href="#code-rishabjasrotia" title="Code">💻</a></td>
129129
<td align="center" valign="top" width="14.28%"><a href="https://session.it"><img src="https://avatars.githubusercontent.com/u/327285?v=4?s=100" width="100px;" alt="Maurizio Pillitu"/><br /><sub><b>Maurizio Pillitu</b></sub></a><br /><a href="#bug-maoo" title="Bug reports">🐛</a></td>
130130
<td align="center" valign="top" width="14.28%"><a href="https://luisparra.dev"><img src="https://avatars.githubusercontent.com/u/16653744?v=4?s=100" width="100px;" alt="Luis Parra"/><br /><sub><b>Luis Parra</b></sub></a><br /><a href="#a11y-lsprr" title="Accessibility">️️️️♿️</a></td>
131+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Govinda04"><img src="https://avatars.githubusercontent.com/u/50038172?v=4?s=100" width="100px;" alt="Govinda Kocharekar"/><br /><sub><b>Govinda Kocharekar</b></sub></a><br /><a href="#code-Govinda04" title="Code">💻</a></td>
132+
<td align="center" valign="top" width="14.28%"><a href="https://bilal.cc"><img src="https://avatars.githubusercontent.com/u/55330484?v=4?s=100" width="100px;" alt="Bilal Ahmad Bhat"/><br /><sub><b>Bilal Ahmad Bhat</b></sub></a><br /><a href="#code-crediblebilal" title="Code">💻</a></td>
131133
</tr>
132134
</tbody>
133135
</table>

apps/OpenSign/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"scripts": {
4343
"start": "serve -s build",
4444
"start-dev": "mf-cra start",
45-
"build": "rm -rf public/mfbuild && npm run micro && CI=false && mf-cra build",
45+
"version": "curl -s https://api.github.com/repos/opensignlabs/opensign/releases/latest | grep '\"tag_name\":' | awk -F '\"' '{print $4}' > ./public/version.txt",
46+
"build": "npm run version && rm -rf public/mfbuild && npm run micro && CI=false && mf-cra build",
4647
"micro": "cd ../../microfrontends/SignDocuments && npm install && npm run build",
4748
"test": "react-scripts test",
4849
"eject": "react-scripts eject",
@@ -85,4 +86,4 @@
8586
"pretty-quick": "^3.1.3",
8687
"tailwindcss": "^3.3.3"
8788
}
88-
}
89+
}

apps/OpenSign/public/version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v1.0.5-beta

apps/OpenSign/src/components/Footer.js

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
import React, { useEffect, useState } from "react";
22
import Package from "../../package.json";
3-
3+
import axios from "axios";
44
const Footer = () => {
55
const [showButton, setShowButton] = useState(false);
6+
const [version, setVersion] = useState("");
7+
useEffect(() => {
8+
axios
9+
.get("/version.txt")
10+
.then((response) => {
11+
setVersion(response.data); // Set the retrieved data to the state variable
12+
})
13+
.catch((error) => {
14+
console.error("Error reading the file:", error);
15+
});
16+
}, []);
17+
618
const handleScroll = () => {
719
if (window.pageYOffset >= 50) {
820
setShowButton(true);
@@ -25,16 +37,12 @@ const Footer = () => {
2537
}, []);
2638

2739
const appName = "OpenSign™";
28-
40+
2941
return (
3042
<>
3143
<div className="bg-[#222c3c] text-[#98a6ba] text-center text-[13px] py-3">
3244
All Rights Reserved &copy; {new Date().getFullYear()} &nbsp;
33-
{appName}{" "}
34-
(version:{" "}
35-
{localStorage.getItem("appVersion") &&
36-
`${Package.version}.${localStorage.getItem("appVersion")}`}
37-
)
45+
{appName} ( version: {version ? version : `${Package.version} `})
3846
</div>
3947
<button
4048
className={`${

apps/OpenSign/src/components/LoginGoogle.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ const GoogleSignInBtn = ({
4343
});
4444
});
4545
const clearStorage = async () => {
46-
await Parse.User.logOut();
47-
46+
if (Parse.User.current()) {
47+
await Parse.User.logOut();
48+
}
4849
let baseUrl = localStorage.getItem("BaseUrl12");
4950
let appid = localStorage.getItem("AppID12");
5051
let applogo = localStorage.getItem("appLogo");
@@ -74,7 +75,6 @@ const GoogleSignInBtn = ({
7475
localStorage.setItem("userSettings", userSettings);
7576
localStorage.setItem("baseUrl", baseUrl);
7677
localStorage.setItem("parseAppId", appid);
77-
7878
};
7979
const responseGoogle = async (response) => {
8080
clearStorage();

0 commit comments

Comments
 (0)