Private
Public Access
1
0

redesign user frontend

This commit is contained in:
2016-12-08 14:35:28 +01:00
parent aed5eaf3ab
commit 6dc59549ef
17 changed files with 358 additions and 242 deletions

View File

@@ -289,13 +289,14 @@ class MineSeeker extends React.Component {
});
}
/** After rendering */
componentDidMount() {
connectWithWebsocket() {
/** Create Websocket w/ Bahnhof.js */
let websocket = WS.connect(
this.state.env === 'dev'
// ? "ws://mine.dev:6450"
// : "ws://www.mineseeker.ninja:6450"
? "ws://mine.dev:6450"
: (this.state.ssl === 'true' ? "wss" : "ws") + "://www.mineseeker.ninja:6450"
: (this.state.ssl === 'true' ? "wss" : "ws") + "://system7.ddns.net:443/"
);
/**
@@ -346,6 +347,11 @@ class MineSeeker extends React.Component {
});
}
/** After rendering */
componentDidMount() {
}
/**
* Cache the steps unless reconnection
*