MCSM: вкладка настроек
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
group = 'asys'
|
||||
version = '0.8.9-SNAPSHOT'
|
||||
version = '0.8.10-SNAPSHOT'
|
||||
|
||||
apply plugin: 'osgi'
|
||||
|
||||
|
||||
@@ -106,6 +106,24 @@ var WebConsole = React.createClass({
|
||||
}
|
||||
});
|
||||
|
||||
var MineServerSettings = React.createClass({
|
||||
getInitialState: function(){return{
|
||||
onlineMode: false
|
||||
}},
|
||||
render: function(){
|
||||
return (
|
||||
ce('div', {style: {'min-height': '500px'}},
|
||||
ce('div', {className: 'modal-body'},
|
||||
ce(Checkbox, {id: 'onlineModeCheck'}, 'Online mode')
|
||||
),
|
||||
ce('div', {className: 'modal-footer'},
|
||||
ce(Button, {colored: 'primary'}, 'Применить')
|
||||
)
|
||||
)
|
||||
)
|
||||
}
|
||||
});
|
||||
|
||||
var ServerInfo = React.createClass({
|
||||
tabStateWebConsole: function(state) {
|
||||
if (state === 1) {
|
||||
@@ -124,14 +142,15 @@ var ServerInfo = React.createClass({
|
||||
return(
|
||||
ce('div', null,
|
||||
ce('h2', {style: {'margin-top': '0px'}}, this.state.title),
|
||||
ce(Tabs, {tabs: ['Онлайн', 'Консоль'], stateCallback: this.tabStateWebConsole},
|
||||
ce(Tabs, {tabs: ['Онлайн', 'Консоль', 'Настройки'], stateCallback: this.tabStateWebConsole},
|
||||
ce(NvLineChart, {datum: [{
|
||||
key: 'Online players',
|
||||
color: '#37d668',
|
||||
area: true,
|
||||
values: this.state.data
|
||||
}]}),
|
||||
ce(WebConsole, {ref: 'webconsole'})
|
||||
ce(WebConsole, {ref: 'webconsole'}),
|
||||
ce(MineServerSettings)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user