MCSM: компонент ServerInfo
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
group = 'asys'
|
||||
version = '0.8.1-SNAPSHOT'
|
||||
version = '0.8.2-SNAPSHOT'
|
||||
|
||||
apply plugin: 'osgi'
|
||||
|
||||
|
||||
@@ -53,6 +53,23 @@ var NvLineChart = React.createClass({
|
||||
}
|
||||
});
|
||||
|
||||
var ServerInfo = React.createClass({
|
||||
render: function(){return(
|
||||
ce('div', null,
|
||||
ce('div', {className: 'pull-right'},
|
||||
ce('div', {className: 'btn-group'},
|
||||
ce(Button, {btnSize: 'xs'},
|
||||
ce('span', {className: 'glyphicon glyphicon-play'}), nbsp+'запуск'),
|
||||
ce(Button, {btnSize: 'xs'},
|
||||
ce('span', {className: 'glyphicon glyphicon-stop'}), nbsp+'остановка')
|
||||
)
|
||||
),
|
||||
ce('h2', {style: {'margin-top': '0px'}}, this.props.title),
|
||||
this.props.children
|
||||
)
|
||||
)}
|
||||
});
|
||||
|
||||
var ServerListItem = React.createClass({
|
||||
render: function(){
|
||||
return(
|
||||
|
||||
@@ -63,18 +63,7 @@ var ContentModule = React.createClass({
|
||||
|
||||
element = ce('div', {className: 'row'},
|
||||
ce('div', {className: 'col-md-4'}, ce(ServerList, null, serverListItems)),
|
||||
ce('div', {className: 'col-md-8'},
|
||||
ce('div', {className: 'pull-right'},
|
||||
ce('div', {className: 'btn-group'},
|
||||
ce(Button, {btnSize: 'xs'},
|
||||
ce('span', {className: 'glyphicon glyphicon-play'}), nbsp+'запуск'),
|
||||
ce(Button, {btnSize: 'xs'},
|
||||
ce('span', {className: 'glyphicon glyphicon-stop'}), nbsp+'остановка')
|
||||
)
|
||||
),
|
||||
ce('h2', {style: {'margin-top': '0px'}}, 'Server 2 [skywars-1]'),
|
||||
ce(NvLineChart)
|
||||
)
|
||||
ce('div', {className: 'col-md-8'}, ce(ServerInfo, {title: 'Server 2 [skywars-1]'}, ce(NvLineChart)))
|
||||
);
|
||||
} else if (this.state.nvScriptReady < 0) {
|
||||
element = ce('span', null, 'error');
|
||||
|
||||
Reference in New Issue
Block a user