You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.9 KiB
69 lines
2.9 KiB
<div class="content-in-center">
|
|
<div class="content-in-border" *ngIf="uniq">
|
|
<h2>Уникальные игроки</h2>
|
|
<h4>За "уникальность" берется игрок который зашел за данный период первый раз и поиграл более 5 минут</h4>
|
|
<div class="container responsive-grid-250">
|
|
<mat-card>
|
|
<mat-card-title>{{uniq.day}}</mat-card-title>
|
|
<mat-card-subtitle>игроков за день</mat-card-subtitle>
|
|
</mat-card>
|
|
<mat-card>
|
|
<mat-card-title>{{uniq.month}}</mat-card-title>
|
|
<mat-card-subtitle>игроков за месяц</mat-card-subtitle>
|
|
</mat-card>
|
|
<mat-card>
|
|
<mat-card-title>{{uniq.year}}</mat-card-title>
|
|
<mat-card-subtitle>игроков за год</mat-card-subtitle>
|
|
</mat-card>
|
|
<mat-card>
|
|
<mat-card-title>{{uniq.total}}</mat-card-title>
|
|
<mat-card-subtitle>игроков за всё время</mat-card-subtitle>
|
|
</mat-card>
|
|
</div>
|
|
</div>
|
|
<div class="content-in-border">
|
|
<h2>График онлайна</h2>
|
|
<div *ngIf="!init">
|
|
<div style="display: flex; justify-content: space-between">
|
|
<mat-form-field appearance="fill">
|
|
<mat-label>Статистика по</mat-label>
|
|
<mat-select [(ngModel)]="selectedPeriod">
|
|
<mat-option *ngFor="let s of periods" [value]="s">
|
|
{{s.name}}
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
<mat-form-field appearance="fill" *ngIf="selectedPeriod.value=='minutes'">
|
|
<mat-label>Количество минут</mat-label>
|
|
<mat-select [(ngModel)]="selectedMinute">
|
|
<mat-option *ngFor="let s of minutes" [value]="s">
|
|
Разница в {{s}} минут
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
<mat-form-field appearance="fill">
|
|
<mat-label>Количество дней</mat-label>
|
|
<mat-select [(ngModel)]="selectedDays">
|
|
<mat-option *ngFor="let s of days" [value]="s">
|
|
За {{s}} дней
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
<mat-form-field appearance="fill">
|
|
<mat-label>Сервер</mat-label>
|
|
<mat-select [(ngModel)]="selectedServer">
|
|
<mat-option *ngFor="let s of serverList" [value]="s">
|
|
{{s.name}}
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
</div>
|
|
<div class="chart-container">
|
|
<canvas id="MyChart" >{{ chart }}</canvas>
|
|
</div>
|
|
<mat-progress-bar *ngIf="loading" mode="indeterminate"></mat-progress-bar>
|
|
<button mat-button mat-raised-button (click)="getGraph()" style="width: 100%">Обновить</button>
|
|
</div>
|
|
<button mat-button mat-raised-button *ngIf="init" (click)="getGraph()">Загрузить график</button>
|
|
</div>
|
|
</div>
|
|
|