Skip to content

Commit a39d29e

Browse files
committed
#52 Cleanup: skip importing teamColorClass as component method
1 parent 79ad527 commit a39d29e

File tree

32 files changed

+31
-139
lines changed

32 files changed

+31
-139
lines changed

src/themes/fennec/focused-player/ammo/ammo.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ export default {
1717
},
1818

1919
colorClass() {
20-
return this.teamColorClass(this.player.team)
20+
return teamColorClass(this.player.team)
2121
},
2222
},
23-
24-
methods: {
25-
teamColorClass,
26-
},
2723
}

src/themes/fennec/focused-player/health-and-armor/health-and-armor.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ export default {
1616
},
1717

1818
colorClass() {
19-
return this.teamColorClass(this.player.team)
19+
return teamColorClass(this.player.team)
2020
},
2121
},
22-
23-
methods: {
24-
teamColorClass,
25-
},
2622
}

src/themes/fennec/focused-player/name-and-stats/data-row/data-row.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default {
1818
},
1919

2020
colorClass() {
21-
return this.teamColorClass(this.player.team)
21+
return teamColorClass(this.player.team)
2222
},
2323

2424
activeWeapon() {
@@ -32,8 +32,4 @@ export default {
3232
}))
3333
},
3434
},
35-
36-
methods: {
37-
teamColorClass,
38-
},
3935
}

src/themes/fennec/focused-player/name-and-stats/data-row/stats/stat/stat.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
},
1212

1313
colorClass() {
14-
return this.teamColorClass(this.player.team)
14+
return teamColorClass(this.player.team)
1515
},
1616

1717
value() {
@@ -32,8 +32,4 @@ export default {
3232
}
3333
},
3434
},
35-
36-
methods: {
37-
teamColorClass,
38-
},
3935
}

src/themes/fennec/focused-player/name-and-stats/name-and-stats.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ export default {
1414
},
1515

1616
colorClass() {
17-
return this.teamColorClass(this.player.team)
17+
return teamColorClass(this.player.team)
1818
},
1919
},
20-
21-
methods: {
22-
teamColorClass,
23-
},
2420
}

src/themes/fennec/focused-player/name-and-stats/name-row/name-row.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ export default {
77
},
88

99
colorClass() {
10-
return this.teamColorClass(this.player.team)
10+
return teamColorClass(this.player.team)
1111
},
1212
},
13-
14-
methods: {
15-
teamColorClass,
16-
},
1713
}

src/themes/fennec/players-alive/players-alive.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,15 @@ export default {
1919
},
2020

2121
leftTeamColorClass() {
22-
return this.teamColorClass(this.$teams[0])
22+
return teamColorClass(this.$teams[0])
2323
},
2424

2525
rightTeamColorClass() {
26-
return this.teamColorClass(this.$teams[1])
26+
return teamColorClass(this.$teams[1])
2727
},
2828
},
2929

