@ -6,7 +6,7 @@
< div class = "content-in-center" >
< div class = "content-in-border" >
< mat-accordion >
< mat-expansion-panel hideToggle * ngFor = "let server of servers | keyvalue" >
< mat-expansion-panel hideToggle * ngFor = "let server of servers | keyvalue: playerCountOrder " >
< mat-expansion-panel-header >
< mat-panel-title >
{{server.value.name}}
@ -16,19 +16,79 @@
< / mat-panel-description >
< / mat-expansion-panel-header >
< div >
< p > {{server.value.description}}< / p >
< mat-expansion-panel hideToggle * ngFor = "let player of server.value.players" >
< div class = "container responsive-grid-100" >
< mat-card >
< mat-card-title > {{server.value.status?'Включен':'Выключен'}}< / mat-card-title >
< mat-card-subtitle > сейчас сервер< / mat-card-subtitle >
< / mat-card >
< mat-card >
< mat-card-title > {{server.value.player_count}}< / mat-card-title >
< mat-card-subtitle > игроков сейчас играет< / mat-card-subtitle >
< / mat-card >
< mat-card >
< mat-card-title > {{server.value.uniq.day}}< / mat-card-title >
< mat-card-subtitle > игроков играло сегодня< / mat-card-subtitle >
< / mat-card >
< mat-card >
< mat-card-title > {{server.value.uniq.month}}< / mat-card-title >
< mat-card-subtitle > игроков играло за месяц< / mat-card-subtitle >
< / mat-card >
< mat-card >
< mat-card-title > {{server.value.uniq.year}}< / mat-card-title >
< mat-card-subtitle > игроков играло за год< / mat-card-subtitle >
< / mat-card >
< mat-card >
< mat-card-title > {{server.value.last_update * 1000 | date: "hh:mm:ss"}}< / mat-card-title >
< mat-card-subtitle > обновление информации< / mat-card-subtitle >
< / mat-card >
< mat-card >
< mat-card-title > {{server.value.dockerStats.cpu.percent}}%< / mat-card-title >
< mat-card-subtitle > нагрузка сервера< / mat-card-subtitle >
< / mat-card >
< / div >
< div class = "container responsive-grid-250" >
< mat-card >
< mat-card-title > {{mapClearName(server.value.map)}}< / mat-card-title >
< mat-card-subtitle > Текущая карта< / mat-card-subtitle >
< / mat-card >
< mat-card
style="cursor: pointer"
(click)="actionService.goToUrlViaTab('steam://connect/'+server.value.ip)">
< mat-card-title > Подключиться< / mat-card-title >
< mat-card-subtitle > через Steam< / mat-card-subtitle >
< / mat-card >
< mat-card
style="cursor: pointer"
(click)="actionService.copyToClipboard('connect ' + server.value.ip) & & actionService.showSnack('Команда для подключения через консоль скопирована в буфер обмена')">
< mat-card-title > Адрес сервера< / mat-card-title >
< mat-card-subtitle > {{server.value.ip}}< / mat-card-subtitle >
< / mat-card >
< mat-card * ngIf = "server.value.workshop != ''" style = "cursor: pointer" ( click ) = " actionService . goToUrlViaTab ( server . value . workshop ) " >
< mat-card-title > Скачать карту< / mat-card-title >
< mat-card-subtitle > из воркшопа< / mat-card-subtitle >
< / mat-card >
< / div >
< mat-expansion-panel hideToggle * ngIf = "server.value.player_count>0" >
< mat-expansion-panel-header >
< mat-panel-title >
{{player.name}}
Посмотреть игроков на сервере
< / mat-panel-title >
< mat-panel-description >
{{player.score}} / {{player.deads}} / {{player.duration_seconds}}
< / mat-panel-description >
< / mat-expansion-panel-header >
< p > Ид игрока: {{player.id}}< / p >
< p > Пинг: {{player.ping}}< / p >
< p > Потери пакетов: {{player.loss}}< / p >
< mat-expansion-panel hideToggle * ngFor = "let player of server.value.players" >
< mat-expansion-panel-header >
< mat-panel-title >
{{player.name}}
< / mat-panel-title >
< mat-panel-description >
{{player.score}} / {{player.deads}} / {{player.duration}}
< / mat-panel-description >
< / mat-expansion-panel-header >
< p > Ид игрока: {{player.id}}< / p >
< p > Пинг: {{player.ping}}< / p >
< p > Потери пакетов: {{player.loss}}< / p >
< / mat-expansion-panel >
< / mat-expansion-panel >
< / div >
< / mat-expansion-panel >