Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
e6bf42d
Fix index.jsx so the link says Dashboard instead of Topics
elena-cz Nov 20, 2017
e29cc95
Moved Dashboard code to Dashboard component file
elena-cz Nov 20, 2017
97cb1a4
Updated server to serve a get request when navigating to our URLs usi…
elena-cz Nov 20, 2017
8faac7d
Add resolve line to webpack configt so it can resolve paths that end …
elena-cz Nov 20, 2017
bff6314
Fix index.jsx so the link says Dashboard instead of Topics
elena-cz Nov 20, 2017
e3d78cd
Moved Dashboard code to Dashboard component file
elena-cz Nov 20, 2017
7fc0d72
Updated server to serve a get request when navigating to our URLs usi…
elena-cz Nov 20, 2017
bd7b6c0
Move utils into src folder so it is recognized by webpack
elena-cz Nov 20, 2017
0676eba
Remove jsx extensions from import statements in index.jsx
elena-cz Nov 20, 2017
63c3c85
Add bundle.js
elena-cz Nov 20, 2017
dcaca66
Add live to support Redux Devtools, fix packing list state, minor sty…
elena-cz Nov 21, 2017
ac24e3c
Refactor packingList state so store with IDs, add seedState file, ren…
elena-cz Nov 21, 2017
9d893cf
Add seedState with dummy data so app loads with a default state
elena-cz Nov 21, 2017
95c47fa
Remove bundle.js before pull request
elena-cz Nov 21, 2017
ba175e2
Added server
luis-e-alvarez Nov 16, 2017
b3e364c
completed static mockup of dashboard
hackreactor-students Nov 17, 2017
bcf50e3
Refactoring into React with states to test data
hackreactor-students Nov 17, 2017
71b7bf4
Reconfiged dashboard component into Dashboard.jsx
Nov 21, 2017
1b13fd9
configured changes to bundle.js
Nov 21, 2017
a08e2f7
Fix index.jsx so the link says Dashboard instead of Topics
elena-cz Nov 20, 2017
09c4c91
Moved Dashboard code to Dashboard component file
elena-cz Nov 20, 2017
687bc84
Updated server to serve a get request when navigating to our URLs usi…
elena-cz Nov 20, 2017
4009f64
Moved Dashboard code to Dashboard component file
elena-cz Nov 20, 2017
6ec12f6
Updated server to serve a get request when navigating to our URLs usi…
elena-cz Nov 20, 2017
ea6e536
Move utils into src folder so it is recognized by webpack
elena-cz Nov 20, 2017
aa80890
Add bundle.js
elena-cz Nov 20, 2017
7808ac0
Add live to support Redux Devtools, fix packing list state, minor sty…
elena-cz Nov 21, 2017
b84ea71
Added better default font, linked CSS to html
elena-cz Nov 21, 2017
9b6cc2f
Added server
luis-e-alvarez Nov 16, 2017
5067bff
completed static mockup of dashboard
hackreactor-students Nov 17, 2017
a8521fa
Reconfiged dashboard component into Dashboard.jsx
Nov 21, 2017
f75eb33
configured changes to bundle.js
Nov 21, 2017
1ee681f
Fix index.jsx so the link says Dashboard instead of Topics
elena-cz Nov 20, 2017
4fbdd12
Moved Dashboard code to Dashboard component file
elena-cz Nov 20, 2017
c4b28b0
Updated server to serve a get request when navigating to our URLs usi…
elena-cz Nov 20, 2017
f36dc87
Fix index.jsx so the link says Dashboard instead of Topics
elena-cz Nov 20, 2017
0a8eec9
Updated server to serve a get request when navigating to our URLs usi…
elena-cz Nov 20, 2017
d967702
Move utils into src folder so it is recognized by webpack
elena-cz Nov 20, 2017
da2b9f3
Add bundle.js
elena-cz Nov 20, 2017
15b7151
Refactor packingList state so store with IDs, add seedState file, ren…
elena-cz Nov 21, 2017
16e18f1
completed static mockup of dashboard
hackreactor-students Nov 17, 2017
37b8647
Refactoring into React with states to test data
hackreactor-students Nov 17, 2017
900e2a0
configured changes to bundle.js
Nov 21, 2017
d242e64
Fix index.jsx so the link says Dashboard instead of Topics
elena-cz Nov 20, 2017
2701777
Moved Dashboard code to Dashboard component file
elena-cz Nov 20, 2017
fc4ad4f
Updated server to serve a get request when navigating to our URLs usi…
elena-cz Nov 20, 2017
751c03f
Move utils into src folder so it is recognized by webpack
elena-cz Nov 20, 2017
552c62b
Add bundle.js
elena-cz Nov 20, 2017
2f5c9ad
Add live to support Redux Devtools, fix packing list state, minor sty…
elena-cz Nov 21, 2017
1cd084a
Fix minor issues from pull request
elena-cz Nov 21, 2017
8807208
Fix minor issues from rebasing
elena-cz Nov 21, 2017
9a7129f
Add Material UI to package JSON
elena-cz Nov 21, 2017
d7dfa4c
fixed poor pull request
Nov 22, 2017
9f047dd
Merge branch 'addReduxSeed' of https://github.com/elena-cz/packuno in…
Nov 22, 2017
b8d73e6
Merge branch 'elena-cz-addReduxSeed'
Nov 22, 2017
4c6fa46
completed get request from flickr api for image on front page
Nov 22, 2017
49e7096
Dashboard old trips chnage color on mouseover, selected on click, and…
Nov 22, 2017
7356663
Dashboard old trips chnage color on mouseover, selected on click, and…
Nov 22, 2017
6d199cc
Fix index.jsx so the link says Dashboard instead of Topics
elena-cz Nov 20, 2017
d027dbc
Moved Dashboard code to Dashboard component file
elena-cz Nov 20, 2017
eb80bac
Updated server to serve a get request when navigating to our URLs usi…
elena-cz Nov 20, 2017
da38fb9
Add resolve line to webpack configt so it can resolve paths that end …
elena-cz Nov 20, 2017
508a1b6
Fix index.jsx so the link says Dashboard instead of Topics
elena-cz Nov 20, 2017
88f56a8
Moved Dashboard code to Dashboard component file
elena-cz Nov 20, 2017
ae17917
Updated server to serve a get request when navigating to our URLs usi…
elena-cz Nov 20, 2017
3eff6cf
Move utils into src folder so it is recognized by webpack
elena-cz Nov 20, 2017
6f811be
Remove jsx extensions from import statements in index.jsx
elena-cz Nov 20, 2017
4552983
Add bundle.js
elena-cz Nov 20, 2017
536819e
Add live to support Redux Devtools, fix packing list state, minor sty…
elena-cz Nov 21, 2017
264b714
Refactor packingList state so store with IDs, add seedState file, ren…
elena-cz Nov 21, 2017
2dc8a38
Add seedState with dummy data so app loads with a default state
elena-cz Nov 21, 2017
f054756
Remove bundle.js before pull request
elena-cz Nov 21, 2017
08dd9a4
Added server
luis-e-alvarez Nov 16, 2017
d90670d
completed static mockup of dashboard
hackreactor-students Nov 17, 2017
c77630e
Refactoring into React with states to test data
hackreactor-students Nov 17, 2017
aeae085
configured changes to bundle.js
Nov 21, 2017
dd5eded
Fix index.jsx so the link says Dashboard instead of Topics
elena-cz Nov 20, 2017
1f5df3b
Moved Dashboard code to Dashboard component file
elena-cz Nov 20, 2017
e39e6c0
Updated server to serve a get request when navigating to our URLs usi…
elena-cz Nov 20, 2017
0c4cdc7
Moved Dashboard code to Dashboard component file
elena-cz Nov 20, 2017
161bcac
Updated server to serve a get request when navigating to our URLs usi…
elena-cz Nov 20, 2017
36685d4
Move utils into src folder so it is recognized by webpack
elena-cz Nov 20, 2017
6b055a3
Add bundle.js
elena-cz Nov 20, 2017
5a464be
Add live to support Redux Devtools, fix packing list state, minor sty…
elena-cz Nov 21, 2017
3daec3a
Added better default font, linked CSS to html
elena-cz Nov 21, 2017
249b2f1
Added server
luis-e-alvarez Nov 16, 2017
12502ca
completed static mockup of dashboard
hackreactor-students Nov 17, 2017
64db9a8
configured changes to bundle.js
Nov 21, 2017
6edcdc4
Fix index.jsx so the link says Dashboard instead of Topics
elena-cz Nov 20, 2017
7b64339
Moved Dashboard code to Dashboard component file
elena-cz Nov 20, 2017
804a113
Updated server to serve a get request when navigating to our URLs usi…
elena-cz Nov 20, 2017
7315ff4
Fix index.jsx so the link says Dashboard instead of Topics
elena-cz Nov 20, 2017
c5837fa
Updated server to serve a get request when navigating to our URLs usi…
elena-cz Nov 20, 2017
84fb258
Move utils into src folder so it is recognized by webpack
elena-cz Nov 20, 2017
86672ad
Add bundle.js
elena-cz Nov 20, 2017
56e76a7
Refactor packingList state so store with IDs, add seedState file, ren…
elena-cz Nov 21, 2017
6ce84f3
completed static mockup of dashboard
hackreactor-students Nov 17, 2017
1f1d93d
Refactoring into React with states to test data
hackreactor-students Nov 17, 2017
5b33fc9
configured changes to bundle.js
Nov 21, 2017
1097501
Fix index.jsx so the link says Dashboard instead of Topics
elena-cz Nov 20, 2017
688830d
Moved Dashboard code to Dashboard component file
elena-cz Nov 20, 2017
8159b24
Updated server to serve a get request when navigating to our URLs usi…
elena-cz Nov 20, 2017
8be9f6e
Move utils into src folder so it is recognized by webpack
elena-cz Nov 20, 2017
ccd43bd
Add bundle.js
elena-cz Nov 20, 2017
78e1d78
Add live to support Redux Devtools, fix packing list state, minor sty…
elena-cz Nov 21, 2017
0f06ea6
Fix minor issues from pull request
elena-cz Nov 21, 2017
af971c7
Fix minor issues from rebasing
elena-cz Nov 21, 2017
5ee4856
Add Material UI to package JSON
elena-cz Nov 21, 2017
f2d74af
Refactor Add Item form to use material components
elena-cz Nov 21, 2017
3b3b776
Refactor Item List to use material components
elena-cz Nov 22, 2017
fe6a93a
When a user adds an item, it will be added to a section for it's cate…
elena-cz Nov 22, 2017
707ff53
Remove dashboard.html
elena-cz Nov 22, 2017
527161f
Merge pull request #22 from elena-cz/reduxSeedMaterialUI
luis-e-alvarez Nov 23, 2017
7cc8d1b
Update .gitignore
luis-e-alvarez Nov 23, 2017
4cfb247
highlights old trip when clicked
Nov 23, 2017
c1177c8
changed Dashborad component
Nov 23, 2017
9c1fa99
Re-configed webpack config
Nov 23, 2017
541fbb1
changed index.jsx
Nov 23, 2017
febfc8a
changed actions and containers
Nov 23, 2017
6e727a6
updated containers and reducers
Nov 23, 2017
a4263ee
Added server
luis-e-alvarez Nov 16, 2017
5177cde
updated index.js in server
Nov 23, 2017
c74bf57
Moved Dashboard code to Dashboard component file
elena-cz Nov 20, 2017
6146105
Updated server to serve a get request when navigating to our URLs usi…
elena-cz Nov 20, 2017
86b9096
Move utils into src folder so it is recognized by webpack
elena-cz Nov 20, 2017
ed9a558
Add bundle.js
elena-cz Nov 20, 2017
f23daf5
Add live to support Redux Devtools, fix packing list state, minor sty…
elena-cz Nov 21, 2017
04aaafb
completed static mockup of dashboard
hackreactor-students Nov 17, 2017
50c2f4f
Reconfiged dashboard component into Dashboard.jsx
Nov 21, 2017
28e204f
configured changes to bundle.js
Nov 21, 2017
f9ece50
Fix index.jsx so the link says Dashboard instead of Topics
elena-cz Nov 20, 2017
f04ea86
Moved Dashboard code to Dashboard component file
elena-cz Nov 20, 2017
c460e26
Updated server to serve a get request when navigating to our URLs usi…
elena-cz Nov 20, 2017
5cd7704
Fix index.jsx so the link says Dashboard instead of Topics
elena-cz Nov 20, 2017
38e21d5
Updated server to serve a get request when navigating to our URLs usi…
elena-cz Nov 20, 2017
ed021ab
Add bundle.js
elena-cz Nov 20, 2017
762125e
Refactor packingList state so store with IDs, add seedState file, ren…
elena-cz Nov 21, 2017
32347e2
completed static mockup of dashboard
hackreactor-students Nov 17, 2017
dae4417
Refactoring into React with states to test data
hackreactor-students Nov 17, 2017
cf43979
configured changes to bundle.js
Nov 21, 2017
16e7483
Fix index.jsx so the link says Dashboard instead of Topics
elena-cz Nov 20, 2017
69b92d9
changed package.json
Nov 23, 2017
627bb6b
changed package.json
Nov 23, 2017
2bfa0ad
changed dashboard style
Nov 23, 2017
a39432d
highlights old trip when clicked
Nov 23, 2017
c14a1a4
changed components
Nov 23, 2017
790e24e
reconfigured package-lock.json
Nov 23, 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ node_modules
docs
config
*.DS_STORE
bundle.js

