Skip to content
This repository has been archived by the owner on Apr 24, 2018. It is now read-only.

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Burtchaell committed Feb 7, 2015
2 parents d983ad7 + 91c06ac commit 7d9f489
Show file tree
Hide file tree
Showing 89 changed files with 570 additions and 97 deletions.
43 changes: 43 additions & 0 deletions api/hooks/webpack/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
module.exports = function (sails) {
return {

initialize: function (callback) {

try {
var webpack = require('webpack');
var server = require('webpack-dev-server');
var config = require('../../../webpack.config');
} catch (error) {
console.error('WebPack hook has errored.');
console.error(error);
}

if (process.env.NODE_ENV === 'development') {

var port = 3000;

new server(webpack(config), {
contentBase: '.tmp/',
publicPath: config.publicPath,
path: '.tmp/public/bundles',
hot: true,
quiet: false,
noInfo: false,
lazy: true,
watchDelay: 300
}).listen(port, 'localhost', function (error, result) {
if (error) {
console.error('WebPack hook has errored.');
console.error(error);
} else {
console.log('Listening to http://localhost:' + port);
console.log(config);
return callback();
}
}.bind(this));

}
}

};
};
Binary file added assets/fonts/cooperhewitt/100.eot
Binary file not shown.
1 change: 1 addition & 0 deletions assets/fonts/cooperhewitt/100.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/cooperhewitt/100.woff
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/100.woff2
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/100i.eot
Binary file not shown.
1 change: 1 addition & 0 deletions assets/fonts/cooperhewitt/100i.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/cooperhewitt/100i.woff
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/100i.woff2
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/200.eot
Binary file not shown.
1 change: 1 addition & 0 deletions assets/fonts/cooperhewitt/200.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/cooperhewitt/200.woff
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/200.woff2
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/200i.eot
Binary file not shown.
1 change: 1 addition & 0 deletions assets/fonts/cooperhewitt/200i.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/cooperhewitt/200i.woff
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/200i.woff2
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/400.eot
Binary file not shown.
1 change: 1 addition & 0 deletions assets/fonts/cooperhewitt/400.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/cooperhewitt/400.woff
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/400.woff2
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/400i.eot
Binary file not shown.
1 change: 1 addition & 0 deletions assets/fonts/cooperhewitt/400i.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/cooperhewitt/400i.woff
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/400i.woff2
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/500.eot
Binary file not shown.
1 change: 1 addition & 0 deletions assets/fonts/cooperhewitt/500.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/cooperhewitt/500.woff
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/500.woff2
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/500i.eot
Binary file not shown.
1 change: 1 addition & 0 deletions assets/fonts/cooperhewitt/500i.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/cooperhewitt/500i.woff
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/500i.woff2
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/600.eot
Binary file not shown.
1 change: 1 addition & 0 deletions assets/fonts/cooperhewitt/600.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/cooperhewitt/600.woff
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/600.woff2
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/600i.eot
Binary file not shown.
1 change: 1 addition & 0 deletions assets/fonts/cooperhewitt/600i.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/cooperhewitt/600i.woff
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/600i.woff2
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/700.eot
Binary file not shown.
1 change: 1 addition & 0 deletions assets/fonts/cooperhewitt/700.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/cooperhewitt/700.woff
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/700.woff2
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/700i.eot
Binary file not shown.
1 change: 1 addition & 0 deletions assets/fonts/cooperhewitt/700i.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/cooperhewitt/700i.woff
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/700i.woff2
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/800.eot
Binary file not shown.
1 change: 1 addition & 0 deletions assets/fonts/cooperhewitt/800.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/cooperhewitt/800.woff
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/800.woff2
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/800i.eot
Binary file not shown.
1 change: 1 addition & 0 deletions assets/fonts/cooperhewitt/800i.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/cooperhewitt/800i.woff
Binary file not shown.
Binary file added assets/fonts/cooperhewitt/800i.woff2
Binary file not shown.
Empty file added assets/js/app.js
Empty file.
36 changes: 36 additions & 0 deletions assets/js/components/footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/** @jsx React.DOM */

var React = require('react');
var classes = require('react-classes');

var Footer = React.createClass({

mixins: [classes],

componentDidMount: function () {

},

getInitialState: function () {
return {

};
},

render: function () {

var classes = this.getClass('', {

});

return (
<div>

</div>
)

}

});

