From fad92eb84d2d2bd39c3ac166757db2c2be2eddff Mon Sep 17 00:00:00 2001 From: gsd Date: Tue, 17 Oct 2023 23:00:44 +0300 Subject: [PATCH] mobile servers view --- src/api/GlobalApi.js | 1 + .../SubComponents/ConnectButton.vue | 2 +- .../RulesView/Components/RuleCard.vue | 2 +- .../Components/PlayerExtendedInfo.vue | 4 ++-- .../ServersView/Components/ServerCard.vue | 20 ++++++++++++++++--- .../ServersView/Components/ServerFullInfo.vue | 16 ++++++++++----- .../ServersView/ServersView.vue | 8 ++++---- 7 files changed, 37 insertions(+), 16 deletions(-) diff --git a/src/api/GlobalApi.js b/src/api/GlobalApi.js index ed9b8da..6fc5c06 100644 --- a/src/api/GlobalApi.js +++ b/src/api/GlobalApi.js @@ -66,6 +66,7 @@ export default class GlobalApi { else if (response[srv]['player_count'] > 0) srvs.w.push(response[srv]); else srvs.e.push(response[srv]); } + srvs['w'].sort((s1,s2) => s2.player_now - s1.player_now); this.stats['servers'] = srvs; }) .catch(err => { diff --git a/src/components/TabsMenuElements/MainView/Components/SubComponents/ConnectButton.vue b/src/components/TabsMenuElements/MainView/Components/SubComponents/ConnectButton.vue index 5a24a6d..5cbc49b 100644 --- a/src/components/TabsMenuElements/MainView/Components/SubComponents/ConnectButton.vue +++ b/src/components/TabsMenuElements/MainView/Components/SubComponents/ConnectButton.vue @@ -1,6 +1,6 @@