Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
4464d92e81 |
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "csgowtf",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
|
@@ -215,8 +215,8 @@ export default {
|
||||
|
||||
data.stats = data.matchDetails.stats
|
||||
data.score = data.matchDetails.score
|
||||
data.team1Avg = getTeamAvgRank(1).reduce((a, b) => a + b) / 5
|
||||
data.team2Avg = getTeamAvgRank(2).reduce((a, b) => a + b) / 5
|
||||
data.team1Avg = Math.floor(getTeamAvgRank(1).reduce((a, b) => a + b) / 5)
|
||||
data.team2Avg = Math.floor(getTeamAvgRank(2).reduce((a, b) => a + b) / 5)
|
||||
|
||||
LoadImage(data.matchDetails.map ? data.matchDetails.map : 'random')
|
||||
|
||||
@@ -271,7 +271,7 @@ export default {
|
||||
const getTeamAvgRank = (team) => {
|
||||
let arr = []
|
||||
for (let i = (team - 1) * 5; i < team * 5; i++) {
|
||||
arr.push(data.matchDetails.stats[i].rank.old)
|
||||
arr.push(data.matchDetails.stats[i].rank?.old !== undefined ? data.matchDetails.stats[i].rank?.old : 0)
|
||||
}
|
||||
return arr
|
||||
}
|
||||
|
@@ -85,21 +85,24 @@
|
||||
<!-- AuthCode input -->
|
||||
<div class="form-outline mb-4">
|
||||
<input id="track-authcode" v-model="data.userData.authcode" class="form-control bg-secondary"
|
||||
placeholder="AuthCode*"
|
||||
placeholder="AuthCode (required)"
|
||||
required type="text"/>
|
||||
</div>
|
||||
|
||||
<!-- ShareCode input -->
|
||||
<div class="form-outline mb-2">
|
||||
<input id="track-sharecode" v-model="data.userData.sharecode" class="form-control bg-secondary"
|
||||
placeholder="ShareCode"
|
||||
placeholder="ShareCode (optional)"
|
||||
type="text"/>
|
||||
</div>
|
||||
|
||||
<div class="form-outline mb-4">
|
||||
<small>You can find your AuthCode and ShareCode <a
|
||||
href="https://help.steampowered.com/en/wizard/HelpWithGameIssue/?appid=730&issueid=128"
|
||||
target="_blank">here</a>.</small>
|
||||
<small>
|
||||
<a href="https://help.steampowered.com/en/wizard/HelpWithGameIssue/?appid=730&issueid=128"
|
||||
target="_blank">
|
||||
Here you can find your AuthCode and ShareCode
|
||||
</a>
|
||||
</small>
|
||||
</div>
|
||||
|
||||
<!-- Submit button -->
|
||||
|
Reference in New Issue
Block a user