Skip to content

Commit

Permalink
some code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Leroy-bit committed Oct 18, 2023
1 parent 88877c7 commit 0866d82
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
3 changes: 1 addition & 2 deletions client/src/components/Board.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
export default {
data() {
return {
board: [],
colors: ['blue', 'red']
board: []
}
},
created() {
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/Player.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span class="player-name" :class="{upbar: bar_type, downbar: !bar_type, current: isCurrentPlayer}">
<span class="player-name" :class="{upbar: barType, downbar: !barType, current: isCurrentPlayer}">
<slot></slot>
</span>
</template>
Expand Down Expand Up @@ -48,7 +48,7 @@
},
props: {
id: Number,
bar_type: Boolean,
barType: Boolean,
isCurrentPlayer: Boolean
}
}
Expand Down
10 changes: 1 addition & 9 deletions client/src/components/Popup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,4 @@
.popup__buttons .decline {
color: var(--decline-color);
}
</style>

<script>
export default {
data() {
return {}
}
}
</script>
</style>

0 comments on commit 0866d82

Please sign in to comment.