Skip to content

Commit 721bef9

Browse files
authored
Merge pull request #933 from topcoder-platform/dev
PLAT-2894 update QA to latest dev -> qa
2 parents 4d67342 + 4335a27 commit 721bef9

File tree

596 files changed

+26485
-846
lines changed

Some content is hidden

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

596 files changed

+26485
-846
lines changed

.circleci/config.yml

Lines changed: 196 additions & 193 deletions
Large diffs are not rendered by default.

.environments/.env.dev

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ REACT_APP_ENABLE_TCA_CERT_MONETIZATION=false
55
# Stripe configs
66
REACT_APP_STRIPE_API_KEY=pk_test_rfcS49MHRVUKomQ9JgSH7Xqz
77
REACT_APP_STRIPE_API_VERSION=2020-08-27
8-
# not really used anywhere
9-
REACT_APP_STRIPE_ADMIN_TOKEN=
10-
REACT_APP_STRIPE_CUSTOMER_TOKEN=
118

129
# Vanilla Forums
1310
REACT_APP_VANILLA_ACCESS_TOKEN=va.JApNvUOx3549h20I6tnl1kOQDc75NDIp.0jG3dA.EE3gZgV

.environments/.env.prod

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ REACT_APP_ENABLE_TCA_CERT_MONETIZATION=false
55
# Stripe configs
66
REACT_APP_STRIPE_API_KEY=pk_live_m3bCBVSfkfMOEp3unZFRsHXi
77
REACT_APP_STRIPE_API_VERSION=2020-08-27
8-
# not really used anywhere
9-
REACT_APP_STRIPE_ADMIN_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6WyJUb3Bjb2RlciBVc2VyIiwiYWRtaW5pc3RyYXRvciJdLCJpc3MiOiJodHRwczovL2FwaS50b3Bjb2Rlci1kZXYuY29tIiwiaGFuZGxlIjoidGVzdDEiLCJleHAiOjI1NjMwNzY2ODksInVzZXJJZCI6IjQwMDUxMzMzIiwiaWF0IjoxNDYzMDc2MDg5LCJlbWFpbCI6InRlc3RAdG9wY29kZXIuY29tIiwianRpIjoiYjMzYjc3Y2QtYjUyZS00MGZlLTgzN2UtYmViOGUwYWU2YTRhIn0.wKWUe0-SaiFVN-VR_-GwgFlvWaDkSbc8H55ktb9LAVw
10-
REACT_APP_STRIPE_CUSTOMER_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6WyJUb3Bjb2RlciBVc2VyIl0sImlzcyI6Imh0dHBzOi8vYXBpLnRvcGNvZGVyLWRldi5jb20iLCJoYW5kbGUiOiJ0ZXN0MSIsImV4cCI6MjU2MzA3NjY4OSwidXNlcklkIjoiNDAwNTEzMzMiLCJpYXQiOjE0NjMwNzYwODksImVtYWlsIjoidGVzdEB0b3Bjb2Rlci5jb20iLCJqdGkiOiJiMzNiNzdjZC1iNTJlLTQwZmUtODM3ZS1iZWI4ZTBhZTZhNGEifQ.jl6Lp_friVNwEP8nfsfmL-vrQFzOFp2IfM_HC7AwGcg
118

129
# Vanilla Forums
1310
REACT_APP_VANILLA_ACCESS_TOKEN=va.JApNvUOx3549h20I6tnl1kOQDc75NDIp.0jG3dA.EE3gZgV
@@ -17,7 +14,7 @@ REACT_APP_DATADOG_PUBLIC_TOKEN=puba0825671e469d16f940c5a30dc738f11
1714

1815
REACT_APP_MEMBER_VERIFY_LOOKER=3322
1916

20-
REACT_APP_SPRIG_ENV_ID=bUcousVQ0-yF
17+
REACT_APP_SPRIG_ENV_ID=a-IZBZ6-r7bU
2118

