1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-21 19:21:29 +00:00

Added smart componenets, page line number highlighting

This commit is contained in:
Scott Tolksdorf
2016-12-26 15:52:32 -05:00
parent 7581d155a6
commit 47396e5c7e
39 changed files with 2028 additions and 119 deletions

View File

@@ -3,12 +3,13 @@ const _ = require('lodash');
const cx = require('classnames');
const CreateRouter = require('pico-router').createRouter;
const Actions = require('homebrewery/brew.actions.js');
const HomePage = require('./pages/homePage/homePage.jsx');
const EditPage = require('./pages/editPage/editPage.jsx');
const UserPage = require('./pages/userPage/userPage.jsx');
const SharePage = require('./pages/sharePage/sharePage.jsx');
const NewPage = require('./pages/newPage/newPage.jsx');
const NewPage = require('./pages/newPage/newPage.jsx');
const ErrorPage = require('./pages/errorPage/errorPage.jsx');
const PrintPage = require('./pages/printPage/printPage.jsx');
@@ -20,21 +21,21 @@ const Homebrew = React.createClass({
welcomeText : '',
changelog : '',
version : '0.0.0',
account : null,
brew : {
title : '',
text : '',
shareId : null,
editId : null,
createdAt : null,
updatedAt : null,
}
account : undefined,
brew : {}
};
},
componentWillMount: function() {
//TODO: remove
global.account = this.props.account;
global.version = this.props.version;
Actions.init({
version : this.props.version,
brew : this.props.brew,
account : this.props.account
});
Router = CreateRouter({
'/edit/:id' : (args) => {