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

Commit 431809d

Browse files
author
dengjun
committed
profile code baseline
2 parents ea28c30 + 9870620 commit 431809d

File tree

54 files changed

+1474
-22463
lines changed

Some content is hidden

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

54 files changed

+1474
-22463
lines changed

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module.exports = {
33
transform: {
44
"^.+\\.(j|t)sx?$": "babel-jest",
55
},
6+
transformIgnorePatterns: ["node_modules/?!(react-dropzone)"],
67
moduleNameMapper: {
78
"\\.(css|scss)$": "identity-obj-proxy",
89
"\\.(png|eot|otf|ttf|woff|woff2|svg)$": "<rootDir>/__mocks__/fileMock.js",

package-lock.json

Lines changed: 86 additions & 22402 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@
6666
"express-interceptor": "^1.2.0",
6767
"get-parameter-names": "^0.3.0",
6868
"http-status": "^1.5.0",
69+
"country-calling-code": "0.0.3",
70+
"i18n-iso-countries": "^6.7.0",
6971
"joi": "^17.4.0",
7072
"lodash": "^4.17.21",
7173
"moment": "^2.29.1",
@@ -75,7 +77,9 @@
7577
"react": "^16.12.0",
7678
"react-date-range": "^1.1.3",
7779
"react-dom": "^16.12.0",
80+
"react-dropzone": "^11.3.2",
7881
"react-redux": "^7.2.3",
82+
"react-responsive-modal": "^6.1.0",
7983
"react-select": "^1.3.0",
8084
"react-use": "^15.3.4",
8185
"redux": "^4.0.5",

src/App.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { useSelector } from "react-redux";
2020
import "react-date-range/dist/theme/default.css";
2121
import "react-date-range/dist/styles.css";
2222
import "rc-tooltip/assets/bootstrap.css";
23+
import "react-responsive-modal/styles.css";
2324

2425
import "./styles/main.scss";
2526

src/actions/lookup.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@ async function getGigPhases() {
1717
return service.getGigPhases();
1818
}
1919

20+
async function getGigStatuses() {
21+
return service.getGigStatuses();
22+
}
23+
2024
export default createActions({
2125
GET_TAGS: getTags,
2226
GET_COMMUNITY_LIST: getCommunityList,
2327
CHECK_IS_LOGGED_IN: checkIsLoggedIn,
2428
GET_GIG_PHASES: getGigPhases,
29+
GET_GIG_STATUSES: getGigStatuses,
2530
});

src/actions/myGigs.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,17 @@ async function loadMoreMyGigs() {
99
return service.loadMoreMyGigs();
1010
}
1111

12+
async function getProfile() {
13+
return service.getProfile();
14+
}
15+
16+
async function updateProfile(profile) {
17+
return service.updateProfile(profile);
18+
}
19+
1220
export default createActions({
1321
GET_MY_GIGS: getMyGigs,
1422
LOAD_MORE_MY_GIGS: loadMoreMyGigs,
23+
GET_PROFILE: getProfile,
24+
UPDATE_PROFILE: updateProfile,
1525
});

src/assets/data/my-gigs.json

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,5 +741,31 @@
741741
"next":"",
742742
"nextNote":""
743743
}
744-
]
744+
],
745+
"gigProfile":{
746+
"handle":"handle",
747+
"photoURL":"",
748+
"firstName":"FirstName",
749+
"lastName":"LastName",
750+
"email":"fnamelname@gmail.com",
751+
"city":"Goa",
752+
"country":"India",
753+
"phone":"+91123456789",
754+
"file":{
755+
"name":"resume.pdf"
756+
},
757+
"uploadTime":"5/9/2021",
758+
"status":"Available",
759+
"gigStatus":"PLACED"
760+
},
761+
"gigStatuses":[
762+
"Available",
763+
"Unavailable",
764+
"Placed"
765+
],
766+
"gigStatusTooltip":{
767+
"Available":"You’re open to take on new jobs.",
768+
"Unavailable":"You’re not open to take on new jobs.",
769+
"Placed":"You’re on a topcoder gig already."
770+
}
745771
}
-529 Bytes
Binary file not shown.
Lines changed: 15 additions & 0 deletions
Loading

src/assets/icons/checkpoint.png

-877 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)