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

Commit e151089

Browse files
committed
Fixes lint errors, removes unused code, fixes the error (crush) of view past payments page
1 parent c4888ad commit e151089

File tree

55 files changed

+225
-3493
lines changed

Some content is hidden

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

55 files changed

+225
-3493
lines changed

__tests__/shared/reducers/__snapshots__/index.js.snap

+30-42
Original file line numberDiff line numberDiff line change
@@ -25,48 +25,6 @@ Object {
2525
"unregistering": false,
2626
"updatingChallengeUuid": "",
2727
},
28-
"challengeListing": Object {
29-
"allDraftChallengesLoaded": false,
30-
"allPastChallengesLoaded": false,
31-
"allReviewOpportunitiesLoaded": false,
32-
"challengeSubtracks": Array [],
33-
"challengeSubtracksMap": Object {},
34-
"challengeTags": Array [],
35-
"challenges": Array [],
36-
"expandedTags": Array [],
37-
"filter": Object {},
38-
"filterPanel": Object {
39-
"expanded": false,
40-
"searchText": "",
41-
"trackModalShown": false,
42-
},
43-
"keepPastPlaceholders": false,
44-
"lastRequestedPageOfDraftChallenges": -1,
45-
"lastRequestedPageOfPastChallenges": -1,
46-
"lastRequestedPageOfReviewOpportunities": -1,
47-
"lastUpdateOfActiveChallenges": 0,
48-
"loadingActiveChallengesUUID": "",
49-
"loadingChallengeSubtracks": false,
50-
"loadingChallengeTags": false,
51-
"loadingDraftChallengesUUID": "",
52-
"loadingPastChallengesUUID": "",
53-
"loadingReviewOpportunitiesUUID": "",
54-
"reviewOpportunities": Array [],
55-
"selectedCommunityId": "",
56-
"sidebar": Object {
57-
"activeBucket": "all",
58-
"activeSavedFilter": 0,
59-
"editSavedFiltersMode": false,
60-
"isSavingFilter": false,
61-
"savedFilters": Array [],
62-
},
63-
"sorts": Object {},
64-
"srms": Object {
65-
"data": Array [],
66-
"loadingUuid": "",
67-
"timestamp": 0,
68-
},
69-
},
7028
"direct": Object {
7129
"loadingProjectDetailsForId": 0,
7230
"loadingProjectsForUsername": "",
@@ -90,6 +48,9 @@ Object {
9048
"groups": Object {},
9149
"loading": Object {},
9250
},
51+
"lookup": Object {
52+
"skillTags": Array [],
53+
},
9354
"memberTasks": Object {
9455
"allLoaded": false,
9556
"lastRequestedPageNum": -1,
@@ -137,12 +98,39 @@ Object {
13798
"isLoadingDetails": false,
13899
"requiredTerms": Array [],
139100
},
101+
"settings": Object {
102+
"userTraits": Array [],
103+
},
140104
"stats": Object {
141105
"communities": Object {},
142106
},
143107
"terms": Object {
144108
"selectedTerm": null,
145109
"terms": Array [],
146110
},
111+
"ui": Object {
112+
"settings": Object {
113+
"TABS": Object {
114+
"PROFILE": Object {
115+
"BASIC": "basic info",
116+
"COMMUNITY": "community",
117+
"EDUCATION": "education",
118+
"HOBBY": "hobby",
119+
"LANGUAGE": "language",
120+
"ORGANIZATION": "organization",
121+
"SKILL": "skill",
122+
"WORK": "work",
123+
},
124+
"TOOLS": Object {
125+
"DEVICES": "devices",
126+
"PROVIDERS": "service providers",
127+
"SOFTWARE": "software",
128+
"SUBSCRIPTIONS": "subscriptions",
129+
},
130+
},
131+
"currentProfileTab": "basic info",
132+
"currentToolsTab": "devices",
133+
},
134+
},
147135
}
148136
`;

config/jest/default.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const config = require('topcoder-react-utils/config/jest/default');
22

3-
config.transformIgnorePatterns[0] =
4-
'/node_modules/(?!appirio-tech|topcoder|tc-)';
3+
config.transformIgnorePatterns[0] = '/node_modules/(?!appirio-tech|topcoder|tc-)';
54

65
module.exports = config;

config/webpack/development.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const path = require('path');
2-
const standardConfigFactory =
3-
require('topcoder-react-utils/config/webpack/app-development');
2+
const standardConfigFactory = require('topcoder-react-utils/config/webpack/app-development');
43
const webpack = require('webpack');
54
const webpackMerge = require('webpack-merge');
65

@@ -14,8 +13,7 @@ const standardDevelopmentConfig = standardConfigFactory({
1413
publicPath: '/api/cdn/public/static-assets',
1514
});
1615

17-
const jsxRule = standardDevelopmentConfig.module.rules.find(rule =>
18-
rule.loader === 'babel-loader');
16+
const jsxRule = standardDevelopmentConfig.module.rules.find(rule => rule.loader === 'babel-loader');
1917
jsxRule.exclude = [
2018
/node_modules[\\/](?!appirio-tech.*|topcoder|tc-)/,
2119
/src[\\/]assets[\\/]fonts/,

config/webpack/production.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const path = require('path');
2-
const standardConfigFactory =
3-
require('topcoder-react-utils/config/webpack/app-production');
2+
const standardConfigFactory = require('topcoder-react-utils/config/webpack/app-production');
43
const webpack = require('webpack');
54
const webpackMerge = require('webpack-merge');
65

@@ -22,8 +21,7 @@ const standardProductionConfig = standardConfigFactory({
2221
keepBuildInfo: Boolean(global.KEEP_BUILD_INFO),
2322
});
2423

25-
const jsxRule = standardProductionConfig.module.rules.find(rule =>
26-
rule.loader === 'babel-loader');
24+
const jsxRule = standardProductionConfig.module.rules.find(rule => rule.loader === 'babel-loader');
2725
jsxRule.exclude = [
2826
/node_modules[\\/](?!appirio-tech.*|topcoder|tc-)/,
2927
/src[\\/]assets[\\/]fonts/,

src/client/loading-indicator-animation.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ function animateLoadingIndicators(timestamp) {
1818
circle.setAttribute('opacity', 1.0 - (phase1 * phase1));
1919
};
2020

21-
const circle1 =
22-
document.querySelectorAll('circle[id="loading-indicator-circle1"]');
23-
const circle2 =
24-
document.querySelectorAll('circle[id="loading-indicator-circle2"]');
21+
const circle1 = document.querySelectorAll('circle[id="loading-indicator-circle1"]');
22+
const circle2 = document.querySelectorAll('circle[id="loading-indicator-circle2"]');
2523

2624
circle1.forEach(x => updateCircle(x, 0));
2725
circle2.forEach(x => updateCircle(x, 0.5));

src/shared/actions/challenge-listing/filter-panel.js

-23
This file was deleted.

0 commit comments

Comments
 (0)