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