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

Commit 1ead34e

Browse files
Earn App Part 1 - Submission 455230
1 parent 46a3bd5 commit 1ead34e

File tree

211 files changed

+19122
-1930
lines changed

Some content is hidden

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

211 files changed

+19122
-1930
lines changed

babel.config.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
let cssLocalIdent;
2+
if (process.env.APPMODE == 'development') {
3+
cssLocalIdent = 'earn_[path][name]___[local]___[hash:base64:6]';
4+
} else {
5+
cssLocalIdent = '[hash:base64:6]';
6+
}
7+
8+
const config = {
9+
presets: [
10+
['@babel/preset-env', { targets: { 'browsers': ['> 1%', 'not dead'] } }],
11+
'@babel/preset-react'
12+
],
13+
plugins: [
14+
['module-resolver', {
15+
extensions: ['.js', '.jsx'],
16+
root: [
17+
'./src',
18+
],
19+
}],
20+
[
21+
'inline-react-svg',
22+
{
23+
ignorePattern: '[/\/]assets[/\/]images'
24+
}
25+
],
26+
[
27+
"@babel/plugin-transform-runtime",
28+
{
29+
useESModules: true,
30+
regenerator: false,
31+
},
32+
],
33+
['react-css-modules', {
34+
filetypes: {
35+
'.scss': {
36+
syntax: 'postcss-scss',
37+
},
38+
},
39+
generateScopedName: cssLocalIdent
40+
}],
41+
]
42+
};
43+
44+
module.exports = config;

babel.config.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

config/default.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
GUIKIT: {
3+
DEBOUNCE_ON_CHANGE_TIME: 150,
4+
},
5+
API: {
6+
V5: 'https://api.topcoder-dev.com/v5',
7+
V3: 'https://api.topcoder-dev.com/v3',
8+
},
9+
URL: {
10+
COMMUNITY_APP: 'https://community-app.topcoder-dev.com',
11+
}
12+
}

config/development.js

Whitespace-only changes.

config/production.js

Whitespace-only changes.

config/test.js

Whitespace-only changes.

0 commit comments

Comments
 (0)