diff --git a/.all-contributorsrc b/.all-contributorsrc index 202612d32..aebf49231 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -178,6 +178,24 @@ "contributions": [ "a11y" ] + }, + { + "login": "Govinda04", + "name": "Govinda Kocharekar", + "avatar_url": "https://avatars.githubusercontent.com/u/50038172?v=4", + "profile": "https://github.com/Govinda04", + "contributions": [ + "code" + ] + }, + { + "login": "crediblebilal", + "name": "Bilal Ahmad Bhat", + "avatar_url": "https://avatars.githubusercontent.com/u/55330484?v=4", + "profile": "https://bilal.cc", + "contributions": [ + "code" + ] } ] } diff --git a/.env.example b/.env.example index ddc7f8b50..cd2978cc0 100644 --- a/.env.example +++ b/.env.example @@ -39,11 +39,18 @@ DO_ACCESS_KEY_ID= DO_SECRET_ACCESS_KEY= # Digital ocean spaces region or AWS s3 region DO_REGION=us-west +# Set this to true id you are using local storage instead of s3 compatible storage +# USE_LOCAL=TRUE -# Email mailgun config (The app will not initialize if any of these 3 variables are not set) ********************************************************************************************************************* -MAILGUN_API_KEY= +# 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) ********************************************************************************************************************* +MAILGUN_API_KEY=XXXXX MAILGUN_DOMAIN=mail.yourdomain.com MAILGUN_SENDER=postmaster@mail.yourdomain.com +SMTP_ENABLE= +SMTP_HOST= +SMTP_PORT= +SMTP_USER_EMAIL= +SMTP_PASS= # Base64 encoded PFX or p12 document signing certificate file ********************************************************************************************************************* PFX_BASE64= diff --git a/.env.local_dev b/.env.local_dev index 7884fb0b9..a04faba14 100644 --- a/.env.local_dev +++ b/.env.local_dev @@ -44,10 +44,16 @@ DO_REGION=us-west # local storage USE_LOCAL=TRUE -# Email mailgun config (The app will not initialize if any of these 3 variables are not set) ********************************************************************************************************************* +# 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) ********************************************************************************************************************* MAILGUN_API_KEY=XXXXX MAILGUN_DOMAIN=mail.yourdomain.com MAILGUN_SENDER=postmaster@mail.yourdomain.com +SMTP_ENABLE= +SMTP_HOST= +SMTP_PORT= +SMTP_USER_EMAIL= +SMTP_PASS= + # Base64 encoded PFX or p12 document signing certificate file ********************************************************************************************************************* PFX_BASE64='MIIKCQIBAzCCCc8GCSqGSIb3DQEHAaCCCcAEggm8MIIJuDCCBG8GCSqGSIb3DQEH diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml new file mode 100644 index 000000000..5b17f9bf4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -0,0 +1,73 @@ +name: "Bug Report" +labels: ["bug","up-for-grabs"] +title: "[Bug]: " +assignees: + - andrew-opensignlabs +description: Create a bug report to help us make OpenSign™ the world's best document e-signature platform +body: + - type: textarea + attributes: + label: Issue Description + description: Please provide a clear & concise description of the problem. + - type: textarea + attributes: + label: Expected Behavior + description: Describe what you expected to happen. + - type: textarea + attributes: + label: Current Behavior + description: Describe what is happening instead. + - type: textarea + attributes: + label: Steps to reproduce + description: Please provide step-by-step instructions to reproduce the issue. Include code snippets, URLs, error messages and any other relevant information. + - type: textarea + attributes: + label: Screenshots of the issue(optional) + description: Add screenshots to better explain the issue. + - type: input + attributes: + label: Operating System [e.g. MacOS Sonoma 14.1, Windows 11] + - type: dropdown + id: browsers + attributes: + label: What browsers are you seeing the problem on? + multiple: true + options: + - Chrome + - Firefox + - Safari + - Microsoft Edge + default: 0 + - type: input + attributes: + label: What version of OpenSign™ are you seeing this issue on? [e.g. 1.0.6] + validations: + required: true + - type: dropdown + id: environment + attributes: + label: What environment are you seeing the problem on? + multiple: true + options: + - Production (app.opensignlabs.com) + - Staging (staging-app.opensignlabs.com) + - Hosted (app.yourdomain.com) + - Dev (localhost or vercel) + - type: checkboxes + attributes: + label: Please check the boxes that apply to this issue report. + options: + - label: I have searched the existing issues & discussions to make sure that this is not a duplicate. + validations: + required: true + - type: checkboxes + id: terms + attributes: + label: Code of Conduct + description: By submitting this issue, you agree to follow our [Code of Conduct](https://www.opensignlabs.com) + options: + - label: I agree to follow this project's Code of Conduct + required: true + - label: I have searched the existing issues & discussions to make sure that this is not a duplicate. + required: true diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml new file mode 100644 index 000000000..9093abbd6 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -0,0 +1,70 @@ +name: Feature Request +description: Suggest an idea for OpenSign™ +title: "Feature Request: [Short Description]" +labels: [feature request, needs triage] +body: + - type: markdown + attributes: + value: | + ## Thanks for taking the time to fill out this feature request! + + - type: input + id: title + attributes: + label: Feature Title + description: What would you call this feature? + placeholder: e.g., Advanced Signature Verification + validations: + required: true + + - type: textarea + id: feature-description + attributes: + label: Feature Description + description: | + Please provide a detailed description of the feature you're proposing. + placeholder: | + e.g., I'm proposing an advanced signature verification feature that... + validations: + required: true + - type: dropdown + id: featuretype + attributes: + label: What type of feature are you requesting? + multiple: true + options: + - UI/UX Improvement + - Security / Compliance + - Performance / Optimization + - 3rd party integration + - Other + - type: dropdown + id: importance + attributes: + label: Importance + description: How important is this feature to you? + options: + - Critical + - High + - Medium + - Low + validations: + required: true + + - type: textarea + id: additional-context + attributes: + label: Additional Context + description: Any other context or screenshots about the feature request here. + placeholder: Additional details, examples, or screenshots... + + - type: checkboxes + id: terms + attributes: + label: Code of Conduct + description: By submitting this issue, you agree to follow our [Code of Conduct](https://www.opensignlabs.com) + options: + - label: I agree to follow this project's Code of Conduct + required: true + - label: I have searched the existing issues & discussions to make sure that this is not a duplicate. + required: true diff --git a/README.md b/README.md index 7a4d986c7..510848dd2 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,8 @@ We would like to thank all our contributors and users for their support and feed Rishab
Rishab

