Merge pull request #127 from prafull-opensignlabs/staging

This commit is contained in:
Amol
2023-11-03 17:42:27 +05:30
committed by GitHub
5 changed files with 11 additions and 7 deletions
+2 -2
View File
@@ -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"
}
}
}
@@ -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>
+3 -1
View File
@@ -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 };
+1 -1
View File
@@ -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"
},