diff --git a/src/App.vue b/src/App.vue index bc11176..581b43b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -118,6 +118,10 @@ a { } .md-tabs { + /*background-color: #131213;*/ +} + +.md-tabs-navigation { background-color: #131213; } diff --git a/src/assets/server.svg b/src/assets/server.svg new file mode 100644 index 0000000..0068291 --- /dev/null +++ b/src/assets/server.svg @@ -0,0 +1,34 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/components/PublicMethods.js b/src/components/PublicMethods.js index bbf9cb2..97322a4 100644 --- a/src/components/PublicMethods.js +++ b/src/components/PublicMethods.js @@ -36,6 +36,27 @@ export default { console.log(`[PublicMethods] cannot request api/stats/statistic, err: ${err}`); }) }, + getServers(){ + console.log("[PublicMethods] request api/stats/servers"); + return axios.get("/api/stats?filter=servers") + .then(response => response.data['servers']) + .then(response => { + let srvs = { + 'w':[], + "e":[], + 'n':[] + }; + for (let srv in response) { + if (response[srv]['status'] == false) srvs.n.push(response[srv]); + else if (response[srv]['player_count'] > 0) srvs.w.push(response[srv]); + else srvs.e.push(response[srv]); + } + return srvs; + }) + .catch(err => { + console.log(`[PublicMethods] cannot request api/stats/statistic, err: ${err}`); + }); + }, getUniq(){ console.log("[PublicMethods] request api/stats/uniq"); return axios.get("/api/stats?filter=uniq") diff --git a/src/components/TabsMenu.vue b/src/components/TabsMenu.vue index f35a00f..da45925 100644 --- a/src/components/TabsMenu.vue +++ b/src/components/TabsMenu.vue @@ -1,5 +1,6 @@ \ No newline at end of file diff --git a/src/components/TabsMenuElements/MainView/MainView.vue b/src/components/TabsMenuElements/MainView/MainView.vue index f51ce64..5650c8b 100644 --- a/src/components/TabsMenuElements/MainView/MainView.vue +++ b/src/components/TabsMenuElements/MainView/MainView.vue @@ -1,19 +1,17 @@