💻 Maurizio Pillitu
Maurizio Pillitu

🐛 Luis Parra
Luis Parra

️️️️♿️ + Govinda Kocharekar
Govinda Kocharekar

💻 + Bilal Ahmad Bhat
Bilal Ahmad Bhat

💻 diff --git a/apps/OpenSign/package.json b/apps/OpenSign/package.json index f460f70f7..d18085126 100644 --- a/apps/OpenSign/package.json +++ b/apps/OpenSign/package.json @@ -42,7 +42,8 @@ "scripts": { "start": "serve -s build", "start-dev": "mf-cra start", - "build": "rm -rf public/mfbuild && npm run micro && CI=false && mf-cra build", + "version": "curl -s https://api.github.com/repos/opensignlabs/opensign/releases/latest | grep '\"tag_name\":' | awk -F '\"' '{print $4}' > ./public/version.txt", + "build": "npm run version && rm -rf public/mfbuild && npm run micro && CI=false && mf-cra build", "micro": "cd ../../microfrontends/SignDocuments && npm install && npm run build", "test": "react-scripts test", "eject": "react-scripts eject", @@ -85,4 +86,4 @@ "pretty-quick": "^3.1.3", "tailwindcss": "^3.3.3" } -} \ No newline at end of file +} diff --git a/apps/OpenSign/public/version.txt b/apps/OpenSign/public/version.txt new file mode 100644 index 000000000..3e82ea442 --- /dev/null +++ b/apps/OpenSign/public/version.txt @@ -0,0 +1 @@ +v1.0.5-beta diff --git a/apps/OpenSign/src/components/Footer.js b/apps/OpenSign/src/components/Footer.js index 30d0acecb..92605da90 100644 --- a/apps/OpenSign/src/components/Footer.js +++ b/apps/OpenSign/src/components/Footer.js @@ -1,8 +1,20 @@ import React, { useEffect, useState } from "react"; import Package from "../../package.json"; - +import axios from "axios"; const Footer = () => { const [showButton, setShowButton] = useState(false); + const [version, setVersion] = useState(""); + useEffect(() => { + axios + .get("/version.txt") + .then((response) => { + setVersion(response.data); // Set the retrieved data to the state variable + }) + .catch((error) => { + console.error("Error reading the file:", error); + }); + }, []); + const handleScroll = () => { if (window.pageYOffset >= 50) { setShowButton(true); @@ -25,16 +37,12 @@ const Footer = () => { }, []); const appName = "OpenSign™"; - + return ( <>
All Rights Reserved © {new Date().getFullYear()}   - {appName}{" "} - (version:{" "} - {localStorage.getItem("appVersion") && - `${Package.version}.${localStorage.getItem("appVersion")}`} - ) + {appName} ( version: {version ? version : `${Package.version} `})