3030
methods: {
31-
teamColorClass,
32-
3331
countAlivePlayers(team) {
3432
let alive = 0
3533

src/themes/fennec/radar/bomb/dropped-bomb/dropped-bomb.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { getLevel, levels } from '/hud/helpers/radar-levels.js'
22
import { offsetX, offsetY } from '/hud/helpers/radar-offset.js'
33
import { radarConfig } from '/hud/helpers/radar-config.js'
4-
import { teamColorClass } from '/hud/helpers/team-color-class.js'
54

65
export default {
76
data() {
@@ -42,7 +41,6 @@ export default {
4241
getLevel,
4342
offsetX,
4443
offsetY,
45-
teamColorClass,
4644

4745
averagePreviousPositions() {
4846
let sumX = 0

src/themes/fennec/radar/bomb/planted-bomb/planted-bomb.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { getLevel, levels } from '/hud/helpers/radar-levels.js'
22
import { offsetX, offsetY } from '/hud/helpers/radar-offset.js'
33
import { radarConfig } from '/hud/helpers/radar-config.js'
4-
import { teamColorClass } from '/hud/helpers/team-color-class.js'
54

65
export default {
76
props: [
@@ -32,6 +31,5 @@ export default {
3231
getLevel,
3332
offsetX,
3433
offsetY,
35-
teamColorClass,
3634
},
3735
}

src/themes/fennec/radar/grenade/grenade-projectile/grenade-projectile.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default {
1919
radarConfig,
2020

2121
colorClass() {
22-
return this.teamColorClass(this.grenade.owner.team)
22+
return teamColorClass(this.grenade.owner.team)
2323
},
2424

2525
coordinates() {
@@ -56,7 +56,6 @@ export default {
5656
getLevel,
5757
offsetX,
5858
offsetY,
59-
teamColorClass,
6059

6160
averagePreviousPositions() {
6261
let sumX = 0

src/themes/fennec/radar/grenade/smoke/smoke.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313
radarConfig,
1414

1515
colorClass() {
16-
return this.teamColorClass(this.grenade.owner.team)
16+
return teamColorClass(this.grenade.owner.team)
1717
},
1818

1919
coordinates() {
@@ -32,6 +32,5 @@ export default {
3232
getLevel,
3333
offsetX,
3434
offsetY,
35-
teamColorClass,
3635
},
3736
}

src/themes/fennec/radar/player/alive-player/alive-player.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default {
2020
radarConfig,
2121

2222
colorClass() {
23-
return this.teamColorClass(this.player.team)
23+
return teamColorClass(this.player.team)
2424
},
2525

2626
coordinates() {
@@ -52,7 +52,6 @@ export default {
5252
getLevel,
5353
offsetX,
5454
offsetY,
55-
teamColorClass,
5655

5756
getAngle() {
5857
const [x, y] = this.player.forward

src/themes/fennec/radar/player/dead-player/dead-player.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313
radarConfig,
1414

1515
colorClass() {
16-
return this.teamColorClass(this.player.team)
16+
return teamColorClass(this.player.team)
1717
},
1818

1919
coordinates() {
@@ -32,6 +32,5 @@ export default {
3232
getLevel,
3333
offsetX,
3434
offsetY,
35-
teamColorClass,
3635
},
3736
}

src/themes/fennec/series-graph/match/round-graph/round/round.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
computed: {
99
colorClass() {
1010
if (this.round.winningTeam) {
11-
return this.teamColorClass(this.round.winningTeam)
11+
return teamColorClass(this.round.winningTeam)
1212
}
1313
},
1414

@@ -25,8 +25,4 @@ export default {
2525
return this.round.roundNumber === this.$round.roundNumber
2626
},
2727
},
28-
29-
methods: {
30-
teamColorClass,
31-
},
3228
}

src/themes/fennec/sidebars/sidebar/player/additional-stats/adr/adr.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ export default {
77

88
computed: {
99
colorClass() {
10-
return this.teamColorClass(this.player.team)
10+
return teamColorClass(this.player.team)
1111
},
1212
},
13-
14-
methods: {
15-
teamColorClass,
16-
},
1713
}

src/themes/fennec/sidebars/sidebar/player/additional-stats/assists/assists.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ export default {
77

88
computed: {
99
colorClass() {
10-
return this.teamColorClass(this.player.team)
10+
return teamColorClass(this.player.team)
1111
},
1212
},
13-
14-
methods: {
15-
teamColorClass,
16-
},
1713
}

src/themes/fennec/sidebars/sidebar/player/additional-stats/deaths/deaths.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ export default {
77

88
computed: {
99
colorClass() {
10-
return this.teamColorClass(this.player.team)
10+
return teamColorClass(this.player.team)
1111
},
1212
},
13-
14-
methods: {
15-
teamColorClass,
16-
},
1713
}

src/themes/fennec/sidebars/sidebar/player/additional-stats/kills/kills.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ export default {
77

88
computed: {
99
colorClass() {
10-
return this.teamColorClass(this.player.team)
10+
return teamColorClass(this.player.team)
1111
},
1212
},
13-
14-
methods: {
15-
teamColorClass,
16-
},
1713
}

src/themes/fennec/sidebars/sidebar/player/adr/adr.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,11 @@ export default {
1313

1414
computed: {
1515
colorClass() {
16-
return this.teamColorClass(this.player.team)
16+
return teamColorClass(this.player.team)
1717
},
1818

1919
positionClass() {
2020
return `--${this.position}`
2121
},
2222
},
23-
24-
methods: {
25-
teamColorClass,
26-
},
2723
}

src/themes/fennec/sidebars/sidebar/player/deaths/deaths.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ export default {
1313

1414
computed: {
1515
colorClass() {
16-
return this.teamColorClass(this.player.team)
16+
return teamColorClass(this.player.team)
1717
},
1818
},
19-
20-
methods: {
21-
teamColorClass,
22-
},
2319
}

src/themes/fennec/sidebars/sidebar/player/health-bar/health-bar.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@ export default {
88

99
computed: {
1010
colorClass() {
11-
return this.teamColorClass(this.player.team)
11+
return teamColorClass(this.player.team)
1212
},
1313

1414
positionClass() {
1515
return `--${this.position}`
1616
},
1717
},
18-
19-
methods: {
20-
teamColorClass,
21-
},
2218
}

src/themes/fennec/sidebars/sidebar/player/kills/kills.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ export default {
1313

1414
computed: {
1515
colorClass() {
16-
return this.teamColorClass(this.player.team)
16+
return teamColorClass(this.player.team)
1717
},
1818
},
19-
20-
methods: {
21-
teamColorClass,
22-
},
2319
}

src/themes/fennec/sidebars/sidebar/player/taser/taser.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,11 @@ export default {
1313

1414
computed: {
1515
colorClass() {
16-
return this.teamColorClass(this.player.team)
16+
return teamColorClass(this.player.team)
1717
},
1818

1919
positionClass() {
2020
return `--${this.position}`
2121
},
2222
},
23-
24-
methods: {
25-
teamColorClass,
26-
},
2723
}

src/themes/fennec/sidebars/sidebar/team-equipment/team-equipment.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88

99
computed: {
1010
colorClass() {
11-
return this.teamColorClass(this.team)
11+
return teamColorClass(this.team)
1212
},
1313

1414
positionClass() {
@@ -32,8 +32,4 @@ export default {
3232
return this.team.players.reduce((sum, player) => sum + player.equipmentValue, 0)
3333
},
3434
},
35-
36-
methods: {
37-
teamColorClass,
38-
},
3935
}

src/themes/fennec/sidebars/sidebar/team-grenades/team-grenades.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88

99
computed: {
1010
colorClass() {
11-
return this.teamColorClass(this.team)
11+
return teamColorClass(this.team)
1212
},
1313

1414
positionClass() {
@@ -57,8 +57,6 @@ export default {
5757
},
5858

5959
methods: {
60-
teamColorClass,
61-
6260
getGrenadeName(grenade) {
6361
switch (grenade.name) {
6462
case 'weapon_decoy': return 'decoy'

0 commit comments

Comments
 (0)