Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 0ae7909

Browse files
fix dependencies after repo renaming
1 parent fefc2d7 commit 0ae7909

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ Some config files are using domain `local.topcoder-dev.com`. You can change it t
7878
1. Run **Frame** App:
7979

8080
```sh
81-
git clone https://github.com/topcoder-platform/micro-frontends-frame.git
82-
cd micro-frontends-frame
83-
# inside folder "micro-frontends-frame" run:
81+
git clone https://github.com/topcoder-platform/mfe-core.git
82+
cd mfe-core
83+
# inside folder "mfe-core" run:
8484

8585
nvm use # or make sure to use Node 10
8686
npm i # to install dependencies
@@ -111,21 +111,21 @@ Some config files are using domain `local.topcoder-dev.com`. You can change it t
111111
2. Run **Navbar** micro-app:
112112

113113
```sh
114-
git clone https://github.com/topcoder-platform/micro-frontends-navbar-app.git
115-
cd micro-frontends-navbar-app
114+
git clone https://github.com/topcoder-platform/mfe-header.git
115+
cd mfe-header
116116
```
117117

118-
Update in file `micro-frontends-navbar-app/config/dev.js` values for `ACCOUNTS_APP_CONNECTOR` and `AUTH` to `http://localhost:5000` so Navbar app which handles authentication uses our local Authentication service.
118+
Update in file `mfe-header/config/dev.js` values for `ACCOUNTS_APP_CONNECTOR` and `AUTH` to `http://localhost:5000` so Navbar app which handles authentication uses our local Authentication service.
119119

120120
```sh
121-
# inside folder "micro-frontends-navbar-app" run:
121+
# inside folder "mfe-header" run:
122122

123123
nvm use # or make sure to use Node 10
124124
npm i # to install dependencies
125125

126126
npm run dev
127127

128-
# this host navbar app as http://localhost:3001/navbar/topcoder-micro-frontends-navbar-app.js
128+
# this host navbar app as http://localhost:3001/navbar/topcoder-mfe-header.js
129129
```
130130

131131
3. Run **TaaS Admin** micro-app:
@@ -141,7 +141,7 @@ Some config files are using domain `local.topcoder-dev.com`. You can change it t
141141
# this hosts TaaS Admin App as http://localhost:8502/taas-admin-app/topcoder-micro-frontends-taas-admin-app.js
142142
```
143143

144-
4. Now we have to update the `micro-frontends-frame` app to show our local version of TaaS Admin App, instead of remote one. Update file `micro-frontends-frame/config/micro-frontends-config-local.json`:
144+
4. Now we have to update the `mfe-core` app to show our local version of TaaS Admin App, instead of remote one. Update file `mfe-core/config/micro-frontends-config-local.json`:
145145

146146
```js
147147
// replace line
@@ -155,4 +155,4 @@ Some config files are using domain `local.topcoder-dev.com`. You can change it t
155155
- If you are not logged-in yet, you should be redirected to the login page.
156156
- If you cannot see the application and redirect doesn't happen, make sure that file "http://local.topcoder-dev.com:8502/taas-admin-app/topcoder-micro-frontends-taas-admin-app.js" is loaded successfully in the Network tab.
157157

158-
Congratulations, you successfully run the project. If you had some issue, please, try to go through README of https://github.com/topcoder-platform/micro-frontends-frame and https://github.com/topcoder-platform/micro-frontends-navbar-app.
158+
Congratulations, you successfully run the project. If you had some issue, please, try to go through README of https://github.com/topcoder-platform/mfe-core and https://github.com/topcoder-platform/mfe-header.

src/decls/micro-frontends-navbar-app.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
declare module "@topcoder/micro-frontends-navbar-app" {
1+
declare module "@topcoder/mfe-header" {
22
export const disableSidebarForRoute: (route: string) => void;
33
export const getAuthUserProfile: () => Promise<any>;
44
export const getAuthUserTokens: () => Promise<{

src/hoc/withAuthentication/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import React, { useEffect } from "react";
1313
import { useDispatch, useSelector } from "react-redux";
1414
import _ from "lodash";
1515
import { decodeToken } from "tc-auth-lib";
16-
import { getAuthUserTokens, login } from "@topcoder/micro-frontends-navbar-app";
16+
import { getAuthUserTokens, login } from "@topcoder/mfe-header";
1717
import LoadingIndicator from "components/LoadingIndicator";
1818
import { authUserSuccess, authUserError } from "./actions";
1919

src/root.component.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
disableSidebarForRoute,
77
setNotificationPlatform,
88
PLATFORM,
9-
} from "@topcoder/micro-frontends-navbar-app";
9+
} from "@topcoder/mfe-header";
1010
import WorkPeriods from "routes/WorkPeriods";
1111
import Freelancers from "routes/Freelancers";
1212
import Roles from "routes/Roles";

src/services/axios.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import axios from "axios";
22
import get from "lodash/get";
3-
import { getAuthUserTokens } from "@topcoder/micro-frontends-navbar-app";
3+
import { getAuthUserTokens } from "@topcoder/mfe-header";
44

55
export const CancelToken = axios.CancelToken;
66

0 commit comments

Comments
 (0)