Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
bcd333a
PROD-2309 #comment add dev center stub #time 15m
brooketopcoder Jun 28, 2022
89c27f1
Merge branch 'dev' into dev-center
brooketopcoder Jun 29, 2022
8fb43c3
do not require auth
brooketopcoder Jun 29, 2022
9c58522
Merge branch 'master' into dev-center
brooketopcoder Jul 6, 2022
52a5636
Dev center MVP 1
billsedison Jul 27, 2022
36670f4
Merge dev to dev-center, and resolve merge conflicts
billsedison Jul 28, 2022
69e8548
Merge branch 'dev' into dev-center
brooketopcoder Jul 28, 2022
4a3a5f4
Dev center, revise code as per review comments.
billsedison Jul 31, 2022
8e76d53
Merge branch 'dev-center' of https://github.com/topcoder-platform/pla…
billsedison Jul 31, 2022
353b1a2
Merge branch 'dev' into dev-center
brooketopcoder Aug 1, 2022
3444962
Remove unnecessary styles and fix the cyclomatic complexity
billsedison Aug 2, 2022
da162e2
Reimplementing the header of accordin, remove the background implemen…
billsedison Aug 2, 2022
4d6a800
Merge branch 'dev-center' of https://github.com/topcoder-platform/pla…
billsedison Aug 2, 2022
524e254
Fix compile issue
billsedison Aug 2, 2022
3173949
Fix the single image not visible issue, remove the hard coded HTML tags
billsedison Aug 2, 2022
ecf1759
PROD-1860 #comment modify startup scripts to not need port so bc the …
brooketopcoder Aug 8, 2022
a2685c4
Merge branch 'dev' into dev-center
brooketopcoder Aug 9, 2022
a057dc0
PROD-2309 #comment add support for local and dev .env files #time 30m
brooketopcoder Aug 9, 2022
305c075
Merge pull request #235 from topcoder-platform/dev-center
brooketopcoder Aug 9, 2022
21dbac6
PROD-2309 #comment make dev center member-only #time 5m
brooketopcoder Aug 9, 2022
dce9dd7
Merge pull request #259 from topcoder-platform/dev-center
brooketopcoder Aug 9, 2022
f6d7113
TCA-299 - Review UI for javascript course
vas3a Aug 10, 2022
5db064d
TCA-105 #comment add move learn-specific config to the learn tool; ad…
brooketopcoder Aug 10, 2022
1db588a
Sets default config to work for all local dev
testflyjets Aug 10, 2022
ee5b3bd
Fix linter issue
testflyjets Aug 10, 2022
0f11ca0
Merge pull request #260 from topcoder-platform/TCA-105_rename-cert
testflyjets Aug 10, 2022
acba3d1
TCA-279 #comment revert dev env to use dev GTM #time 5m
brooketopcoder Aug 11, 2022
8d2f696
Merge pull request #261 from topcoder-platform/TCA-279_gtm
brooketopcoder Aug 11, 2022
f5faeb8
Merge branch 'dev' into PROD-1860_messages
brooketopcoder Aug 11, 2022
95cc8de
TCA-279 #comment This commit changes the dev environment so that it i…
brooketopcoder Aug 11, 2022
441f816
Merge pull request #262 from topcoder-platform/TCA-279_google-analytics
brooketopcoder Aug 11, 2022
236018e
TCA-279 #comment This commit changes the dev environment so that it D…
brooketopcoder Aug 11, 2022
73531e4
Merge pull request #263 from topcoder-platform/TCA-279_google-analytics
brooketopcoder Aug 11, 2022
eb4cf96
PROD-1860 #comment This commit sets the message count badge on the wo…
brooketopcoder Aug 11, 2022
b7462e6
PROD-1860 #comment This commit ensures that we update the message bad…
brooketopcoder Aug 11, 2022
d9935b6
PROD-1860 readme improvement #time 5m
brooketopcoder Aug 11, 2022
ee829ec
PROD-1860 lint fixes #time 5m
brooketopcoder Aug 11, 2022
9dee898
scss: use icon mixin
vas3a Aug 12, 2022
938cdf6
Merge pull request #265 from topcoder-platform/TCA-299_ui-for-js-course
vas3a Aug 15, 2022
87390bb
Add challenge UUID to the api call for lesson completed
vas3a Aug 15, 2022
1f748b4
lint fixes
vas3a Aug 15, 2022
c8c6fcb
Merge Getting Started Guide content
billsedison Aug 16, 2022
bebd951
Merge pull request #264 from topcoder-platform/PROD-1860_messages
brooketopcoder Aug 16, 2022
f831007
Merge pull request #267 from topcoder-platform/dev-center
billsedison Aug 17, 2022
6a1f3a0
Makes simple change to README to kickoff build
testflyjets Aug 17, 2022
170bfb5
Add tiny convenience updates to the README.
sah2ed Aug 23, 2022
bbc85c7
Merge pull request #268 from topcoder-platform/add-minor-edits
brooketopcoder Aug 23, 2022
51b22ad
init Gamification Admin app
kkartunov Aug 24, 2022
a1c0159
TCA-369 #comment This commit adds READMEs for the dev center and the …
brooketopcoder Aug 24, 2022
6c9a62b
Update README.md
brooketopcoder Aug 24, 2022
ff26081
TCA-369 #comment This commit adds links between READMEs and files #ti…
brooketopcoder Aug 24, 2022
a1840f1
Merge branch 'TCA-369_learn-readme' of https://github.com/topcoder-pl…
brooketopcoder Aug 24, 2022
9090517
TCA-369 fix link #time 5m
brooketopcoder Aug 24, 2022
309d036
TCA-369 #comment This PR removes the Host Name enum and replaces it w…
brooketopcoder Aug 24, 2022
5ad7cca
TCA-369 clean up #time 5m
brooketopcoder Aug 24, 2022
63d8a2b
TCA-369 clean up #time 5m
brooketopcoder Aug 24, 2022
51f3610
TCA-369 clean up #time 5m
brooketopcoder Aug 24, 2022
ae59fca
Update README.md
brooketopcoder Aug 24, 2022
eaadee5
Update README.md
brooketopcoder Aug 24, 2022
048dde5
Merge pull request #269 from topcoder-platform/gamification
kkartunov Aug 24, 2022
15b8d28
GAME-74
kkartunov Aug 25, 2022
e0ec427
Merge pull request #271 from topcoder-platform/gamification
kkartunov Aug 25, 2022
55c4d1e
Add hosts file update
brooketopcoder Aug 25, 2022
d3deb9a
Update README.md
brooketopcoder Aug 25, 2022
5753671
TCA-314 #comment This commit fixes a typo in the segment snippet #tim…
brooketopcoder Aug 25, 2022
bdc4f64
Merge pull request #272 from topcoder-platform/TCA-314_heap
brooketopcoder Aug 25, 2022
7d855a8
TCA-52 #comment This commit modifies the xhr functions to that you ca…
brooketopcoder Aug 25, 2022
2bb8b0d
TCA-364 clean up #itme 5m
brooketopcoder Aug 25, 2022
370880e
Merge pull request #270 from topcoder-platform/TCA-369_learn-readme
brooketopcoder Aug 26, 2022
20212e9
TCA-365 #comment This commit filters the landing page so that only th…
brooketopcoder Aug 26, 2022
701a1a1
TCA-365 personal config #time 5m
brooketopcoder Aug 26, 2022
efd4692
TCA-365 fix typo in comment #time 5m
brooketopcoder Aug 26, 2022
dc04b95
Merge pull request #273 from topcoder-platform/TCA-364_updated-date
brooketopcoder Aug 26, 2022
7d4c57e
Merge pull request #274 from topcoder-platform/TCA-365_single-course
brooketopcoder Aug 26, 2022
5b423f1
Merge branch 'dev' into TCA-52_multi-progress
brooketopcoder Aug 26, 2022
da25652
Merge pull request #275 from topcoder-platform/TCA-52_multi-progress
brooketopcoder Aug 26, 2022
84cc3f8
Merge pull request #266 from topcoder-platform/add-uuid-to-lesson-com…
brooketopcoder Aug 26, 2022
b8d54e6
TCA-366 - Certificate view is flickering when trackType isn't DEV
vas3a Aug 29, 2022
a2e92aa
lint fixes
vas3a Aug 29, 2022
7cdfbe5
Setup cypress for local development and circle ci (#276)
LieutenantRoger Aug 30, 2022
cd4ef32
TCA-367 - FCC page: check if url params are valid, if not redirect to…
vas3a Aug 30, 2022
8edfcaf
lint fixes
vas3a Aug 30, 2022
98fa2b0
Merge pull request #277 from topcoder-platform/TCA-366_certificate-fl…
vas3a Aug 30, 2022
f944b9a
TCA-376 - refetch course progress data when user opens sidebar nav
vas3a Aug 30, 2022
9dcc485
GAME-73
kkartunov Aug 30, 2022
da181d4
Merge pull request #278 from topcoder-platform/TCA-367_fcc-page-param…
vas3a Aug 30, 2022
5bdbe6b
Final fix: Landing page thrive update, Getting Started Guide update
billsedison Aug 31, 2022
4e1ce72
Merge branch 'dev' into dev-center
billsedison Aug 31, 2022
c088faa
Update getting started guide
billsedison Aug 31, 2022
de13b3a
PR review fixes
kkartunov Aug 31, 2022
8419b68
fix build & lint
kkartunov Aug 31, 2022
29bec27
Merge pull request #280 from topcoder-platform/gamification
kkartunov Aug 31, 2022
e9531e5
add e2e commands (#282)
LieutenantRoger Aug 31, 2022
4926673
Merge pull request #279 from topcoder-platform/TCA-376_refetch-course…
vas3a Aug 31, 2022
b8b1953
TCA-60 #comment This commit purposely creates a failing test in order…
brooketopcoder Aug 31, 2022
7cf193e
TCA-60 #comment This commit makes the test pass again #time 5m
brooketopcoder Aug 31, 2022
1cd35ea
TCA-60 #comment This commit changes the id attribute to not be cypres…
brooketopcoder Aug 31, 2022
117cf3e
TCA-377 #comment This commit adds the See All Learning link to the co…
brooketopcoder Aug 31, 2022
0810801
GAME-73 fix imports #time 5m
brooketopcoder Aug 31, 2022
fef58c9
GAME-73 fix import #time 5m
brooketopcoder Aug 31, 2022
5c836c9
GAME-73 clean-up #time 5m
brooketopcoder Aug 31, 2022
4af63bb
Merge pull request #284 from topcoder-platform/TCA-377_my-learning
brooketopcoder Aug 31, 2022
feaa9e0
Merge pull request #283 from topcoder-platform/TCA-60_cypress
brooketopcoder Aug 31, 2022
81ff8dd
Merge pull request #281 from topcoder-platform/dev-center
brooketopcoder Aug 31, 2022
ba6dc17
Merge pull request #285 from topcoder-platform/gamification
brooketopcoder Aug 31, 2022
a90128b
TCA-386 #comment This commit fixes the condition that compares undefi…
brooketopcoder Sep 1, 2022
51f0762
Merge pull request #287 from topcoder-platform/TCA-386_newly-completed
brooketopcoder Sep 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
34 changes: 34 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ build_configuration_fetch: &build_configuration_fetch
command: |
./awsconfiguration.sh $DEPLOY_ENV
./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-buildvar
aws s3 cp s3://tc-platform-${LOGICAL_ENV}/securitymanager/${LOGICAL_ENV}-platform-ui.env ./.env

lint_steps: &lint_steps
# Initialization.
Expand Down Expand Up @@ -146,6 +147,35 @@ jobs:
APPNAME: "platform-ui-mvp"
steps: *deploy_steps

# Test job for the cases when we don not need deployment.
e2e-test:
docker:
- image: cypress/browsers:node16.14.2-slim-chrome100-ff99-edge
steps:
- checkout
- restore_cache:
key: test-node-modules-{{ checksum "yarn.lock" }}
- run:
name: Config Git
command: git config --global url."https://git@".insteadOf git://
- run:
name: Install Dependencies
command: yarn install
no_output_timeout: 20m
- run:
name: Install Cypress Binary
command: yarn cypress install
- run:
name: Build the application
command: yarn build
no_output_timeout: 20m
- save_cache:
key: test-node-modules-{{ checksum "yarn.lock" }}
paths:
- node_modules
- /root/.cache/Cypress
- run: yarn cy:ci

workflows:
version: 2
build:
Expand All @@ -171,6 +201,9 @@ workflows:
ignore:
- master

- e2e-test:
context : org-global

- build-prod:
context : org-global
filters:
Expand All @@ -182,6 +215,7 @@ workflows:
context : org-global
requires:
- build-dev
- e2e-test
filters:
branches:
only:
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

# testing
/coverage
.nyc_output

# production
/build
Expand All @@ -17,7 +18,12 @@
.env.development.local
.env.test.local
.env.production.local
.env

npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editors
.editorconfig
.prettierrc
60 changes: 44 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

The Platform UI is the official Topcoder web app to host all modern user interfaces to be used by all users.

All future user interfaces at Topcoder will be implemented here.
Pre-existing user interfaces will be ported to here over time until this is the only user interface any user sees when interacting with Topcoder.
All future user interfaces at Topcoder will be implemented here. Pre-existing user interfaces will be ported to here over time until this is the only user interface any user sees when interacting with Topcoder.

>**NOTE:** The information in this file describes our coding standards and best practices. All new code should follow these guidelines both when coding new features as well as porting old features. Please take the time to read through this file in detail.

# Getting started with local development

- [Local Environment Setup](#local-environment-setup)
- [Deployments](#deployments)
- [Developer Center specific setup](#developer-center-contentful-api-key-and-space-id)
- [Yarn Commands](#yarn-commands)

# Application structure
Expand Down Expand Up @@ -81,29 +81,37 @@ You will need to add the following line to your hosts file. The hosts file is no

>% yarn start

3. Go to https://local.topcoder-dev.com:3003/
3. Go to https://local.topcoder-dev.com:3000

>**NOTE**: The default port is 3000, but you can override it in your [personal config](#personal-config).

### Local SSL

SSL is required for authentication to work properly.

The `yarn start` command serves the site using the cert and key in the /ssl directory.
The `yarn start` command serves the site using the cert and key in the /ssl directory, which authorize the `https://local.topcoder-dev.com`URL.

By overriding the app to use <b>port 443</b>, you can use the authorized URL and trust the root CA to avoid SSL errors in the browser.

>**NOTE:** Mac users will require running the app with elevated permissions in order to use a port lower than 500.

For easier development, it is recommended that you add this certificate to your trusted root authorities and as a trused cert in your browser. Google your browser and OS for more info.
For easier development, it is recommended that you add this certificate to your trusted root authorities and as a trused cert in your browser. Google your browser and OS for more info on how to trust cert authorities.

Otherwise, you will need to override the exception each time you load the site. Firefox users may need to user an incognito browser in order to override the exception.

### Personal Config

1. Add [hostname] to src-ts/config/environments/app-host-environment.enum.ts
2. Copy an existing config from src-ts/config/environments/environment.*.config.ts
3. Rename new config environment.[hostname].config.ts
4. Rename config variable to EnvironmentConfig[HostName]
5. Set the ENV variable to AppHostEnvironment.[hostname]
6. Add the switch case for the host name to src-ts/config/environments/environment.config.ts
1. Add [hostname] to [`/src-ts/config/environments/app-host-environment.type.ts`](/src-ts/config/environments/app-host-environment.type.ts)
2. Copy an existing config from [`/src-ts/config/environments/environment.*.config.ts`](/src-ts/config/environments/environment.bsouza.config.ts)
3. Rename new config `environment.[hostname].config.ts`
4. Rename config variable to `EnvironmentConfig[HostName]`
5. Set the `ENV` variable to `[hostname]`
6. Add the switch case for the host name to [`/src-ts/config/environments/environment.config.ts`](/src-ts/config/environments/environment.config.ts)
7. Prior to starting the server, set your host name:
```% export REACT_APP_HOST_ENV=[hostname]```

>**NOTE:** Individual tools (e.g. [Learn tool](/src-ts/tools/learn/README.md)) can have their own configuration, which can be configured the same way as the global config.

#### For further convenience

1. Copy start-ssl-*.sh
Expand All @@ -117,7 +125,22 @@ The app uses CircleCI for CI/CD.

The "dev" branch is auto-deployed to the dev environment: https://platform-mvp.topcoder-dev.com.

The "master" branch is auto-deployed to the production environment: https://platform-mvp.topcoder.com.
The "master" branch is auto-deployed to the production environment: https://platform-ui.topcoder.com.

## Developer Center Contentful API Key and Space Id

The app requires two environment variables, which contain the space id and the key used to access contentful and retrieve Thrive Articles.

You should create a file named `.env` in the root folder, and write inside the following lines:

```sh
REACT_APP_CONTENTFUL_EDU_SPACE_ID=<space-id>
REACT_APP_CONTENTFUL_EDU_CDN_API_KEY=<API Key>
```

We should use the same space ID and API Key as Topcoder Thrive, these are for fetching Thrive articles and videos in the landing page.

See the [Dev Center README](/src-ts/tools/dev-center/README.md) for further instructions on setting up the Dev Center.

## yarn Commands

Expand All @@ -132,7 +155,11 @@ The "master" branch is auto-deployed to the production environment: https://plat
| `yarn eslint` | Run eslint against js/x files and outputs report |
| `yarn eslint:fix` | Run eslint against js/x files, fixes auto-fixable issues, and outputs report |
| `yarn test` | Run unit tests, watching for changes and re-running per your specifications |
| `yarn test:no-watch` | Run unit tests once, without watching for changes or re-running |
| `yarn test:no-watch` | Run unit tests once, without watching for changes or re-running |
| `yarn cy:run` | Run e2e tests once in local command with the site is running |
| `yarn cy:ci` | Run e2e tests once by circle ci |
| `yarn report:coverage`| Generate e2e coverage report in html format |
| `yarn report:coverage:text` | Generate e2e coverage report in text format |

## Folder Structure

Expand Down Expand Up @@ -247,9 +274,10 @@ The PlatformRoute model has several useful options:
| `element: JSX.Element` | The element property is the JSX element that should appear at the specified URL. |
| `disabled?: boolean` | When a route is marked as disabled, it will not be registered and will the URL will return a 404. |
| `hide?: boolean` | When a route is hidden, it will be registered and the URL will be available through deep-linking but will not be visible in either the Tools or Utils Selectors. This is useful for handling redirects for obsolete routes. |
| `requireAuth?: boolean` | Requiring authentication for a route means that users who are not logged in will be redirected to the Login Form when they try to access the route. |
| `authRequired?: boolean` | Requiring authentication for a route means that users who are not logged in will be redirected to the Login Form when they try to access the route. |
| `route: string` | The route property is the path to the route, relative to its parent(s). |
| `title: string` | The title property is the text that will appear in the Tools or Utils Selectors (this is irrelevant on hidden routes). |
| `rolesRequired: Array<string>` | Requiring roles for a route means that users who do not own the roles will be presented with restricted page when they try to access the route. |

## Git

Expand Down Expand Up @@ -465,8 +493,8 @@ e.g.:
```
.logo-link {
svg {
width: calc($pad-xxl + $pad-xxxxl);
height: $pad-xl;
width: calc($space-xxl + $space-xxxxl);
height: $space-xl;
fill: none;

path {
Expand Down
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ module.exports = function (api) {
],
],
plugins: [
"istanbul",
[
"module-resolver",
{
Expand Down
19 changes: 19 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { defineConfig } from 'cypress'

export default defineConfig({
fixturesFolder: false,
video: false,
screenshotOnRunFailure: false,
defaultCommandTimeout: 10000,
e2e: {
baseUrl: 'http://localhost:3000',
specPattern: "cypress/e2e/**/*.spec.{js,jsx,ts,tsx}",
supportFile: "cypress/support/e2e.ts",
viewportHeight: 1000,
viewportWidth: 1280,
setupNodeEvents(on, config) {
require('@cypress/code-coverage/task')(on, config)
return config;
},
},
})
3 changes: 3 additions & 0 deletions cypress/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["plugin:cypress/recommended"]
}
8 changes: 8 additions & 0 deletions cypress/e2e/home/home.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
describe('Landing Page', () => {

beforeEach(() => cy.visit('/'))

it('loads landing page should be successfully', () => {
cy.get('[data-id="root"]').should('be.visible')
})
})
8 changes: 8 additions & 0 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/// <reference types="cypress" />

Cypress.on('uncaught:exception', () => {
// returning false here prevents Cypress from failing the test
return false
})

export {}
2 changes: 2 additions & 0 deletions cypress/support/e2e.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import '@cypress/code-coverage/support'
import './commands'
12 changes: 12 additions & 0 deletions cypress/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../tsconfig.json",
"include": ["./**/*.ts"],
"exclude": [],
"compilerOptions": {
"types": ["cypress"],
"lib": ["es2015", "dom"],
"isolatedModules": false,
"allowJs": true,
"noEmit": true
}
}
26 changes: 23 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "yarn react-app-rewired start",
"start": "sh start-ssl.sh",
"start:bsouza": "sh start-ssl-bsouza.sh",
"start:bsouza": "sudo sh start-ssl-bsouza.sh",
"build": "yarn react-app-rewired build",
"lint": "tslint 'src-ts/**/*.{ts,tsx}' && eslint 'src*/**/*.{js,jsx,ts,tsx}'",
"lint:fix": "tslint 'src-ts/**/*.{ts,tsx}' --fix && eslint 'src*/**/*.{js,jsx,ts,tsx}' --fix",
Expand All @@ -13,19 +14,30 @@
"eslint": "eslint 'src/**/*.{js,jsx}'",
"eslint:fix": "eslint 'src/**/*.{js,jsx}' --fix",
"test": "react-scripts test --watchAll",
"test:no-watch": "react-scripts test --watchAll=false --passWithNoTests"
"test:no-watch": "react-scripts test --watchAll=false --passWithNoTests",
"cy:run": "cypress run",
"cy:ci": "start-server-and-test 'serve -s build -n -p 3000' http://localhost:3000 'cy:run'",
"report:coverage": "nyc report --reporter=html",
"report:coverage:text": "nyc report --reporter=text"
},
"dependencies": {
"@datadog/browser-logs": "^4.7.1",
"@heroicons/react": "^1.0.6",
"@types/dompurify": "^2.3.3",
"@types/highlightjs": "^9.12.2",
"@types/marked": "4.0.3",
"apexcharts": "^3.35.3",
"axios": "^0.26.1",
"browser-cookies": "^1.2.0",
"classnames": "^2.3.1",
"contentful": "^9.1.33",
"crypto-js": "^4.1.1",
"customize-cra": "^1.0.0",
"dompurify": "^2.3.10",
"highlight.js": "^11.6.0",
"html2canvas": "^1.4.1",
"lodash": "^4.17.21",
"marked": "4.0.3",
"moment": "^2.29.3",
"moment-timezone": "^0.5.34",
"prop-types": "^15.8.1",
Expand Down Expand Up @@ -63,6 +75,7 @@
"@babel/preset-react": "^7.7.4",
"@babel/preset-typescript": "^7.16.7",
"@babel/runtime": "^7.8.7",
"@cypress/code-coverage": "^3.10.0",
"@stripe/react-stripe-js": "1.7.2",
"@stripe/stripe-js": "1.29.0",
"@testing-library/jest-dom": "^5.14.1",
Expand All @@ -71,7 +84,7 @@
"@types/axios": "^0.14.0",
"@types/jest": "^27.0.1",
"@types/lodash": "^4.14.182",
"@types/node": "^17.0.24",
"@types/node": "^18.7.13",
"@types/reach__router": "^1.3.10",
"@types/react": "^18.0.5",
"@types/react-dom": "^18.0.1",
Expand All @@ -90,25 +103,32 @@
"concurrently": "^5.0.1",
"config": "^3.3.6",
"cross-env": "^7.0.2",
"cypress": "^10.6.0",
"eslint": "^8.18.0",
"eslint-config-prettier": "^6.7.0",
"eslint-config-react-app": "^7.0.1",
"eslint-config-react-important-stuff": "^2.0.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-prettier": "^3.1.1",
"file-loader": "^6.2.0",
"husky": "^8.0.0",
"identity-obj-proxy": "^3.0.0",
"istanbul-lib-coverage": "^3.2.0",
"jest": "^25.2.7",
"jest-cli": "^25.2.7",
"lint-staged": "^13.0.3",
"nyc": "^15.1.0",
"postcss-loader": "^4.0.4",
"postcss-scss": "^3.0.2",
"prettier": "^2.0.4",
"pretty-quick": "^2.0.1",
"resolve-url-loader": "^3.1.2",
"sass-loader": "^10.0.5",
"serve": "^14.0.1",
"start-server-and-test": "^1.14.0",
"style-loader": "^2.0.0",
"systemjs-webpack-interop": "^2.1.2",
"tslint": "^6.1.3",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10",
"webpack-config-single-spa-react": "^1.0.3",
Expand Down
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<div id="root" data-id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
Expand All @@ -45,4 +45,4 @@
-->
</body>

</html>
</html>
6 changes: 0 additions & 6 deletions src-ts/config/environments/app-host-environment.enum.ts

This file was deleted.

1 change: 1 addition & 0 deletions src-ts/config/environments/app-host-environment.type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type AppHostEnvironmentType = 'bsouza' | 'default' | 'dev' | 'prod'
Loading