added some more error-handling
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
This commit is contained in:
@@ -175,7 +175,7 @@ export default {
|
|||||||
}
|
}
|
||||||
} else if (team === 2) {
|
} else if (team === 2) {
|
||||||
arr = []
|
arr = []
|
||||||
for (let i = 5; i < 10; i++) {
|
for (let i = 5; i < store.state.matchDetails.stats.length; i++) {
|
||||||
arr.push(store.state.matchDetails.stats[i])
|
arr.push(store.state.matchDetails.stats[i])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -2,26 +2,35 @@ import axios from "axios";
|
|||||||
import {errorHandling} from "@/utils/Utils";
|
import {errorHandling} from "@/utils/Utils";
|
||||||
|
|
||||||
const API_URL = process.env.VUE_APP_API_URL
|
const API_URL = process.env.VUE_APP_API_URL
|
||||||
|
const TIMEOUT = 10_000
|
||||||
|
|
||||||
export const GetMatches = async () => {
|
export const GetMatches = async () => {
|
||||||
try {
|
try {
|
||||||
const res = await axios.get(`${API_URL}/matches`)
|
const res = await axios({
|
||||||
|
method: 'get',
|
||||||
|
url: `${API_URL}/matches`,
|
||||||
|
timeout: TIMEOUT
|
||||||
|
})
|
||||||
|
|
||||||
if (res.status === 200)
|
if (res.status === 200)
|
||||||
return res.data
|
return res.data
|
||||||
} catch (err) {
|
} catch {
|
||||||
errorHandling(err.response.status)
|
console.log('Could not load matches')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const GetUser = async (id) => {
|
export const GetUser = async (id) => {
|
||||||
try {
|
try {
|
||||||
const res = await axios.get(`${API_URL}/player/${id}`)
|
const res = await axios({
|
||||||
|
method: 'get',
|
||||||
|
url: `${API_URL}/player/${id}`,
|
||||||
|
timeout: TIMEOUT
|
||||||
|
})
|
||||||
|
|
||||||
if (res.status === 200)
|
if (res.status === 200)
|
||||||
return res.data
|
return res.data
|
||||||
} catch (err) {
|
} catch {
|
||||||
errorHandling(err.response.status)
|
console.log('Could not load user')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,8 +53,15 @@ export const TrackMe = async (id64, authcode, sharecode = '') => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await axios
|
// const res = await axios
|
||||||
.post(`${API_URL}/player/${id64}/track`, `authcode=${authcode}&sharecode=${sharecode}`)
|
// .post(`${API_URL}/player/${id64}/track`, `authcode=${authcode}&sharecode=${sharecode}`)
|
||||||
|
|
||||||
|
const res = await axios({
|
||||||
|
method: 'post',
|
||||||
|
url: `${API_URL}/player/${id64}/track`,
|
||||||
|
data: `authcode=${authcode}&sharecode=${sharecode}`,
|
||||||
|
timeout: TIMEOUT
|
||||||
|
})
|
||||||
|
|
||||||
if (res.status === 202) {
|
if (res.status === 202) {
|
||||||
status = res.status
|
status = res.status
|
||||||
@@ -67,73 +83,96 @@ export const TrackMe = async (id64, authcode, sharecode = '') => {
|
|||||||
|
|
||||||
export const GetPlayerValue = async (match_id) => {
|
export const GetPlayerValue = async (match_id) => {
|
||||||
try {
|
try {
|
||||||
const res = await axios.get(`${API_URL}/match/${match_id}/rounds`)
|
const res = await axios({
|
||||||
|
method: 'get',
|
||||||
|
url: `${API_URL}/match/${match_id}/rounds`,
|
||||||
|
timeout: TIMEOUT
|
||||||
|
})
|
||||||
|
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
return res.data
|
return res.data
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch {
|
||||||
errorHandling(err.response.status)
|
console.log('Could not get player value')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const GetMatchDetails = async (match_id) => {
|
export const GetMatchDetails = async (match_id) => {
|
||||||
try {
|
try {
|
||||||
const res = await axios.get(`${API_URL}/match/${match_id}`)
|
const res = await axios({
|
||||||
|
method: 'get',
|
||||||
|
url: `${API_URL}/match/${match_id}`,
|
||||||
|
timeout: TIMEOUT
|
||||||
|
})
|
||||||
|
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
return res.data
|
return res.data
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch {
|
||||||
errorHandling(err.response.status)
|
console.log('Could not load match details')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const LoadMoreMatches = async (player_id, date) => {
|
export const LoadMoreMatches = async (player_id, date) => {
|
||||||
try {
|
try {
|
||||||
const res = await axios.get(`${API_URL}/player/${player_id}/next/${date}`)
|
const res = await axios({
|
||||||
|
method: 'get',
|
||||||
|
url: `${API_URL}/player/${player_id}/next/${date}`,
|
||||||
|
timeout: TIMEOUT
|
||||||
|
})
|
||||||
|
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
return res.data
|
return res.data
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch {
|
||||||
errorHandling(err.response.status)
|
console.log('Could not load more matches')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const GetPlayerMeta = async (player_id, limit = 4) => {
|
export const GetPlayerMeta = async (player_id, limit = 4) => {
|
||||||
try {
|
try {
|
||||||
const res = await axios.get(`${API_URL}/player/${player_id}/meta/${limit}`)
|
const res = await axios({
|
||||||
|
method: 'get',
|
||||||
|
url: `${API_URL}/player/${player_id}/meta/${limit}`,
|
||||||
|
timeout: TIMEOUT
|
||||||
|
})
|
||||||
|
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
// console.log(res.data)
|
|
||||||
return res.data
|
return res.data
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch {
|
||||||
errorHandling(err.response.status)
|
console.log('Could not load player metadata')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const GetWeaponDmg = async (match_id) => {
|
export const GetWeaponDmg = async (match_id) => {
|
||||||
try {
|
try {
|
||||||
const res = await axios.get(`${API_URL}/match/${match_id}/weapons`)
|
const res = await axios({
|
||||||
|
method: 'get',
|
||||||
|
url: `${API_URL}/match/${match_id}/weapons`,
|
||||||
|
timeout: TIMEOUT
|
||||||
|
})
|
||||||
|
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
return res.data
|
return res.data
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch {
|
||||||
errorHandling(err.response.status)
|
console.log('Could not calculate weapon damage')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const LoadMoreMatchesExplore = async (date) => {
|
export const LoadMoreMatchesExplore = async (date) => {
|
||||||
try {
|
try {
|
||||||
const res = await axios.get(`${API_URL}/matches/next/${date}`)
|
const res = await axios({
|
||||||
|
method: 'get',
|
||||||
|
url: `${API_URL}/matches/next/${date}`,
|
||||||
|
timeout: TIMEOUT
|
||||||
|
})
|
||||||
|
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
return res.data
|
return res.data
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch {
|
||||||
errorHandling(err.response.status)
|
console.log('Could not load more matches')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -4,12 +4,20 @@
|
|||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div class="container-lg text-center">
|
<div class="container-lg text-center">
|
||||||
<h3>Recent matches</h3>
|
<h3>Recent matches</h3>
|
||||||
<MatchesTable :key="data.matches" :explore="true" :matches="data.matches"/>
|
<div v-if="data.matches">
|
||||||
|
<MatchesTable :key="data.matches" :explore="true" :matches="data.matches"/>
|
||||||
|
|
||||||
<div v-if="data.matches" class="load-more text-center">
|
<div class="load-more text-center">
|
||||||
<button :key="scrollToPos(store.state.scroll_state)" class="btn border-2 btn-outline-info"
|
<button :key="scrollToPos(store.state.scroll_state)" class="btn border-2 btn-outline-info"
|
||||||
@click="setMoreMatches">Load More
|
@click="setMoreMatches">Load More
|
||||||
</button>
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-else>
|
||||||
|
<hr>
|
||||||
|
<h6>There seems to be a problem loading the content</h6>
|
||||||
|
<h6>Please try again later</h6>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -47,17 +55,21 @@ export default {
|
|||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
data.matches = await GetMatches()
|
data.matches = await GetMatches()
|
||||||
|
|
||||||
if (data.matches[0].map) {
|
if (data.matches) {
|
||||||
await LoadImage(data.matches[0].map)
|
if (data.matches[0].map) {
|
||||||
} else if (!data.matches[0].map && MatchNotParsedTime(data.matches[0].date) && data.matches[1].map) {
|
await LoadImage(data.matches[0].map)
|
||||||
await LoadImage(data.matches[1].map)
|
} else if (!data.matches[0].map && MatchNotParsedTime(data.matches[0].date) && data.matches[1].map) {
|
||||||
} else {
|
await LoadImage(data.matches[1].map)
|
||||||
await LoadImage('random')
|
} else {
|
||||||
|
await LoadImage('random')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
scrollToPos(store.state.scroll_state)
|
scrollToPos(store.state.scroll_state)
|
||||||
|
|
||||||
console.log(data.matches)
|
if (data.matches) {
|
||||||
|
console.log(data.matches)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
|
@@ -3,136 +3,145 @@
|
|||||||
|
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="card mb-3 bg-transparent border-0">
|
<div v-if="store.state.playerDetails.name">
|
||||||
<div class="row g-0">
|
<div class="card mb-3 bg-transparent border-0">
|
||||||
<div class="img-container col-md-2 pt-3">
|
<div class="row g-0">
|
||||||
<img
|
<div class="img-container col-md-2 pt-3">
|
||||||
:class="data.tracked ? 'tracked' : ''"
|
<img
|
||||||
:src="constructAvatarUrl(store.state.playerDetails.avatar, 'full')"
|
:class="data.tracked ? 'tracked' : ''"
|
||||||
:title="data.tracked ? 'Tracked' : ''"
|
:src="constructAvatarUrl(store.state.playerDetails.avatar, 'full')"
|
||||||
alt="Player avatar"
|
:title="data.tracked ? 'Tracked' : ''"
|
||||||
class="img-fluid avatar">
|
alt="Player avatar"
|
||||||
</div>
|
class="img-fluid avatar">
|
||||||
<div class="col-md-8 d-flex">
|
|
||||||
<div class="card-body">
|
|
||||||
<h3 class="card-title"><a
|
|
||||||
:href="/^\d{17}$/.test(props.id) ? 'https://steamcommunity.com/profiles/' + props.id : 'https://steamcommunity.com/id/' + props.id"
|
|
||||||
class="text-decoration-none text-white"
|
|
||||||
target="_blank"
|
|
||||||
title="Open steam profile">{{
|
|
||||||
store.state.playerDetails.name
|
|
||||||
}}
|
|
||||||
<i class="fa fa-steam"></i>
|
|
||||||
</a></h3>
|
|
||||||
<table class="table table-borderless text-center">
|
|
||||||
<tr>
|
|
||||||
<th class="wlt-win text-uppercase text-muted">Wins</th>
|
|
||||||
<th class="wlt-loss text-uppercase text-muted">Losses</th>
|
|
||||||
<th class="wlt-tie text-uppercase text-muted">Ties</th>
|
|
||||||
<th class="wlt-win-rate text-uppercase text-muted">Win-Rate</th>
|
|
||||||
<th class="wlt-tie-rate text-uppercase text-muted">Tie-Rate</th>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="wlt-win">{{ data.match_stats.win }}</td>
|
|
||||||
<td class="wlt-loss">{{ data.match_stats.loss }}</td>
|
|
||||||
<td class="wlt-tie">{{ data.match_stats.tie }}</td>
|
|
||||||
<td class="wlt-win-rate">{{
|
|
||||||
data.match_stats.win > 0 ? (data.match_stats.win / data.match_stats.total * 100).toFixed(0) : 0
|
|
||||||
}}%
|
|
||||||
</td>
|
|
||||||
<td class="wlt-tie-rate">{{
|
|
||||||
data.match_stats.tie > 0 ? (data.match_stats.tie / data.match_stats.total * 100).toFixed(0) : 0
|
|
||||||
}}%
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<div class="badges">
|
|
||||||
<img v-if="store.state.playerDetails.vac"
|
|
||||||
:title="'VAC-Ban: ' + FormatVacDate(store.state.playerDetails.vac_date, store.state.matchDetails.date)"
|
|
||||||
alt="Vac banned"
|
|
||||||
src="../assets/images/icons/vac_banned.svg">
|
|
||||||
<img v-if="store.state.playerDetails.game_ban"
|
|
||||||
:title="'Game-Ban: ' + FormatVacDate(store.state.playerDetails.game_ban_date, store.state.matchDetails.date)"
|
|
||||||
alt="Game banned"
|
|
||||||
src="../assets/images/icons/game_banned.svg">
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!data.tracked" class="dropdown trackme-btn">
|
<div class="col-md-8 d-flex">
|
||||||
<button
|
<div class="card-body">
|
||||||
id="login-dropdown"
|
<h3 class="card-title"><a
|
||||||
aria-expanded="false"
|
:href="/^\d{17}$/.test(props.id) ? 'https://steamcommunity.com/profiles/' + props.id : 'https://steamcommunity.com/id/' + props.id"
|
||||||
class="btn border-2 btn-outline-info"
|
class="text-decoration-none text-white"
|
||||||
data-bs-toggle="dropdown"
|
target="_blank"
|
||||||
type="button"
|
title="Open steam profile">{{
|
||||||
>
|
store.state.playerDetails.name
|
||||||
Track Me!
|
}}
|
||||||
</button>
|
<i class="fa fa-steam"></i>
|
||||||
<div v-if="data.statusErrorCode === 202" class="alert alert-success" role="alert">
|
</a></h3>
|
||||||
{{ data.statusError }}
|
<table class="table table-borderless text-center">
|
||||||
|
<tr>
|
||||||
|
<th class="wlt-win text-uppercase text-muted">Wins</th>
|
||||||
|
<th class="wlt-loss text-uppercase text-muted">Losses</th>
|
||||||
|
<th class="wlt-tie text-uppercase text-muted">Ties</th>
|
||||||
|
<th class="wlt-win-rate text-uppercase text-muted">Win-Rate</th>
|
||||||
|
<th class="wlt-tie-rate text-uppercase text-muted">Tie-Rate</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="wlt-win">{{ data.match_stats.win }}</td>
|
||||||
|
<td class="wlt-loss">{{ data.match_stats.loss }}</td>
|
||||||
|
<td class="wlt-tie">{{ data.match_stats.tie }}</td>
|
||||||
|
<td class="wlt-win-rate">{{
|
||||||
|
data.match_stats.win > 0 ? (data.match_stats.win / data.match_stats.total * 100).toFixed(0) : 0
|
||||||
|
}}%
|
||||||
|
</td>
|
||||||
|
<td class="wlt-tie-rate">{{
|
||||||
|
data.match_stats.tie > 0 ? (data.match_stats.tie / data.match_stats.total * 100).toFixed(0) : 0
|
||||||
|
}}%
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div class="badges">
|
||||||
|
<img v-if="store.state.playerDetails.vac"
|
||||||
|
:title="'VAC-Ban: ' + FormatVacDate(store.state.playerDetails.vac_date, store.state.matchDetails.date)"
|
||||||
|
alt="Vac banned"
|
||||||
|
src="../assets/images/icons/vac_banned.svg">
|
||||||
|
<img v-if="store.state.playerDetails.game_ban"
|
||||||
|
:title="'Game-Ban: ' + FormatVacDate(store.state.playerDetails.game_ban_date, store.state.matchDetails.date)"
|
||||||
|
alt="Game banned"
|
||||||
|
src="../assets/images/icons/game_banned.svg">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="data.statusErrorCode === 418" class="alert alert-warning" role="alert">
|
<div v-if="!data.tracked" class="dropdown trackme-btn">
|
||||||
{{ data.statusError }}
|
<button
|
||||||
</div>
|
id="login-dropdown"
|
||||||
<div v-if="data.statusErrorCode !== 0 && data.statusErrorCode !== 202 && data.statusErrorCode !== 418"
|
aria-expanded="false"
|
||||||
class="alert alert-danger"
|
class="btn border-2 btn-outline-info"
|
||||||
role="alert">
|
data-bs-toggle="dropdown"
|
||||||
{{ data.statusError }}
|
type="button"
|
||||||
</div>
|
>
|
||||||
<div aria-labelledby="login-dropdown" class="dropdown-menu mt-2 border-2 border-primary bg-body"
|
Track Me!
|
||||||
style="width: 320px">
|
</button>
|
||||||
<form class="px-4 py-3">
|
<div v-if="data.statusErrorCode === 202" class="alert alert-success" role="alert">
|
||||||
<!-- AuthCode input -->
|
{{ data.statusError }}
|
||||||
<div class="form-outline mb-4">
|
</div>
|
||||||
<input id="track-authcode" v-model="data.userData.authcode" class="form-control bg-secondary"
|
<div v-if="data.statusErrorCode === 418" class="alert alert-warning" role="alert">
|
||||||
placeholder="AuthCode*"
|
{{ data.statusError }}
|
||||||
required type="text"/>
|
</div>
|
||||||
</div>
|
<div v-if="data.statusErrorCode !== 0 && data.statusErrorCode !== 202 && data.statusErrorCode !== 418"
|
||||||
|
class="alert alert-danger"
|
||||||
|
role="alert">
|
||||||
|
{{ data.statusError }}
|
||||||
|
</div>
|
||||||
|
<div aria-labelledby="login-dropdown" class="dropdown-menu mt-2 border-2 border-primary bg-body"
|
||||||
|
style="width: 320px">
|
||||||
|
<form class="px-4 py-3">
|
||||||
|
<!-- AuthCode input -->
|
||||||
|
<div class="form-outline mb-4">
|
||||||
|
<input id="track-authcode" v-model="data.userData.authcode" class="form-control bg-secondary"
|
||||||
|
placeholder="AuthCode*"
|
||||||
|
required type="text"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- ShareCode input -->
|
<!-- ShareCode input -->
|
||||||
<div class="form-outline mb-2">
|
<div class="form-outline mb-2">
|
||||||
<input id="track-sharecode" v-model="data.userData.sharecode" class="form-control bg-secondary"
|
<input id="track-sharecode" v-model="data.userData.sharecode" class="form-control bg-secondary"
|
||||||
placeholder="ShareCode"
|
placeholder="ShareCode"
|
||||||
type="text"/>
|
type="text"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-outline mb-4">
|
<div class="form-outline mb-4">
|
||||||
<small>You can find your AuthCode and ShareCode <a
|
<small>You can find your AuthCode and ShareCode <a
|
||||||
href="https://help.steampowered.com/en/wizard/HelpWithGameIssue/?appid=730&issueid=128"
|
href="https://help.steampowered.com/en/wizard/HelpWithGameIssue/?appid=730&issueid=128"
|
||||||
target="_blank">here</a>.</small>
|
target="_blank">here</a>.</small>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Submit button -->
|
<!-- Submit button -->
|
||||||
<button class="btn btn-outline-warning border-2" type="submit"
|
<button class="btn btn-outline-warning border-2" type="submit"
|
||||||
@click.prevent="TrackPlayer">
|
@click.prevent="TrackPlayer">
|
||||||
TrackMe
|
TrackMe
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-if="data.tracked" class="refresh-btn" title="Refresh Match-List" @click="RefreshData">
|
||||||
|
<i class="fa fa-refresh fa-2x"></i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div v-if="data.tracked" class="refresh-btn" title="Refresh Match-List" @click="RefreshData">
|
|
||||||
<i class="fa fa-refresh fa-2x"></i>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="match-container d-flex">
|
||||||
<div class="match-container d-flex">
|
<div class="matches">
|
||||||
<div class="matches">
|
|
||||||
|
|
||||||
<MatchesTable v-if="store.state.playerDetails.matches" :matches="store.state.playerDetails.matches"/>
|
<MatchesTable v-if="store.state.playerDetails.matches" :matches="store.state.playerDetails.matches"/>
|
||||||
<h5 v-else>No matches on record</h5>
|
<h5 v-else>No matches on record</h5>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-if="store.state.playerDetails.matches" class="side-info-container">
|
||||||
|
|
||||||
|
<PlayerSideInfo :player_meta="data.playerMeta"/>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="load-more col-lg-9 col-md-12 text-center">
|
||||||
<div v-if="store.state.playerDetails.matches" class="side-info-container">
|
<button v-if="data.match_stats.total !== data.matches.length" :key="scrollToPos(store.state.scroll_state)"
|
||||||
|
class="btn border-2 btn-outline-info" @click="setMoreMatches">Load More
|
||||||
<PlayerSideInfo :player_meta="data.playerMeta" />
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="load-more col-lg-9 col-md-12 text-center">
|
|
||||||
<button v-if="data.match_stats.total !== data.matches.length" :key="scrollToPos(store.state.scroll_state)"
|
<div v-else class="text-center pt-5">
|
||||||
class="btn border-2 btn-outline-info" @click="setMoreMatches">Load More
|
<h3>Player-Page</h3>
|
||||||
</button>
|
<hr>
|
||||||
|
<h6>There seems to be a problem loading the player</h6>
|
||||||
|
<h6>Please try again later</h6>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -153,11 +162,11 @@ import {
|
|||||||
LoadImage,
|
LoadImage,
|
||||||
LoadMoreMatches,
|
LoadMoreMatches,
|
||||||
MatchNotParsedTime,
|
MatchNotParsedTime,
|
||||||
|
ProcessName,
|
||||||
SaveLastVisitedToLocalStorage,
|
SaveLastVisitedToLocalStorage,
|
||||||
scrollToPos,
|
scrollToPos,
|
||||||
setTitle,
|
setTitle,
|
||||||
TrackMe,
|
TrackMe
|
||||||
ProcessName
|
|
||||||
} from "../utils";
|
} from "../utils";
|
||||||
import {FOOTER_HEIGHT, NAV_HEIGHT} from "@/constants";
|
import {FOOTER_HEIGHT, NAV_HEIGHT} from "@/constants";
|
||||||
import MatchesTable from "@/components/MatchesTable";
|
import MatchesTable from "@/components/MatchesTable";
|
||||||
@@ -459,6 +468,7 @@ export default {
|
|||||||
.matches {
|
.matches {
|
||||||
width: 75%;
|
width: 75%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.side-info-container {
|
.side-info-container {
|
||||||
width: 25%;
|
width: 25%;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user