added parsed check to scoreboard, added team color vars + team-colors in damage-chart
This commit is contained in:
@@ -37,13 +37,13 @@
|
||||
<ul class="list-unstyled d-flex m-auto">
|
||||
<li class="list-item scoreboard active" @click.prevent="ActivateScoreInfo('scoreboard')">Scoreboard</li>
|
||||
<li :class="!data.matchDetails.parsed ? 'disabled' : ''" class="list-item flashes"
|
||||
@click.prevent="data.matchDetails.parsed ? ActivateScoreInfo('flashes') : null">Flashes
|
||||
@click.prevent="data.matchDetails.parsed ? ActivateScoreInfo('flashes') : null" :title="!data.matchDetails.parsed ? 'This demo has not been parsed' : ''">Flashes
|
||||
</li>
|
||||
<li :class="!data.matchDetails.parsed ? 'disabled' : ''" class="list-item utility"
|
||||
@click.prevent="data.matchDetails.parsed ? ActivateScoreInfo('utility') : null">Utility
|
||||
@click.prevent="data.matchDetails.parsed ? ActivateScoreInfo('utility') : null" :title="!data.matchDetails.parsed ? 'This demo has not been parsed' : ''">Utility
|
||||
</li>
|
||||
<li :class="!data.matchDetails.parsed ? 'disabled' : ''" class="list-item damage"
|
||||
@click.prevent="data.matchDetails.parsed ? ActivateScoreInfo('damage') : null">Damage
|
||||
@click.prevent="data.matchDetails.parsed ? ActivateScoreInfo('damage') : null" :title="!data.matchDetails.parsed ? 'This demo has not been parsed' : ''">Damage
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -54,12 +54,12 @@
|
||||
:rounds="data.matchDetails.max_rounds ? data.matchDetails.max_rounds : data.score[data.matchDetails.match_result - 1] === 16 ? 30 : data.score[data.matchDetails.match_result - 1] === 15 ? 30 : 16"
|
||||
:rounds_played="data.score.reduce((a, b) => a + b)"
|
||||
:score="data.score[0]"
|
||||
:stats="data.stats" :team_id="1"/>
|
||||
:stats="data.stats" :team_id="1" :parsed="data.matchDetails.parsed" />
|
||||
<ScoreTeam
|
||||
:rounds="data.matchDetails.max_rounds ? data.matchDetails.max_rounds : data.score.reduce((a, b) => a + b) >= 16 ? 30 : 16"
|
||||
:rounds_played="data.score.reduce((a, b) => a + b)"
|
||||
:score="data.score[1]"
|
||||
:stats="data.stats" :team_id="2"/>
|
||||
:stats="data.stats" :team_id="2" :parsed="data.matchDetails.parsed" />
|
||||
</div>
|
||||
|
||||
<div id="flashes">
|
||||
|
||||
@@ -198,7 +198,7 @@ import {
|
||||
FormatDuration,
|
||||
FormatFullDate,
|
||||
FormatFullDuration,
|
||||
GetHLTV_1,
|
||||
GetHLTV_1, GoToLink,
|
||||
GoToMatch,
|
||||
LoadImage,
|
||||
SaveLastVisitedToLocalStorage
|
||||
@@ -262,7 +262,7 @@ export default {
|
||||
|
||||
LoadImage(data.matches[0].map ? data.matches[0].map : 'random')
|
||||
|
||||
console.log(response.data)
|
||||
// console.log(response.data)
|
||||
|
||||
let player = {
|
||||
'steamid64': response.data.steamid64,
|
||||
@@ -274,7 +274,10 @@ export default {
|
||||
document.title = `${response.data.name} | csgoWTF`
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log(e);
|
||||
if (e.response.status === 404) {
|
||||
GoToLink('/')
|
||||
}
|
||||
// console.log(e.response.status, e.response.statusText);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user