This commit is contained in:
@@ -68,7 +68,7 @@ class GamesManager{
|
|||||||
this.list = async function(query){
|
this.list = async function(query){
|
||||||
return await db.list(collection, {
|
return await db.list(collection, {
|
||||||
query,
|
query,
|
||||||
project: { name:1, id:1, thumb: 1}
|
project: { name:1, description:1, id:1, thumb: 1}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+7
-7
@@ -1,13 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-container>
|
<v-container>
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col v-for="(v, i) in items" :key="i" cols="12" xs="6" sm="4" md="3" xl="2" class="position-relative">
|
<v-col v-for="(v, i) in items" :key="i" cols="12" xs="6" sm="6" md="4" xl="4">
|
||||||
<router-link :to="`/playground/game/${v.id}`">
|
<v-card :to="`/playground/game/${v.id}`" class="hover-effect">
|
||||||
<v-img :src="`/asset/thumb/${v.thumb}.webp`"></v-img>
|
<v-img :src="`/asset/thumb/${v.thumb}.webp`" cover content-class="d-flex flex-column justify-end" gradient="to bottom, rgba(0,0,0,0), rgba(0,0,0,.5)">
|
||||||
</router-link>
|
<v-card-title class="text-white text-h6" v-text="v.name"></v-card-title>
|
||||||
<div class="d-flex">
|
<div class="text-white text-caption mx-4" v-text="v.description"></div>
|
||||||
<span class="flex-grow-1">{{ v.name }}</span>
|
</v-img>
|
||||||
</div>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-container>
|
</v-container>
|
||||||
|
|||||||
Reference in New Issue
Block a user