π₯ The free & Open Source DocuSign alternative
JavaScript digital-signaturedocument-signingdocusign-alternativedocusign-freee-signatureelectronic-signatureelectronic-signaturesesignesignaturehacktoberfestjavascriptlegaltechmongodbnodejsopen-sourcepdf-signpdf-signaturereactjsself-hostedsign-pdf-files
integrate microapp code in monorepo
prafull-opensignlabsc684d00bdf11
diff --git a/apps/OpenSign/package.json b/apps/OpenSign/package.jsonindex db8651125..b66a18ca9 100644--- a/apps/OpenSign/package.json+++ b/apps/OpenSign/package.json@@ -41,7 +41,7 @@},"scripts": {"start": "mf-cra start",- "build": "npm run micro && CI=false && mf-cra build",+ "build": "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",@@ -84,4 +84,4 @@"pretty-quick": "^3.1.3","tailwindcss": "^3.3.3"}-}+}\ No newline at end of filediff --git a/apps/OpenSign/src/components/ReportMicroapp.js b/apps/OpenSign/src/components/ReportMicroapp.jsindex b0be8c1d8..37864ca99 100644--- a/apps/OpenSign/src/components/ReportMicroapp.js+++ b/apps/OpenSign/src/components/ReportMicroapp.js@@ -15,7 +15,9 @@ const MicroappModal = () => {// console.log("value ", key + ":" + value);if (key === "remoteUrl") {- obj = { ...obj, [key]: atob(value) };+ const url = window.location.origin + "/mfbuild/remoteEntry.js";+ // console.log("atob(value) ", atob(value))+ obj = { ...obj, [key]: url };} else {if (key === "moduleToLoad") {obj = { ...obj, [key]: "./" + value };@@ -45,9 +47,9 @@ const MicroappModal = () => {>Back</button>- {localStorage.getItem('domain') && (+ {localStorage.getItem("domain") && (<p className="flex-1 w-full text-sm md:text-base text-black text-center">- {localStorage.getItem('domain') === "contracts" ? "Document":""}+ {localStorage.getItem("domain") === "contracts" ? "Document" : ""}</p>)}</div>diff --git a/apps/OpenSign/src/routes/RemoteApp.js b/apps/OpenSign/src/routes/RemoteApp.jsindex 16d1afc71..08c2943c0 100644--- a/apps/OpenSign/src/routes/RemoteApp.js+++ b/apps/OpenSign/src/routes/RemoteApp.js@@ -65,7 +65,9 @@ export default function RemoteAppContainer() {// console.log("value ", key + ":" + value);if (key === "remoteUrl") {- obj = { ...obj, [key]: atob(value) };+ const url = window.location.origin + "/mfbuild/remoteEntry.js";+ // console.log("atob(value) ", atob(value))+ obj = { ...obj, [key]: url };} else {if (key === "moduleToLoad") {obj = { ...obj, [key]: "./" + value };diff --git a/microfrontends/SignDocuments/package.json b/microfrontends/SignDocuments/package.jsonindex a420d32b2..348d629eb 100644--- a/microfrontends/SignDocuments/package.json+++ b/microfrontends/SignDocuments/package.json@@ -35,7 +35,7 @@},"scripts": {"start": "mf-cra start",- "build": "CI=false && mf-cra build && mv build ../../apps/OpenSign/public/mfbuild",+ "build": "CI=false && mf-cra build && mv build/* ../../apps/OpenSign/public/mfbuild","test": "react-scripts test","eject": "react-scripts eject"},