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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user