Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merging with yohan's master #12

Merged
merged 33 commits into from
Aug 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
a04618c
general cleanup on server.js
yowiputra Aug 17, 2017
517c52a
changed seed file, changed skill column to seriousness, added queries…
yowiputra Aug 17, 2017
e672aed
query based on similarity on seriousness level and got rid of query t…
howareyouhelen Aug 17, 2017
865c4b5
added slider to matchmakerpage value from 0 to 100 so users can adjus…
howareyouhelen Aug 17, 2017
5770fee
modified default value as user's value, recieve server data on compat…
howareyouhelen Aug 18, 2017
a5fac74
modified matchcards and fixed slider default value and value change
howareyouhelen Aug 18, 2017
45cbaf1
Created new form component and routing which allows users to edit the…
johnwonghw Aug 19, 2017
a9a3462
Merge pull request #17 from yowiputra/feature/profile
yowiputra Aug 19, 2017
3562e08
Merge branch 'master' into feature/chat
johnwonghw Aug 19, 2017
120d8eb
Merge pull request #18 from jv-cortez/feature/chat
johnwonghw Aug 19, 2017
9b18252
Added css back to popup box due to previous conflict merge.
johnwonghw Aug 19, 2017
de6ea83
broadcast onlineuser list to all users on connect, update and disconnect
howareyouhelen Aug 19, 2017
09f4fe2
filter on the client side, receives full onlineuser list and filters …
howareyouhelen Aug 19, 2017
ae68798
reconfigured token's username into currentUserName
howareyouhelen Aug 19, 2017
b5dfb11
set state for currentUserName
howareyouhelen Aug 19, 2017
1072d3e
added function that console logs input field on submit
johnwonghw Aug 20, 2017
ec2ec41
Merge pull request #19 from yowiputra/feature/chat
howareyouhelen Aug 20, 2017
2336b8c
integrated first stage of inter-user activity
yowiputra Aug 20, 2017
720a6c3
Merge branch 'master' into feature/socket-query
howareyouhelen Aug 20, 2017
f133fbf
Merge pull request #20 from yowiputra/feature/socket-query
howareyouhelen Aug 20, 2017
f3bde89
fixed sending to each users' individual sockets
yowiputra Aug 20, 2017
f9ac78a
Deleted submit button due to bugs. Added socket listeners to send and…
johnwonghw Aug 20, 2017
68597bb
test
johnwonghw Aug 20, 2017
3b659f4
Eliminated remainging footer tags
jv-cortez Aug 20, 2017
88e9088
removed unnecessary colons
jv-cortez Aug 20, 2017
18b4149
fixed conflicts from pull request
jv-cortez Aug 20, 2017
a010d80
resolved conflicts from pull request
jv-cortez Aug 20, 2017
76ba168
removed initial load query
yowiputra Aug 20, 2017
25f9214
removed authenticated socket emit from client side
yowiputra Aug 21, 2017
47d09e0
Reverted changes to remove popup box for chat and instead add chatbox…
johnwonghw Aug 21, 2017
d47009b
Merge branch 'feature/chat' into feature/chat
jv-cortez Aug 21, 2017
b18fb06
Merge pull request #22 from yowiputra/feature/socket-query
jv-cortez Aug 21, 2017
313e0f8
Merge pull request #21 from yowiputra/feature/chat
jv-cortez Aug 21, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions client/actions/userDataActions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,13 @@ export function currentUserDataRequest() {
return res.data;
});
}
}

export function userUpdateProfile(userProfileData) {
return dispatch => {
return axios.post('/api/profileupdate', userProfileData).then(res => {
console.log('outcoming data' + res.data);
return res.data;
});
}
}
161 changes: 161 additions & 0 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@
"material-ui": "^0.19.0",
"node-sass": "^4.5.3",
"prop-types": "^15.5.10",
"rc-slider": "^8.3.1",
"react": "^15.6.1",
"react-bootstrap": "^0.31.2",
"react-dom": "^15.6.1",
"react-popup": "^0.8.0",
"react-popupbox": "^2.0.1",
"react-redux": "^5.0.6",
"react-router": "^4.1.2",
"react-router-dom": "^4.1.2",
"react-swipe-card": "^0.1.4",
"react-popupbox":"^2.0.1",
"react-tap-event-plugin": "^2.0.1",
"redux": "^3.7.2",
"redux-devtools-extension": "^2.13.2",
Expand Down
3 changes: 2 additions & 1 deletion client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import LoginPage from './LoginPage.jsx';
import ProfilePage from './ProfilePage.jsx';
import MatchmakerPage from './MainApp/MatchmakerPage.jsx';
import { connect } from 'react-redux';
import ProfileForm from './ProfileForm.jsx';

class App extends Component {
constructor(props) {
Expand All @@ -28,12 +29,12 @@ class App extends Component {
<Route path="/login" component={LoginPage} />
<Route path="/profile" component={ProfilePage} />
<Route path="/matchmaker" render={() => ( isAuthenticated ? <MatchmakerPage/> : <Redirect to="/"/> )} />
<Route path="/profileupdate" component={ProfileForm} />
</div>
);
}
}


function mapStateToProps(state) {
return {
auth: state.auth
Expand Down
34 changes: 18 additions & 16 deletions client/src/MainApp/MatchmakerEvent.jsx
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
import React, { Component } from 'react';
import Cards, { Card } from 'react-swipe-card';
import PopupChat from './PopupChat.jsx';

class MatchmakerEvent extends Component {
render () {
// data will be an array of objects(most probably JSON), which each objects will contain the information from a user: username, text description, avatar, etc
// Each card should have an output for showing username, avatar, text description, and a button to send an invite
const data = ['Match #1', 'Match #2', 'Match #3', 'Match #4', 'Match #5', 'Match #6']
const data = this.props.compatUsers
console.log(data)
return (
<div>
<PopupChat />
<Cards onEnd={() => console.log('end')} className='master-root'>
{data.map(item =>
//make card and card border bigger
//make sure it's mobile responsive
<Card
onSwipeLeft={() => console.log('swipe left')}
onSwipeRight={() => console.log('swipe right')}>
<h2>{item}</h2>
<img className="avatar" src="" alt="avatar image"/>
<p>Username</p>
<p className="card-text-description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas vitae risus risus.</p>
<button className="btn-poke">Poke!</button>
</Card>
)}
{
data.map(item =>
//make card and card border bigger
//make sure it's mobile responsive
<Card
onSwipeLeft={() => console.log('reject ' + item.username)}
onSwipeRight={() => {
console.log('accept ' + item.username);
this.props.inviteUserB(item);
}}>
<h2>{item.username}</h2>
<img className="avatar" src={item.imageurl} alt="avatar image"/>
<p className="card-text-description">{item.tagline}</p>
<p className="card-text-description">{item.blurb}</p>
</Card>
)}
</Cards>
</div>
)
Expand Down
Loading