module.exports = Footer;
38 changes: 38 additions & 0 deletions assets/js/components/header.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/** @jsx React.DOM */

var React = require('react');
var classes = require('react-classes');

var Navigation = require('./navigation');

var Header = React.createClass({

mixins: [classes],

componentDidMount: function () {

},

getInitialState: function () {
return {

};
},

render: function () {

var classes = this.getClass('', {

});

return (
<div>
<Navigation />
</div>
)

}

});

module.exports = Header;
63 changes: 63 additions & 0 deletions assets/js/components/input.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/** @jsx React.DOM */

var React = require('react');
var classes = require('react-classes');

var Input = React.createClass({

mixins: [React.addons.LinkedStateMixin, classes],

propTypes: {
label: React.PropTypes.string, // Optional: The label for the input
placeholder: React.PropTypes.string, // Optional: The input placeholder text
type: React.PropTypes.string, // The type of input
value: React.PropTypes.string, // The initial value of the input
onChange: React.PropTypes.func, // Callback to run when the input changes
valueLink: React.PropTypes.shape({
value: React.PropTypes.string.isRequired,
requestChange: React.PropTypes.func.isRequired
})
},

getDefaultProps: function () {
return {
label: '',
type: 'text',
value: '',
onChange: function () {
return;
},
valueLink: null
}
},

getValueLink: function (props) {
return props.valueLink || {
value: props.value,
requestChange: props.onChange
};
},

_onChange (event) {
this.getValueLink(this.props).requestChange(event.target.value);
},

render: function () {
return (
<div className="form-group">
if (this.props.label) {
<label for="">{this.props.label}</label>
}
<input
name=""
type={this.props.type}
className="form-control"
value={this.getValueLink(this.props).value}
onChange={this._onChange}
/>
</div>
)
}
});

module.exports = Input;
30 changes: 30 additions & 0 deletions assets/js/components/navigation.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/** @jsx React.DOM */

var React = require('react');
var classes = require('react-classes');

var Navigation = React.createClass({

mixins: [classes],

componentDidMount: function () {

},

render: function () {

var classes = this.getClass('', {

});

return (
<div>

</div>
)

}

});

module.exports = Navigation;
Empty file added assets/js/router.js
Empty file.
File renamed without changes.
44 changes: 38 additions & 6 deletions assets/less/modules/buttons/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,23 @@
* @module buttons#base
* @description Common button styles.
*/

button,
.btn {


@import 'mixins';

.btn,
button {
font-family: inherit;
font-size: 1rem;
padding: .5rem;
margin: .5rem;
color: @color-black;
border: none;
background-color: @color-grey;
line-height: 1;
text-decoration: none;
text-transform: uppercase;
-webkit-appearance: none;

.box-sizing();
box-sizing: border-box;

&:hover,
&:active {
Expand All @@ -23,3 +33,25 @@ button,
}

}

.btn-primary,
.btn-orange {
.button-variant(@color-orange);
}

.btn-secondary,
.btn-blue {
//.button-variant(@color-blue);
}

.btn-success {
//.button-variant(@color-green);
}

.btn-warning {
//.button-variant(@color-yellow);
}

.btn-error {
//.button-variant(@color-red);
}
28 changes: 28 additions & 0 deletions assets/less/modules/buttons/mixins.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.btn-background (@color, @hover-color, @selected-color, @text-color) {

color: @text-color;
background-color: transparent;
background-image: -webkit-linear-gradient(@color, darken(@color, 5%));

&:hover {
color: @text-color-highlight;
background-image: -webkit-linear-gradient(@hover-color, darken(@hover-color, 5%));
}

&.selected,
&.selected:hover {
color: @text-color-highlight;
background-image: -webkit-linear-gradient(darken(@selected-color, 5%), @selected-color);
&:hover {
background-image: -webkit-linear-gradient(@selected-color, darken(@selected-color, 5%));
}
}

}

.btn-variant (@color) {
@background: darken(@color, 10%);
@hover: @color;
@selected: @color;
.btn-background(@background, @hover, @selected, @text-color-highlight);
}
Loading

0 comments on commit 7d9f489

Please sign in to comment.