-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
205 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,5 @@ jspm_packages | |
.node_repl_history | ||
# ===== End Node.gitignore ===== | ||
|
||
# Store | ||
store |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
body { | ||
background: #fff; | ||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
font-size: 15px; | ||
line-height: 1.7; | ||
margin: 0; | ||
padding: 30px; | ||
min-width: 320px; | ||
box-sizing: border-box; | ||
} | ||
|
||
a { | ||
color: #4183c4; | ||
text-decoration: none; | ||
} | ||
|
||
a:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
h1, h2, h3, h4 { | ||
font-weight: bold; | ||
margin: 15px 0 0; | ||
padding: 0; | ||
} | ||
|
||
h1 { | ||
border-bottom: 1px solid #ddd; | ||
font-size: 2em; | ||
font-weight: bold; | ||
margin: 0 0 15px; | ||
padding: 0; | ||
} | ||
|
||
h2 { | ||
border-bottom: 1px solid #eee; | ||
font-size: 1.5em; | ||
} | ||
|
||
h3 { | ||
font-size: 1.2em; | ||
} | ||
|
||
h4 { | ||
font-size: 1em; | ||
} | ||
|
||
p, ul { | ||
margin: 0; | ||
} | ||
|
||
ul { | ||
padding-left: 30px; | ||
} | ||
|
||
button, | ||
input { | ||
font-size: 13px; | ||
} | ||
|
||
.itemList, | ||
.controls { | ||
display: inline-block; | ||
vertical-align: top; | ||
} | ||
|
||
.itemList { | ||
margin-right: 5em; | ||
min-width: 200px; | ||
width: auto; | ||
} | ||
|
||
.controls { | ||
min-width: 48%; | ||
} | ||
|
||
input[type="text"] { | ||
font-size: 1.1em; | ||
margin-right: 4px; | ||
padding: 10px; | ||
} | ||
|
||
select, | ||
input[type="submit"] { | ||
font-size: 1.2em; | ||
} | ||
|
||
.item.expired { | ||
color: gray; | ||
font-style: italic; | ||
} | ||
|
||
.item.expired .itemExpiration { | ||
color: red; | ||
} | ||
|
||
/* media queries */ | ||
@media (max-width: 570px) { | ||
.itemList, | ||
.controls { | ||
display: block; | ||
vertical-align: top; | ||
width: 100%; | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Inventory Demo</title> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.1.2/toastr.min.css"> | ||
<link rel="stylesheet" href="css/base.css" /> | ||
</head> | ||
<body> | ||
<div id="content"></div> | ||
<script src="bundle.min.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
var webpack = require('webpack'); | ||
var path = require('path'); | ||
|
||
module.exports = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
var path = require('path'); | ||
var node_modules = path.resolve(__dirname, 'node_modules'); | ||
var reactMinified = path.resolve(node_modules, 'react/dist/react.min.js'); | ||
var reactDOMMinified = path.resolve(node_modules, 'react-dom/dist/react-dom.min.js'); | ||
|
||
module.exports = { | ||
entry: './public/js/app.jsx', | ||
resolve: { | ||
extensions: ['','.js','.jsx'], | ||
// alias: { | ||
// 'react': reactMinified, | ||
// 'react-dom': reactDOMMinified | ||
// } | ||
}, | ||
output: { | ||
path: path.resolve(__dirname, 'dist'), | ||
publicPath: '/', | ||
filename: 'bundle.js' | ||
}, | ||
module: { | ||
loaders: [ | ||
{ | ||
test: /\.jsx?$/, | ||
exclude: [node_modules], | ||
loader: 'babel', | ||
query: { | ||
presets: ['react','es2015'] | ||
} | ||
} | ||
], | ||
// noParse: [reactMinified] | ||
} | ||
}; |