2219
# Filestack configuration for uploading Submissions
2320
REACT_APP_FILESTACK_API_KEY=

.environments/.env.qa

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ REACT_APP_ENABLE_TCA_CERT_MONETIZATION=false
55
# Stripe configs
66
REACT_APP_STRIPE_API_KEY=pk_test_rfcS49MHRVUKomQ9JgSH7Xqz
77
REACT_APP_STRIPE_API_VERSION=2020-08-27
8-
# not really used anywhere
9-
REACT_APP_STRIPE_ADMIN_TOKEN=
10-
REACT_APP_STRIPE_CUSTOMER_TOKEN=
118

129
# Vanilla Forums
1310
REACT_APP_VANILLA_ACCESS_TOKEN=va.JApNvUOx3549h20I6tnl1kOQDc75NDIp.0jG3dA.EE3gZgV

.storybook/main.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,15 @@ const config: StorybookConfig = {
3232
};
3333
}
3434

35-
return config;
35+
return {
36+
...config,
37+
plugins: config.plugins?.filter(plugin => {
38+
if (plugin.constructor.name === 'ESLintWebpackPlugin') {
39+
return false
40+
}
41+
return true
42+
}),
43+
};
3644
}
3745
};
3846
export default config;

.vscode/components.code-snippets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
"interface ${1:ComponentName}Props {",
2727
"}",
2828
"",
29-
"const ${1:ComponentName}: FC<${1:ComponentName}Props> = (props: ${1:ComponentName}Props) => {",
29+
"const ${1:ComponentName}: FC<${1:ComponentName}Props> = props => {",
3030
"",
3131
" return (",
32-
" <div className={styles['wrap']}>",
32+
" <div className={styles.wrap}>",
3333
" </div>",
3434
" )",
3535
"}",

craco.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ const BabelRcPlugin = require('@jackwilsdon/craco-use-babelrc');
55

66
const isProd = process.env.APPMODE === "production";
77

