delete console logs

This commit is contained in:
Hepatica
2024-03-03 15:20:19 +01:00
parent 0951c9ef71
commit bbb6618166
4 changed files with 0 additions and 21 deletions

View File

@@ -94,7 +94,6 @@ export default {
GetCurrentMoney(GetCookie("AUTHTOKEN"), GetCookie("SearchToken")) GetCurrentMoney(GetCookie("AUTHTOKEN"), GetCookie("SearchToken"))
.then((response) => { .then((response) => {
this.balance = response.currentMoney; this.balance = response.currentMoney;
console.log(response);
}) })
.catch((error) => { .catch((error) => {
// Обработка ошибки // Обработка ошибки

View File

@@ -137,7 +137,6 @@ export default {
if (this.crashObject.Status === 'GameEnd' && this.startGame === true && this.crashObject.Players.some(player => player.UserName === GetCookie('SpUserName'))) { if (this.crashObject.Status === 'GameEnd' && this.startGame === true && this.crashObject.Players.some(player => player.UserName === GetCookie('SpUserName'))) {
this.startGame = false this.startGame = false
console.log('GAME OVER')
this.updateUserMoney() this.updateUserMoney()
} }
if ( if (
@@ -150,7 +149,6 @@ export default {
this.startGame = true this.startGame = true
let User = this.crashObject.Players.find(player => player.UserName === GetCookie('SpUserName')) let User = this.crashObject.Players.find(player => player.UserName === GetCookie('SpUserName'))
console.log('ОБНОВЛЕНИЕ СТРАНИЦЫ')
if (User) { if (User) {
this.amountDeposit = User.Bid this.amountDeposit = User.Bid
User = null User = null
@@ -256,8 +254,6 @@ export default {
await JoinCrashGame(userData, this.amountDeposit) await JoinCrashGame(userData, this.amountDeposit)
.then((response) => { .then((response) => {
console.log(this.balance)
console.log(response)
if (response === `You can't join to started or ended game` || response === 'Player alredy in the game.') { if (response === `You can't join to started or ended game` || response === 'Player alredy in the game.') {
this.offBtn = false this.offBtn = false
@@ -309,7 +305,6 @@ export default {
if (content === 'max') { if (content === 'max') {
await GetCurrentMoney(GetCookie('AUTHTOKEN'), GetCookie('SearchToken')) await GetCurrentMoney(GetCookie('AUTHTOKEN'), GetCookie('SearchToken'))
.then((response) => { .then((response) => {
console.log(response.currentMoney, this.balance)
const responseBalance = response.currentMoney const responseBalance = response.currentMoney
if (responseBalance === this.balance) { if (responseBalance === this.balance) {

View File

@@ -410,7 +410,6 @@ export default {
GetCookie("AUTHTOKEN"), GetCookie("AUTHTOKEN"),
GetCookie("SearchToken") GetCookie("SearchToken")
).then((response) => { ).then((response) => {
console.log(response.currentMoney, this.balance);
const responseBalance = response.currentMoney; const responseBalance = response.currentMoney;
if (responseBalance === this.balance) { if (responseBalance === this.balance) {
@@ -446,8 +445,6 @@ export default {
}; };
await JoinJackpotGame(userData, this.amountDeposit).then((response) => { await JoinJackpotGame(userData, this.amountDeposit).then((response) => {
console.log(this.balance);
console.log(response);
if ( if (
response === `You can't join to started or ended game` || response === `You can't join to started or ended game` ||
response === "Player alredy in the game." response === "Player alredy in the game."
@@ -526,7 +523,6 @@ export default {
// Устанавливаем таймер, который сработает, когда игра должна закончиться // Устанавливаем таймер, который сработает, когда игра должна закончиться
setTimeout(() => { setTimeout(() => {
eventBus.emit("gameEnded"); // Транслируем событие окончания игры eventBus.emit("gameEnded"); // Транслируем событие окончания игры
console.log("Game has ended");
}, timeLeft); }, timeLeft);
} else { } else {
console.log("Game has already ended"); console.log("Game has already ended");
@@ -652,7 +648,6 @@ export default {
}, },
changeLastFiveImages() { changeLastFiveImages() {
const newImage = "https://avatar.spworlds.ru/face/55/Hepatir.png"; const newImage = "https://avatar.spworlds.ru/face/55/Hepatir.png";
console.log(this.slides);
this.slides[9].img = newImage; this.slides[9].img = newImage;
}, },
stopOnTarget(targetNickname) { stopOnTarget(targetNickname) {
@@ -672,11 +667,8 @@ export default {
const dataObject = JSON.parse(data); const dataObject = JSON.parse(data);
this.winStake = dataObject.CurrentGame.WinStake; this.winStake = dataObject.CurrentGame.WinStake;
console.log(dataObject);
if (dataObject.CurrentGame.GameState == "WaitingForPlayers") { if (dataObject.CurrentGame.GameState == "WaitingForPlayers") {
console.log("Waiting for players");
console.log("Put there earlies cards");
// if (dataObject.CurrentGame.GameState != "Running") { // if (dataObject.CurrentGame.GameState != "Running") {
@@ -697,7 +689,6 @@ export default {
} }
if (dataObject.CurrentGame.GameState == "StartGameTimer") { if (dataObject.CurrentGame.GameState == "StartGameTimer") {
if (!this.isGameTimerStarted) { if (!this.isGameTimerStarted) {
console.log("Set players");
this.idCurrentGame = dataObject.CurrentGame.Id; this.idCurrentGame = dataObject.CurrentGame.Id;
} }
this.mapPlayersToSlides( this.mapPlayersToSlides(
@@ -727,7 +718,6 @@ export default {
} }
} else { } else {
// Если данные не определены или пусты, выводим соответствующее сообщение в консоль // Если данные не определены или пусты, выводим соответствующее сообщение в консоль
console.log("Received undefined or null data");
} }
// console.log(dataFromServer); // console.log(dataFromServer);
} catch (error) { } catch (error) {

View File

@@ -325,7 +325,6 @@ export default {
async handler(value) { async handler(value) {
if (value.length < 1 || this.ValidationPlay.endGame === true) return if (value.length < 1 || this.ValidationPlay.endGame === true) return
const maxCircles = 25 - this.amountCrystals - this.gameTurn const maxCircles = 25 - this.amountCrystals - this.gameTurn
console.log(`MAXCIRLES - ${maxCircles} VALUE: ${value} GAMECIRCLE - ${this.gamesCircle}`)
if (this.gameStart !== false) { if (this.gameStart !== false) {
this.offEventPointers = false this.offEventPointers = false
@@ -369,7 +368,6 @@ export default {
console.error(e) console.error(e)
} }
console.log('---------ANSWER SERVER-----------', AnswerServer)
console.log(LimitClicked, DepositDiamonds, X_Cordinates) console.log(LimitClicked, DepositDiamonds, X_Cordinates)
this.gamesCircle = this.gamesCircle + 1 this.gamesCircle = this.gamesCircle + 1
this.offEventPointers = true this.offEventPointers = true
@@ -430,7 +428,6 @@ export default {
try { try {
GetUserData(AUTHTOKEN, SEARCHTOKEN) GetUserData(AUTHTOKEN, SEARCHTOKEN)
.then(response => { .then(response => {
console.log(response)
if (response) { if (response) {
this.gameStart = true this.gameStart = true
this.offEventPointers = true this.offEventPointers = true
@@ -449,7 +446,6 @@ export default {
}) })
soundStartGame.play() soundStartGame.play()
console.log(this.flippedCards.length)
setTimeout(() => { setTimeout(() => {
this.ValidationPlay.startGame = false this.ValidationPlay.startGame = false
}, 2000) }, 2000)
@@ -581,7 +577,6 @@ export default {
if (content === 'max') { if (content === 'max') {
await GetCurrentMoney(GetCookie('AUTHTOKEN'), GetCookie('SearchToken')) await GetCurrentMoney(GetCookie('AUTHTOKEN'), GetCookie('SearchToken'))
.then((response) => { .then((response) => {
console.log(response.currentMoney, this.balance)
const responseBalance = response.currentMoney const responseBalance = response.currentMoney
if (responseBalance === this.balance) { if (responseBalance === this.balance) {