From 6aa1a9329dbbd1f9465a43f32799daabea2c1a44 Mon Sep 17 00:00:00 2001 From: nabeelmd-eGov <94039229+nabeelmd-eGov@users.noreply.github.com> Date: Tue, 27 Feb 2024 16:01:04 +0530 Subject: [PATCH] enable common ui module mfe (#169) * dpg-2227: added yml file for mfe module(engagement,fsm,tqm,pgr) * enable common ui module mfe --------- Co-authored-by: nabeelmd-eGov --- micro-ui/web/lerna.json | 1 + micro-ui/web/package.json | 3 +++ .../core/src/modules/registerRemotes.js | 19 ++++++++++--------- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/micro-ui/web/lerna.json b/micro-ui/web/lerna.json index 58d190662c0..17c7a0f8604 100644 --- a/micro-ui/web/lerna.json +++ b/micro-ui/web/lerna.json @@ -3,6 +3,7 @@ "version": "0.0.0", "packages":[ "packages/core", + "packages/common", "packages/workbench", "packages/ui-core", "packages/app1" diff --git a/micro-ui/web/package.json b/micro-ui/web/package.json index 39238e5f0cf..a26212b0e20 100644 --- a/micro-ui/web/package.json +++ b/micro-ui/web/package.json @@ -18,6 +18,7 @@ "workspaces": [ "packages/core", "packages/workbench", + "packages/common", "packages/ui-core", "packages/app1" ], @@ -25,10 +26,12 @@ "build": "yarn lerna run build", "start": "yarn lerna run start --parallel", "build:core": "cd packages/core && yarn build", + "build:common": "cd packages/common && yarn build", "build:hrms": "cd packages/hrms && yarn build", "build:workbench": "cd packages/workbench && yarn build", "build:dss": "cd packages/dss && yarn build", "start:core": "cd packages/core && yarn start", + "start:common": "cd packages/common && yarn start", "start:workbench": "cd packages/workbench && yarn start" }, "dependencies": { diff --git a/micro-ui/web/packages/core/src/modules/registerRemotes.js b/micro-ui/web/packages/core/src/modules/registerRemotes.js index 5d9909fb18b..5a3c83fbf29 100644 --- a/micro-ui/web/packages/core/src/modules/registerRemotes.js +++ b/micro-ui/web/packages/core/src/modules/registerRemotes.js @@ -15,15 +15,16 @@ export default (queryClient) => { queryClient, }, }); - // registerApplication({ - // name: "Common", - // app: () => import("common/CommonModule"), - // activeWhen: "/workbench-ui/employee/common", - // customProps: { - // title: "Common Module is running on host", - // queryClient, - // }, - // }); + + registerApplication({ + name: "Common", + app: () => import("common/CommonModule"), + activeWhen: "/workbench-ui/employee/common", + customProps: { + title: "Common Module is running on host", + queryClient, + }, + }); // registerApplication({ // name: "app1",