MCSM: компонент WebConsole
This commit is contained in:
@@ -29,6 +29,10 @@ var NvLineChart = React.createClass({
|
||||
this.d3ChartData.datum(this.props.datum);
|
||||
this.d3ChartData.transition().duration(500).call(this.chart);
|
||||
nv.utils.windowResize(this.chart.update);
|
||||
},
|
||||
componentWillUnmount: function() {
|
||||
var nvtooltip = document.querySelector('div[class~="nvtooltip"]');
|
||||
nvtooltip.parentElement.removeChild(nvtooltip)
|
||||
}
|
||||
});
|
||||
|
||||
@@ -58,6 +62,24 @@ var Tabs = React.createClass({
|
||||
}
|
||||
});
|
||||
|
||||
var WebConsole = React.createClass({
|
||||
render: function(){return(
|
||||
ce('div', {id: 'webconsole'},
|
||||
ce('p', null, '[19:50:18 WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!'),
|
||||
ce('p', null, '[19:50:18 WARN]: The server will make no attempt to authenticate usernames. Beware.'),
|
||||
ce('p', null, '[19:50:18 WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.'),
|
||||
ce('p', null, '[19:50:18 WARN]: To change this, set "online-mode" to "true" in the server.properties file.'),
|
||||
ce('p', null, '[19:50:18 INFO]: **** Beginning UUID conversion, this may take A LONG time ****'),
|
||||
ce('p', null, '[19:50:18 INFO]: Preparing level "voidworld"'),
|
||||
ce('p', null, '[19:50:18 INFO]: -------- World Settings For [voidworld] --------'),
|
||||
ce('p', null, '[19:50:18 INFO]: Arrow Despawn Rate: 1200'),
|
||||
ce('p', null, '[19:50:18 INFO]: Item Merge Radius: 2.5'),
|
||||
ce('p', null, '[19:50:18 INFO]: Item Despawn Rate: 6000'),
|
||||
ce('p', null, '[19:50:18 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true')
|
||||
)
|
||||
)}
|
||||
});
|
||||
|
||||
var ServerInfo = React.createClass({
|
||||
getInitialState: function(){return {
|
||||
title: null,
|
||||
@@ -77,7 +99,7 @@ var ServerInfo = React.createClass({
|
||||
area: true,
|
||||
values: this.state.data
|
||||
}]}),
|
||||
ce('p', null, 'fake console element')
|
||||
ce(WebConsole)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user