Skip to content

Commit c9b3604

Browse files
Merge pull request #99 from topcoder-platform/PROD-2195_remove-mfe-yipee
PROD-2195 remove mfe -> PROD-2195_migrate
2 parents dcbb4f0 + f000ffe commit c9b3604

File tree

200 files changed

+1741
-2023
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+1741
-2023
lines changed

config-overrides.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const { removeModuleScopePlugin } = require('customize-cra')
2+
3+
module.exports = removeModuleScopePlugin()

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@
1010
"build:dev": "sh build-dev.sh",
1111
"build:prod": "sh build-prod.sh",
1212
"eject": "react-scripts eject",
13-
"lint": "tslint src-ts/**/*.{ts,tsx}",
14-
"lint:fix": "tslint src-ts/**/*.{ts,tsx} --fix",
13+
"lint": "tslint 'src-ts/**/*.{ts,tsx}'",
14+
"lint:fix": "tslint 'src-ts/**/*.{ts,tsx}' --fix",
15+
"eslint": "eslint 'src/**/*.{js,jsx}'",
16+
"eslint:fix": "eslint 'src/**/*.{js,jsx}' --fix",
1517
"test": "react-scripts test",
1618
"test:no-watch": "npm test -- --watchAll=false"
1719
},
1820
"dependencies": {
1921
"@datadog/browser-logs": "^4.5.0",
2022
"@heroicons/react": "^1.0.6",
21-
"@reach/router": "^1.3.4",
2223
"apexcharts": "^3.35.3",
2324
"axios": "^0.26.1",
2425
"browser-cookies": "^1.2.0",
@@ -87,8 +88,10 @@
8788
"concurrently": "^5.0.1",
8889
"config": "^3.3.6",
8990
"cross-env": "^7.0.2",
90-
"eslint": "^6.7.2",
91+
"customize-cra": "^1.0.0",
92+
"eslint": "^8.18.0",
9193
"eslint-config-prettier": "^6.7.0",
94+
"eslint-config-react-app": "^7.0.1",
9295
"eslint-config-react-important-stuff": "^2.0.0",
9396
"eslint-plugin-prettier": "^3.1.1",
9497
"file-loader": "^6.2.0",
@@ -99,6 +102,7 @@
99102
"postcss-scss": "^3.0.2",
100103
"prettier": "^2.0.4",
101104
"pretty-quick": "^2.0.1",
105+
"react-app-rewired": "^2.2.1",
102106
"resolve-url-loader": "^3.1.2",
103107
"sass": "^1.48.0",
104108
"sass-loader": "^10.0.5",

public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<meta name="theme-color" content="#000000" />
99
<meta name="description"
1010
content="Topcoder is home to the world’s largest community of designers, developers, and data scientists. Allowing you the freedom to start and execute faster." />
11+
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Barlow'>
1112
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Barlow Condensed'>
1213
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto'>
1314
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo_512x512.png" />

src-ts/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const App: FC<{}> = () => {
2121
<Header />
2222
<Routes>
2323
{routeElements}
24-
</Routes >
24+
</Routes>
2525
<ToastContainer
2626
position={toast.POSITION.TOP_RIGHT}
2727
autoClose={3000}

src-ts/config/constants.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,3 @@ export enum ToolTitle {
22
settings = 'Account Settings',
33
work = 'Work',
44
}
5-
6-
export enum FooterSocialConfig {
7-
facebook = 'https://www.facebook.com/topcoder',
8-
youtube = 'https://www.youtube.com/channel/UCFv29ANLT2FQmtvS9DRixNA',
9-
linkedin = 'https://www.linkedin.com/company/topcoder',
10-
twitter = 'https://twitter.com/topcoder',
11-
instagram = 'https://www.instagram.com/topcoder',
12-
}

src-ts/declarations.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,4 @@ declare module '*.svg' {
1919
export default src
2020
}
2121

22-
declare module '@topcoder/mfe-header'
23-
2422
declare module 'tc-auth-lib'

src-ts/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,15 @@ export {
1010
OrderContractModal,
1111
PageFooter,
1212
PrivacyPolicyModal,
13+
profileContext,
1314
ProfileProvider,
1415
RouteProvider,
1516
TabsNavbar,
1617
TermsModal,
18+
xhrGetAsync,
19+
xhrGetBlobAsync,
20+
xhrPatchAsync,
21+
xhrPostAsync,
1722
} from './lib'
1823
export * from './tools'
1924
export * from './utils'

src-ts/index.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,23 @@ import ReactDOM from 'react-dom'
33
import { BrowserRouter } from 'react-router-dom'
44

55
import { default as App } from './App'
6-
import { EnvironmentConfig } from './config'
76
import './index.scss'
87
import { RouteProvider } from './lib'
98
import reportWebVitals from './reportWebVitals'
10-
import { ToolsRoutes } from './tools'
9+
import {
10+
routeRootLoggedIn,
11+
routeRootLoggedOut,
12+
ToolsRoutes,
13+
} from './tools'
1114
import { UtilsRoutes } from './utils'
1215

1316
ReactDOM.render(
1417
<BrowserRouter>
1518
<RouteProvider
16-
config={EnvironmentConfig}
1719
toolsRoutes={[...ToolsRoutes]}
1820
utilsRoutes={[...UtilsRoutes]}
21+
rootLoggedIn={routeRootLoggedIn}
22+
rootLoggedOut={routeRootLoggedOut}
1923
>
2024
<StrictMode>
2125
<App />

src-ts/lib/breadcrumb/Breadcrumb.module.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
ol {
1616
display: flex;
17+
padding-left: 0px;
18+
margin: 0;
19+
1720
&.hidden-mobile {
1821
@include ltemd {
1922
display: none;
@@ -26,7 +29,7 @@
2629
}
2730
}
2831

29-
> li {
32+
>li {
3033
display: inline-flex;
3134
align-items: center;
3235
padding: 0;
@@ -37,6 +40,7 @@
3740
padding: $pad-md;
3841
color: $black-80;
3942
cursor: pointer;
43+
4044
&.elipsis {
4145
color: $turq-160;
4246
}
@@ -69,4 +73,4 @@
6973
}
7074
}
7175
}
72-
}
76+
}

src-ts/lib/breadcrumb/Breadcrumb.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ const Breadcrumb: FC<BreadcrumbProps> = (props: BreadcrumbProps) => {
5151
}}
5252
/>
5353
</>
54-
5554
)
5655
}
5756
</>

0 commit comments

Comments
 (0)