some refactor && prod settings
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
parameters:
|
||||
database_host: 127.0.0.1
|
||||
database_port: null
|
||||
database_name: symfony
|
||||
database_user: root
|
||||
database_password: null
|
||||
database_name: xxsvci_mineseeker
|
||||
database_user: xxsvci_mine
|
||||
database_password: "XTw#8qC$faa*"
|
||||
mailer_transport: smtp
|
||||
mailer_host: 127.0.0.1
|
||||
mailer_user: null
|
||||
|
||||
@@ -147,15 +147,15 @@ class MineSeeker extends React.Component {
|
||||
|
||||
var mineCache = this.refs.gridControl.state.foundUserMineCache,
|
||||
redPoints = this.refs.gridControl.refs.userControl.refs.red.state.mines + (
|
||||
this.refs.gridControl.refs.userControl.refs.red.state.active
|
||||
? mineCache
|
||||
: 0
|
||||
),
|
||||
this.refs.gridControl.refs.userControl.refs.red.state.active
|
||||
? mineCache
|
||||
: 0
|
||||
),
|
||||
bluePoints = this.refs.gridControl.refs.userControl.refs.blue.state.mines + (
|
||||
this.refs.gridControl.refs.userControl.refs.blue.state.active
|
||||
? mineCache
|
||||
: 0
|
||||
);
|
||||
this.refs.gridControl.refs.userControl.refs.blue.state.active
|
||||
? mineCache
|
||||
: 0
|
||||
);
|
||||
|
||||
this.state.session
|
||||
.publish(this.state.channel, {
|
||||
@@ -170,6 +170,11 @@ class MineSeeker extends React.Component {
|
||||
|
||||
/** FOR DEVELOPMENT */
|
||||
createLink() {
|
||||
/*
|
||||
<div>
|
||||
{this.createLink()}
|
||||
</div>
|
||||
*/
|
||||
return this.state.gameAssoc
|
||||
? <a href={"/play/" + this.state.gameAssoc} target="_blank">Play w/ me!</a>
|
||||
: '';
|
||||
@@ -177,14 +182,9 @@ class MineSeeker extends React.Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
<div>
|
||||
{this.createLink()}
|
||||
</div>
|
||||
<GridControl ref="gridControl"
|
||||
env={this.props.env === 'dev'}
|
||||
onClick={this.onClick.bind(this)}/>
|
||||
</div>
|
||||
<GridControl ref="gridControl"
|
||||
env={this.props.env === 'dev'}
|
||||
onClick={this.onClick.bind(this)}/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user