#Floobits
.floo
Expand Down
52 changes: 0 additions & 52 deletions client/dist/bundle.js

This file was deleted.

12 changes: 0 additions & 12 deletions client/dist/dashboard.html

This file was deleted.

3 changes: 3 additions & 0 deletions client/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<html>
<head>
<title>Packuno</title>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="./style.css" rel="stylesheet">
</head>
<body>

Expand Down
40 changes: 23 additions & 17 deletions client/dist/style.css
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
#sidebar {
position:absolute;
width:21%;
height:100%;
position: absolute;
width: 21%;
height: 100%;
background-color: lightblue;
font-family: Arial, sans-serif;
padding: 25px;
overflow: auto;
}

#content {
position:absolute;
overflow: auto;
position: absolute;
margin-left: 25%;
width:100%;
height:100%;
width: 100%;
height: 100%;
background-color: lightgrey;
font-family: Arial, Helvetica, sans-serif;
padding: 25px;
}

body {
margin:0;
padding: 0;
padding: 20px;
font-family: 'Roboto', sans-serif;
}

h2 {
Expand All @@ -29,19 +30,19 @@ h2 {
#openButton {
background-color: Transparent;
border: none;
cursor:pointer;
cursor: pointer;
overflow: hidden;
outline:none;
outline: none;
font-size: 30px;
display: inline;
}

#closeButton {
background-color: Transparent;
border: none;
cursor:pointer;
cursor: pointer;
overflow: hidden;
outline:none;
outline: none;
font-size: 30px;
float: right;
}
Expand Down Expand Up @@ -94,8 +95,13 @@ h2 {
text-decoration: none;
}

