From 53a99020b8b71594995a18d32cc0a0765d76d476 Mon Sep 17 00:00:00 2001 From: HardiReady Date: Sun, 11 Mar 2018 09:39:05 +0100 Subject: [PATCH] reformat code --- static/src/app/services/army-management/awarding.service.ts | 6 +++--- .../campaign-player-detail.component.ts | 4 +++- static/src/app/statistic/highscore/highscore.component.css | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/static/src/app/services/army-management/awarding.service.ts b/static/src/app/services/army-management/awarding.service.ts index e58e124..316f141 100644 --- a/static/src/app/services/army-management/awarding.service.ts +++ b/static/src/app/services/army-management/awarding.service.ts @@ -14,7 +14,7 @@ export class AwardingService { getUnconfirmedAwards(fraction?: string) { return this.http.get(this.config.apiAwardPath + '?inProgress=true&fractFilter=' + fraction) - .map(res => res.json()); + .map(res => res.json()); } checkUnprocessedAwards(fraction?: string) { @@ -30,7 +30,7 @@ export class AwardingService { */ getUserAwardings(userId: string) { return this.http.get(this.config.apiAwardPath + '?userId=' + userId) - .map(res => res.json()); + .map(res => res.json()); } addAwarding(award: Award) { @@ -39,7 +39,7 @@ export class AwardingService { updateAward(award) { return this.http.patch(this.config.apiAwardPath + '/' + award._id, award) - .map(res => res.json()); + .map(res => res.json()); } requestAwarding(award: Award) { 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 b443e20..416f751 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 @@ -97,7 +97,9 @@ export class CampaignPlayerDetailComponent implements OnInit { this.captureData = this.assignData(this.yAxisCapture, 'flagTouch'); this.kdRatio = parseFloat((this.totalKills / (this.totalDeath === 0 ? 1 : this.totalDeath)).toFixed(2)); - if (this.kdRatio > 1) { this.maxKd = this.kdRatio * 1.7; } + if (this.kdRatio > 1) { + this.maxKd = this.kdRatio * 1.7; + } this.respawnDeathRatio = parseFloat((this.totalRespawn / (this.totalDeath === 0 ? 1 : this.totalDeath)).toFixed(2)); diff --git a/static/src/app/statistic/highscore/highscore.component.css b/static/src/app/statistic/highscore/highscore.component.css index fb0eac8..6e8508b 100644 --- a/static/src/app/statistic/highscore/highscore.component.css +++ b/static/src/app/statistic/highscore/highscore.component.css @@ -58,6 +58,7 @@ ngx-datatable { } /* Table Scrollbar BEGIN */ + :host /deep/ .ngx-datatable.scroll-vertical .datatable-body::-webkit-scrollbar { width: 12px; } @@ -72,4 +73,5 @@ ngx-datatable { background: #4b4b4b; -webkit-box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.5); } + /* Table Scrollbar END */