0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-06 01:22:44 +00:00

Added a bunch of random generators

This commit is contained in:
Scott Tolksdorf
2016-01-05 16:41:19 -05:00
parent fb8ddfe9fa
commit 25b53a7c24
12 changed files with 590 additions and 127 deletions

View File

@@ -6,6 +6,8 @@ var Statusbar = require('../statusbar/statusbar.jsx');
var PHB = require('../phb/phb.jsx');
var Editor = require('../editor/editor.jsx');
var FullClassGen = require('../editor/snippets/fullclass.gen.js');
var request = require("superagent");
var EditPage = React.createClass({
@@ -36,6 +38,12 @@ var EditPage = React.createClass({
if(!self.state.pending) return;
return "You have unsaved changes!";
}
if(this.state.text === ""){
this.setState({
text : FullClassGen()
})
}
},
handleTextChange : function(text){