diff --git a/docs/infra/codestyle/cc-intellij-idea-javascript-typescript-style.xml b/docs/infra/codestyle/cc-intellij-idea-javascript-typescript-style.xml index c75b1af..e1c7def 100644 --- a/docs/infra/codestyle/cc-intellij-idea-javascript-typescript-style.xml +++ b/docs/infra/codestyle/cc-intellij-idea-javascript-typescript-style.xml @@ -1,6 +1,7 @@ + \ No newline at end of file diff --git a/static/src/app/statistic/campaign-player-detail/campaign-player-detail.component.ts b/static/src/app/statistic/campaign-player-detail/campaign-player-detail.component.ts index 9990006..7329f6e 100644 --- a/static/src/app/statistic/campaign-player-detail/campaign-player-detail.component.ts +++ b/static/src/app/statistic/campaign-player-detail/campaign-player-detail.component.ts @@ -18,7 +18,7 @@ export class CampaignPlayerDetailComponent implements OnInit { @Output() switchTab = new EventEmitter(); - campaignPlayer: CampaignPlayer = {campaign: {}, players: []}; + campaignPlayer: CampaignPlayer = { campaign: {}, players: [] }; graphData: any[] = []; sumData: any[] = []; @@ -60,15 +60,15 @@ export class CampaignPlayerDetailComponent implements OnInit { this.campaignPlayer = campaignPlayer; this.graphData = [ - {key: 'kill', label: 'Kills',}, - {key: 'friendlyFire', label: 'Friendly Fire',}, - {key: 'death', label: 'Tode',}, - {key: 'respawn', label: 'Respawn',}, - {key: 'revive', label: 'Revive',}, - {key: 'flagTouch', label: 'Eroberungen',}, - {key: 'vehicleLight', label: 'Fahrzeug (Leicht)',}, - {key: 'vehicleHeavy', label: 'Fahrzeug (Schwer)',}, - {key: 'vehicleAir', label: 'Fahrzeug (Luft)',}, + { key: 'kill', label: 'Kills', }, + { key: 'friendlyFire', label: 'Friendly Fire', }, + { key: 'death', label: 'Tode', }, + { key: 'respawn', label: 'Respawn', }, + { key: 'revive', label: 'Revive', }, + { key: 'flagTouch', label: 'Eroberungen', }, + { key: 'vehicleLight', label: 'Fahrzeug (Leicht)', }, + { key: 'vehicleHeavy', label: 'Fahrzeug (Schwer)', }, + { key: 'vehicleAir', label: 'Fahrzeug (Luft)', }, ]; this.initDataArray(); @@ -84,7 +84,7 @@ export class CampaignPlayerDetailComponent implements OnInit { // we can not directly push to target array, since only full reference changes trigger the refresh of data const tmpSumData = []; this.graphData.forEach(dataSet => { - tmpSumData.push({name: dataSet.label, value: dataSet.total}) + tmpSumData.push({ name: dataSet.label, value: dataSet.total }); }); this.sumData = tmpSumData; }); @@ -110,9 +110,9 @@ export class CampaignPlayerDetailComponent implements OnInit { } dataSet.data = [killObj]; - dataSet.refLine = [{value: total / playerLength, name: this.avgLabel}] + dataSet.refLine = [{ value: total / playerLength, name: this.avgLabel }]; dataSet.total = total; - }) + }); } navigateBack() {