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

Earn Restructure PR #26

Merged
merged 16 commits into from
Sep 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ dist

# TernJS port file
.tern-port

# VS Code settings
.vscode/
8 changes: 4 additions & 4 deletions config/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ module.exports = Object.freeze({
APP_CONFIG: [
{
'appEnv': 'dev',
'mfeConfigPath': 'https://tc-platform-dev.s3.amazonaws.com/micro-frontends/micro-frontends-config-development.json',
'mfeConfigPath': 'https://tc-micro-frontends-dev.s3.amazonaws.com/micro-frontends/micro-frontends-config-development.json',
'mfeIndexPath': '/index.html',
'mfeRoutesPath': 'https://tc-platform-dev.s3.amazonaws.com/micro-frontends/micro-frontends-routes-development.txt'
'mfeRoutesPath': 'https://tc-micro-frontends-dev.s3.amazonaws.com/micro-frontends/micro-frontends-routes-development.txt'
},
{
'appEnv': 'prod',
'mfeConfigPath': 'https://tc-platform-prod.s3.amazonaws.com/micro-frontends/micro-frontends-config-production.json',
'mfeConfigPath': 'https://tc-micro-frontends-prod.s3.amazonaws.com/micro-frontends/micro-frontends-config-production.json',
'mfeIndexPath': '/index.html',
'mfeRoutesPath': 'https://tc-platform-prod.s3.amazonaws.com/micro-frontends/micro-frontends-routes-production.txt'
'mfeRoutesPath': 'https://tc-micro-frontends-prod.s3.amazonaws.com/micro-frontends/micro-frontends-routes-production.txt'
},
{
'appEnv': 'local-multi',
Expand Down
5 changes: 3 additions & 2 deletions config/micro-frontends-config-local.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"imports": {
"@topcoder/micro-frontends-navbar-app": "http://localhost:3001/navbar/topcoder-micro-frontends-navbar-app.js",
"@topcoder/micro-frontends-taas-admin-app": "https://platform.topcoder-dev.com/taas-admin-app/topcoder-micro-frontends-taas-admin-app.js",
"@topcoder/micro-frontends-react-app": "https://platform.topcoder-dev.com/react/topcoder-micro-frontends-react-app.js",
"@topcoder/micro-frontends-angular-app": "https://platform.topcoder-dev.com/angular/main.js",
"@topcoder/micro-frontends-teams": "https://platform.topcoder-dev.com/taas-app/topcoder-micro-frontends-teams.js",
"@topcoder/micro-frontends-task-marketplace-app": "https://platform.topcoder-dev.com/tasks/topcoder-micro-frontends-task-marketplace-app.js",
"@topcoder/micro-frontends-earn-app": "http://localhost:8008/topcoder-micro-frontends-earn-app.js",
"@topcoder/micro-frontends-earn-app": "http://localhost:8008/earn-app/topcoder-micro-frontends-earn-app.js",
"@topcoder/micro-frontends-submission-review-app": "https://platform.topcoder-dev.com/submissionreview/topcoder-micro-frontends-submission-review-app.js",
"@topcoder/micro-frontends-model-app": "https://platform.topcoder-dev.com/model-app/topcoder-micro-frontends-model-app.js",
"@topcoder/micro-frontends-community-admin-app": "https://tc-micro-community-admin.herokuapp.com/community-admin-app/topcoder-micro-frontends-community-admin-app.js"
}
}
}
7 changes: 5 additions & 2 deletions config/micro-frontends-routes-local.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<route path="taas">
<application name="@topcoder/micro-frontends-teams"></application>
</route>
<route path="taas-admin">
<application name="@topcoder/micro-frontends-taas-admin-app"></application>
</route>
<route path="task-marketplace">
<application name="@topcoder/micro-frontends-task-marketplace-app"></application>
</route>
Expand All @@ -29,6 +32,6 @@
</route>
<route default>
<div style="text-align: center; padding-top: 200px; font-size: 32px;">
Welcome to Topcoder Micro Frontends
Welcome to the Topcoder Platform. Get started by opening an app in the tool switcher on top right corner.
</div>
</route>
</route>
Loading