From 2d64c325982a0537b6921c7226036c09f44a4dc0 Mon Sep 17 00:00:00 2001 From: HardiReady Date: Thu, 7 Feb 2019 21:44:25 +0100 Subject: [PATCH] Add chart select label names --- .../war/server-stats/server-stats.component.ts | 14 +++++++------- static/src/assets/i18n/statistics/de.json | 6 ++++++ static/src/assets/i18n/statistics/en.json | 6 ++++++ 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/static/src/app/statistic/war/server-stats/server-stats.component.ts b/static/src/app/statistic/war/server-stats/server-stats.component.ts index ea131ba..6ed098d 100644 --- a/static/src/app/statistic/war/server-stats/server-stats.component.ts +++ b/static/src/app/statistic/war/server-stats/server-stats.component.ts @@ -36,11 +36,11 @@ export class ServerStatsComponent implements OnInit, OnChanges { tmpFlagCaptureData; readonly labels = { - points: 'stats.fraction.select.points', - budget: 'stats.fraction.select.budget', - kill: 'stats.fraction.select.kills', - friendlyFire: 'stats.fraction.select.friendly.fire', - vehicle: 'stats.fraction.select.vehicle.kills', + singleAvg: 'stats.performance.select.single.avg', + singleMin: 'stats.performance.select.single.min', + avgTimeline: 'stats.performance.select.timeline.avg', + minTimeline: 'stats.performance.select.timeline.min', + serverFps: 'stats.performance.select.timeline.server', }; readonly labelsAsString = Object.keys(this.labels) .map((key) => this.labels[key]); @@ -62,7 +62,7 @@ export class ServerStatsComponent implements OnInit, OnChanges { } ngOnInit() { - this.setLineChartLabel(this.labels.points); + this.setLineChartLabel(this.labels.singleAvg); } ngOnChanges(changes: SimpleChanges) { @@ -75,7 +75,7 @@ export class ServerStatsComponent implements OnInit, OnChanges { flag: false }; Object.assign(this, [this.lineChartData]); - this.activeChartSelect = this.labels.points; + this.activeChartSelect = this.labels.singleAvg; this.startDateObj = new Date(this.war.date); this.startDateObj.setHours(0); diff --git a/static/src/assets/i18n/statistics/de.json b/static/src/assets/i18n/statistics/de.json index 5282f8a..dd3c09a 100644 --- a/static/src/assets/i18n/statistics/de.json +++ b/static/src/assets/i18n/statistics/de.json @@ -28,6 +28,12 @@ "stats.fraction.select.stabilize": "Stabilisiert", "stats.fraction.select.flag": "Flaggenbesitz", + "stats.performance.select.single.avg": "Spieler FPS Durchschnitt", + "stats.performance.select.single.min": "Spieler FPS Minimum", + "stats.performance.select.timeline.avg": "Verlauf Gesamt FPS", + "stats.performance.select.timeline.min": "Verlauf Minimum FPS", + "stats.performance.select.timeline.server": "Server FPS", + "stats.player.detail.headline": "Kampagnendetails - {{name}}", "stats.player.detail.button.back": "Zurück", "stats.player.detail.kill.death.ratio": "Kill/Death", diff --git a/static/src/assets/i18n/statistics/en.json b/static/src/assets/i18n/statistics/en.json index cc4509e..7634312 100644 --- a/static/src/assets/i18n/statistics/en.json +++ b/static/src/assets/i18n/statistics/en.json @@ -36,6 +36,12 @@ "stats.fraction.select.stabilize": "Stabilized", "stats.fraction.select.flag": "Flag Possession", + "stats.performance.select.single.avg": "Player FPS Average", + "stats.performance.select.single.min": "Player FPS Minimum", + "stats.performance.select.timeline.avg": "Timeline Overall FPS", + "stats.performance.select.timeline.min": "Timeline Minimum FPS", + "stats.performance.select.timeline.server": "Server FPS", + "stats.player.detail.headline": "Campaign Details - {{name}}", "stats.player.detail.button.back": "Back", "stats.player.detail.kill.death.ratio": "Kill/Death",