#menu ul li a.active: hover {
color: #fff;
background: #000;
font-weight: bold;
.image {
object-fit: cover;
width: 200px;
height: 200px;
pointer-events: none;
}

.changeHover: hover {
background: grey;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

let itemID = 0;
let itemID = 4;

export const addItem = (item, category = '') => {
return {
Expand Down
85 changes: 54 additions & 31 deletions client/src/components/AddItemForm.component.jsx
Original file line number Diff line number Diff line change
@@ -1,52 +1,75 @@
import React, { PropTypes } from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import MenuItem from 'material-ui/Menu/MenuItem';
import TextField from 'material-ui/TextField';
import Button from 'material-ui/Button';


const styles = theme => ({
container: {
display: 'flex',
flexWrap: 'wrap',
},
textField: {
marginLeft: theme.spacing.unit,
marginRight: theme.spacing.unit,
width: 200,
},
menu: {
width: 200,
},
button: {
margin: theme.spacing.unit,
},
});

class AddItemForm extends React.Component {
constructor(props) { super(props);
constructor(props) {
super(props);
this.state = {
item_input: '',
category_input: '',
};
}

render() {
const { classes } = this.props;
const { item_input, category_input } = this.state;
return (
<div>
<form onSubmit={() => this.props.onSubmit(item_input, category_input)} >
<label>Item</label>
<input type="text" value={this.state.item_input} onChange={e => this.setState({ item_input: e.target.value })} />
<label>Category</label>
<input type="text" value={this.state.category_input} onChange={e => this.setState({ category_input: e.target.value })} />
<button>Add</button>
</form>
<form
onSubmit={() => this.props.onSubmit(item_input, category_input)}
className={classes.container}
>
<TextField
value={this.state.item_input}
onChange={e => this.setState({ item_input: e.target.value })}
label="Item"
className="textField"
margin="normal"
/>
<TextField
value={this.state.category_input}
onChange={e => this.setState({ category_input: e.target.value })}
label="Category"
className={classes.textField}
margin="normal"
/>
<Button color="primary" type="submit" className={classes.button}>
Add
</Button>
</form>
</div>
);
}
}

// AddItemForm.propTypes = {
// onSubmit: PropTypes.func.isRequired,
// };


// const AddItemForm = ({ onSubmit }) => {

// let item_input = '';
// let category_input = '';

// return (
// <div>
// <form onSubmit={(e) => { onSubmit(item_input.value, category_input.value);}} >
// <label>Item</label>
// <input type="text" ref={input => this.item_input = input} />
// <label>Category</label>
// <input type="text" ref={input => this.category_input = input} />
// <button></button>
// </form>
// </div>
// );
// };
AddItemForm.propTypes = {
onSubmit: PropTypes.func.isRequired,
classes: PropTypes.object.isRequired,
};


export default AddItemForm;
export default withStyles(styles)(AddItemForm);
1 change: 0 additions & 1 deletion client/src/components/App.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React from 'react';
export default function App() {
return (
<div>
App component
</div>
);
};
Expand Down
Loading