Skip to content

Commit

Permalink
changed the package name to ui
Browse files Browse the repository at this point in the history
  • Loading branch information
hridya-egov committed Jul 16, 2024
1 parent 46264e1 commit e176e2b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion micro-ui/web/packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ui-core-mfe",
"name": "ui",
"version": "1.0.2",
"description": "",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion micro-ui/web/packages/ui/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Loader } from "@digit-ui/digit-ui-react-components";

const initDigitUI = () => {
// window.contextPath = window?.globalConfigs?.getConfig("CONTEXT_PATH") || "core-digit-ui";
window.contextPath = "ui-core-mfe";
window.contextPath = "ui";

window.Digit.Customizations = {

Expand Down
20 changes: 10 additions & 10 deletions micro-ui/web/packages/ui/src/utils/registerRemotes.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default (queryClient) => {
// name: 'PGR',
// app: () => import('pgr/PGRModule'),
// activeWhen: `/${
// window.contextPath ? window.contextPath : 'ui-core-mfe'
// window.contextPath ? window.contextPath : 'ui'
// }/${userType}/pgr`,
// customProps: {
// title: 'PGR is running on host',
Expand All @@ -35,7 +35,7 @@ export default (queryClient) => {
// name: 'Workbench',
// app: () => import('workbench/WorkbenchModule'),
// activeWhen: `/${
// window.contextPath ? window.contextPath : 'ui-core-mfe'
// window.contextPath ? window.contextPath : 'ui'
// }/employee/workbench`,
// customProps: {
// title: 'Workbench is running on host',
Expand All @@ -50,7 +50,7 @@ export default (queryClient) => {
// name: 'Microplan',
// app: () => import('microplan/MICROPLANModule'),
// activeWhen: `/${
// window.contextPath ? window.contextPath : 'ui-core-mfe'
// window.contextPath ? window.contextPath : 'ui'
// }/employee/microplan`,
// customProps: {
// title: 'Microplan is running on host',
Expand All @@ -63,7 +63,7 @@ export default (queryClient) => {
// name: 'Campaign',
// app: () => import('campaign/CAMPAIGNModule'),
// activeWhen: `/${
// window.contextPath ? window.contextPath : 'ui-core-mfe'
// window.contextPath ? window.contextPath : 'ui'
// }/employee/campaign`,
// customProps: {
// title: 'Campaign is running on host',
Expand All @@ -76,7 +76,7 @@ export default (queryClient) => {
name: 'HRMS',
app: () => import('hrms/HRMSModule'),
activeWhen: `/${
window.contextPath ? window.contextPath : 'ui-core-mfe'
window.contextPath ? window.contextPath : 'ui'
}/employee/hrms`,
customProps: {
title: 'HRMS is running on host',
Expand All @@ -88,7 +88,7 @@ export default (queryClient) => {
// registerApplication({
// name: "Common",
// app: () => import("common/CommonModule"),
// activeWhen: `/${window.contextPath ? window.contextPath : "ui-core-mfe"}/${userType}/payment`, //change to userType here
// activeWhen: `/${window.contextPath ? window.contextPath : "ui"}/${userType}/payment`, //change to userType here
// customProps: {
// title: "Common Module is running on host",
// queryClient,
Expand All @@ -99,7 +99,7 @@ export default (queryClient) => {
// registerApplication({
// name: "Dss",
// app: () => import("dss/DSSModule"),
// activeWhen: `/${window.contextPath ? window.contextPath : "ui-core-mfe"}/employee/dss`,
// activeWhen: `/${window.contextPath ? window.contextPath : "ui"}/employee/dss`,
// customProps: {
// title: "DSS is running on host",
// queryClient,
Expand All @@ -110,7 +110,7 @@ export default (queryClient) => {
// // registerApplication({
// // name: "TQM",
// // app: () => import("tqm/TQMModule"),
// // activeWhen: `/${window.contextPath ? window.contextPath : "core-digit-ui"}/employee/tqm`,
// // activeWhen: `/${window.contextPath ? window.contextPath : "ui"}/employee/tqm`,
// // customProps: {
// // title: "TQM is running on host",
// // queryClient,
Expand All @@ -122,8 +122,8 @@ export default (queryClient) => {
// name: "Engagement",
// app: () => import("engagement/EngagementModule"),
// activeWhen: [
// `/${window.contextPath ? window.contextPath : "ui-core-mfe"}/${userType}/engagement`,
// `/${window.contextPath ? window.contextPath : "ui-core-mfe"}/${userType}/engagement`
// `/${window.contextPath ? window.contextPath : "ui"}/${userType}/engagement`,
// `/${window.contextPath ? window.contextPath : "ui"}/${userType}/engagement`
// ],
// customProps: {
// title: "Engagement is running on host",
Expand Down
4 changes: 2 additions & 2 deletions micro-ui/web/packages/ui/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ module.exports = () => {
const prodConfig = {
mode: "production",
output: {
publicPath: "/ui-core-mfe/"
publicPath: "/ui/"
},
plugins: [
new ModuleFederationPlugin({
name: "ui-core-mfe",
name: "ui",
remotes: {
hrms: `hrms@${domain}/hrms-ui/remoteEntry.js`,
// common: `common@${domain}/common-ui/remoteEntry.js`,
Expand Down

0 comments on commit e176e2b

Please sign in to comment.