Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5 from Gamify-IT/maintenance/fix-sonar-warnings
Browse files Browse the repository at this point in the history
Fix SonarQube warnings
  • Loading branch information
Gr33ndev authored Jul 12, 2022
2 parents fc805d7 + 40b60b8 commit 050124a
Show file tree
Hide file tree
Showing 5 changed files with 256 additions and 24 deletions.
258 changes: 246 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<button class="btn btn-danger close-button" @click="closeMicroservice()"><i class="bi bi-x"></i></button>
<button class="btn btn-danger close-button" @click="closeMicroservice()"><em class="bi bi-x"></em></button>
<enemy-button :git="git" :initCards="initCards" :onEnemyTurn="onEnemyTurn" ref="enemyButton"></enemy-button>
<git-view-vue :git="git"></git-view-vue>
<card-stack :git="git" :onError="onError" :turn="turn" ref="cardStack"></card-stack>
Expand All @@ -24,7 +24,6 @@ export default {
turn: true,
};
},
mounted() {},
methods: {
initCards() {
this.turn = true;
Expand Down
11 changes: 5 additions & 6 deletions src/components/EnemyButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ export default {
this.btnText = 'Finish your turn';
this.initCards();
},
async click() {
this.beforeClick();
fillCards() {
while (this.cards.length !== 5) {
const randomCard = getRandomCard();
if (this.cards.filter((card) => card.command === randomCard.command).length >= 2) continue;
this.cards.push(randomCard);
}
},
async click() {
this.beforeClick();
this.fillCards();
while (this.cards.length !== 0) {
let cardUsed = false;
Expand Down Expand Up @@ -82,9 +84,6 @@ export default {
transform: translate(-50%, 100px);
}
.enemy-button {
}
.score {
color: black;
}
Expand Down
Loading

0 comments on commit 050124a

Please sign in to comment.