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

Commit 501f2b5

Browse files
rename mfe repos
1 parent b8ce38c commit 501f2b5

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
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/blob/dev/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/blob/dev/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** micro-app:
@@ -148,7 +148,7 @@ Some config files are using domain `local.topcoder-dev.com`. You can change it t
148148
# this host TaaS App as http://localhost:8501/taas-app/topcoder-micro-frontends-teams.js
149149
```
150150

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

153153
```js
154154
// replace line
@@ -162,4 +162,4 @@ Some config files are using domain `local.topcoder-dev.com`. You can change it t
162162
- If you are not logged-in yet, you should be redirected to the login page.
163163
- If you cannot see the application and redirect doesn't happen, make sure that file "http://local.topcoder-dev.com:8501/taas-app/topcoder-micro-frontends-teams.js" is loaded successfully in the Network tab.
164164

165-
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.
165+
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/hoc/withAuthentication/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
getAuthUserTokens,
1818
login,
1919
businessLogin,
20-
} from "@topcoder/micro-frontends-navbar-app";
20+
} from "@topcoder/mfe-header";
2121
import LoadingIndicator from "../../components/LoadingIndicator";
2222
import {
2323
authUserSuccess,

src/root.component.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Router, Redirect } from "@reach/router";
44
import {
55
setNotificationPlatform,
66
PLATFORM,
7-
} from "@topcoder/micro-frontends-navbar-app";
7+
} from "@topcoder/mfe-header";
88
import MyTeamsList from "./routes/MyTeamsList";
99
import MyTeamsDetails from "./routes/MyTeamsDetails";
1010
import PositionDetails from "./routes/PositionDetails";

src/routes/CancelInterviewPage/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import PageHeader from "components/PageHeader";
1212
import Button from "components/Button";
1313
import Input from "components/Input";
1414
import LoadingIndicator from "components/LoadingIndicator";
15-
import { getAuthUserProfile } from "@topcoder/micro-frontends-navbar-app";
15+
import { getAuthUserProfile } from "@topcoder/mfe-header";
1616
import { getJobById } from "services/jobs";
1717
import { getInterview, cancelInterview } from "services/interviews";
1818
import { INTERVIEW_STATUS } from "constants";

src/routes/CreateNewTeam/components/ResultCard/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import React, { useState, useEffect } from "react";
88
import PT from "prop-types";
99
import _ from "lodash";
10-
import { getAuthUserProfile } from "@topcoder/micro-frontends-navbar-app";
10+
import { getAuthUserProfile } from "@topcoder/mfe-header";
1111
import "./styles.module.scss";
1212
import IconEarthCheck from "../../../../assets/images/icon-earth-check.svg";
1313
import IconMultipleUsers from "../../../../assets/images/icon-multiple-users.svg";

src/routes/CreateNewTeam/components/SearchAndSubmit/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Router, navigate } from "@reach/router";
22
import _ from "lodash";
33
import React, { useCallback, useState, useEffect, useMemo } from "react";
44
import { useDispatch, useSelector } from "react-redux";
5-
import { getAuthUserTokens } from "@topcoder/micro-frontends-navbar-app";
5+
import { getAuthUserTokens } from "@topcoder/mfe-header";
66
import { decodeToken } from "tc-auth-lib";
77
import { SEARCH_STAGE_TIME } from "constants/";
88
import { useData } from "hooks/useData";

src/routes/RescheduleInterviewPage/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Allows users reschedule an interview in Nylas
55
*/
66
import React, { useEffect, useState } from "react";
7-
import { getAuthUserProfile } from "@topcoder/micro-frontends-navbar-app";
7+
import { getAuthUserProfile } from "@topcoder/mfe-header";
88
import { getInterview } from "services/interviews";
99
import { INTERVIEW_STATUS } from "constants";
1010
import withAuthentication from "../../hoc/withAuthentication";

src/routes/SchedulingPage/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Allows users to set up bookings for an interview in Nylas
55
*/
66
import React, { useEffect, useState } from "react";
7-
import { getAuthUserProfile } from "@topcoder/micro-frontends-navbar-app";
7+
import { getAuthUserProfile } from "@topcoder/mfe-header";
88
import { getInterview } from "services/interviews";
99
import { INTERVIEW_STATUS } from "constants";
1010
import withAuthentication from "../../hoc/withAuthentication";

src/services/requestInterceptor.js

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

55
export const axiosInstance = axios.create({
66
headers: {

0 commit comments

Comments
 (0)