2019-05-22 06:26:05 +00:00
|
|
|
<template lang="html">
|
2020-10-14 21:48:55 +00:00
|
|
|
<b-card
|
|
|
|
no-body
|
|
|
|
class="clickable mb-2"
|
|
|
|
:bg-variant="nightMode ? 'dark' : ''"
|
|
|
|
:text-variant="nightMode ? 'white' : ''"
|
|
|
|
@click="openDetails"
|
|
|
|
>
|
2020-08-17 16:10:21 +00:00
|
|
|
<b-row no-gutters v-if="game && game.name">
|
2020-08-11 23:39:11 +00:00
|
|
|
<b-card-body body-class="pt-0 pb-1 px-2">
|
|
|
|
<small>
|
2020-10-08 17:55:26 +00:00
|
|
|
<icon
|
|
|
|
name="verified"
|
2020-08-31 22:37:09 +00:00
|
|
|
class="rounded bg-success p-1"
|
2020-10-08 17:55:26 +00:00
|
|
|
white
|
2020-08-31 22:37:09 +00:00
|
|
|
font-scale="1.5"
|
|
|
|
v-if="showCompletedBadge"
|
|
|
|
/>
|
|
|
|
|
2020-08-11 23:39:11 +00:00
|
|
|
{{ game.name }}
|
|
|
|
|
|
|
|
<b-badge variant="warning" v-if="gameNotes">
|
2020-10-08 17:55:26 +00:00
|
|
|
<icon name="note" />
|
2020-08-11 23:39:11 +00:00
|
|
|
</b-badge>
|
|
|
|
</small>
|
|
|
|
|
2020-09-30 23:56:38 +00:00
|
|
|
<br />
|
|
|
|
|
2020-08-21 07:42:16 +00:00
|
|
|
<!-- <b-badge
|
2020-08-11 23:39:11 +00:00
|
|
|
v-if="releaseDate"
|
|
|
|
variant="secondary"
|
|
|
|
class="mb-2"
|
|
|
|
>
|
|
|
|
Releases in
|
|
|
|
{{ releaseDate }}
|
2020-08-21 07:42:16 +00:00
|
|
|
</b-badge> -->
|
2020-08-11 23:39:11 +00:00
|
|
|
|
|
|
|
<b-form-rating
|
|
|
|
v-if="gameRating"
|
2020-08-31 22:19:53 +00:00
|
|
|
class="p-0 border-0 shadow-none"
|
2020-08-11 23:39:11 +00:00
|
|
|
inline
|
|
|
|
:value="gameRating"
|
|
|
|
readonly
|
|
|
|
variant="warning"
|
|
|
|
size="sm"
|
|
|
|
no-border
|
|
|
|
/>
|
|
|
|
|
|
|
|
<b-progress
|
2020-08-31 22:37:09 +00:00
|
|
|
v-if="showGameProgress"
|
2020-08-11 23:39:11 +00:00
|
|
|
:value="gameProgress"
|
2020-08-31 22:37:09 +00:00
|
|
|
class="my-1"
|
2020-08-11 23:39:11 +00:00
|
|
|
variant="success"
|
|
|
|
height="6px"
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="showGameTags">
|
|
|
|
<b-badge
|
|
|
|
v-for="({ games, hex, tagTextColor }, name) in tags"
|
|
|
|
v-if="games.includes(game.id)"
|
|
|
|
:key="name"
|
|
|
|
pill
|
|
|
|
variant="primary"
|
|
|
|
tag="small"
|
|
|
|
:style="`background-color: ${hex}; color: ${tagTextColor}`"
|
|
|
|
>
|
|
|
|
{{ name }}
|
|
|
|
</b-badge>
|
|
|
|
</div>
|
|
|
|
</b-card-body>
|
|
|
|
</b-row>
|
|
|
|
</b-card>
|
2019-05-22 06:26:05 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import GameCardUtils from '@/components/GameCards/GameCard';
|
|
|
|
|
|
|
|
export default {
|
2019-11-08 19:56:03 +00:00
|
|
|
mixins: [GameCardUtils],
|
2019-05-22 06:26:05 +00:00
|
|
|
};
|
|
|
|
</script>
|