mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-17 21:25:54 +02:00
Merge pull request #127 from prafull-opensignlabs/staging
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 };
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user