removed console logs
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good

This commit is contained in:
2022-01-30 20:21:58 +01:00
parent 9f2a57e09f
commit e4a4d64fb5
6 changed files with 19 additions and 23 deletions

View File

@@ -4,24 +4,23 @@
<h3 class="text-center mt-2">Multi-Kills</h3> <h3 class="text-center mt-2">Multi-Kills</h3>
<MultiKillsChart/> <MultiKillsChart/>
</div> </div>
<hr> <!-- <hr>-->
<div class="spray"> <!-- <div class="spray">-->
<h3 class="text-center">Spray</h3> <!-- <h3 class="text-center">Spray</h3>-->
<SprayGraph :spray="data.spray"/> <!-- <SprayGraph :spray="data.spray"/>-->
</div> <!-- </div>-->
</div> </div>
</template> </template>
<script> <script>
import MultiKillsChart from "@/components/MultiKillsChart"; import MultiKillsChart from "@/components/MultiKillsChart";
import SprayGraph from "@/components/SprayGraph";
import {useStore} from "vuex"; import {useStore} from "vuex";
import {onMounted, reactive} from "vue"; import {onMounted, reactive} from "vue";
import {GetWeaponDmg} from "@/utils"; import {GetWeaponDmg} from "@/utils";
export default { export default {
name: "Details", name: "Details",
components: {SprayGraph, MultiKillsChart}, components: {MultiKillsChart},
setup() { setup() {
const store = useStore() const store = useStore()

View File

@@ -144,10 +144,7 @@ export default {
} }
document.addEventListener('click', (e) => { document.addEventListener('click', (e) => {
if (e.target.attributes.id) { if (!e.target.attributes.id)
if (e.target.attributes.id.name === 'searchform' || e.target.attributes.id.name === 'search' || e.target.attributes.id.name === 'search-button')
console.log('test')
} else
closeNav('mainNav') closeNav('mainNav')
}) })

View File

@@ -15,7 +15,7 @@ export default {
}, },
setup(props) { setup(props) {
watch(() => props.spray, () => { watch(() => props.spray, () => {
console.log(props.spray) // console.log(props.spray)
}) })
} }
} }

View File

@@ -49,7 +49,7 @@ export default {
scrollToPos(window.scrollY) scrollToPos(window.scrollY)
console.log(data.matches) // console.log(data.matches)
} }
onMounted(async () => { onMounted(async () => {
@@ -67,9 +67,9 @@ export default {
scrollToPos(store.state.scroll_state) scrollToPos(store.state.scroll_state)
if (data.matches) { // if (data.matches) {
console.log(data.matches) // console.log(data.matches)
} // }
}) })
onBeforeUnmount(() => { onBeforeUnmount(() => {

View File

@@ -212,7 +212,7 @@ export default {
data: CreatePlayersArray(data.stats) data: CreatePlayersArray(data.stats)
}) })
console.log(data.matchDetails) // console.log(data.matchDetails)
} }
} else { } else {
errorHandling(404) errorHandling(404)

View File

@@ -205,7 +205,7 @@ export default {
if (Object.entries(store.state.playerDetails).length === 0) { if (Object.entries(store.state.playerDetails).length === 0) {
GetPlayer() GetPlayer()
} else { } else {
console.log(store.state.playerDetails) // console.log(store.state.playerDetails)
SetPlayerData() SetPlayerData()
} }
} }
@@ -279,7 +279,7 @@ export default {
scrollToPos(window.scrollY) scrollToPos(window.scrollY)
console.log(store.state.playerDetails) // console.log(store.state.playerDetails)
} }
const RefreshData = async () => { const RefreshData = async () => {
@@ -324,9 +324,9 @@ export default {
data.playerMeta = await GetPlayerMeta(props.id, displayCounter) data.playerMeta = await GetPlayerMeta(props.id, displayCounter)
}) })
watch(() => data.playerMeta, () => { // watch(() => data.playerMeta, () => {
console.log(data.playerMeta) // console.log(data.playerMeta)
}) // })
onMounted(async () => { onMounted(async () => {
const height = window.innerHeight - NAV_HEIGHT - FOOTER_HEIGHT const height = window.innerHeight - NAV_HEIGHT - FOOTER_HEIGHT
@@ -338,7 +338,7 @@ export default {
scrollToPos(store.state.scroll_state) scrollToPos(store.state.scroll_state)
console.log(store.state.playerDetails) // console.log(store.state.playerDetails)
}) })
onBeforeUnmount(() => { onBeforeUnmount(() => {