8+
function getModeName() {
9+
const index = process.argv.indexOf('--mode');
10+
return index === -1 ? '' : process.argv[index + 1] || ''
11+
}
12+
13+
console.log({buildMode: getModeName()});
14+
815
const localIdentName = isProd
916
? "[hash:base64:6]"
1017
: "[name]_[local]__[hash:base64:6]";
@@ -34,6 +41,8 @@ module.exports = {
3441
'@learn': resolve('src/apps/learn/src'),
3542
'@devCenter': resolve('src/apps/dev-center/src'),
3643
'@gamificationAdmin': resolve('src/apps/gamification-admin/src'),
44+
'@talentSearch': resolve('src/apps/talent-search/src'),
45+
'@profiles': resolve('src/apps/profiles/src'),
3746

3847
'@platform': resolve('src/apps/platform/src'),
3948
// aliases used in SCSS files

package.json

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"private": true,
55
"license": "ISC",
66
"scripts": {
7-
"dev": "craco start --mode ${REACT_APP_HOST_ENV:-dev}",
7+
"dev": "craco start --mode ${LOGICAL_ENV:-dev}",
88
"start": "bash start.sh",
9-
"build": "export CI=false && craco build --mode ${REACT_APP_HOST_ENV:-prod}",
10-
"build:dev": "craco build --mode ${REACT_APP_HOST_ENV:-dev}",
9+
"build": "export CI=false && craco build --mode ${LOGICAL_ENV:-prod}",
10+
"build:dev": "craco build --mode ${LOGICAL_ENV:-dev}",
1111
"demo": "npx http-server --port 443 -a 0.0.0.0 -S -C ./ssl/rootCA.crt -K ./ssl/rootCA.key -P https://local.topcoder-dev.com? --proxy-options.secure false ./build",
12-
"lint": "eslint -c ./src/.eslintrc.js 'src/**/*.{ts,tsx}'",
13-
"lint:fix": "eslint -c ./src/.eslintrc.js 'src/**/*.{ts,tsx}' --fix",
12+
"lint": "eslint -c ./src/.eslintrc.js 'src/**/*.{ts,tsx,js,jsx}'",
13+
"lint:fix": "yarn lint --fix",
1414
"test": "craco test --watchAll",
1515
"test:no-watch": "craco test --watchAll=false --passWithNoTests",
1616
"cy:run": "cypress run --reporter junit",
@@ -23,6 +23,8 @@
2323
"dependencies": {
2424
"@datadog/browser-logs": "^4.21.2",
2525
"@heroicons/react": "^1.0.6",
26+
"@popperjs/core": "^2.11.8",
27+
"@segment/analytics-next": "^1.53.3",
2628
"@sprig-technologies/sprig-browser": "^2.20.1",
2729
"@storybook/addon-actions": "^7.0.5",
2830
"@storybook/react": "^7.0.5",
@@ -32,11 +34,13 @@
3234
"apexcharts": "^3.36.0",
3335
"axios": "^1.1.2",
3436
"browser-cookies": "^1.2.0",
37+
"city-timezones": "^1.2.1",
3538
"classnames": "^2.3.2",
3639
"contentful": "^9.2.5",
3740
"country-calling-code": "0.0.3",
3841
"crypto-js": "^4.1.1",
3942
"customize-cra": "^1.0.0",
43+
"date-fns": "^2.30.0",
4044
"dompurify": "^2.4.0",
4145
"draft-js": "^0.10.4",
4246
"draft-js-export-html": "^1.2.0",
@@ -73,13 +77,15 @@
7377
"react-contenteditable": "^3.3.6",
7478
"react-css-super-themr": "^2.2.0",
7579
"react-date-range": "^1.1.3",
80+
"react-datepicker": "^4.14.1",
7681
"react-dom": "^18.2.0",
7782
"react-dropzone": "^11.3.2",
7883
"react-elastic-carousel": "^0.11.5",
7984
"react-gtm-module": "^2.0.11",
8085
"react-helmet": "^6.1.0",
8186
"react-html-parser": "^2.0.2",
8287
"react-markdown": "8.0.6",
88+
"react-popper": "^2.3.0",
8389
"react-redux": "^8.0.4",
8490
"react-redux-toastr": "^7.6.10",
8591
"react-responsive": "^9.0.0-beta.5",
@@ -113,7 +119,7 @@
113119
"tc-auth-lib": "topcoder-platform/tc-auth-lib#1.0.26",
114120
"turndown": "^4.0.2",
115121
"typescript": "^4.8.4",
116-
"universal-navigation": "https://github.com/topcoder-platform/universal-navigation",
122+
"universal-navigation": "https://github.com/topcoder-platform/universal-navigation#9fc50d938be7182",
117123
"uuid": "^9.0.0"
118124
},
119125
"devDependencies": {
@@ -148,14 +154,16 @@
148154
"@types/node": "^18.8.5",
149155
"@types/reach__router": "^1.3.11",
150156
"@types/react": "^18.0.21",
157+
"@types/react-datepicker": "^4.11.2",
151158
"@types/react-dom": "^18.0.6",
152159
"@types/react-gtm-module": "^2.0.1",
153160
"@types/react-helmet": "^6.1.6",
154161
"@types/react-redux-toastr": "^7.6.2",
155162
"@types/react-router-dom": "^5.3.3",
156163
"@types/redux-actions": "2.6.2",
164+
"@types/redux-logger": "^3.0.9",
165+
"@types/redux-promise": "^0.5.29",
157166
"@types/sanitize-html": "^2.6.2",
158-
"@types/segment-analytics": "^0.0.34",
159167
"@types/systemjs": "^6.1.1",
160168
"@types/uuid": "^8.3.4",
161169
"@typescript-eslint/eslint-plugin": "^5.30.6",

0 commit comments

Comments
 (0)