Skip to content

Commit 484e7a6

Browse files
committed
Merge branch 'dev' into accounts-app
2 parents 21f1704 + 83aa2ae commit 484e7a6

File tree

265 files changed

+11486
-676
lines changed

Some content is hidden

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

265 files changed

+11486
-676
lines changed

.circleci/config.yml

Lines changed: 194 additions & 196 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: 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_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

.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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
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 (",
3232
" <div className={styles['wrap']}>",

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"vue.features.codeActions.enable": false
3+
}

craco.config.js

Lines changed: 8 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,7 @@ 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'),
3745

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

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
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",
1212
"lint": "eslint -c ./src/.eslintrc.js 'src/**/*.{ts,tsx,js,jsx}'",
1313
"lint:fix": "yarn lint --fix",
@@ -32,6 +32,7 @@
3232
"apexcharts": "^3.36.0",
3333
"axios": "^1.1.2",
3434
"browser-cookies": "^1.2.0",
35+
"city-timezones": "^1.2.1",
3536
"classnames": "^2.3.2",
3637
"contentful": "^9.2.5",
3738
"country-calling-code": "0.0.3",
@@ -74,6 +75,7 @@
7475
"react-contenteditable": "^3.3.6",
7576
"react-css-super-themr": "^2.2.0",
7677
"react-date-range": "^1.1.3",
78+
"react-datepicker": "^4.14.1",
7779
"react-dom": "^18.2.0",
7880
"react-dropzone": "^11.3.2",
7981
"react-elastic-carousel": "^0.11.5",
@@ -149,6 +151,7 @@
149151
"@types/node": "^18.8.5",
150152
"@types/reach__router": "^1.3.11",
151153
"@types/react": "^18.0.21",
154+
"@types/react-datepicker": "^4.11.2",
152155
"@types/react-dom": "^18.0.6",
153156
"@types/react-gtm-module": "^2.0.1",
154157
"@types/react-helmet": "^6.1.6",

src/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module.exports = {
7171
parameter: true,
7272
memberVariableDeclaration: true,
7373
callSignature: true,
74-
variableDeclaration: true,
74+
variableDeclaration: false,
7575
arrayDestructuring: false,
7676
objectDestructuring: true,
7777
},

0 commit comments

Comments
 (0)