Skip to content

Commit

Permalink
base functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Richwhat89 committed Jan 18, 2019
1 parent a111bc0 commit 9cf6e56
Show file tree
Hide file tree
Showing 33 changed files with 33 additions and 1,220 deletions.
4 changes: 2 additions & 2 deletions server/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ module.exports={

bad: (req, res)=>{
const db = req.app.get('db');
db.bad({praise: req.body.praise, points: req.body.points})
db.bad({mean: req.body.mean, points: req.body.points})
.then(bad=>{
res.status(200).json({praise: bad[0].praise, points: bad[0].points})
res.status(200).json({mean: bad[0].mean, points: bad[0].points})
})
}
}
10 changes: 5 additions & 5 deletions src/components/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ class Login extends Component{
return <Redirect push to='/dashboard'/>;
}
return(
<div>
<div><br></br>
<form onSubmit={this.handleSubmit}>
<input onChange={this.handleChange} value={this.state.username} name='username'/>
<input onChange={this.handleChange} value={this.state.password} name='password' type='password'/>
<button>Play</button>
<input onChange={this.handleChange} value={this.state.username} name='username'/><br></br>
<input onChange={this.handleChange} value={this.state.password} name='password' type='password'/><br></br>
<button>Play</button><br></br>
</form>
<Link to='/register'>Register</Link>
<br></br><Link to='/register'>Register</Link>
</div>
)
}
Expand Down
39 changes: 0 additions & 39 deletions src/rooms/RoomEight.js

This file was deleted.

39 changes: 0 additions & 39 deletions src/rooms/RoomEighteen.js

This file was deleted.

39 changes: 0 additions & 39 deletions src/rooms/RoomEleven.js

This file was deleted.

39 changes: 0 additions & 39 deletions src/rooms/RoomFifteen.js

This file was deleted.

39 changes: 0 additions & 39 deletions src/rooms/RoomFive.js

This file was deleted.

39 changes: 0 additions & 39 deletions src/rooms/RoomFour.js

This file was deleted.

39 changes: 0 additions & 39 deletions src/rooms/RoomFourteen.js

This file was deleted.

39 changes: 0 additions & 39 deletions src/rooms/RoomNine.js

This file was deleted.

Loading

0 comments on commit 9cf6e56

Please sign in to comment.