|
|
@ -4,7 +4,7 @@ |
|
|
|
<div class="md-layout md-alignment-bottom-center" style="z-index: 1"> |
|
|
|
<div class="md-layout-item md-size-5"/> |
|
|
|
<div class="md-layout-item rounded-and-colored md-size-45 md-small-size-90"> |
|
|
|
<h3 class="txt-innert" style="text-align: center; margin: 2% 0%">{{serverInfo['name']}}</h3> |
|
|
|
<h3 class="txt-innert" style="text-align: center; margin: 2% 0%">{{serverData['name']}}</h3> |
|
|
|
</div> |
|
|
|
<div class="md-layout-item rounded-and-colored-circle md-size-5 clickable" v-on:click="closeFIF()"> |
|
|
|
<h3 class="txt-innert" style="text-align: center; margin: 25% 0%">X</h3> |
|
|
@ -12,20 +12,20 @@ |
|
|
|
</div> |
|
|
|
<div class="md-layout md-alignment-bottom-center" style="margin-top: -2.5%"> |
|
|
|
<div class="md-layout-item md-size-50 server-info-rounded rounded-only md-small-size-100 md-scrollbar" style="height: 660px; overflow-y: auto;"> |
|
|
|
<img :src="serverInfo['preview']" style="width: 100%; height:12em;object-fit: cover;border-top-left-radius: 15px; border-top-right-radius: 15px"> |
|
|
|
<img :src="serverData['preview']" style="width: 100%; height:12em;object-fit: cover;border-top-left-radius: 15px; border-top-right-radius: 15px"> |
|
|
|
<div> |
|
|
|
<p class="p-server">{{serverInfo['description']}}</p> |
|
|
|
<p class="p-server">{{serverData['description']}}</p> |
|
|
|
<div v-if="this.$API.player.auth('steam') === true" style="text-align: center; font-size: 0.5em !important;"> |
|
|
|
<p class="p-server clickable" style="display: inline" v-on:click="$refs.sfi_md.showMe(true, undefined, serverInfo['key'])">Чат сервера</p> |
|
|
|
<p class="p-server clickable" style="display: inline" v-on:click="$refs.sfi_md.showMe(true, undefined, serverData['key'])">Чат сервера</p> |
|
|
|
<p class="p-server" style="display: inline"> | </p> |
|
|
|
<p class="p-server clickable" style="display: inline" v-on:click="$refs.sfi_kdt.showMe(true, 1, serverInfo['key'])">Топ убийств</p> |
|
|
|
<p class="p-server clickable" style="display: inline" v-on:click="$refs.sfi_kdt.showMe(true, 1, serverData['key'])">Топ убийств</p> |
|
|
|
<p class="p-server" style="display: inline"> | </p> |
|
|
|
<p class="p-server clickable" style="display: inline" v-on:click="$refs.sfi_kdt.showMe(true, 2, serverInfo['key'])">Топ смертей</p> |
|
|
|
<p class="p-server clickable" style="display: inline" v-on:click="$refs.sfi_kdt.showMe(true, 2, serverData['key'])">Топ смертей</p> |
|
|
|
<p class="p-server" style="display: inline"> | </p> |
|
|
|
<p class="p-server clickable" style="display: inline" v-on:click="$refs.sfi_ssd.showMe(true, serverInfo)">Статистика</p> |
|
|
|
<p class="p-server clickable" style="display: inline" v-on:click="$refs.sfi_ssd.showMe(true, serverData)">Статистика</p> |
|
|
|
</div> |
|
|
|
<div v-else style="text-align: center; font-size: 0.5em !important;"> |
|
|
|
<p class="p-server clickable" style="display: inline" v-on:click="$refs.sfi_ssd.showMe(true, serverInfo)">Статистика сервера</p> |
|
|
|
<p class="p-server clickable" style="display: inline" v-on:click="$refs.sfi_ssd.showMe(true, serverData)">Статистика сервера</p> |
|
|
|
</div> |
|
|
|
<hr width="30%"> |
|
|
|
</div> |
|
|
@ -33,9 +33,9 @@ |
|
|
|
<div style="max-width: 40%; float: left;" v-on:click="onMove('steam')" class="clickable"> |
|
|
|
<TerminalSvg class="img-server"/> |
|
|
|
<p class="p-server" style="margin-bottom: -5%">Подключиться</p> |
|
|
|
<p class="p-server-address">{{serverInfo['address']}}</p> |
|
|
|
<p class="p-server-address">{{serverData['address']}}</p> |
|
|
|
</div> |
|
|
|
<div style="max-width: 40%; float: left;" v-if="serverInfo['workshop'].length > 0" v-on:click="onMove('workshop')" class="clickable"> |
|
|
|
<div style="max-width: 40%; float: left;" v-if="serverData['workshop'].length > 0" v-on:click="onMove('workshop')" class="clickable"> |
|
|
|
<SteamSvg class="img-server"/> |
|
|
|
<p class="p-server" style="margin-bottom: -5%">Workshop</p> |
|
|
|
<p class="p-server-address">by Пельмень</p> |
|
|
@ -47,9 +47,9 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<hr width="30%"> |
|
|
|
<h3 v-if="serverInfo['player_count'] < 1" style="text-align: center; line-height: 1em">На сервере пусто, заходи с друзьями...</h3> |
|
|
|
<h3 v-if="serverData['player_count'] < 1" style="text-align: center; line-height: 1em">На сервере пусто, заходи с друзьями...</h3> |
|
|
|
<div v-else> |
|
|
|
<h3 style="text-align: center" class="sfi-current-player">Сейчас играет {{serverInfo['player_count']}}/{{serverInfo['max_players']}}</h3> |
|
|
|
<h3 style="text-align: center" class="sfi-current-player">Сейчас играет {{serverData['player_count']}}/{{serverData['max_players']}}</h3> |
|
|
|
<hr width="30%"> |
|
|
|
<md-table v-model="players" md-sort="score" md-sort-order="desc" md-card md-fixed-header @md-selected="openPlayer" md-height="150px"> |
|
|
|
<md-table-row slot="md-table-row" slot-scope="{ item }" md-selectable="single"> |
|
|
@ -61,13 +61,13 @@ |
|
|
|
</md-table> |
|
|
|
<PlayerExtendedInfo ref="pei" :player="selected_player"/> |
|
|
|
</div> |
|
|
|
<p class="p-server" style="text-align: center; margin: 2.5% 0;">Обновлен: {{(new Date(serverInfo['last_update']*1000)).toLocaleString()}}</p> |
|
|
|
<p class="p-server" style="text-align: center; margin: 2.5% 0;">Обновлен: {{(new Date(serverData['last_update']*1000)).toLocaleString()}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</md-dialog> |
|
|
|
<MessagesDialog ref="sfi_md"/> |
|
|
|
<KillDeadTop ref="sfi_kdt"/> |
|
|
|
<ServerStatsDialog ref="sfi_ssd"/> |
|
|
|
<ServerStatsDialog ref="sfi_ssd" :docker="serverData.dockerStats" :uniq="serverData.uniq"/> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|