Archived
0

SpacePort:fix: остатки прошлого наименования

This commit is contained in:
2017-08-13 23:51:14 +03:00
parent bc2b7032a6
commit 29c69c1a42
4 changed files with 13 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
var ContentModule = React.createClass({
requestServerList: function() {
var _this = this;
fetch('/mcsmanager/servers.json')
fetch('/spaceport/servers.json')
.then(function(response) {
response.json().then(function(data) {
console.debug(data);
@@ -21,7 +21,7 @@ var ContentModule = React.createClass({
},
clickServerListItem: function(title) {
var _this = this;
fetch('/mcsmanager/servers.json?clientid='+title)
fetch('/spaceport/servers.json?clientid='+title)
.then(function(response){
response.json().then(function(data){
console.debug(data);
@@ -43,7 +43,7 @@ var ContentModule = React.createClass({
componentWillMount: function(){
var _this = this;
loadScript("/mcsmanager/components.js",
loadScript("/spaceport/components.js",
function(){ _this.setState({nvScriptReady: _this.state.nvScriptReady+1}); console.debug('components - ok'); },
function(){ _this.setState({nvScriptReady: -5}); console.debug('components - error'); }
);
@@ -60,12 +60,12 @@ var ContentModule = React.createClass({
function(){ _this.setState({nvScriptReady: -5}); console.error('d3 - error'); }
);
loadScript("/mcsmanager/ansi_up.js",
loadScript("/spaceport/ansi_up.js",
function(){ console.debug('ansi_up - ok'); },
function(){ console.debug('ansi_up - error'); }
);
loadStyle("/mcsmanager/moduleStyle.css");
loadStyle("/spaceport/moduleStyle.css");
this.requestServerList();
},